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,1808 @@
|
|
|
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 TelemetryControllerApi(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_attributes_using_delete(self, device_id, scope, keys, **kwargs): # noqa: E501
|
|
50
|
+
"""Delete device attributes (deleteDeviceAttributes) # noqa: E501
|
|
51
|
+
|
|
52
|
+
Delete device attributes using provided Device Id, scope and a list of keys. Referencing a non-existing Device Id will cause an error Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' 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_attributes_using_delete(device_id, scope, keys, async_req=True)
|
|
56
|
+
>>> result = thread.get()
|
|
57
|
+
|
|
58
|
+
:param async_req bool
|
|
59
|
+
:param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
60
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
61
|
+
:param str keys: A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'. (required)
|
|
62
|
+
:return: DeferredResultResponseEntity
|
|
63
|
+
If the method is called asynchronously,
|
|
64
|
+
returns the request thread.
|
|
65
|
+
"""
|
|
66
|
+
kwargs['_return_http_data_only'] = True
|
|
67
|
+
if kwargs.get('async_req'):
|
|
68
|
+
return self.delete_device_attributes_using_delete_with_http_info(device_id, scope, keys, **kwargs) # noqa: E501
|
|
69
|
+
else:
|
|
70
|
+
(data) = self.delete_device_attributes_using_delete_with_http_info(device_id, scope, keys, **kwargs) # noqa: E501
|
|
71
|
+
return data
|
|
72
|
+
|
|
73
|
+
def delete_device_attributes_using_delete_with_http_info(self, device_id, scope, keys, **kwargs): # noqa: E501
|
|
74
|
+
"""Delete device attributes (deleteDeviceAttributes) # noqa: E501
|
|
75
|
+
|
|
76
|
+
Delete device attributes using provided Device Id, scope and a list of keys. Referencing a non-existing Device Id will cause an error Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
77
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
78
|
+
asynchronous HTTP request, please pass async_req=True
|
|
79
|
+
>>> thread = api.delete_device_attributes_using_delete_with_http_info(device_id, scope, keys, async_req=True)
|
|
80
|
+
>>> result = thread.get()
|
|
81
|
+
|
|
82
|
+
:param async_req bool
|
|
83
|
+
:param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
84
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
85
|
+
:param str keys: A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'. (required)
|
|
86
|
+
:return: DeferredResultResponseEntity
|
|
87
|
+
If the method is called asynchronously,
|
|
88
|
+
returns the request thread.
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
all_params = ['device_id', 'scope', 'keys'] # noqa: E501
|
|
92
|
+
all_params.append('async_req')
|
|
93
|
+
all_params.append('_return_http_data_only')
|
|
94
|
+
all_params.append('_preload_content')
|
|
95
|
+
all_params.append('_request_timeout')
|
|
96
|
+
|
|
97
|
+
params = locals()
|
|
98
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
99
|
+
if key not in all_params:
|
|
100
|
+
raise TypeError(
|
|
101
|
+
"Got an unexpected keyword argument '%s'"
|
|
102
|
+
" to method delete_device_attributes_using_delete" % key
|
|
103
|
+
)
|
|
104
|
+
params[key] = val
|
|
105
|
+
del params['kwargs']
|
|
106
|
+
# verify the required parameter 'device_id' is set
|
|
107
|
+
if ('device_id' not in params or
|
|
108
|
+
params['device_id'] is None):
|
|
109
|
+
raise ValueError("Missing the required parameter `device_id` when calling `delete_device_attributes_using_delete`") # noqa: E501
|
|
110
|
+
# verify the required parameter 'scope' is set
|
|
111
|
+
if ('scope' not in params or
|
|
112
|
+
params['scope'] is None):
|
|
113
|
+
raise ValueError("Missing the required parameter `scope` when calling `delete_device_attributes_using_delete`") # noqa: E501
|
|
114
|
+
# verify the required parameter 'keys' is set
|
|
115
|
+
if ('keys' not in params or
|
|
116
|
+
params['keys'] is None):
|
|
117
|
+
raise ValueError("Missing the required parameter `keys` when calling `delete_device_attributes_using_delete`") # noqa: E501
|
|
118
|
+
|
|
119
|
+
collection_formats = {}
|
|
120
|
+
|
|
121
|
+
path_params = {}
|
|
122
|
+
if 'device_id' in params:
|
|
123
|
+
path_params['deviceId'] = params['device_id'] # noqa: E501
|
|
124
|
+
if 'scope' in params:
|
|
125
|
+
path_params['scope'] = params['scope'] # noqa: E501
|
|
126
|
+
|
|
127
|
+
query_params = []
|
|
128
|
+
if 'keys' in params:
|
|
129
|
+
query_params.append(('keys', params['keys'])) # noqa: E501
|
|
130
|
+
|
|
131
|
+
header_params = {}
|
|
132
|
+
|
|
133
|
+
form_params = []
|
|
134
|
+
local_var_files = {}
|
|
135
|
+
|
|
136
|
+
body_params = None
|
|
137
|
+
# HTTP header `Accept`
|
|
138
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
139
|
+
['application/json']) # noqa: E501
|
|
140
|
+
|
|
141
|
+
# Authentication setting
|
|
142
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
143
|
+
|
|
144
|
+
return self.api_client.call_api(
|
|
145
|
+
'/api/plugins/telemetry/{deviceId}/{scope}{?keys}', 'DELETE',
|
|
146
|
+
path_params,
|
|
147
|
+
query_params,
|
|
148
|
+
header_params,
|
|
149
|
+
body=body_params,
|
|
150
|
+
post_params=form_params,
|
|
151
|
+
files=local_var_files,
|
|
152
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
153
|
+
auth_settings=auth_settings,
|
|
154
|
+
async_req=params.get('async_req'),
|
|
155
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
156
|
+
_preload_content=params.get('_preload_content', True),
|
|
157
|
+
_request_timeout=params.get('_request_timeout'),
|
|
158
|
+
collection_formats=collection_formats)
|
|
159
|
+
|
|
160
|
+
def delete_entity_attributes_using_delete(self, entity_type, entity_id, scope, keys, **kwargs): # noqa: E501
|
|
161
|
+
"""Delete entity attributes (deleteEntityAttributes) # noqa: E501
|
|
162
|
+
|
|
163
|
+
Delete entity attributes using provided Entity Id, scope and a list of keys. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
164
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
165
|
+
asynchronous HTTP request, please pass async_req=True
|
|
166
|
+
>>> thread = api.delete_entity_attributes_using_delete(entity_type, entity_id, scope, keys, async_req=True)
|
|
167
|
+
>>> result = thread.get()
|
|
168
|
+
|
|
169
|
+
:param async_req bool
|
|
170
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
171
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
172
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
173
|
+
:param str keys: A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'. (required)
|
|
174
|
+
:return: DeferredResultResponseEntity
|
|
175
|
+
If the method is called asynchronously,
|
|
176
|
+
returns the request thread.
|
|
177
|
+
"""
|
|
178
|
+
kwargs['_return_http_data_only'] = True
|
|
179
|
+
if kwargs.get('async_req'):
|
|
180
|
+
return self.delete_entity_attributes_using_delete_with_http_info(entity_type, entity_id, scope, keys, **kwargs) # noqa: E501
|
|
181
|
+
else:
|
|
182
|
+
(data) = self.delete_entity_attributes_using_delete_with_http_info(entity_type, entity_id, scope, keys, **kwargs) # noqa: E501
|
|
183
|
+
return data
|
|
184
|
+
|
|
185
|
+
def delete_entity_attributes_using_delete_with_http_info(self, entity_type, entity_id, scope, keys, **kwargs): # noqa: E501
|
|
186
|
+
"""Delete entity attributes (deleteEntityAttributes) # noqa: E501
|
|
187
|
+
|
|
188
|
+
Delete entity attributes using provided Entity Id, scope and a list of keys. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
189
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
190
|
+
asynchronous HTTP request, please pass async_req=True
|
|
191
|
+
>>> thread = api.delete_entity_attributes_using_delete_with_http_info(entity_type, entity_id, scope, keys, async_req=True)
|
|
192
|
+
>>> result = thread.get()
|
|
193
|
+
|
|
194
|
+
:param async_req bool
|
|
195
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
196
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
197
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
198
|
+
:param str keys: A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'. (required)
|
|
199
|
+
:return: DeferredResultResponseEntity
|
|
200
|
+
If the method is called asynchronously,
|
|
201
|
+
returns the request thread.
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
all_params = ['entity_type', 'entity_id', 'scope', 'keys'] # noqa: E501
|
|
205
|
+
all_params.append('async_req')
|
|
206
|
+
all_params.append('_return_http_data_only')
|
|
207
|
+
all_params.append('_preload_content')
|
|
208
|
+
all_params.append('_request_timeout')
|
|
209
|
+
|
|
210
|
+
params = locals()
|
|
211
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
212
|
+
if key not in all_params:
|
|
213
|
+
raise TypeError(
|
|
214
|
+
"Got an unexpected keyword argument '%s'"
|
|
215
|
+
" to method delete_entity_attributes_using_delete" % key
|
|
216
|
+
)
|
|
217
|
+
params[key] = val
|
|
218
|
+
del params['kwargs']
|
|
219
|
+
# verify the required parameter 'entity_type' is set
|
|
220
|
+
if ('entity_type' not in params or
|
|
221
|
+
params['entity_type'] is None):
|
|
222
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `delete_entity_attributes_using_delete`") # noqa: E501
|
|
223
|
+
# verify the required parameter 'entity_id' is set
|
|
224
|
+
if ('entity_id' not in params or
|
|
225
|
+
params['entity_id'] is None):
|
|
226
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `delete_entity_attributes_using_delete`") # noqa: E501
|
|
227
|
+
# verify the required parameter 'scope' is set
|
|
228
|
+
if ('scope' not in params or
|
|
229
|
+
params['scope'] is None):
|
|
230
|
+
raise ValueError("Missing the required parameter `scope` when calling `delete_entity_attributes_using_delete`") # noqa: E501
|
|
231
|
+
# verify the required parameter 'keys' is set
|
|
232
|
+
if ('keys' not in params or
|
|
233
|
+
params['keys'] is None):
|
|
234
|
+
raise ValueError("Missing the required parameter `keys` when calling `delete_entity_attributes_using_delete`") # noqa: E501
|
|
235
|
+
|
|
236
|
+
collection_formats = {}
|
|
237
|
+
|
|
238
|
+
path_params = {}
|
|
239
|
+
if 'entity_type' in params:
|
|
240
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
241
|
+
if 'entity_id' in params:
|
|
242
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
243
|
+
if 'scope' in params:
|
|
244
|
+
path_params['scope'] = params['scope'] # noqa: E501
|
|
245
|
+
|
|
246
|
+
query_params = []
|
|
247
|
+
if 'keys' in params:
|
|
248
|
+
query_params.append(('keys', params['keys'])) # noqa: E501
|
|
249
|
+
|
|
250
|
+
header_params = {}
|
|
251
|
+
|
|
252
|
+
form_params = []
|
|
253
|
+
local_var_files = {}
|
|
254
|
+
|
|
255
|
+
body_params = None
|
|
256
|
+
# HTTP header `Accept`
|
|
257
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
258
|
+
['application/json']) # noqa: E501
|
|
259
|
+
|
|
260
|
+
# Authentication setting
|
|
261
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
262
|
+
|
|
263
|
+
return self.api_client.call_api(
|
|
264
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/{scope}{?keys}', 'DELETE',
|
|
265
|
+
path_params,
|
|
266
|
+
query_params,
|
|
267
|
+
header_params,
|
|
268
|
+
body=body_params,
|
|
269
|
+
post_params=form_params,
|
|
270
|
+
files=local_var_files,
|
|
271
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
272
|
+
auth_settings=auth_settings,
|
|
273
|
+
async_req=params.get('async_req'),
|
|
274
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
275
|
+
_preload_content=params.get('_preload_content', True),
|
|
276
|
+
_request_timeout=params.get('_request_timeout'),
|
|
277
|
+
collection_formats=collection_formats)
|
|
278
|
+
|
|
279
|
+
def delete_entity_timeseries_using_delete(self, entity_type, entity_id, keys, **kwargs): # noqa: E501
|
|
280
|
+
"""Delete entity time-series data (deleteEntityTimeseries) # noqa: E501
|
|
281
|
+
|
|
282
|
+
Delete time-series for selected entity based on entity id, entity type and keys. Use 'deleteAllDataForKeys' to delete all time-series data. Use 'startTs' and 'endTs' to specify time-range instead. Use 'deleteLatest' to delete latest value (stored in separate table for performance) if the value's timestamp matches the time-range. Use 'rewriteLatestIfDeleted' to rewrite latest value (stored in separate table for performance) if the value's timestamp matches the time-range and 'deleteLatest' param is true. The replacement value will be fetched from the 'time-series' table, and its timestamp will be the most recent one before the defined time-range. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
283
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
284
|
+
asynchronous HTTP request, please pass async_req=True
|
|
285
|
+
>>> thread = api.delete_entity_timeseries_using_delete(entity_type, entity_id, keys, async_req=True)
|
|
286
|
+
>>> result = thread.get()
|
|
287
|
+
|
|
288
|
+
:param async_req bool
|
|
289
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
290
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
291
|
+
:param str keys: A string value representing the comma-separated list of telemetry keys. If keys are not selected, the result will return all latest timeseries. For example, 'temperature,humidity'. (required)
|
|
292
|
+
:param bool delete_all_data_for_keys: A boolean value to specify if should be deleted all data for selected keys or only data that are in the selected time range.
|
|
293
|
+
:param int start_ts: A long value representing the start timestamp of removal time range in milliseconds.
|
|
294
|
+
:param int end_ts: A long value representing the end timestamp of removal time range in milliseconds.
|
|
295
|
+
:param bool delete_latest: If the parameter is set to true, the latest telemetry can be removed, otherwise, in case that parameter is set to false the latest value will not removed.
|
|
296
|
+
:param bool rewrite_latest_if_deleted: If the parameter is set to true, the latest telemetry will be rewritten in case that current latest value was removed, otherwise, in case that parameter is set to false the new latest value will not set.
|
|
297
|
+
:return: DeferredResultResponseEntity
|
|
298
|
+
If the method is called asynchronously,
|
|
299
|
+
returns the request thread.
|
|
300
|
+
"""
|
|
301
|
+
kwargs['_return_http_data_only'] = True
|
|
302
|
+
if kwargs.get('async_req'):
|
|
303
|
+
return self.delete_entity_timeseries_using_delete_with_http_info(entity_type, entity_id, keys, **kwargs) # noqa: E501
|
|
304
|
+
else:
|
|
305
|
+
(data) = self.delete_entity_timeseries_using_delete_with_http_info(entity_type, entity_id, keys, **kwargs) # noqa: E501
|
|
306
|
+
return data
|
|
307
|
+
|
|
308
|
+
def delete_entity_timeseries_using_delete_with_http_info(self, entity_type, entity_id, keys, **kwargs): # noqa: E501
|
|
309
|
+
"""Delete entity time-series data (deleteEntityTimeseries) # noqa: E501
|
|
310
|
+
|
|
311
|
+
Delete time-series for selected entity based on entity id, entity type and keys. Use 'deleteAllDataForKeys' to delete all time-series data. Use 'startTs' and 'endTs' to specify time-range instead. Use 'deleteLatest' to delete latest value (stored in separate table for performance) if the value's timestamp matches the time-range. Use 'rewriteLatestIfDeleted' to rewrite latest value (stored in separate table for performance) if the value's timestamp matches the time-range and 'deleteLatest' param is true. The replacement value will be fetched from the 'time-series' table, and its timestamp will be the most recent one before the defined time-range. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
312
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
313
|
+
asynchronous HTTP request, please pass async_req=True
|
|
314
|
+
>>> thread = api.delete_entity_timeseries_using_delete_with_http_info(entity_type, entity_id, keys, async_req=True)
|
|
315
|
+
>>> result = thread.get()
|
|
316
|
+
|
|
317
|
+
:param async_req bool
|
|
318
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
319
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
320
|
+
:param str keys: A string value representing the comma-separated list of telemetry keys. If keys are not selected, the result will return all latest timeseries. For example, 'temperature,humidity'. (required)
|
|
321
|
+
:param bool delete_all_data_for_keys: A boolean value to specify if should be deleted all data for selected keys or only data that are in the selected time range.
|
|
322
|
+
:param int start_ts: A long value representing the start timestamp of removal time range in milliseconds.
|
|
323
|
+
:param int end_ts: A long value representing the end timestamp of removal time range in milliseconds.
|
|
324
|
+
:param bool delete_latest: If the parameter is set to true, the latest telemetry can be removed, otherwise, in case that parameter is set to false the latest value will not removed.
|
|
325
|
+
:param bool rewrite_latest_if_deleted: If the parameter is set to true, the latest telemetry will be rewritten in case that current latest value was removed, otherwise, in case that parameter is set to false the new latest value will not set.
|
|
326
|
+
:return: DeferredResultResponseEntity
|
|
327
|
+
If the method is called asynchronously,
|
|
328
|
+
returns the request thread.
|
|
329
|
+
"""
|
|
330
|
+
|
|
331
|
+
all_params = ['entity_type', 'entity_id', 'keys', 'delete_all_data_for_keys', 'start_ts', 'end_ts', 'delete_latest', 'rewrite_latest_if_deleted'] # noqa: E501
|
|
332
|
+
all_params.append('async_req')
|
|
333
|
+
all_params.append('_return_http_data_only')
|
|
334
|
+
all_params.append('_preload_content')
|
|
335
|
+
all_params.append('_request_timeout')
|
|
336
|
+
|
|
337
|
+
params = locals()
|
|
338
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
339
|
+
if key not in all_params:
|
|
340
|
+
raise TypeError(
|
|
341
|
+
"Got an unexpected keyword argument '%s'"
|
|
342
|
+
" to method delete_entity_timeseries_using_delete" % key
|
|
343
|
+
)
|
|
344
|
+
params[key] = val
|
|
345
|
+
del params['kwargs']
|
|
346
|
+
# verify the required parameter 'entity_type' is set
|
|
347
|
+
if ('entity_type' not in params or
|
|
348
|
+
params['entity_type'] is None):
|
|
349
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `delete_entity_timeseries_using_delete`") # noqa: E501
|
|
350
|
+
# verify the required parameter 'entity_id' is set
|
|
351
|
+
if ('entity_id' not in params or
|
|
352
|
+
params['entity_id'] is None):
|
|
353
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `delete_entity_timeseries_using_delete`") # noqa: E501
|
|
354
|
+
# verify the required parameter 'keys' is set
|
|
355
|
+
if ('keys' not in params or
|
|
356
|
+
params['keys'] is None):
|
|
357
|
+
raise ValueError("Missing the required parameter `keys` when calling `delete_entity_timeseries_using_delete`") # noqa: E501
|
|
358
|
+
|
|
359
|
+
collection_formats = {}
|
|
360
|
+
|
|
361
|
+
path_params = {}
|
|
362
|
+
if 'entity_type' in params:
|
|
363
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
364
|
+
if 'entity_id' in params:
|
|
365
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
366
|
+
|
|
367
|
+
query_params = []
|
|
368
|
+
if 'keys' in params:
|
|
369
|
+
query_params.append(('keys', params['keys'])) # noqa: E501
|
|
370
|
+
if 'delete_all_data_for_keys' in params:
|
|
371
|
+
query_params.append(('deleteAllDataForKeys', params['delete_all_data_for_keys'])) # noqa: E501
|
|
372
|
+
if 'start_ts' in params:
|
|
373
|
+
query_params.append(('startTs', params['start_ts'])) # noqa: E501
|
|
374
|
+
if 'end_ts' in params:
|
|
375
|
+
query_params.append(('endTs', params['end_ts'])) # noqa: E501
|
|
376
|
+
if 'delete_latest' in params:
|
|
377
|
+
query_params.append(('deleteLatest', params['delete_latest'])) # noqa: E501
|
|
378
|
+
if 'rewrite_latest_if_deleted' in params:
|
|
379
|
+
query_params.append(('rewriteLatestIfDeleted', params['rewrite_latest_if_deleted'])) # noqa: E501
|
|
380
|
+
|
|
381
|
+
header_params = {}
|
|
382
|
+
|
|
383
|
+
form_params = []
|
|
384
|
+
local_var_files = {}
|
|
385
|
+
|
|
386
|
+
body_params = None
|
|
387
|
+
# HTTP header `Accept`
|
|
388
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
389
|
+
['application/json']) # noqa: E501
|
|
390
|
+
|
|
391
|
+
# Authentication setting
|
|
392
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
393
|
+
|
|
394
|
+
return self.api_client.call_api(
|
|
395
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/timeseries/delete{?deleteAllDataForKeys,deleteLatest,endTs,keys,rewriteLatestIfDeleted,startTs}', 'DELETE',
|
|
396
|
+
path_params,
|
|
397
|
+
query_params,
|
|
398
|
+
header_params,
|
|
399
|
+
body=body_params,
|
|
400
|
+
post_params=form_params,
|
|
401
|
+
files=local_var_files,
|
|
402
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
403
|
+
auth_settings=auth_settings,
|
|
404
|
+
async_req=params.get('async_req'),
|
|
405
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
406
|
+
_preload_content=params.get('_preload_content', True),
|
|
407
|
+
_request_timeout=params.get('_request_timeout'),
|
|
408
|
+
collection_formats=collection_formats)
|
|
409
|
+
|
|
410
|
+
def get_attribute_keys_by_scope_using_get(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
411
|
+
"""Get all attribute keys by scope (getAttributeKeysByScope) # noqa: E501
|
|
412
|
+
|
|
413
|
+
Returns a set of unique attribute key names for the selected entity and attributes scope: * SERVER_SCOPE - supported for all entity types; * CLIENT_SCOPE - supported for devices; * SHARED_SCOPE - supported for devices. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
414
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
415
|
+
asynchronous HTTP request, please pass async_req=True
|
|
416
|
+
>>> thread = api.get_attribute_keys_by_scope_using_get(entity_type, entity_id, scope, async_req=True)
|
|
417
|
+
>>> result = thread.get()
|
|
418
|
+
|
|
419
|
+
:param async_req bool
|
|
420
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
421
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
422
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
423
|
+
:return: DeferredResultResponseEntity
|
|
424
|
+
If the method is called asynchronously,
|
|
425
|
+
returns the request thread.
|
|
426
|
+
"""
|
|
427
|
+
kwargs['_return_http_data_only'] = True
|
|
428
|
+
if kwargs.get('async_req'):
|
|
429
|
+
return self.get_attribute_keys_by_scope_using_get_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
430
|
+
else:
|
|
431
|
+
(data) = self.get_attribute_keys_by_scope_using_get_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
432
|
+
return data
|
|
433
|
+
|
|
434
|
+
def get_attribute_keys_by_scope_using_get_with_http_info(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
435
|
+
"""Get all attribute keys by scope (getAttributeKeysByScope) # noqa: E501
|
|
436
|
+
|
|
437
|
+
Returns a set of unique attribute key names for the selected entity and attributes scope: * SERVER_SCOPE - supported for all entity types; * CLIENT_SCOPE - supported for devices; * SHARED_SCOPE - supported for devices. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
438
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
439
|
+
asynchronous HTTP request, please pass async_req=True
|
|
440
|
+
>>> thread = api.get_attribute_keys_by_scope_using_get_with_http_info(entity_type, entity_id, scope, async_req=True)
|
|
441
|
+
>>> result = thread.get()
|
|
442
|
+
|
|
443
|
+
:param async_req bool
|
|
444
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
445
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
446
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
447
|
+
:return: DeferredResultResponseEntity
|
|
448
|
+
If the method is called asynchronously,
|
|
449
|
+
returns the request thread.
|
|
450
|
+
"""
|
|
451
|
+
|
|
452
|
+
all_params = ['entity_type', 'entity_id', 'scope'] # noqa: E501
|
|
453
|
+
all_params.append('async_req')
|
|
454
|
+
all_params.append('_return_http_data_only')
|
|
455
|
+
all_params.append('_preload_content')
|
|
456
|
+
all_params.append('_request_timeout')
|
|
457
|
+
|
|
458
|
+
params = locals()
|
|
459
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
460
|
+
if key not in all_params:
|
|
461
|
+
raise TypeError(
|
|
462
|
+
"Got an unexpected keyword argument '%s'"
|
|
463
|
+
" to method get_attribute_keys_by_scope_using_get" % key
|
|
464
|
+
)
|
|
465
|
+
params[key] = val
|
|
466
|
+
del params['kwargs']
|
|
467
|
+
# verify the required parameter 'entity_type' is set
|
|
468
|
+
if ('entity_type' not in params or
|
|
469
|
+
params['entity_type'] is None):
|
|
470
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `get_attribute_keys_by_scope_using_get`") # noqa: E501
|
|
471
|
+
# verify the required parameter 'entity_id' is set
|
|
472
|
+
if ('entity_id' not in params or
|
|
473
|
+
params['entity_id'] is None):
|
|
474
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `get_attribute_keys_by_scope_using_get`") # noqa: E501
|
|
475
|
+
# verify the required parameter 'scope' is set
|
|
476
|
+
if ('scope' not in params or
|
|
477
|
+
params['scope'] is None):
|
|
478
|
+
raise ValueError("Missing the required parameter `scope` when calling `get_attribute_keys_by_scope_using_get`") # noqa: E501
|
|
479
|
+
|
|
480
|
+
collection_formats = {}
|
|
481
|
+
|
|
482
|
+
path_params = {}
|
|
483
|
+
if 'entity_type' in params:
|
|
484
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
485
|
+
if 'entity_id' in params:
|
|
486
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
487
|
+
if 'scope' in params:
|
|
488
|
+
path_params['scope'] = params['scope'] # noqa: E501
|
|
489
|
+
|
|
490
|
+
query_params = []
|
|
491
|
+
|
|
492
|
+
header_params = {}
|
|
493
|
+
|
|
494
|
+
form_params = []
|
|
495
|
+
local_var_files = {}
|
|
496
|
+
|
|
497
|
+
body_params = None
|
|
498
|
+
# HTTP header `Accept`
|
|
499
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
500
|
+
['application/json']) # noqa: E501
|
|
501
|
+
|
|
502
|
+
# Authentication setting
|
|
503
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
504
|
+
|
|
505
|
+
return self.api_client.call_api(
|
|
506
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/keys/attributes/{scope}', 'GET',
|
|
507
|
+
path_params,
|
|
508
|
+
query_params,
|
|
509
|
+
header_params,
|
|
510
|
+
body=body_params,
|
|
511
|
+
post_params=form_params,
|
|
512
|
+
files=local_var_files,
|
|
513
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
514
|
+
auth_settings=auth_settings,
|
|
515
|
+
async_req=params.get('async_req'),
|
|
516
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
517
|
+
_preload_content=params.get('_preload_content', True),
|
|
518
|
+
_request_timeout=params.get('_request_timeout'),
|
|
519
|
+
collection_formats=collection_formats)
|
|
520
|
+
|
|
521
|
+
def get_attribute_keys_using_get(self, entity_type, entity_id, **kwargs): # noqa: E501
|
|
522
|
+
"""Get all attribute keys (getAttributeKeys) # noqa: E501
|
|
523
|
+
|
|
524
|
+
Returns a set of unique attribute key names for the selected entity. The response will include merged key names set for all attribute scopes: * SERVER_SCOPE - supported for all entity types; * CLIENT_SCOPE - supported for devices; * SHARED_SCOPE - supported for devices. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
525
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
526
|
+
asynchronous HTTP request, please pass async_req=True
|
|
527
|
+
>>> thread = api.get_attribute_keys_using_get(entity_type, entity_id, async_req=True)
|
|
528
|
+
>>> result = thread.get()
|
|
529
|
+
|
|
530
|
+
:param async_req bool
|
|
531
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
532
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
533
|
+
:return: DeferredResultResponseEntity
|
|
534
|
+
If the method is called asynchronously,
|
|
535
|
+
returns the request thread.
|
|
536
|
+
"""
|
|
537
|
+
kwargs['_return_http_data_only'] = True
|
|
538
|
+
if kwargs.get('async_req'):
|
|
539
|
+
return self.get_attribute_keys_using_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
|
|
540
|
+
else:
|
|
541
|
+
(data) = self.get_attribute_keys_using_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
|
|
542
|
+
return data
|
|
543
|
+
|
|
544
|
+
def get_attribute_keys_using_get_with_http_info(self, entity_type, entity_id, **kwargs): # noqa: E501
|
|
545
|
+
"""Get all attribute keys (getAttributeKeys) # noqa: E501
|
|
546
|
+
|
|
547
|
+
Returns a set of unique attribute key names for the selected entity. The response will include merged key names set for all attribute scopes: * SERVER_SCOPE - supported for all entity types; * CLIENT_SCOPE - supported for devices; * SHARED_SCOPE - supported for devices. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
548
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
549
|
+
asynchronous HTTP request, please pass async_req=True
|
|
550
|
+
>>> thread = api.get_attribute_keys_using_get_with_http_info(entity_type, entity_id, async_req=True)
|
|
551
|
+
>>> result = thread.get()
|
|
552
|
+
|
|
553
|
+
:param async_req bool
|
|
554
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
555
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
556
|
+
:return: DeferredResultResponseEntity
|
|
557
|
+
If the method is called asynchronously,
|
|
558
|
+
returns the request thread.
|
|
559
|
+
"""
|
|
560
|
+
|
|
561
|
+
all_params = ['entity_type', 'entity_id'] # noqa: E501
|
|
562
|
+
all_params.append('async_req')
|
|
563
|
+
all_params.append('_return_http_data_only')
|
|
564
|
+
all_params.append('_preload_content')
|
|
565
|
+
all_params.append('_request_timeout')
|
|
566
|
+
|
|
567
|
+
params = locals()
|
|
568
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
569
|
+
if key not in all_params:
|
|
570
|
+
raise TypeError(
|
|
571
|
+
"Got an unexpected keyword argument '%s'"
|
|
572
|
+
" to method get_attribute_keys_using_get" % key
|
|
573
|
+
)
|
|
574
|
+
params[key] = val
|
|
575
|
+
del params['kwargs']
|
|
576
|
+
# verify the required parameter 'entity_type' is set
|
|
577
|
+
if ('entity_type' not in params or
|
|
578
|
+
params['entity_type'] is None):
|
|
579
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `get_attribute_keys_using_get`") # noqa: E501
|
|
580
|
+
# verify the required parameter 'entity_id' is set
|
|
581
|
+
if ('entity_id' not in params or
|
|
582
|
+
params['entity_id'] is None):
|
|
583
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `get_attribute_keys_using_get`") # noqa: E501
|
|
584
|
+
|
|
585
|
+
collection_formats = {}
|
|
586
|
+
|
|
587
|
+
path_params = {}
|
|
588
|
+
if 'entity_type' in params:
|
|
589
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
590
|
+
if 'entity_id' in params:
|
|
591
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
592
|
+
|
|
593
|
+
query_params = []
|
|
594
|
+
|
|
595
|
+
header_params = {}
|
|
596
|
+
|
|
597
|
+
form_params = []
|
|
598
|
+
local_var_files = {}
|
|
599
|
+
|
|
600
|
+
body_params = None
|
|
601
|
+
# HTTP header `Accept`
|
|
602
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
603
|
+
['application/json']) # noqa: E501
|
|
604
|
+
|
|
605
|
+
# Authentication setting
|
|
606
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
607
|
+
|
|
608
|
+
return self.api_client.call_api(
|
|
609
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/keys/attributes', 'GET',
|
|
610
|
+
path_params,
|
|
611
|
+
query_params,
|
|
612
|
+
header_params,
|
|
613
|
+
body=body_params,
|
|
614
|
+
post_params=form_params,
|
|
615
|
+
files=local_var_files,
|
|
616
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
617
|
+
auth_settings=auth_settings,
|
|
618
|
+
async_req=params.get('async_req'),
|
|
619
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
620
|
+
_preload_content=params.get('_preload_content', True),
|
|
621
|
+
_request_timeout=params.get('_request_timeout'),
|
|
622
|
+
collection_formats=collection_formats)
|
|
623
|
+
|
|
624
|
+
def get_attributes_by_scope_using_get(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
625
|
+
"""Get attributes by scope (getAttributesByScope) # noqa: E501
|
|
626
|
+
|
|
627
|
+
Returns all attributes of a specified scope that belong to specified entity. List of possible attribute scopes depends on the entity type: * SERVER_SCOPE - supported for all entity types; * SHARED_SCOPE - supported for devices; * CLIENT_SCOPE - supported for devices. Use optional 'keys' parameter to return specific attributes. Example of the result: ```json [ {\"key\": \"stringAttributeKey\", \"value\": \"value\", \"lastUpdateTs\": 1609459200000}, {\"key\": \"booleanAttributeKey\", \"value\": false, \"lastUpdateTs\": 1609459200001}, {\"key\": \"doubleAttributeKey\", \"value\": 42.2, \"lastUpdateTs\": 1609459200002}, {\"key\": \"longKeyExample\", \"value\": 73, \"lastUpdateTs\": 1609459200003}, {\"key\": \"jsonKeyExample\", \"value\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} }, \"lastUpdateTs\": 1609459200004 } ] ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
628
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
629
|
+
asynchronous HTTP request, please pass async_req=True
|
|
630
|
+
>>> thread = api.get_attributes_by_scope_using_get(entity_type, entity_id, scope, async_req=True)
|
|
631
|
+
>>> result = thread.get()
|
|
632
|
+
|
|
633
|
+
:param async_req bool
|
|
634
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
635
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
636
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
637
|
+
:param str keys: A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'.
|
|
638
|
+
:return: DeferredResultResponseEntity
|
|
639
|
+
If the method is called asynchronously,
|
|
640
|
+
returns the request thread.
|
|
641
|
+
"""
|
|
642
|
+
kwargs['_return_http_data_only'] = True
|
|
643
|
+
if kwargs.get('async_req'):
|
|
644
|
+
return self.get_attributes_by_scope_using_get_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
645
|
+
else:
|
|
646
|
+
(data) = self.get_attributes_by_scope_using_get_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
647
|
+
return data
|
|
648
|
+
|
|
649
|
+
def get_attributes_by_scope_using_get_with_http_info(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
650
|
+
"""Get attributes by scope (getAttributesByScope) # noqa: E501
|
|
651
|
+
|
|
652
|
+
Returns all attributes of a specified scope that belong to specified entity. List of possible attribute scopes depends on the entity type: * SERVER_SCOPE - supported for all entity types; * SHARED_SCOPE - supported for devices; * CLIENT_SCOPE - supported for devices. Use optional 'keys' parameter to return specific attributes. Example of the result: ```json [ {\"key\": \"stringAttributeKey\", \"value\": \"value\", \"lastUpdateTs\": 1609459200000}, {\"key\": \"booleanAttributeKey\", \"value\": false, \"lastUpdateTs\": 1609459200001}, {\"key\": \"doubleAttributeKey\", \"value\": 42.2, \"lastUpdateTs\": 1609459200002}, {\"key\": \"longKeyExample\", \"value\": 73, \"lastUpdateTs\": 1609459200003}, {\"key\": \"jsonKeyExample\", \"value\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} }, \"lastUpdateTs\": 1609459200004 } ] ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
653
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
654
|
+
asynchronous HTTP request, please pass async_req=True
|
|
655
|
+
>>> thread = api.get_attributes_by_scope_using_get_with_http_info(entity_type, entity_id, scope, async_req=True)
|
|
656
|
+
>>> result = thread.get()
|
|
657
|
+
|
|
658
|
+
:param async_req bool
|
|
659
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
660
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
661
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
662
|
+
:param str keys: A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'.
|
|
663
|
+
:return: DeferredResultResponseEntity
|
|
664
|
+
If the method is called asynchronously,
|
|
665
|
+
returns the request thread.
|
|
666
|
+
"""
|
|
667
|
+
|
|
668
|
+
all_params = ['entity_type', 'entity_id', 'scope', 'keys'] # noqa: E501
|
|
669
|
+
all_params.append('async_req')
|
|
670
|
+
all_params.append('_return_http_data_only')
|
|
671
|
+
all_params.append('_preload_content')
|
|
672
|
+
all_params.append('_request_timeout')
|
|
673
|
+
|
|
674
|
+
params = locals()
|
|
675
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
676
|
+
if key not in all_params:
|
|
677
|
+
raise TypeError(
|
|
678
|
+
"Got an unexpected keyword argument '%s'"
|
|
679
|
+
" to method get_attributes_by_scope_using_get" % key
|
|
680
|
+
)
|
|
681
|
+
params[key] = val
|
|
682
|
+
del params['kwargs']
|
|
683
|
+
# verify the required parameter 'entity_type' is set
|
|
684
|
+
if ('entity_type' not in params or
|
|
685
|
+
params['entity_type'] is None):
|
|
686
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `get_attributes_by_scope_using_get`") # noqa: E501
|
|
687
|
+
# verify the required parameter 'entity_id' is set
|
|
688
|
+
if ('entity_id' not in params or
|
|
689
|
+
params['entity_id'] is None):
|
|
690
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `get_attributes_by_scope_using_get`") # noqa: E501
|
|
691
|
+
# verify the required parameter 'scope' is set
|
|
692
|
+
if ('scope' not in params or
|
|
693
|
+
params['scope'] is None):
|
|
694
|
+
raise ValueError("Missing the required parameter `scope` when calling `get_attributes_by_scope_using_get`") # noqa: E501
|
|
695
|
+
|
|
696
|
+
collection_formats = {}
|
|
697
|
+
|
|
698
|
+
path_params = {}
|
|
699
|
+
if 'entity_type' in params:
|
|
700
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
701
|
+
if 'entity_id' in params:
|
|
702
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
703
|
+
if 'scope' in params:
|
|
704
|
+
path_params['scope'] = params['scope'] # noqa: E501
|
|
705
|
+
|
|
706
|
+
query_params = []
|
|
707
|
+
if 'keys' in params:
|
|
708
|
+
query_params.append(('keys', params['keys'])) # noqa: E501
|
|
709
|
+
|
|
710
|
+
header_params = {}
|
|
711
|
+
|
|
712
|
+
form_params = []
|
|
713
|
+
local_var_files = {}
|
|
714
|
+
|
|
715
|
+
body_params = None
|
|
716
|
+
# HTTP header `Accept`
|
|
717
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
718
|
+
['application/json']) # noqa: E501
|
|
719
|
+
|
|
720
|
+
# Authentication setting
|
|
721
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
722
|
+
|
|
723
|
+
return self.api_client.call_api(
|
|
724
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/values/attributes/{scope}{?keys}', 'GET',
|
|
725
|
+
path_params,
|
|
726
|
+
query_params,
|
|
727
|
+
header_params,
|
|
728
|
+
body=body_params,
|
|
729
|
+
post_params=form_params,
|
|
730
|
+
files=local_var_files,
|
|
731
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
732
|
+
auth_settings=auth_settings,
|
|
733
|
+
async_req=params.get('async_req'),
|
|
734
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
735
|
+
_preload_content=params.get('_preload_content', True),
|
|
736
|
+
_request_timeout=params.get('_request_timeout'),
|
|
737
|
+
collection_formats=collection_formats)
|
|
738
|
+
|
|
739
|
+
def get_attributes_using_get(self, entity_type, entity_id, **kwargs): # noqa: E501
|
|
740
|
+
"""Get attributes (getAttributes) # noqa: E501
|
|
741
|
+
|
|
742
|
+
Returns all attributes that belong to specified entity. Use optional 'keys' parameter to return specific attributes. Example of the result: ```json [ {\"key\": \"stringAttributeKey\", \"value\": \"value\", \"lastUpdateTs\": 1609459200000}, {\"key\": \"booleanAttributeKey\", \"value\": false, \"lastUpdateTs\": 1609459200001}, {\"key\": \"doubleAttributeKey\", \"value\": 42.2, \"lastUpdateTs\": 1609459200002}, {\"key\": \"longKeyExample\", \"value\": 73, \"lastUpdateTs\": 1609459200003}, {\"key\": \"jsonKeyExample\", \"value\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} }, \"lastUpdateTs\": 1609459200004 } ] ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
743
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
744
|
+
asynchronous HTTP request, please pass async_req=True
|
|
745
|
+
>>> thread = api.get_attributes_using_get(entity_type, entity_id, async_req=True)
|
|
746
|
+
>>> result = thread.get()
|
|
747
|
+
|
|
748
|
+
:param async_req bool
|
|
749
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
750
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
751
|
+
:param str keys: A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'.
|
|
752
|
+
:return: DeferredResultResponseEntity
|
|
753
|
+
If the method is called asynchronously,
|
|
754
|
+
returns the request thread.
|
|
755
|
+
"""
|
|
756
|
+
kwargs['_return_http_data_only'] = True
|
|
757
|
+
if kwargs.get('async_req'):
|
|
758
|
+
return self.get_attributes_using_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
|
|
759
|
+
else:
|
|
760
|
+
(data) = self.get_attributes_using_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
|
|
761
|
+
return data
|
|
762
|
+
|
|
763
|
+
def get_attributes_using_get_with_http_info(self, entity_type, entity_id, **kwargs): # noqa: E501
|
|
764
|
+
"""Get attributes (getAttributes) # noqa: E501
|
|
765
|
+
|
|
766
|
+
Returns all attributes that belong to specified entity. Use optional 'keys' parameter to return specific attributes. Example of the result: ```json [ {\"key\": \"stringAttributeKey\", \"value\": \"value\", \"lastUpdateTs\": 1609459200000}, {\"key\": \"booleanAttributeKey\", \"value\": false, \"lastUpdateTs\": 1609459200001}, {\"key\": \"doubleAttributeKey\", \"value\": 42.2, \"lastUpdateTs\": 1609459200002}, {\"key\": \"longKeyExample\", \"value\": 73, \"lastUpdateTs\": 1609459200003}, {\"key\": \"jsonKeyExample\", \"value\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} }, \"lastUpdateTs\": 1609459200004 } ] ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
767
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
768
|
+
asynchronous HTTP request, please pass async_req=True
|
|
769
|
+
>>> thread = api.get_attributes_using_get_with_http_info(entity_type, entity_id, async_req=True)
|
|
770
|
+
>>> result = thread.get()
|
|
771
|
+
|
|
772
|
+
:param async_req bool
|
|
773
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
774
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
775
|
+
:param str keys: A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'.
|
|
776
|
+
:return: DeferredResultResponseEntity
|
|
777
|
+
If the method is called asynchronously,
|
|
778
|
+
returns the request thread.
|
|
779
|
+
"""
|
|
780
|
+
|
|
781
|
+
all_params = ['entity_type', 'entity_id', 'keys'] # noqa: E501
|
|
782
|
+
all_params.append('async_req')
|
|
783
|
+
all_params.append('_return_http_data_only')
|
|
784
|
+
all_params.append('_preload_content')
|
|
785
|
+
all_params.append('_request_timeout')
|
|
786
|
+
|
|
787
|
+
params = locals()
|
|
788
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
789
|
+
if key not in all_params:
|
|
790
|
+
raise TypeError(
|
|
791
|
+
"Got an unexpected keyword argument '%s'"
|
|
792
|
+
" to method get_attributes_using_get" % key
|
|
793
|
+
)
|
|
794
|
+
params[key] = val
|
|
795
|
+
del params['kwargs']
|
|
796
|
+
# verify the required parameter 'entity_type' is set
|
|
797
|
+
if ('entity_type' not in params or
|
|
798
|
+
params['entity_type'] is None):
|
|
799
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `get_attributes_using_get`") # noqa: E501
|
|
800
|
+
# verify the required parameter 'entity_id' is set
|
|
801
|
+
if ('entity_id' not in params or
|
|
802
|
+
params['entity_id'] is None):
|
|
803
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `get_attributes_using_get`") # noqa: E501
|
|
804
|
+
|
|
805
|
+
collection_formats = {}
|
|
806
|
+
|
|
807
|
+
path_params = {}
|
|
808
|
+
if 'entity_type' in params:
|
|
809
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
810
|
+
if 'entity_id' in params:
|
|
811
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
812
|
+
|
|
813
|
+
query_params = []
|
|
814
|
+
if 'keys' in params:
|
|
815
|
+
query_params.append(('keys', params['keys'])) # noqa: E501
|
|
816
|
+
|
|
817
|
+
header_params = {}
|
|
818
|
+
|
|
819
|
+
form_params = []
|
|
820
|
+
local_var_files = {}
|
|
821
|
+
|
|
822
|
+
body_params = None
|
|
823
|
+
# HTTP header `Accept`
|
|
824
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
825
|
+
['application/json']) # noqa: E501
|
|
826
|
+
|
|
827
|
+
# Authentication setting
|
|
828
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
829
|
+
|
|
830
|
+
return self.api_client.call_api(
|
|
831
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/values/attributes{?keys}', 'GET',
|
|
832
|
+
path_params,
|
|
833
|
+
query_params,
|
|
834
|
+
header_params,
|
|
835
|
+
body=body_params,
|
|
836
|
+
post_params=form_params,
|
|
837
|
+
files=local_var_files,
|
|
838
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
839
|
+
auth_settings=auth_settings,
|
|
840
|
+
async_req=params.get('async_req'),
|
|
841
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
842
|
+
_preload_content=params.get('_preload_content', True),
|
|
843
|
+
_request_timeout=params.get('_request_timeout'),
|
|
844
|
+
collection_formats=collection_formats)
|
|
845
|
+
|
|
846
|
+
def get_latest_timeseries_using_get(self, entity_type, entity_id, **kwargs): # noqa: E501
|
|
847
|
+
"""Get latest time-series value (getLatestTimeseries) # noqa: E501
|
|
848
|
+
|
|
849
|
+
Returns all time-series that belong to specified entity. Use optional 'keys' parameter to return specific time-series. The result is a JSON object. The format of the values depends on the 'useStrictDataTypes' parameter. By default, all time-series values are converted to strings: ```json { \"stringTsKey\": [{ \"value\": \"value\", \"ts\": 1609459200000}], \"booleanTsKey\": [{ \"value\": \"false\", \"ts\": 1609459200000}], \"doubleTsKey\": [{ \"value\": \"42.2\", \"ts\": 1609459200000}], \"longTsKey\": [{ \"value\": \"73\", \"ts\": 1609459200000}], \"jsonTsKey\": [{ \"value\": \"{\\\"someNumber\\\": 42,\\\"someArray\\\": [1,2,3],\\\"someNestedObject\\\": {\\\"key\\\": \\\"value\\\"}}\", \"ts\": 1609459200000}] } ``` However, it is possible to request the values without conversion ('useStrictDataTypes'=true): ```json { \"stringTsKey\": [{ \"value\": \"value\", \"ts\": 1609459200000}], \"booleanTsKey\": [{ \"value\": false, \"ts\": 1609459200000}], \"doubleTsKey\": [{ \"value\": 42.2, \"ts\": 1609459200000}], \"longTsKey\": [{ \"value\": 73, \"ts\": 1609459200000}], \"jsonTsKey\": [{ \"value\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} }, \"ts\": 1609459200000}] } ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
850
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
851
|
+
asynchronous HTTP request, please pass async_req=True
|
|
852
|
+
>>> thread = api.get_latest_timeseries_using_get(entity_type, entity_id, async_req=True)
|
|
853
|
+
>>> result = thread.get()
|
|
854
|
+
|
|
855
|
+
:param async_req bool
|
|
856
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
857
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
858
|
+
:param str keys: A string value representing the comma-separated list of telemetry keys. If keys are not selected, the result will return all latest timeseries. For example, 'temperature,humidity'.
|
|
859
|
+
:param bool use_strict_data_types: Enables/disables conversion of telemetry values to strings. Conversion is enabled by default. Set parameter to 'true' in order to disable the conversion.
|
|
860
|
+
:return: DeferredResultResponseEntity
|
|
861
|
+
If the method is called asynchronously,
|
|
862
|
+
returns the request thread.
|
|
863
|
+
"""
|
|
864
|
+
kwargs['_return_http_data_only'] = True
|
|
865
|
+
if kwargs.get('async_req'):
|
|
866
|
+
return self.get_latest_timeseries_using_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
|
|
867
|
+
else:
|
|
868
|
+
(data) = self.get_latest_timeseries_using_get_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
|
|
869
|
+
return data
|
|
870
|
+
|
|
871
|
+
def get_latest_timeseries_using_get_with_http_info(self, entity_type, entity_id, **kwargs): # noqa: E501
|
|
872
|
+
"""Get latest time-series value (getLatestTimeseries) # noqa: E501
|
|
873
|
+
|
|
874
|
+
Returns all time-series that belong to specified entity. Use optional 'keys' parameter to return specific time-series. The result is a JSON object. The format of the values depends on the 'useStrictDataTypes' parameter. By default, all time-series values are converted to strings: ```json { \"stringTsKey\": [{ \"value\": \"value\", \"ts\": 1609459200000}], \"booleanTsKey\": [{ \"value\": \"false\", \"ts\": 1609459200000}], \"doubleTsKey\": [{ \"value\": \"42.2\", \"ts\": 1609459200000}], \"longTsKey\": [{ \"value\": \"73\", \"ts\": 1609459200000}], \"jsonTsKey\": [{ \"value\": \"{\\\"someNumber\\\": 42,\\\"someArray\\\": [1,2,3],\\\"someNestedObject\\\": {\\\"key\\\": \\\"value\\\"}}\", \"ts\": 1609459200000}] } ``` However, it is possible to request the values without conversion ('useStrictDataTypes'=true): ```json { \"stringTsKey\": [{ \"value\": \"value\", \"ts\": 1609459200000}], \"booleanTsKey\": [{ \"value\": false, \"ts\": 1609459200000}], \"doubleTsKey\": [{ \"value\": 42.2, \"ts\": 1609459200000}], \"longTsKey\": [{ \"value\": 73, \"ts\": 1609459200000}], \"jsonTsKey\": [{ \"value\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} }, \"ts\": 1609459200000}] } ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
875
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
876
|
+
asynchronous HTTP request, please pass async_req=True
|
|
877
|
+
>>> thread = api.get_latest_timeseries_using_get_with_http_info(entity_type, entity_id, async_req=True)
|
|
878
|
+
>>> result = thread.get()
|
|
879
|
+
|
|
880
|
+
:param async_req bool
|
|
881
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
882
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
883
|
+
:param str keys: A string value representing the comma-separated list of telemetry keys. If keys are not selected, the result will return all latest timeseries. For example, 'temperature,humidity'.
|
|
884
|
+
:param bool use_strict_data_types: Enables/disables conversion of telemetry values to strings. Conversion is enabled by default. Set parameter to 'true' in order to disable the conversion.
|
|
885
|
+
:return: DeferredResultResponseEntity
|
|
886
|
+
If the method is called asynchronously,
|
|
887
|
+
returns the request thread.
|
|
888
|
+
"""
|
|
889
|
+
|
|
890
|
+
all_params = ['entity_type', 'entity_id', 'keys', 'use_strict_data_types'] # noqa: E501
|
|
891
|
+
all_params.append('async_req')
|
|
892
|
+
all_params.append('_return_http_data_only')
|
|
893
|
+
all_params.append('_preload_content')
|
|
894
|
+
all_params.append('_request_timeout')
|
|
895
|
+
|
|
896
|
+
params = locals()
|
|
897
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
898
|
+
if key not in all_params:
|
|
899
|
+
raise TypeError(
|
|
900
|
+
"Got an unexpected keyword argument '%s'"
|
|
901
|
+
" to method get_latest_timeseries_using_get" % key
|
|
902
|
+
)
|
|
903
|
+
params[key] = val
|
|
904
|
+
del params['kwargs']
|
|
905
|
+
# verify the required parameter 'entity_type' is set
|
|
906
|
+
if ('entity_type' not in params or
|
|
907
|
+
params['entity_type'] is None):
|
|
908
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `get_latest_timeseries_using_get`") # noqa: E501
|
|
909
|
+
# verify the required parameter 'entity_id' is set
|
|
910
|
+
if ('entity_id' not in params or
|
|
911
|
+
params['entity_id'] is None):
|
|
912
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `get_latest_timeseries_using_get`") # noqa: E501
|
|
913
|
+
|
|
914
|
+
collection_formats = {}
|
|
915
|
+
|
|
916
|
+
path_params = {}
|
|
917
|
+
if 'entity_type' in params:
|
|
918
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
919
|
+
if 'entity_id' in params:
|
|
920
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
921
|
+
|
|
922
|
+
query_params = []
|
|
923
|
+
if 'keys' in params:
|
|
924
|
+
query_params.append(('keys', params['keys'])) # noqa: E501
|
|
925
|
+
if 'use_strict_data_types' in params:
|
|
926
|
+
query_params.append(('useStrictDataTypes', params['use_strict_data_types'])) # noqa: E501
|
|
927
|
+
|
|
928
|
+
header_params = {}
|
|
929
|
+
|
|
930
|
+
form_params = []
|
|
931
|
+
local_var_files = {}
|
|
932
|
+
|
|
933
|
+
body_params = None
|
|
934
|
+
# HTTP header `Accept`
|
|
935
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
936
|
+
['application/json']) # noqa: E501
|
|
937
|
+
|
|
938
|
+
# Authentication setting
|
|
939
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
940
|
+
|
|
941
|
+
return self.api_client.call_api(
|
|
942
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/values/timeseries{?keys,useStrictDataTypes}', 'GET',
|
|
943
|
+
path_params,
|
|
944
|
+
query_params,
|
|
945
|
+
header_params,
|
|
946
|
+
body=body_params,
|
|
947
|
+
post_params=form_params,
|
|
948
|
+
files=local_var_files,
|
|
949
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
950
|
+
auth_settings=auth_settings,
|
|
951
|
+
async_req=params.get('async_req'),
|
|
952
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
953
|
+
_preload_content=params.get('_preload_content', True),
|
|
954
|
+
_request_timeout=params.get('_request_timeout'),
|
|
955
|
+
collection_formats=collection_formats)
|
|
956
|
+
|
|
957
|
+
def get_timeseries_keys_using_get1(self, entity_type, entity_id, **kwargs): # noqa: E501
|
|
958
|
+
"""Get time-series keys (getTimeseriesKeys) # noqa: E501
|
|
959
|
+
|
|
960
|
+
Returns a set of unique time-series key names for the selected entity. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
961
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
962
|
+
asynchronous HTTP request, please pass async_req=True
|
|
963
|
+
>>> thread = api.get_timeseries_keys_using_get1(entity_type, entity_id, async_req=True)
|
|
964
|
+
>>> result = thread.get()
|
|
965
|
+
|
|
966
|
+
:param async_req bool
|
|
967
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
968
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
969
|
+
:return: DeferredResultResponseEntity
|
|
970
|
+
If the method is called asynchronously,
|
|
971
|
+
returns the request thread.
|
|
972
|
+
"""
|
|
973
|
+
kwargs['_return_http_data_only'] = True
|
|
974
|
+
if kwargs.get('async_req'):
|
|
975
|
+
return self.get_timeseries_keys_using_get1_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
|
|
976
|
+
else:
|
|
977
|
+
(data) = self.get_timeseries_keys_using_get1_with_http_info(entity_type, entity_id, **kwargs) # noqa: E501
|
|
978
|
+
return data
|
|
979
|
+
|
|
980
|
+
def get_timeseries_keys_using_get1_with_http_info(self, entity_type, entity_id, **kwargs): # noqa: E501
|
|
981
|
+
"""Get time-series keys (getTimeseriesKeys) # noqa: E501
|
|
982
|
+
|
|
983
|
+
Returns a set of unique time-series key names for the selected entity. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
984
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
985
|
+
asynchronous HTTP request, please pass async_req=True
|
|
986
|
+
>>> thread = api.get_timeseries_keys_using_get1_with_http_info(entity_type, entity_id, async_req=True)
|
|
987
|
+
>>> result = thread.get()
|
|
988
|
+
|
|
989
|
+
:param async_req bool
|
|
990
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
991
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
992
|
+
:return: DeferredResultResponseEntity
|
|
993
|
+
If the method is called asynchronously,
|
|
994
|
+
returns the request thread.
|
|
995
|
+
"""
|
|
996
|
+
|
|
997
|
+
all_params = ['entity_type', 'entity_id'] # noqa: E501
|
|
998
|
+
all_params.append('async_req')
|
|
999
|
+
all_params.append('_return_http_data_only')
|
|
1000
|
+
all_params.append('_preload_content')
|
|
1001
|
+
all_params.append('_request_timeout')
|
|
1002
|
+
|
|
1003
|
+
params = locals()
|
|
1004
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1005
|
+
if key not in all_params:
|
|
1006
|
+
raise TypeError(
|
|
1007
|
+
"Got an unexpected keyword argument '%s'"
|
|
1008
|
+
" to method get_timeseries_keys_using_get1" % key
|
|
1009
|
+
)
|
|
1010
|
+
params[key] = val
|
|
1011
|
+
del params['kwargs']
|
|
1012
|
+
# verify the required parameter 'entity_type' is set
|
|
1013
|
+
if ('entity_type' not in params or
|
|
1014
|
+
params['entity_type'] is None):
|
|
1015
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `get_timeseries_keys_using_get1`") # noqa: E501
|
|
1016
|
+
# verify the required parameter 'entity_id' is set
|
|
1017
|
+
if ('entity_id' not in params or
|
|
1018
|
+
params['entity_id'] is None):
|
|
1019
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `get_timeseries_keys_using_get1`") # noqa: E501
|
|
1020
|
+
|
|
1021
|
+
collection_formats = {}
|
|
1022
|
+
|
|
1023
|
+
path_params = {}
|
|
1024
|
+
if 'entity_type' in params:
|
|
1025
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
1026
|
+
if 'entity_id' in params:
|
|
1027
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
1028
|
+
|
|
1029
|
+
query_params = []
|
|
1030
|
+
|
|
1031
|
+
header_params = {}
|
|
1032
|
+
|
|
1033
|
+
form_params = []
|
|
1034
|
+
local_var_files = {}
|
|
1035
|
+
|
|
1036
|
+
body_params = None
|
|
1037
|
+
# HTTP header `Accept`
|
|
1038
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1039
|
+
['application/json']) # noqa: E501
|
|
1040
|
+
|
|
1041
|
+
# Authentication setting
|
|
1042
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1043
|
+
|
|
1044
|
+
return self.api_client.call_api(
|
|
1045
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/keys/timeseries', 'GET',
|
|
1046
|
+
path_params,
|
|
1047
|
+
query_params,
|
|
1048
|
+
header_params,
|
|
1049
|
+
body=body_params,
|
|
1050
|
+
post_params=form_params,
|
|
1051
|
+
files=local_var_files,
|
|
1052
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
1053
|
+
auth_settings=auth_settings,
|
|
1054
|
+
async_req=params.get('async_req'),
|
|
1055
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1056
|
+
_preload_content=params.get('_preload_content', True),
|
|
1057
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1058
|
+
collection_formats=collection_formats)
|
|
1059
|
+
|
|
1060
|
+
def get_timeseries_using_get(self, entity_type, entity_id, keys, start_ts, end_ts, **kwargs): # noqa: E501
|
|
1061
|
+
"""Get time-series data (getTimeseries) # noqa: E501
|
|
1062
|
+
|
|
1063
|
+
Returns a range of time-series values for specified entity. Returns not aggregated data by default. Use aggregation function ('agg') and aggregation interval ('interval') to enable aggregation of the results on the database / server side. The aggregation is generally more efficient then fetching all records. ```json { \"temperature\": [ { \"value\": 36.7, \"ts\": 1609459200000 }, { \"value\": 36.6, \"ts\": 1609459201000 } ] } ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1064
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1065
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1066
|
+
>>> thread = api.get_timeseries_using_get(entity_type, entity_id, keys, start_ts, end_ts, async_req=True)
|
|
1067
|
+
>>> result = thread.get()
|
|
1068
|
+
|
|
1069
|
+
:param async_req bool
|
|
1070
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1071
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1072
|
+
:param str keys: A string value representing the comma-separated list of telemetry keys. (required)
|
|
1073
|
+
:param int start_ts: A long value representing the start timestamp of the time range in milliseconds, UTC. (required)
|
|
1074
|
+
:param int end_ts: A long value representing the end timestamp of the time range in milliseconds, UTC. (required)
|
|
1075
|
+
:param str interval_type: A string value representing the type fo the interval.
|
|
1076
|
+
:param int interval: A long value representing the aggregation interval range in milliseconds.
|
|
1077
|
+
:param str time_zone: A string value representing the timezone that will be used to calculate exact timestamps for 'WEEK', 'WEEK_ISO', 'MONTH' and 'QUARTER' interval types.
|
|
1078
|
+
:param int limit: An integer value that represents a max number of timeseries data points to fetch. This parameter is used only in the case if 'agg' parameter is set to 'NONE'.
|
|
1079
|
+
:param str agg: A string value representing the aggregation function. If the interval is not specified, 'agg' parameter will use 'NONE' value.
|
|
1080
|
+
:param str order_by: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
|
|
1081
|
+
:param bool use_strict_data_types: Enables/disables conversion of telemetry values to strings. Conversion is enabled by default. Set parameter to 'true' in order to disable the conversion.
|
|
1082
|
+
:return: DeferredResultResponseEntity
|
|
1083
|
+
If the method is called asynchronously,
|
|
1084
|
+
returns the request thread.
|
|
1085
|
+
"""
|
|
1086
|
+
kwargs['_return_http_data_only'] = True
|
|
1087
|
+
if kwargs.get('async_req'):
|
|
1088
|
+
return self.get_timeseries_using_get_with_http_info(entity_type, entity_id, keys, start_ts, end_ts, **kwargs) # noqa: E501
|
|
1089
|
+
else:
|
|
1090
|
+
(data) = self.get_timeseries_using_get_with_http_info(entity_type, entity_id, keys, start_ts, end_ts, **kwargs) # noqa: E501
|
|
1091
|
+
return data
|
|
1092
|
+
|
|
1093
|
+
def get_timeseries_using_get_with_http_info(self, entity_type, entity_id, keys, start_ts, end_ts, **kwargs): # noqa: E501
|
|
1094
|
+
"""Get time-series data (getTimeseries) # noqa: E501
|
|
1095
|
+
|
|
1096
|
+
Returns a range of time-series values for specified entity. Returns not aggregated data by default. Use aggregation function ('agg') and aggregation interval ('interval') to enable aggregation of the results on the database / server side. The aggregation is generally more efficient then fetching all records. ```json { \"temperature\": [ { \"value\": 36.7, \"ts\": 1609459200000 }, { \"value\": 36.6, \"ts\": 1609459201000 } ] } ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1097
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1098
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1099
|
+
>>> thread = api.get_timeseries_using_get_with_http_info(entity_type, entity_id, keys, start_ts, end_ts, async_req=True)
|
|
1100
|
+
>>> result = thread.get()
|
|
1101
|
+
|
|
1102
|
+
:param async_req bool
|
|
1103
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1104
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1105
|
+
:param str keys: A string value representing the comma-separated list of telemetry keys. (required)
|
|
1106
|
+
:param int start_ts: A long value representing the start timestamp of the time range in milliseconds, UTC. (required)
|
|
1107
|
+
:param int end_ts: A long value representing the end timestamp of the time range in milliseconds, UTC. (required)
|
|
1108
|
+
:param str interval_type: A string value representing the type fo the interval.
|
|
1109
|
+
:param int interval: A long value representing the aggregation interval range in milliseconds.
|
|
1110
|
+
:param str time_zone: A string value representing the timezone that will be used to calculate exact timestamps for 'WEEK', 'WEEK_ISO', 'MONTH' and 'QUARTER' interval types.
|
|
1111
|
+
:param int limit: An integer value that represents a max number of timeseries data points to fetch. This parameter is used only in the case if 'agg' parameter is set to 'NONE'.
|
|
1112
|
+
:param str agg: A string value representing the aggregation function. If the interval is not specified, 'agg' parameter will use 'NONE' value.
|
|
1113
|
+
:param str order_by: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
|
|
1114
|
+
:param bool use_strict_data_types: Enables/disables conversion of telemetry values to strings. Conversion is enabled by default. Set parameter to 'true' in order to disable the conversion.
|
|
1115
|
+
:return: DeferredResultResponseEntity
|
|
1116
|
+
If the method is called asynchronously,
|
|
1117
|
+
returns the request thread.
|
|
1118
|
+
"""
|
|
1119
|
+
|
|
1120
|
+
all_params = ['entity_type', 'entity_id', 'keys', 'start_ts', 'end_ts', 'interval_type', 'interval', 'time_zone', 'limit', 'agg', 'order_by', 'use_strict_data_types'] # noqa: E501
|
|
1121
|
+
all_params.append('async_req')
|
|
1122
|
+
all_params.append('_return_http_data_only')
|
|
1123
|
+
all_params.append('_preload_content')
|
|
1124
|
+
all_params.append('_request_timeout')
|
|
1125
|
+
|
|
1126
|
+
params = locals()
|
|
1127
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1128
|
+
if key not in all_params:
|
|
1129
|
+
raise TypeError(
|
|
1130
|
+
"Got an unexpected keyword argument '%s'"
|
|
1131
|
+
" to method get_timeseries_using_get" % key
|
|
1132
|
+
)
|
|
1133
|
+
params[key] = val
|
|
1134
|
+
del params['kwargs']
|
|
1135
|
+
# verify the required parameter 'entity_type' is set
|
|
1136
|
+
if ('entity_type' not in params or
|
|
1137
|
+
params['entity_type'] is None):
|
|
1138
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `get_timeseries_using_get`") # noqa: E501
|
|
1139
|
+
# verify the required parameter 'entity_id' is set
|
|
1140
|
+
if ('entity_id' not in params or
|
|
1141
|
+
params['entity_id'] is None):
|
|
1142
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `get_timeseries_using_get`") # noqa: E501
|
|
1143
|
+
# verify the required parameter 'keys' is set
|
|
1144
|
+
if ('keys' not in params or
|
|
1145
|
+
params['keys'] is None):
|
|
1146
|
+
raise ValueError("Missing the required parameter `keys` when calling `get_timeseries_using_get`") # noqa: E501
|
|
1147
|
+
# verify the required parameter 'start_ts' is set
|
|
1148
|
+
if ('start_ts' not in params or
|
|
1149
|
+
params['start_ts'] is None):
|
|
1150
|
+
raise ValueError("Missing the required parameter `start_ts` when calling `get_timeseries_using_get`") # noqa: E501
|
|
1151
|
+
# verify the required parameter 'end_ts' is set
|
|
1152
|
+
if ('end_ts' not in params or
|
|
1153
|
+
params['end_ts'] is None):
|
|
1154
|
+
raise ValueError("Missing the required parameter `end_ts` when calling `get_timeseries_using_get`") # noqa: E501
|
|
1155
|
+
|
|
1156
|
+
collection_formats = {}
|
|
1157
|
+
|
|
1158
|
+
path_params = {}
|
|
1159
|
+
if 'entity_type' in params:
|
|
1160
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
1161
|
+
if 'entity_id' in params:
|
|
1162
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
1163
|
+
|
|
1164
|
+
query_params = []
|
|
1165
|
+
if 'keys' in params:
|
|
1166
|
+
query_params.append(('keys', params['keys'])) # noqa: E501
|
|
1167
|
+
if 'start_ts' in params:
|
|
1168
|
+
query_params.append(('startTs', params['start_ts'])) # noqa: E501
|
|
1169
|
+
if 'end_ts' in params:
|
|
1170
|
+
query_params.append(('endTs', params['end_ts'])) # noqa: E501
|
|
1171
|
+
if 'interval_type' in params:
|
|
1172
|
+
query_params.append(('intervalType', params['interval_type'])) # noqa: E501
|
|
1173
|
+
if 'interval' in params:
|
|
1174
|
+
query_params.append(('interval', params['interval'])) # noqa: E501
|
|
1175
|
+
if 'time_zone' in params:
|
|
1176
|
+
query_params.append(('timeZone', params['time_zone'])) # noqa: E501
|
|
1177
|
+
if 'limit' in params:
|
|
1178
|
+
query_params.append(('limit', params['limit'])) # noqa: E501
|
|
1179
|
+
if 'agg' in params:
|
|
1180
|
+
query_params.append(('agg', params['agg'])) # noqa: E501
|
|
1181
|
+
if 'order_by' in params:
|
|
1182
|
+
query_params.append(('orderBy', params['order_by'])) # noqa: E501
|
|
1183
|
+
if 'use_strict_data_types' in params:
|
|
1184
|
+
query_params.append(('useStrictDataTypes', params['use_strict_data_types'])) # noqa: E501
|
|
1185
|
+
|
|
1186
|
+
header_params = {}
|
|
1187
|
+
|
|
1188
|
+
form_params = []
|
|
1189
|
+
local_var_files = {}
|
|
1190
|
+
|
|
1191
|
+
body_params = None
|
|
1192
|
+
# HTTP header `Accept`
|
|
1193
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1194
|
+
['application/json']) # noqa: E501
|
|
1195
|
+
|
|
1196
|
+
# Authentication setting
|
|
1197
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1198
|
+
|
|
1199
|
+
return self.api_client.call_api(
|
|
1200
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/values/timeseries{?agg,endTs,interval,intervalType,keys,limit,orderBy,startTs,timeZone,useStrictDataTypes}', 'GET',
|
|
1201
|
+
path_params,
|
|
1202
|
+
query_params,
|
|
1203
|
+
header_params,
|
|
1204
|
+
body=body_params,
|
|
1205
|
+
post_params=form_params,
|
|
1206
|
+
files=local_var_files,
|
|
1207
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
1208
|
+
auth_settings=auth_settings,
|
|
1209
|
+
async_req=params.get('async_req'),
|
|
1210
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1211
|
+
_preload_content=params.get('_preload_content', True),
|
|
1212
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1213
|
+
collection_formats=collection_formats)
|
|
1214
|
+
|
|
1215
|
+
def save_device_attributes_using_post(self, device_id, scope, **kwargs): # noqa: E501
|
|
1216
|
+
"""Save device attributes (saveDeviceAttributes) # noqa: E501
|
|
1217
|
+
|
|
1218
|
+
Creates or updates the device attributes based on device id and specified attribute scope. The request payload is a JSON object with key-value format of attributes to create or update. For example: ```json { \"stringKey\":\"value1\", \"booleanKey\":true, \"doubleKey\":42.0, \"longKey\":73, \"jsonKey\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} } } ``` Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1219
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1220
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1221
|
+
>>> thread = api.save_device_attributes_using_post(device_id, scope, async_req=True)
|
|
1222
|
+
>>> result = thread.get()
|
|
1223
|
+
|
|
1224
|
+
:param async_req bool
|
|
1225
|
+
:param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1226
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
1227
|
+
:param JsonNode body:
|
|
1228
|
+
:return: DeferredResultResponseEntity
|
|
1229
|
+
If the method is called asynchronously,
|
|
1230
|
+
returns the request thread.
|
|
1231
|
+
"""
|
|
1232
|
+
kwargs['_return_http_data_only'] = True
|
|
1233
|
+
if kwargs.get('async_req'):
|
|
1234
|
+
return self.save_device_attributes_using_post_with_http_info(device_id, scope, **kwargs) # noqa: E501
|
|
1235
|
+
else:
|
|
1236
|
+
(data) = self.save_device_attributes_using_post_with_http_info(device_id, scope, **kwargs) # noqa: E501
|
|
1237
|
+
return data
|
|
1238
|
+
|
|
1239
|
+
def save_device_attributes_using_post_with_http_info(self, device_id, scope, **kwargs): # noqa: E501
|
|
1240
|
+
"""Save device attributes (saveDeviceAttributes) # noqa: E501
|
|
1241
|
+
|
|
1242
|
+
Creates or updates the device attributes based on device id and specified attribute scope. The request payload is a JSON object with key-value format of attributes to create or update. For example: ```json { \"stringKey\":\"value1\", \"booleanKey\":true, \"doubleKey\":42.0, \"longKey\":73, \"jsonKey\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} } } ``` Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1243
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1244
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1245
|
+
>>> thread = api.save_device_attributes_using_post_with_http_info(device_id, scope, async_req=True)
|
|
1246
|
+
>>> result = thread.get()
|
|
1247
|
+
|
|
1248
|
+
:param async_req bool
|
|
1249
|
+
:param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1250
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
1251
|
+
:param JsonNode body:
|
|
1252
|
+
:return: DeferredResultResponseEntity
|
|
1253
|
+
If the method is called asynchronously,
|
|
1254
|
+
returns the request thread.
|
|
1255
|
+
"""
|
|
1256
|
+
|
|
1257
|
+
all_params = ['device_id', 'scope', 'body'] # noqa: E501
|
|
1258
|
+
all_params.append('async_req')
|
|
1259
|
+
all_params.append('_return_http_data_only')
|
|
1260
|
+
all_params.append('_preload_content')
|
|
1261
|
+
all_params.append('_request_timeout')
|
|
1262
|
+
|
|
1263
|
+
params = locals()
|
|
1264
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1265
|
+
if key not in all_params:
|
|
1266
|
+
raise TypeError(
|
|
1267
|
+
"Got an unexpected keyword argument '%s'"
|
|
1268
|
+
" to method save_device_attributes_using_post" % key
|
|
1269
|
+
)
|
|
1270
|
+
params[key] = val
|
|
1271
|
+
del params['kwargs']
|
|
1272
|
+
# verify the required parameter 'device_id' is set
|
|
1273
|
+
if ('device_id' not in params or
|
|
1274
|
+
params['device_id'] is None):
|
|
1275
|
+
raise ValueError("Missing the required parameter `device_id` when calling `save_device_attributes_using_post`") # noqa: E501
|
|
1276
|
+
# verify the required parameter 'scope' is set
|
|
1277
|
+
if ('scope' not in params or
|
|
1278
|
+
params['scope'] is None):
|
|
1279
|
+
raise ValueError("Missing the required parameter `scope` when calling `save_device_attributes_using_post`") # noqa: E501
|
|
1280
|
+
|
|
1281
|
+
collection_formats = {}
|
|
1282
|
+
|
|
1283
|
+
path_params = {}
|
|
1284
|
+
if 'device_id' in params:
|
|
1285
|
+
path_params['deviceId'] = params['device_id'] # noqa: E501
|
|
1286
|
+
if 'scope' in params:
|
|
1287
|
+
path_params['scope'] = params['scope'] # noqa: E501
|
|
1288
|
+
|
|
1289
|
+
query_params = []
|
|
1290
|
+
|
|
1291
|
+
header_params = {}
|
|
1292
|
+
|
|
1293
|
+
form_params = []
|
|
1294
|
+
local_var_files = {}
|
|
1295
|
+
|
|
1296
|
+
body_params = None
|
|
1297
|
+
if 'body' in params:
|
|
1298
|
+
body_params = params['body']
|
|
1299
|
+
# HTTP header `Accept`
|
|
1300
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1301
|
+
['application/json']) # noqa: E501
|
|
1302
|
+
|
|
1303
|
+
# HTTP header `Content-Type`
|
|
1304
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1305
|
+
['application/json']) # noqa: E501
|
|
1306
|
+
|
|
1307
|
+
# Authentication setting
|
|
1308
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1309
|
+
|
|
1310
|
+
return self.api_client.call_api(
|
|
1311
|
+
'/api/plugins/telemetry/{deviceId}/{scope}', 'POST',
|
|
1312
|
+
path_params,
|
|
1313
|
+
query_params,
|
|
1314
|
+
header_params,
|
|
1315
|
+
body=body_params,
|
|
1316
|
+
post_params=form_params,
|
|
1317
|
+
files=local_var_files,
|
|
1318
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
1319
|
+
auth_settings=auth_settings,
|
|
1320
|
+
async_req=params.get('async_req'),
|
|
1321
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1322
|
+
_preload_content=params.get('_preload_content', True),
|
|
1323
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1324
|
+
collection_formats=collection_formats)
|
|
1325
|
+
|
|
1326
|
+
def save_entity_attributes_v1_using_post(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
1327
|
+
"""Save entity attributes (saveEntityAttributesV1) # noqa: E501
|
|
1328
|
+
|
|
1329
|
+
Creates or updates the entity attributes based on Entity Id and the specified attribute scope. List of possible attribute scopes depends on the entity type: * SERVER_SCOPE - supported for all entity types; * SHARED_SCOPE - supported for devices. The request payload is a JSON object with key-value format of attributes to create or update. For example: ```json { \"stringKey\":\"value1\", \"booleanKey\":true, \"doubleKey\":42.0, \"longKey\":73, \"jsonKey\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} } } ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1330
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1331
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1332
|
+
>>> thread = api.save_entity_attributes_v1_using_post(entity_type, entity_id, scope, async_req=True)
|
|
1333
|
+
>>> result = thread.get()
|
|
1334
|
+
|
|
1335
|
+
:param async_req bool
|
|
1336
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1337
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1338
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
1339
|
+
:param JsonNode body:
|
|
1340
|
+
:return: DeferredResultResponseEntity
|
|
1341
|
+
If the method is called asynchronously,
|
|
1342
|
+
returns the request thread.
|
|
1343
|
+
"""
|
|
1344
|
+
kwargs['_return_http_data_only'] = True
|
|
1345
|
+
if kwargs.get('async_req'):
|
|
1346
|
+
return self.save_entity_attributes_v1_using_post_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
1347
|
+
else:
|
|
1348
|
+
(data) = self.save_entity_attributes_v1_using_post_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
1349
|
+
return data
|
|
1350
|
+
|
|
1351
|
+
def save_entity_attributes_v1_using_post_with_http_info(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
1352
|
+
"""Save entity attributes (saveEntityAttributesV1) # noqa: E501
|
|
1353
|
+
|
|
1354
|
+
Creates or updates the entity attributes based on Entity Id and the specified attribute scope. List of possible attribute scopes depends on the entity type: * SERVER_SCOPE - supported for all entity types; * SHARED_SCOPE - supported for devices. The request payload is a JSON object with key-value format of attributes to create or update. For example: ```json { \"stringKey\":\"value1\", \"booleanKey\":true, \"doubleKey\":42.0, \"longKey\":73, \"jsonKey\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} } } ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1355
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1356
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1357
|
+
>>> thread = api.save_entity_attributes_v1_using_post_with_http_info(entity_type, entity_id, scope, async_req=True)
|
|
1358
|
+
>>> result = thread.get()
|
|
1359
|
+
|
|
1360
|
+
:param async_req bool
|
|
1361
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1362
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1363
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
1364
|
+
:param JsonNode body:
|
|
1365
|
+
:return: DeferredResultResponseEntity
|
|
1366
|
+
If the method is called asynchronously,
|
|
1367
|
+
returns the request thread.
|
|
1368
|
+
"""
|
|
1369
|
+
|
|
1370
|
+
all_params = ['entity_type', 'entity_id', 'scope', 'body'] # noqa: E501
|
|
1371
|
+
all_params.append('async_req')
|
|
1372
|
+
all_params.append('_return_http_data_only')
|
|
1373
|
+
all_params.append('_preload_content')
|
|
1374
|
+
all_params.append('_request_timeout')
|
|
1375
|
+
|
|
1376
|
+
params = locals()
|
|
1377
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1378
|
+
if key not in all_params:
|
|
1379
|
+
raise TypeError(
|
|
1380
|
+
"Got an unexpected keyword argument '%s'"
|
|
1381
|
+
" to method save_entity_attributes_v1_using_post" % key
|
|
1382
|
+
)
|
|
1383
|
+
params[key] = val
|
|
1384
|
+
del params['kwargs']
|
|
1385
|
+
# verify the required parameter 'entity_type' is set
|
|
1386
|
+
if ('entity_type' not in params or
|
|
1387
|
+
params['entity_type'] is None):
|
|
1388
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `save_entity_attributes_v1_using_post`") # noqa: E501
|
|
1389
|
+
# verify the required parameter 'entity_id' is set
|
|
1390
|
+
if ('entity_id' not in params or
|
|
1391
|
+
params['entity_id'] is None):
|
|
1392
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `save_entity_attributes_v1_using_post`") # noqa: E501
|
|
1393
|
+
# verify the required parameter 'scope' is set
|
|
1394
|
+
if ('scope' not in params or
|
|
1395
|
+
params['scope'] is None):
|
|
1396
|
+
raise ValueError("Missing the required parameter `scope` when calling `save_entity_attributes_v1_using_post`") # noqa: E501
|
|
1397
|
+
|
|
1398
|
+
collection_formats = {}
|
|
1399
|
+
|
|
1400
|
+
path_params = {}
|
|
1401
|
+
if 'entity_type' in params:
|
|
1402
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
1403
|
+
if 'entity_id' in params:
|
|
1404
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
1405
|
+
if 'scope' in params:
|
|
1406
|
+
path_params['scope'] = params['scope'] # noqa: E501
|
|
1407
|
+
|
|
1408
|
+
query_params = []
|
|
1409
|
+
|
|
1410
|
+
header_params = {}
|
|
1411
|
+
|
|
1412
|
+
form_params = []
|
|
1413
|
+
local_var_files = {}
|
|
1414
|
+
|
|
1415
|
+
body_params = None
|
|
1416
|
+
if 'body' in params:
|
|
1417
|
+
body_params = params['body']
|
|
1418
|
+
# HTTP header `Accept`
|
|
1419
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1420
|
+
['application/json']) # noqa: E501
|
|
1421
|
+
|
|
1422
|
+
# HTTP header `Content-Type`
|
|
1423
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1424
|
+
['application/json']) # noqa: E501
|
|
1425
|
+
|
|
1426
|
+
# Authentication setting
|
|
1427
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1428
|
+
|
|
1429
|
+
return self.api_client.call_api(
|
|
1430
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/{scope}', 'POST',
|
|
1431
|
+
path_params,
|
|
1432
|
+
query_params,
|
|
1433
|
+
header_params,
|
|
1434
|
+
body=body_params,
|
|
1435
|
+
post_params=form_params,
|
|
1436
|
+
files=local_var_files,
|
|
1437
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
1438
|
+
auth_settings=auth_settings,
|
|
1439
|
+
async_req=params.get('async_req'),
|
|
1440
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1441
|
+
_preload_content=params.get('_preload_content', True),
|
|
1442
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1443
|
+
collection_formats=collection_formats)
|
|
1444
|
+
|
|
1445
|
+
def save_entity_attributes_v2_using_post(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
1446
|
+
"""Save entity attributes (saveEntityAttributesV2) # noqa: E501
|
|
1447
|
+
|
|
1448
|
+
Creates or updates the entity attributes based on Entity Id and the specified attribute scope. List of possible attribute scopes depends on the entity type: * SERVER_SCOPE - supported for all entity types; * SHARED_SCOPE - supported for devices. The request payload is a JSON object with key-value format of attributes to create or update. For example: ```json { \"stringKey\":\"value1\", \"booleanKey\":true, \"doubleKey\":42.0, \"longKey\":73, \"jsonKey\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} } } ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1449
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1450
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1451
|
+
>>> thread = api.save_entity_attributes_v2_using_post(entity_type, entity_id, scope, async_req=True)
|
|
1452
|
+
>>> result = thread.get()
|
|
1453
|
+
|
|
1454
|
+
:param async_req bool
|
|
1455
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1456
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1457
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
1458
|
+
:param JsonNode body:
|
|
1459
|
+
:return: DeferredResultResponseEntity
|
|
1460
|
+
If the method is called asynchronously,
|
|
1461
|
+
returns the request thread.
|
|
1462
|
+
"""
|
|
1463
|
+
kwargs['_return_http_data_only'] = True
|
|
1464
|
+
if kwargs.get('async_req'):
|
|
1465
|
+
return self.save_entity_attributes_v2_using_post_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
1466
|
+
else:
|
|
1467
|
+
(data) = self.save_entity_attributes_v2_using_post_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
1468
|
+
return data
|
|
1469
|
+
|
|
1470
|
+
def save_entity_attributes_v2_using_post_with_http_info(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
1471
|
+
"""Save entity attributes (saveEntityAttributesV2) # noqa: E501
|
|
1472
|
+
|
|
1473
|
+
Creates or updates the entity attributes based on Entity Id and the specified attribute scope. List of possible attribute scopes depends on the entity type: * SERVER_SCOPE - supported for all entity types; * SHARED_SCOPE - supported for devices. The request payload is a JSON object with key-value format of attributes to create or update. For example: ```json { \"stringKey\":\"value1\", \"booleanKey\":true, \"doubleKey\":42.0, \"longKey\":73, \"jsonKey\": { \"someNumber\": 42, \"someArray\": [1,2,3], \"someNestedObject\": {\"key\": \"value\"} } } ``` Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1474
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1475
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1476
|
+
>>> thread = api.save_entity_attributes_v2_using_post_with_http_info(entity_type, entity_id, scope, async_req=True)
|
|
1477
|
+
>>> result = thread.get()
|
|
1478
|
+
|
|
1479
|
+
:param async_req bool
|
|
1480
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1481
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1482
|
+
:param str scope: A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required)
|
|
1483
|
+
:param JsonNode body:
|
|
1484
|
+
:return: DeferredResultResponseEntity
|
|
1485
|
+
If the method is called asynchronously,
|
|
1486
|
+
returns the request thread.
|
|
1487
|
+
"""
|
|
1488
|
+
|
|
1489
|
+
all_params = ['entity_type', 'entity_id', 'scope', 'body'] # noqa: E501
|
|
1490
|
+
all_params.append('async_req')
|
|
1491
|
+
all_params.append('_return_http_data_only')
|
|
1492
|
+
all_params.append('_preload_content')
|
|
1493
|
+
all_params.append('_request_timeout')
|
|
1494
|
+
|
|
1495
|
+
params = locals()
|
|
1496
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1497
|
+
if key not in all_params:
|
|
1498
|
+
raise TypeError(
|
|
1499
|
+
"Got an unexpected keyword argument '%s'"
|
|
1500
|
+
" to method save_entity_attributes_v2_using_post" % key
|
|
1501
|
+
)
|
|
1502
|
+
params[key] = val
|
|
1503
|
+
del params['kwargs']
|
|
1504
|
+
# verify the required parameter 'entity_type' is set
|
|
1505
|
+
if ('entity_type' not in params or
|
|
1506
|
+
params['entity_type'] is None):
|
|
1507
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `save_entity_attributes_v2_using_post`") # noqa: E501
|
|
1508
|
+
# verify the required parameter 'entity_id' is set
|
|
1509
|
+
if ('entity_id' not in params or
|
|
1510
|
+
params['entity_id'] is None):
|
|
1511
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `save_entity_attributes_v2_using_post`") # noqa: E501
|
|
1512
|
+
# verify the required parameter 'scope' is set
|
|
1513
|
+
if ('scope' not in params or
|
|
1514
|
+
params['scope'] is None):
|
|
1515
|
+
raise ValueError("Missing the required parameter `scope` when calling `save_entity_attributes_v2_using_post`") # noqa: E501
|
|
1516
|
+
|
|
1517
|
+
collection_formats = {}
|
|
1518
|
+
|
|
1519
|
+
path_params = {}
|
|
1520
|
+
if 'entity_type' in params:
|
|
1521
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
1522
|
+
if 'entity_id' in params:
|
|
1523
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
1524
|
+
if 'scope' in params:
|
|
1525
|
+
path_params['scope'] = params['scope'] # noqa: E501
|
|
1526
|
+
|
|
1527
|
+
query_params = []
|
|
1528
|
+
|
|
1529
|
+
header_params = {}
|
|
1530
|
+
|
|
1531
|
+
form_params = []
|
|
1532
|
+
local_var_files = {}
|
|
1533
|
+
|
|
1534
|
+
body_params = None
|
|
1535
|
+
if 'body' in params:
|
|
1536
|
+
body_params = params['body']
|
|
1537
|
+
# HTTP header `Accept`
|
|
1538
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1539
|
+
['application/json']) # noqa: E501
|
|
1540
|
+
|
|
1541
|
+
# HTTP header `Content-Type`
|
|
1542
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1543
|
+
['application/json']) # noqa: E501
|
|
1544
|
+
|
|
1545
|
+
# Authentication setting
|
|
1546
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1547
|
+
|
|
1548
|
+
return self.api_client.call_api(
|
|
1549
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/attributes/{scope}', 'POST',
|
|
1550
|
+
path_params,
|
|
1551
|
+
query_params,
|
|
1552
|
+
header_params,
|
|
1553
|
+
body=body_params,
|
|
1554
|
+
post_params=form_params,
|
|
1555
|
+
files=local_var_files,
|
|
1556
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
1557
|
+
auth_settings=auth_settings,
|
|
1558
|
+
async_req=params.get('async_req'),
|
|
1559
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1560
|
+
_preload_content=params.get('_preload_content', True),
|
|
1561
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1562
|
+
collection_formats=collection_formats)
|
|
1563
|
+
|
|
1564
|
+
def save_entity_telemetry_using_post(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
1565
|
+
"""Save or update time-series data (saveEntityTelemetry) # noqa: E501
|
|
1566
|
+
|
|
1567
|
+
Creates or updates the entity time-series data based on the Entity Id and request payload.The request payload is a JSON document with three possible formats: Simple format without timestamp. In such a case, current server time will be used: ```json {\"temperature\": 26} ``` Single JSON object with timestamp: ```json {\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}} ``` JSON array with timestamps: ```json [{\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}}, {\"ts\":1634712588000,\"values\":{\"temperature\":25, \"humidity\":88}}] ``` The scope parameter is not used in the API call implementation but should be specified whatever value because it is used as a path variable. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1568
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1569
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1570
|
+
>>> thread = api.save_entity_telemetry_using_post(entity_type, entity_id, scope, async_req=True)
|
|
1571
|
+
>>> result = thread.get()
|
|
1572
|
+
|
|
1573
|
+
:param async_req bool
|
|
1574
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1575
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1576
|
+
:param str scope: Value is deprecated, reserved for backward compatibility and not used in the API call implementation. Specify any scope for compatibility (required)
|
|
1577
|
+
:param str body:
|
|
1578
|
+
:return: DeferredResultResponseEntity
|
|
1579
|
+
If the method is called asynchronously,
|
|
1580
|
+
returns the request thread.
|
|
1581
|
+
"""
|
|
1582
|
+
kwargs['_return_http_data_only'] = True
|
|
1583
|
+
if kwargs.get('async_req'):
|
|
1584
|
+
return self.save_entity_telemetry_using_post_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
1585
|
+
else:
|
|
1586
|
+
(data) = self.save_entity_telemetry_using_post_with_http_info(entity_type, entity_id, scope, **kwargs) # noqa: E501
|
|
1587
|
+
return data
|
|
1588
|
+
|
|
1589
|
+
def save_entity_telemetry_using_post_with_http_info(self, entity_type, entity_id, scope, **kwargs): # noqa: E501
|
|
1590
|
+
"""Save or update time-series data (saveEntityTelemetry) # noqa: E501
|
|
1591
|
+
|
|
1592
|
+
Creates or updates the entity time-series data based on the Entity Id and request payload.The request payload is a JSON document with three possible formats: Simple format without timestamp. In such a case, current server time will be used: ```json {\"temperature\": 26} ``` Single JSON object with timestamp: ```json {\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}} ``` JSON array with timestamps: ```json [{\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}}, {\"ts\":1634712588000,\"values\":{\"temperature\":25, \"humidity\":88}}] ``` The scope parameter is not used in the API call implementation but should be specified whatever value because it is used as a path variable. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1593
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1594
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1595
|
+
>>> thread = api.save_entity_telemetry_using_post_with_http_info(entity_type, entity_id, scope, async_req=True)
|
|
1596
|
+
>>> result = thread.get()
|
|
1597
|
+
|
|
1598
|
+
:param async_req bool
|
|
1599
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1600
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1601
|
+
:param str scope: Value is deprecated, reserved for backward compatibility and not used in the API call implementation. Specify any scope for compatibility (required)
|
|
1602
|
+
:param str body:
|
|
1603
|
+
:return: DeferredResultResponseEntity
|
|
1604
|
+
If the method is called asynchronously,
|
|
1605
|
+
returns the request thread.
|
|
1606
|
+
"""
|
|
1607
|
+
|
|
1608
|
+
all_params = ['entity_type', 'entity_id', 'scope', 'body'] # noqa: E501
|
|
1609
|
+
all_params.append('async_req')
|
|
1610
|
+
all_params.append('_return_http_data_only')
|
|
1611
|
+
all_params.append('_preload_content')
|
|
1612
|
+
all_params.append('_request_timeout')
|
|
1613
|
+
|
|
1614
|
+
params = locals()
|
|
1615
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1616
|
+
if key not in all_params:
|
|
1617
|
+
raise TypeError(
|
|
1618
|
+
"Got an unexpected keyword argument '%s'"
|
|
1619
|
+
" to method save_entity_telemetry_using_post" % key
|
|
1620
|
+
)
|
|
1621
|
+
params[key] = val
|
|
1622
|
+
del params['kwargs']
|
|
1623
|
+
# verify the required parameter 'entity_type' is set
|
|
1624
|
+
if ('entity_type' not in params or
|
|
1625
|
+
params['entity_type'] is None):
|
|
1626
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `save_entity_telemetry_using_post`") # noqa: E501
|
|
1627
|
+
# verify the required parameter 'entity_id' is set
|
|
1628
|
+
if ('entity_id' not in params or
|
|
1629
|
+
params['entity_id'] is None):
|
|
1630
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `save_entity_telemetry_using_post`") # noqa: E501
|
|
1631
|
+
# verify the required parameter 'scope' is set
|
|
1632
|
+
if ('scope' not in params or
|
|
1633
|
+
params['scope'] is None):
|
|
1634
|
+
raise ValueError("Missing the required parameter `scope` when calling `save_entity_telemetry_using_post`") # noqa: E501
|
|
1635
|
+
|
|
1636
|
+
collection_formats = {}
|
|
1637
|
+
|
|
1638
|
+
path_params = {}
|
|
1639
|
+
if 'entity_type' in params:
|
|
1640
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
1641
|
+
if 'entity_id' in params:
|
|
1642
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
1643
|
+
if 'scope' in params:
|
|
1644
|
+
path_params['scope'] = params['scope'] # noqa: E501
|
|
1645
|
+
|
|
1646
|
+
query_params = []
|
|
1647
|
+
|
|
1648
|
+
header_params = {}
|
|
1649
|
+
|
|
1650
|
+
form_params = []
|
|
1651
|
+
local_var_files = {}
|
|
1652
|
+
|
|
1653
|
+
body_params = None
|
|
1654
|
+
if 'body' in params:
|
|
1655
|
+
body_params = params['body']
|
|
1656
|
+
# HTTP header `Accept`
|
|
1657
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1658
|
+
['application/json']) # noqa: E501
|
|
1659
|
+
|
|
1660
|
+
# HTTP header `Content-Type`
|
|
1661
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1662
|
+
['application/json']) # noqa: E501
|
|
1663
|
+
|
|
1664
|
+
# Authentication setting
|
|
1665
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1666
|
+
|
|
1667
|
+
return self.api_client.call_api(
|
|
1668
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/timeseries/{scope}?scope=ANY', 'POST',
|
|
1669
|
+
path_params,
|
|
1670
|
+
query_params,
|
|
1671
|
+
header_params,
|
|
1672
|
+
body=body_params,
|
|
1673
|
+
post_params=form_params,
|
|
1674
|
+
files=local_var_files,
|
|
1675
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
1676
|
+
auth_settings=auth_settings,
|
|
1677
|
+
async_req=params.get('async_req'),
|
|
1678
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1679
|
+
_preload_content=params.get('_preload_content', True),
|
|
1680
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1681
|
+
collection_formats=collection_formats)
|
|
1682
|
+
|
|
1683
|
+
def save_entity_telemetry_with_ttl_using_post(self, entity_type, entity_id, scope, ttl, **kwargs): # noqa: E501
|
|
1684
|
+
"""Save or update time-series data with TTL (saveEntityTelemetryWithTTL) # noqa: E501
|
|
1685
|
+
|
|
1686
|
+
Creates or updates the entity time-series data based on the Entity Id and request payload.The request payload is a JSON document with three possible formats: Simple format without timestamp. In such a case, current server time will be used: ```json {\"temperature\": 26} ``` Single JSON object with timestamp: ```json {\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}} ``` JSON array with timestamps: ```json [{\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}}, {\"ts\":1634712588000,\"values\":{\"temperature\":25, \"humidity\":88}}] ``` The scope parameter is not used in the API call implementation but should be specified whatever value because it is used as a path variable. The ttl parameter takes affect only in case of Cassandra DB.Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1687
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1688
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1689
|
+
>>> thread = api.save_entity_telemetry_with_ttl_using_post(entity_type, entity_id, scope, ttl, async_req=True)
|
|
1690
|
+
>>> result = thread.get()
|
|
1691
|
+
|
|
1692
|
+
:param async_req bool
|
|
1693
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1694
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1695
|
+
:param str scope: Value is deprecated, reserved for backward compatibility and not used in the API call implementation. Specify any scope for compatibility (required)
|
|
1696
|
+
:param int ttl: A long value representing TTL (Time to Live) parameter. (required)
|
|
1697
|
+
:param str body:
|
|
1698
|
+
:return: DeferredResultResponseEntity
|
|
1699
|
+
If the method is called asynchronously,
|
|
1700
|
+
returns the request thread.
|
|
1701
|
+
"""
|
|
1702
|
+
kwargs['_return_http_data_only'] = True
|
|
1703
|
+
if kwargs.get('async_req'):
|
|
1704
|
+
return self.save_entity_telemetry_with_ttl_using_post_with_http_info(entity_type, entity_id, scope, ttl, **kwargs) # noqa: E501
|
|
1705
|
+
else:
|
|
1706
|
+
(data) = self.save_entity_telemetry_with_ttl_using_post_with_http_info(entity_type, entity_id, scope, ttl, **kwargs) # noqa: E501
|
|
1707
|
+
return data
|
|
1708
|
+
|
|
1709
|
+
def save_entity_telemetry_with_ttl_using_post_with_http_info(self, entity_type, entity_id, scope, ttl, **kwargs): # noqa: E501
|
|
1710
|
+
"""Save or update time-series data with TTL (saveEntityTelemetryWithTTL) # noqa: E501
|
|
1711
|
+
|
|
1712
|
+
Creates or updates the entity time-series data based on the Entity Id and request payload.The request payload is a JSON document with three possible formats: Simple format without timestamp. In such a case, current server time will be used: ```json {\"temperature\": 26} ``` Single JSON object with timestamp: ```json {\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}} ``` JSON array with timestamps: ```json [{\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}}, {\"ts\":1634712588000,\"values\":{\"temperature\":25, \"humidity\":88}}] ``` The scope parameter is not used in the API call implementation but should be specified whatever value because it is used as a path variable. The ttl parameter takes affect only in case of Cassandra DB.Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
|
|
1713
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1714
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1715
|
+
>>> thread = api.save_entity_telemetry_with_ttl_using_post_with_http_info(entity_type, entity_id, scope, ttl, async_req=True)
|
|
1716
|
+
>>> result = thread.get()
|
|
1717
|
+
|
|
1718
|
+
:param async_req bool
|
|
1719
|
+
:param str entity_type: A string value representing the entity type. For example, 'DEVICE' (required)
|
|
1720
|
+
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
|
|
1721
|
+
:param str scope: Value is deprecated, reserved for backward compatibility and not used in the API call implementation. Specify any scope for compatibility (required)
|
|
1722
|
+
:param int ttl: A long value representing TTL (Time to Live) parameter. (required)
|
|
1723
|
+
:param str body:
|
|
1724
|
+
:return: DeferredResultResponseEntity
|
|
1725
|
+
If the method is called asynchronously,
|
|
1726
|
+
returns the request thread.
|
|
1727
|
+
"""
|
|
1728
|
+
|
|
1729
|
+
all_params = ['entity_type', 'entity_id', 'scope', 'ttl', 'body'] # noqa: E501
|
|
1730
|
+
all_params.append('async_req')
|
|
1731
|
+
all_params.append('_return_http_data_only')
|
|
1732
|
+
all_params.append('_preload_content')
|
|
1733
|
+
all_params.append('_request_timeout')
|
|
1734
|
+
|
|
1735
|
+
params = locals()
|
|
1736
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
1737
|
+
if key not in all_params:
|
|
1738
|
+
raise TypeError(
|
|
1739
|
+
"Got an unexpected keyword argument '%s'"
|
|
1740
|
+
" to method save_entity_telemetry_with_ttl_using_post" % key
|
|
1741
|
+
)
|
|
1742
|
+
params[key] = val
|
|
1743
|
+
del params['kwargs']
|
|
1744
|
+
# verify the required parameter 'entity_type' is set
|
|
1745
|
+
if ('entity_type' not in params or
|
|
1746
|
+
params['entity_type'] is None):
|
|
1747
|
+
raise ValueError("Missing the required parameter `entity_type` when calling `save_entity_telemetry_with_ttl_using_post`") # noqa: E501
|
|
1748
|
+
# verify the required parameter 'entity_id' is set
|
|
1749
|
+
if ('entity_id' not in params or
|
|
1750
|
+
params['entity_id'] is None):
|
|
1751
|
+
raise ValueError("Missing the required parameter `entity_id` when calling `save_entity_telemetry_with_ttl_using_post`") # noqa: E501
|
|
1752
|
+
# verify the required parameter 'scope' is set
|
|
1753
|
+
if ('scope' not in params or
|
|
1754
|
+
params['scope'] is None):
|
|
1755
|
+
raise ValueError("Missing the required parameter `scope` when calling `save_entity_telemetry_with_ttl_using_post`") # noqa: E501
|
|
1756
|
+
# verify the required parameter 'ttl' is set
|
|
1757
|
+
if ('ttl' not in params or
|
|
1758
|
+
params['ttl'] is None):
|
|
1759
|
+
raise ValueError("Missing the required parameter `ttl` when calling `save_entity_telemetry_with_ttl_using_post`") # noqa: E501
|
|
1760
|
+
|
|
1761
|
+
collection_formats = {}
|
|
1762
|
+
|
|
1763
|
+
path_params = {}
|
|
1764
|
+
if 'entity_type' in params:
|
|
1765
|
+
path_params['entityType'] = params['entity_type'] # noqa: E501
|
|
1766
|
+
if 'entity_id' in params:
|
|
1767
|
+
path_params['entityId'] = params['entity_id'] # noqa: E501
|
|
1768
|
+
if 'scope' in params:
|
|
1769
|
+
path_params['scope'] = params['scope'] # noqa: E501
|
|
1770
|
+
if 'ttl' in params:
|
|
1771
|
+
path_params['ttl'] = params['ttl'] # noqa: E501
|
|
1772
|
+
|
|
1773
|
+
query_params = []
|
|
1774
|
+
|
|
1775
|
+
header_params = {}
|
|
1776
|
+
|
|
1777
|
+
form_params = []
|
|
1778
|
+
local_var_files = {}
|
|
1779
|
+
|
|
1780
|
+
body_params = None
|
|
1781
|
+
if 'body' in params:
|
|
1782
|
+
body_params = params['body']
|
|
1783
|
+
# HTTP header `Accept`
|
|
1784
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
1785
|
+
['application/json']) # noqa: E501
|
|
1786
|
+
|
|
1787
|
+
# HTTP header `Content-Type`
|
|
1788
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
1789
|
+
['application/json']) # noqa: E501
|
|
1790
|
+
|
|
1791
|
+
# Authentication setting
|
|
1792
|
+
auth_settings = ['X-Authorization'] # noqa: E501
|
|
1793
|
+
|
|
1794
|
+
return self.api_client.call_api(
|
|
1795
|
+
'/api/plugins/telemetry/{entityType}/{entityId}/timeseries/{scope}/{ttl}?scope=ANY', 'POST',
|
|
1796
|
+
path_params,
|
|
1797
|
+
query_params,
|
|
1798
|
+
header_params,
|
|
1799
|
+
body=body_params,
|
|
1800
|
+
post_params=form_params,
|
|
1801
|
+
files=local_var_files,
|
|
1802
|
+
response_type='DeferredResultResponseEntity', # noqa: E501
|
|
1803
|
+
auth_settings=auth_settings,
|
|
1804
|
+
async_req=params.get('async_req'),
|
|
1805
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
1806
|
+
_preload_content=params.get('_preload_content', True),
|
|
1807
|
+
_request_timeout=params.get('_request_timeout'),
|
|
1808
|
+
collection_formats=collection_formats)
|