tbctl 0.2.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_client/__init__.py +1 -0
- tb_client/api/__init__.py +1 -0
- tb_client/api/admin_controller_api.py +7410 -0
- tb_client/api/ai_model_controller_api.py +1524 -0
- tb_client/api/alarm_comment_controller_api.py +982 -0
- tb_client/api/alarm_controller_api.py +4821 -0
- tb_client/api/api_key_controller_api.py +1568 -0
- tb_client/api/asset_controller_api.py +4920 -0
- tb_client/api/asset_profile_controller_api.py +2973 -0
- tb_client/api/audit_log_controller_api.py +1691 -0
- tb_client/api/auth_controller_api.py +2554 -0
- tb_client/api/blob_entity_controller_api.py +1550 -0
- tb_client/api/calculated_field_controller_api.py +3493 -0
- tb_client/api/component_descriptor_controller_api.py +907 -0
- tb_client/api/converter_controller_api.py +2809 -0
- tb_client/api/converter_library_controller_api.py +2490 -0
- tb_client/api/custom_menu_controller_api.py +3101 -0
- tb_client/api/custom_translation_controller_api.py +2076 -0
- tb_client/api/customer_controller_api.py +4162 -0
- tb_client/api/dashboard_controller_api.py +6553 -0
- tb_client/api/dashboard_report_controller_api.py +657 -0
- tb_client/api/device_api_controller_api.py +3441 -0
- tb_client/api/device_connectivity_controller_api.py +869 -0
- tb_client/api/device_controller_api.py +7390 -0
- tb_client/api/device_group_ota_package_controller_api.py +887 -0
- tb_client/api/device_profile_controller_api.py +3548 -0
- tb_client/api/domain_controller_api.py +1557 -0
- tb_client/api/edge_controller_api.py +7752 -0
- tb_client/api/edge_event_controller_api.py +435 -0
- tb_client/api/entities_version_control_controller_api.py +3800 -0
- tb_client/api/entity_group_controller_api.py +11279 -0
- tb_client/api/entity_query_controller_api.py +2094 -0
- tb_client/api/entity_relation_controller_api.py +4501 -0
- tb_client/api/entity_view_controller_api.py +4608 -0
- tb_client/api/event_controller_api.py +1721 -0
- tb_client/api/group_permission_controller_api.py +2023 -0
- tb_client/api/image_controller_api.py +4427 -0
- tb_client/api/integration_controller_api.py +4603 -0
- tb_client/api/job_controller_api.py +1581 -0
- tb_client/api/login_endpoint_api.py +611 -0
- tb_client/api/lwm2m_controller_api.py +621 -0
- tb_client/api/mail_config_template_controller_api.py +298 -0
- tb_client/api/mobile_app_bundle_controller_api.py +1557 -0
- tb_client/api/mobile_app_controller_api.py +1838 -0
- tb_client/api/notification_controller_api.py +5522 -0
- tb_client/api/notification_rule_controller_api.py +1233 -0
- tb_client/api/notification_target_controller_api.py +2201 -0
- tb_client/api/notification_template_controller_api.py +1547 -0
- tb_client/api/o_auth2_config_template_controller_api.py +868 -0
- tb_client/api/o_auth2_controller_api.py +2070 -0
- tb_client/api/ota_package_controller_api.py +2880 -0
- tb_client/api/owner_controller_api.py +710 -0
- tb_client/api/qr_code_settings_controller_api.py +1664 -0
- tb_client/api/queue_controller_api.py +1542 -0
- tb_client/api/queue_stats_controller_api.py +944 -0
- tb_client/api/report_controller_api.py +2754 -0
- tb_client/api/report_template_controller_api.py +1842 -0
- tb_client/api/role_controller_api.py +1528 -0
- tb_client/api/rpc_v1_controller_api.py +647 -0
- tb_client/api/rpc_v2_controller_api.py +1594 -0
- tb_client/api/rule_chain_controller_api.py +6709 -0
- tb_client/api/rule_engine_controller_api.py +1332 -0
- tb_client/api/scheduler_event_controller_api.py +4366 -0
- tb_client/api/secret_controller_api.py +2385 -0
- tb_client/api/self_registration_controller_api.py +1734 -0
- tb_client/api/sign_up_controller_api.py +2603 -0
- tb_client/api/solution_controller_api.py +1412 -0
- tb_client/api/tb_resource_controller_api.py +5886 -0
- tb_client/api/telemetry_controller_api.py +5517 -0
- tb_client/api/tenant_controller_api.py +2134 -0
- tb_client/api/tenant_profile_controller_api.py +2673 -0
- tb_client/api/translation_controller_api.py +1991 -0
- tb_client/api/trendz_api_controller_api.py +1190 -0
- tb_client/api/trendz_controller_api.py +1638 -0
- tb_client/api/two_factor_auth_config_controller_api.py +2580 -0
- tb_client/api/two_factor_auth_controller_api.py +1138 -0
- tb_client/api/ui_settings_controller_api.py +298 -0
- tb_client/api/usage_info_controller_api.py +295 -0
- tb_client/api/user_controller_api.py +9796 -0
- tb_client/api/user_permissions_controller_api.py +607 -0
- tb_client/api/white_labeling_controller_api.py +3675 -0
- tb_client/api/widget_type_controller_api.py +4392 -0
- tb_client/api/widgets_bundle_controller_api.py +2453 -0
- tb_client/api_client.py +805 -0
- tb_client/api_response.py +21 -0
- tb_client/configuration.py +627 -0
- tb_client/exceptions.py +219 -0
- tb_client/models/__init__.py +16 -0
- tb_client/models/account_two_fa_settings.py +102 -0
- tb_client/models/activate_user_request.py +91 -0
- tb_client/models/admin_settings.py +114 -0
- tb_client/models/admin_settings_id.py +99 -0
- tb_client/models/affected_tenant_administrators_filter.py +89 -0
- tb_client/models/affected_user_filter.py +89 -0
- tb_client/models/aggregation_configuration.py +101 -0
- tb_client/models/aggregation_params.py +115 -0
- tb_client/models/ai_chat_model_config_object.py +107 -0
- tb_client/models/ai_chat_model_config_object_provider_config.py +236 -0
- tb_client/models/ai_model.py +118 -0
- tb_client/models/ai_model_config.py +138 -0
- tb_client/models/ai_model_id.py +99 -0
- tb_client/models/alarm.py +182 -0
- tb_client/models/alarm_assignee.py +99 -0
- tb_client/models/alarm_assignment_notification_rule_trigger_config.py +128 -0
- tb_client/models/alarm_comment.py +140 -0
- tb_client/models/alarm_comment_id.py +90 -0
- tb_client/models/alarm_comment_info.py +146 -0
- tb_client/models/alarm_comment_notification_rule_trigger_config.py +121 -0
- tb_client/models/alarm_condition.py +103 -0
- tb_client/models/alarm_condition_filter.py +118 -0
- tb_client/models/alarm_condition_filter_key.py +101 -0
- tb_client/models/alarm_condition_spec.py +115 -0
- tb_client/models/alarm_count_query.py +145 -0
- tb_client/models/alarm_data.py +222 -0
- tb_client/models/alarm_data_page_link.py +143 -0
- tb_client/models/alarm_data_query.py +137 -0
- tb_client/models/alarm_filter_config.py +123 -0
- tb_client/models/alarm_id.py +99 -0
- tb_client/models/alarm_info.py +194 -0
- tb_client/models/alarm_notification_rule_trigger_config.py +121 -0
- tb_client/models/alarm_rule.py +107 -0
- tb_client/models/alarm_schedule.py +130 -0
- tb_client/models/alarm_table_component.py +135 -0
- tb_client/models/alias_entity_id.py +111 -0
- tb_client/models/all_users_filter.py +89 -0
- tb_client/models/allow_create_new_devices_device_profile_provision_configuration.py +90 -0
- tb_client/models/allowed_permissions_info.py +164 -0
- tb_client/models/amazon_bedrock_chat_model_config.py +122 -0
- tb_client/models/amazon_bedrock_provider_config.py +93 -0
- tb_client/models/anthropic_chat_model_config.py +124 -0
- tb_client/models/anthropic_provider_config.py +89 -0
- tb_client/models/any_time_schedule.py +94 -0
- tb_client/models/api_auth_token_post_request.py +94 -0
- tb_client/models/api_key.py +124 -0
- tb_client/models/api_key_id.py +99 -0
- tb_client/models/api_key_info.py +122 -0
- tb_client/models/api_usage_limit_notification_rule_trigger_config.py +115 -0
- tb_client/models/api_usage_state_filter.py +95 -0
- tb_client/models/argument.py +111 -0
- tb_client/models/asset.py +142 -0
- tb_client/models/asset_id.py +99 -0
- tb_client/models/asset_info.py +158 -0
- tb_client/models/asset_profile.py +134 -0
- tb_client/models/asset_profile_id.py +99 -0
- tb_client/models/asset_profile_info.py +109 -0
- tb_client/models/asset_search_query.py +97 -0
- tb_client/models/asset_search_query_filter.py +122 -0
- tb_client/models/asset_type_filter.py +95 -0
- tb_client/models/attribute_export_data.py +101 -0
- tb_client/models/attributes_entity_view.py +93 -0
- tb_client/models/attributes_immediate_output_strategy.py +99 -0
- tb_client/models/attributes_output.py +98 -0
- tb_client/models/attributes_output_strategy.py +112 -0
- tb_client/models/attributes_rule_chain_output_strategy.py +89 -0
- tb_client/models/audit_log.py +178 -0
- tb_client/models/audit_log_id.py +90 -0
- tb_client/models/auto_version_create_config.py +101 -0
- tb_client/models/available_entity_keys.py +102 -0
- tb_client/models/aws_sns_sms_provider_configuration.py +95 -0
- tb_client/models/azure_open_ai_chat_model_config.py +126 -0
- tb_client/models/azure_open_ai_provider_config.py +93 -0
- tb_client/models/backup_code_two_fa_account_config.py +95 -0
- tb_client/models/backup_code_two_fa_provider_config.py +92 -0
- tb_client/models/bar_series_settings.py +127 -0
- tb_client/models/base_read_ts_kv_query.py +119 -0
- tb_client/models/basic.py +93 -0
- tb_client/models/blob_entity_id.py +99 -0
- tb_client/models/blob_entity_info.py +150 -0
- tb_client/models/blob_entity_with_customer_info.py +156 -0
- tb_client/models/boolean_filter_predicate.py +107 -0
- tb_client/models/branch_info.py +91 -0
- tb_client/models/bulk_import_request.py +103 -0
- tb_client/models/bulk_import_result_asset.py +105 -0
- tb_client/models/bulk_import_result_asset_created.py +99 -0
- tb_client/models/bulk_import_result_device.py +105 -0
- tb_client/models/bulk_import_result_edge.py +105 -0
- tb_client/models/button.py +112 -0
- tb_client/models/calculated_field.py +141 -0
- tb_client/models/calculated_field_debug_event_filter.py +120 -0
- tb_client/models/calculated_field_id.py +99 -0
- tb_client/models/calculated_field_info.py +143 -0
- tb_client/models/captcha_params.py +115 -0
- tb_client/models/cell_settings.py +121 -0
- tb_client/models/cf_argument_dynamic_source_configuration.py +112 -0
- tb_client/models/cf_reprocessing_job_configuration.py +111 -0
- tb_client/models/cf_reprocessing_job_result.py +106 -0
- tb_client/models/cf_reprocessing_task_failure.py +95 -0
- tb_client/models/cf_reprocessing_task_result.py +99 -0
- tb_client/models/cf_reprocessing_validation_result.py +103 -0
- tb_client/models/change_password_request.py +91 -0
- tb_client/models/chart_fill_settings.py +107 -0
- tb_client/models/chart_fill_settings_gradient.py +91 -0
- tb_client/models/check_pre_provisioned_devices_device_profile_provision_configuration.py +90 -0
- tb_client/models/claim_request.py +89 -0
- tb_client/models/clear_rule.py +100 -0
- tb_client/models/client_attributes_querying_snmp_communication_config.py +101 -0
- tb_client/models/coap_device_profile_transport_configuration.py +101 -0
- tb_client/models/coap_device_transport_configuration.py +107 -0
- tb_client/models/coap_device_type_configuration.py +112 -0
- tb_client/models/color_range.py +93 -0
- tb_client/models/column_mapping.py +101 -0
- tb_client/models/column_settings.py +112 -0
- tb_client/models/comparison_ts_value.py +98 -0
- tb_client/models/complex_filter_predicate.py +110 -0
- tb_client/models/complex_version_create_request.py +118 -0
- tb_client/models/component_descriptor.py +170 -0
- tb_client/models/component_descriptor_id.py +90 -0
- tb_client/models/contact_based_object.py +123 -0
- tb_client/models/converter.py +156 -0
- tb_client/models/converter_id.py +99 -0
- tb_client/models/converters_info.py +93 -0
- tb_client/models/create_report_request.py +91 -0
- tb_client/models/csv_report_template_config.py +118 -0
- tb_client/models/current_owner_dynamic_source_configuration.py +89 -0
- tb_client/models/custom_menu.py +141 -0
- tb_client/models/custom_menu_config.py +97 -0
- tb_client/models/custom_menu_delete_result.py +111 -0
- tb_client/models/custom_menu_id.py +90 -0
- tb_client/models/custom_menu_info.py +135 -0
- tb_client/models/custom_menu_item.py +135 -0
- tb_client/models/custom_mobile_page.py +97 -0
- tb_client/models/custom_time_schedule.py +106 -0
- tb_client/models/custom_time_schedule_item.py +95 -0
- tb_client/models/customer.py +160 -0
- tb_client/models/customer_id.py +99 -0
- tb_client/models/customer_info.py +176 -0
- tb_client/models/customer_users_filter.py +92 -0
- tb_client/models/dashboard.py +168 -0
- tb_client/models/dashboard_component.py +151 -0
- tb_client/models/dashboard_id.py +99 -0
- tb_client/models/dashboard_info.py +184 -0
- tb_client/models/dashboard_page.py +97 -0
- tb_client/models/dashboard_report_config.py +112 -0
- tb_client/models/data_key.py +127 -0
- tb_client/models/data_key_comparison_settings.py +93 -0
- tb_client/models/data_key_settings.py +152 -0
- tb_client/models/data_source.py +130 -0
- tb_client/models/debug_converter_event_filter.py +106 -0
- tb_client/models/debug_integration_event_filter.py +104 -0
- tb_client/models/debug_settings.py +93 -0
- tb_client/models/default_coap_device_type_configuration.py +95 -0
- tb_client/models/default_dashboard_params.py +91 -0
- tb_client/models/default_data_key_settings.py +89 -0
- tb_client/models/default_device_configuration.py +89 -0
- tb_client/models/default_device_profile_configuration.py +89 -0
- tb_client/models/default_device_profile_transport_configuration.py +89 -0
- tb_client/models/default_device_transport_configuration.py +89 -0
- tb_client/models/default_menu_item.py +110 -0
- tb_client/models/default_mobile_page.py +107 -0
- tb_client/models/default_rule_chain_create_request.py +89 -0
- tb_client/models/default_tenant_profile_configuration.py +263 -0
- tb_client/models/delivery_method_notification_template.py +127 -0
- tb_client/models/device.py +159 -0
- tb_client/models/device_activity_notification_rule_trigger_config.py +105 -0
- tb_client/models/device_configuration.py +109 -0
- tb_client/models/device_credentials.py +121 -0
- tb_client/models/device_credentials_id.py +90 -0
- tb_client/models/device_data.py +99 -0
- tb_client/models/device_export_data.py +134 -0
- tb_client/models/device_group_ota_package.py +116 -0
- tb_client/models/device_id.py +99 -0
- tb_client/models/device_info.py +179 -0
- tb_client/models/device_profile.py +189 -0
- tb_client/models/device_profile_alarm.py +121 -0
- tb_client/models/device_profile_configuration.py +109 -0
- tb_client/models/device_profile_data.py +115 -0
- tb_client/models/device_profile_id.py +99 -0
- tb_client/models/device_profile_info.py +133 -0
- tb_client/models/device_profile_provision_configuration.py +119 -0
- tb_client/models/device_profile_transport_configuration.py +121 -0
- tb_client/models/device_search_query.py +97 -0
- tb_client/models/device_search_query_filter.py +122 -0
- tb_client/models/device_transport_configuration.py +121 -0
- tb_client/models/device_type_filter.py +95 -0
- tb_client/models/disabled_device_profile_provision_configuration.py +90 -0
- tb_client/models/divider_component.py +137 -0
- tb_client/models/domain.py +124 -0
- tb_client/models/domain_id.py +99 -0
- tb_client/models/domain_info.py +134 -0
- tb_client/models/dummy_job_configuration.py +117 -0
- tb_client/models/dummy_job_result.py +106 -0
- tb_client/models/dummy_task_failure.py +93 -0
- tb_client/models/dummy_task_result.py +99 -0
- tb_client/models/duration_alarm_condition_spec.py +107 -0
- tb_client/models/dynamic_value_boolean.py +105 -0
- tb_client/models/dynamic_value_double.py +105 -0
- tb_client/models/dynamic_value_integer.py +105 -0
- tb_client/models/dynamic_value_long.py +105 -0
- tb_client/models/dynamic_value_string.py +105 -0
- tb_client/models/edge.py +152 -0
- tb_client/models/edge_communication_failure_notification_rule_trigger_config.py +92 -0
- tb_client/models/edge_connection_notification_rule_trigger_config.py +105 -0
- tb_client/models/edge_event.py +149 -0
- tb_client/models/edge_event_id.py +90 -0
- tb_client/models/edge_id.py +99 -0
- tb_client/models/edge_info.py +168 -0
- tb_client/models/edge_instructions.py +89 -0
- tb_client/models/edge_search_query.py +97 -0
- tb_client/models/edge_search_query_filter.py +122 -0
- tb_client/models/edge_type_filter.py +95 -0
- tb_client/models/edqs_state.py +113 -0
- tb_client/models/edqs_sync_request.py +100 -0
- tb_client/models/efento_coap_device_type_configuration.py +89 -0
- tb_client/models/email_delivery_method_notification_template.py +94 -0
- tb_client/models/email_two_fa_account_config.py +93 -0
- tb_client/models/email_two_fa_provider_config.py +92 -0
- tb_client/models/enterprise_captcha_params.py +101 -0
- tb_client/models/entities_by_group_name_filter.py +113 -0
- tb_client/models/entities_limit_notification_rule_trigger_config.py +105 -0
- tb_client/models/entity.py +93 -0
- tb_client/models/entity_action_notification_rule_trigger_config.py +108 -0
- tb_client/models/entity_alias.py +97 -0
- tb_client/models/entity_count_query.py +103 -0
- tb_client/models/entity_data.py +151 -0
- tb_client/models/entity_data_diff.py +98 -0
- tb_client/models/entity_data_diff_current_version.py +239 -0
- tb_client/models/entity_data_info.py +99 -0
- tb_client/models/entity_data_page_link.py +101 -0
- tb_client/models/entity_data_query.py +128 -0
- tb_client/models/entity_data_sort_order.py +105 -0
- tb_client/models/entity_export_data_object.py +175 -0
- tb_client/models/entity_filter.py +169 -0
- tb_client/models/entity_group.py +142 -0
- tb_client/models/entity_group_export_data.py +150 -0
- tb_client/models/entity_group_filter.py +119 -0
- tb_client/models/entity_group_id.py +99 -0
- tb_client/models/entity_group_info.py +151 -0
- tb_client/models/entity_group_list_filter.py +103 -0
- tb_client/models/entity_group_name_filter.py +103 -0
- tb_client/models/entity_id.py +99 -0
- tb_client/models/entity_info.py +95 -0
- tb_client/models/entity_key.py +101 -0
- tb_client/models/entity_list_filter.py +103 -0
- tb_client/models/entity_load_error.py +102 -0
- tb_client/models/entity_name_filter.py +103 -0
- tb_client/models/entity_relation.py +119 -0
- tb_client/models/entity_relation_info.py +127 -0
- tb_client/models/entity_relations_query.py +103 -0
- tb_client/models/entity_subtype.py +107 -0
- tb_client/models/entity_table_component.py +133 -0
- tb_client/models/entity_type_filter.py +101 -0
- tb_client/models/entity_type_load_result.py +111 -0
- tb_client/models/entity_type_version_create_config.py +116 -0
- tb_client/models/entity_type_version_load_config.py +105 -0
- tb_client/models/entity_type_version_load_request.py +107 -0
- tb_client/models/entity_version.py +95 -0
- tb_client/models/entity_view.py +149 -0
- tb_client/models/entity_view_id.py +99 -0
- tb_client/models/entity_view_info.py +165 -0
- tb_client/models/entity_view_search_query.py +97 -0
- tb_client/models/entity_view_search_query_filter.py +122 -0
- tb_client/models/entity_view_type_filter.py +95 -0
- tb_client/models/error_component.py +98 -0
- tb_client/models/error_component_all_of_exception.py +116 -0
- tb_client/models/error_component_all_of_exception_cause.py +101 -0
- tb_client/models/error_component_all_of_exception_cause_stack_trace.py +103 -0
- tb_client/models/error_event_filter.py +96 -0
- tb_client/models/escalated_notification_rule_recipients_config.py +92 -0
- tb_client/models/event_filter.py +141 -0
- tb_client/models/event_id.py +90 -0
- tb_client/models/event_info.py +124 -0
- tb_client/models/exportable_entity_entity_id.py +95 -0
- tb_client/models/failure.py +92 -0
- tb_client/models/favicon.py +89 -0
- tb_client/models/features_info.py +99 -0
- tb_client/models/filter.py +101 -0
- tb_client/models/filter_predicate_value_boolean.py +97 -0
- tb_client/models/filter_predicate_value_double.py +97 -0
- tb_client/models/filter_predicate_value_integer.py +97 -0
- tb_client/models/filter_predicate_value_long.py +97 -0
- tb_client/models/filter_predicate_value_string.py +97 -0
- tb_client/models/fixed_time_window.py +91 -0
- tb_client/models/font.py +115 -0
- tb_client/models/git_hub_models_chat_model_config.py +126 -0
- tb_client/models/git_hub_models_provider_config.py +89 -0
- tb_client/models/google_ai_gemini_chat_model_config.py +128 -0
- tb_client/models/google_ai_gemini_provider_config.py +89 -0
- tb_client/models/google_vertex_ai_gemini_chat_model_config.py +128 -0
- tb_client/models/google_vertex_ai_gemini_provider_config.py +95 -0
- tb_client/models/group_entity_export_data.py +128 -0
- tb_client/models/group_permission.py +142 -0
- tb_client/models/group_permission_id.py +99 -0
- tb_client/models/group_permission_info.py +167 -0
- tb_client/models/has_id_object.py +94 -0
- tb_client/models/header_footer.py +106 -0
- tb_client/models/heading.py +123 -0
- tb_client/models/heading_component.py +155 -0
- tb_client/models/history.py +115 -0
- tb_client/models/home_dashboard_info.py +95 -0
- tb_client/models/home_dashboard_params.py +91 -0
- tb_client/models/home_menu_item.py +125 -0
- tb_client/models/image_component.py +159 -0
- tb_client/models/insets.py +95 -0
- tb_client/models/integration.py +163 -0
- tb_client/models/integration_converters_info.py +98 -0
- tb_client/models/integration_id.py +99 -0
- tb_client/models/integration_info.py +143 -0
- tb_client/models/integration_lifecycle_event_notification_rule_trigger_config.py +120 -0
- tb_client/models/interval.py +101 -0
- tb_client/models/job.py +144 -0
- tb_client/models/job_configuration.py +126 -0
- tb_client/models/job_id.py +99 -0
- tb_client/models/job_result.py +132 -0
- tb_client/models/json_transport_payload_configuration.py +89 -0
- tb_client/models/jwt_pair.py +103 -0
- tb_client/models/jwt_settings.py +95 -0
- tb_client/models/key_filter.py +111 -0
- tb_client/models/key_filter_predicate.py +118 -0
- tb_client/models/last_visited_dashboard_info.py +98 -0
- tb_client/models/latest_chart_component.py +153 -0
- tb_client/models/latest_chart_component_all_of_latest_chart_settings.py +166 -0
- tb_client/models/legend_config.py +111 -0
- tb_client/models/license_usage_info.py +109 -0
- tb_client/models/life_cycle_event_filter.py +108 -0
- tb_client/models/line_series_settings.py +167 -0
- tb_client/models/login_mobile_info.py +115 -0
- tb_client/models/login_request.py +91 -0
- tb_client/models/login_response.py +91 -0
- tb_client/models/login_white_labeling_params.py +145 -0
- tb_client/models/lw_m2_m_bootstrap_server_credential.py +118 -0
- tb_client/models/lw_m2_m_server_security_config_default.py +143 -0
- tb_client/models/lw_m2m_instance.py +99 -0
- tb_client/models/lw_m2m_object.py +107 -0
- tb_client/models/lw_m2m_resource_observe.py +99 -0
- tb_client/models/lw_m2m_version.py +89 -0
- tb_client/models/lwm2m_device_profile_transport_configuration.py +113 -0
- tb_client/models/lwm2m_device_transport_configuration.py +107 -0
- tb_client/models/mapping.py +103 -0
- tb_client/models/menu_item.py +126 -0
- tb_client/models/merged_group_permission_info.py +112 -0
- tb_client/models/merged_group_type_permission_info.py +99 -0
- tb_client/models/merged_user_permissions.py +172 -0
- tb_client/models/microsoft_teams_delivery_method_notification_template.py +101 -0
- tb_client/models/microsoft_teams_notification_target_config.py +112 -0
- tb_client/models/mistral_ai_chat_model_config.py +126 -0
- tb_client/models/mistral_ai_provider_config.py +89 -0
- tb_client/models/mobile_app.py +144 -0
- tb_client/models/mobile_app_bundle.py +137 -0
- tb_client/models/mobile_app_bundle_id.py +99 -0
- tb_client/models/mobile_app_bundle_info.py +153 -0
- tb_client/models/mobile_app_delivery_method_notification_template.py +101 -0
- tb_client/models/mobile_app_id.py +99 -0
- tb_client/models/mobile_app_notification_delivery_method_config.py +95 -0
- tb_client/models/mobile_app_version_info.py +95 -0
- tb_client/models/mobile_layout_config.py +97 -0
- tb_client/models/mobile_page.py +129 -0
- tb_client/models/mobile_redirect_params.py +91 -0
- tb_client/models/mobile_self_registration_params.py +165 -0
- tb_client/models/mobile_session_info.py +89 -0
- tb_client/models/model.py +98 -0
- tb_client/models/model_none.py +89 -0
- tb_client/models/mqtt_device_profile_transport_configuration.py +107 -0
- tb_client/models/mqtt_device_transport_configuration.py +89 -0
- tb_client/models/multi_value_map_string_string.py +102 -0
- tb_client/models/new_platform_version_notification_rule_trigger_config.py +89 -0
- tb_client/models/no_sec_lw_m2_m_bootstrap_server_credential.py +137 -0
- tb_client/models/node_connection_info.py +93 -0
- tb_client/models/notification.py +162 -0
- tb_client/models/notification_delivery_method_config.py +112 -0
- tb_client/models/notification_id.py +99 -0
- tb_client/models/notification_info.py +101 -0
- tb_client/models/notification_pref.py +91 -0
- tb_client/models/notification_request.py +161 -0
- tb_client/models/notification_request_config.py +100 -0
- tb_client/models/notification_request_id.py +99 -0
- tb_client/models/notification_request_info.py +176 -0
- tb_client/models/notification_request_preview.py +108 -0
- tb_client/models/notification_request_stats.py +113 -0
- tb_client/models/notification_rule.py +141 -0
- tb_client/models/notification_rule_config.py +89 -0
- tb_client/models/notification_rule_id.py +99 -0
- tb_client/models/notification_rule_info.py +156 -0
- tb_client/models/notification_rule_recipients_config.py +116 -0
- tb_client/models/notification_rule_trigger_config.py +161 -0
- tb_client/models/notification_settings.py +102 -0
- tb_client/models/notification_target.py +112 -0
- tb_client/models/notification_target_config.py +116 -0
- tb_client/models/notification_target_id.py +99 -0
- tb_client/models/notification_template.py +121 -0
- tb_client/models/notification_template_config.py +118 -0
- tb_client/models/notification_template_id.py +99 -0
- tb_client/models/numeric_filter_predicate.py +107 -0
- tb_client/models/o_auth2_basic_mapper_config.py +114 -0
- tb_client/models/o_auth2_client.py +172 -0
- tb_client/models/o_auth2_client_id.py +99 -0
- tb_client/models/o_auth2_client_info.py +118 -0
- tb_client/models/o_auth2_client_login_info.py +93 -0
- tb_client/models/o_auth2_client_registration_template.py +136 -0
- tb_client/models/o_auth2_client_registration_template_id.py +90 -0
- tb_client/models/o_auth2_custom_mapper_config.py +95 -0
- tb_client/models/o_auth2_mapper_config.py +112 -0
- tb_client/models/object_attributes.py +120 -0
- tb_client/models/ollama_auth.py +115 -0
- tb_client/models/ollama_chat_model_config.py +126 -0
- tb_client/models/ollama_provider_config.py +95 -0
- tb_client/models/open_ai_chat_model_config.py +126 -0
- tb_client/models/open_ai_provider_config.py +91 -0
- tb_client/models/originator_entity_owner_users_filter.py +89 -0
- tb_client/models/ota_package.py +194 -0
- tb_client/models/ota_package_data.py +103 -0
- tb_client/models/ota_package_export_data.py +128 -0
- tb_client/models/ota_package_id.py +99 -0
- tb_client/models/ota_package_info.py +188 -0
- tb_client/models/other_configuration.py +119 -0
- tb_client/models/output.py +131 -0
- tb_client/models/page_break_component.py +90 -0
- tb_client/models/page_data_ai_model.py +111 -0
- tb_client/models/page_data_alarm_comment_info.py +111 -0
- tb_client/models/page_data_alarm_data.py +111 -0
- tb_client/models/page_data_alarm_info.py +111 -0
- tb_client/models/page_data_api_key_info.py +111 -0
- tb_client/models/page_data_asset.py +111 -0
- tb_client/models/page_data_asset_info.py +111 -0
- tb_client/models/page_data_asset_profile.py +111 -0
- tb_client/models/page_data_asset_profile_info.py +111 -0
- tb_client/models/page_data_audit_log.py +111 -0
- tb_client/models/page_data_blob_entity_with_customer_info.py +111 -0
- tb_client/models/page_data_calculated_field.py +111 -0
- tb_client/models/page_data_calculated_field_info.py +111 -0
- tb_client/models/page_data_contact_based_object.py +111 -0
- tb_client/models/page_data_converter.py +111 -0
- tb_client/models/page_data_custom_menu_info.py +111 -0
- tb_client/models/page_data_customer.py +111 -0
- tb_client/models/page_data_customer_info.py +111 -0
- tb_client/models/page_data_dashboard_info.py +111 -0
- tb_client/models/page_data_device.py +111 -0
- tb_client/models/page_data_device_info.py +111 -0
- tb_client/models/page_data_device_profile.py +111 -0
- tb_client/models/page_data_device_profile_info.py +111 -0
- tb_client/models/page_data_domain_info.py +111 -0
- tb_client/models/page_data_edge.py +111 -0
- tb_client/models/page_data_edge_event.py +111 -0
- tb_client/models/page_data_edge_info.py +111 -0
- tb_client/models/page_data_entity_data.py +111 -0
- tb_client/models/page_data_entity_group_info.py +111 -0
- tb_client/models/page_data_entity_info.py +111 -0
- tb_client/models/page_data_entity_subtype.py +111 -0
- tb_client/models/page_data_entity_version.py +111 -0
- tb_client/models/page_data_entity_view.py +111 -0
- tb_client/models/page_data_entity_view_info.py +111 -0
- tb_client/models/page_data_event_info.py +111 -0
- tb_client/models/page_data_integration.py +111 -0
- tb_client/models/page_data_integration_info.py +111 -0
- tb_client/models/page_data_job.py +111 -0
- tb_client/models/page_data_mobile_app.py +111 -0
- tb_client/models/page_data_mobile_app_bundle_info.py +111 -0
- tb_client/models/page_data_notification.py +111 -0
- tb_client/models/page_data_notification_request_info.py +111 -0
- tb_client/models/page_data_notification_rule_info.py +111 -0
- tb_client/models/page_data_notification_target.py +111 -0
- tb_client/models/page_data_notification_template.py +111 -0
- tb_client/models/page_data_o_auth2_client_info.py +111 -0
- tb_client/models/page_data_ota_package_info.py +111 -0
- tb_client/models/page_data_queue.py +111 -0
- tb_client/models/page_data_queue_stats.py +111 -0
- tb_client/models/page_data_report.py +111 -0
- tb_client/models/page_data_report_info.py +111 -0
- tb_client/models/page_data_report_template_info.py +111 -0
- tb_client/models/page_data_role.py +111 -0
- tb_client/models/page_data_rule_chain.py +111 -0
- tb_client/models/page_data_scheduled_report_info.py +111 -0
- tb_client/models/page_data_scheduler_event_info.py +111 -0
- tb_client/models/page_data_scheduler_event_with_customer_info.py +111 -0
- tb_client/models/page_data_secret_info.py +111 -0
- tb_client/models/page_data_short_entity_view.py +111 -0
- tb_client/models/page_data_string.py +103 -0
- tb_client/models/page_data_tb_resource_info.py +111 -0
- tb_client/models/page_data_tenant.py +111 -0
- tb_client/models/page_data_tenant_info.py +111 -0
- tb_client/models/page_data_tenant_profile.py +111 -0
- tb_client/models/page_data_trendz_view_config_lite.py +111 -0
- tb_client/models/page_data_user.py +111 -0
- tb_client/models/page_data_user_email_info.py +111 -0
- tb_client/models/page_data_user_info.py +111 -0
- tb_client/models/page_data_widget_type_info.py +111 -0
- tb_client/models/page_data_widgets_bundle.py +111 -0
- tb_client/models/palette.py +93 -0
- tb_client/models/palette_settings.py +98 -0
- tb_client/models/pdf_report_template_config.py +161 -0
- tb_client/models/platform_two_fa_settings.py +130 -0
- tb_client/models/platform_users_notification_target_config.py +96 -0
- tb_client/models/power_saving_configuration.py +105 -0
- tb_client/models/processing_strategy.py +107 -0
- tb_client/models/proto_transport_payload_configuration.py +101 -0
- tb_client/models/psklw_m2_m_bootstrap_server_credential.py +137 -0
- tb_client/models/qr_code_config.py +107 -0
- tb_client/models/qr_code_settings.py +133 -0
- tb_client/models/qr_code_settings_id.py +90 -0
- tb_client/models/queue.py +134 -0
- tb_client/models/queue_id.py +99 -0
- tb_client/models/queue_stats.py +107 -0
- tb_client/models/queue_stats_id.py +99 -0
- tb_client/models/rate_limits_notification_rule_trigger_config.py +102 -0
- tb_client/models/raw_data_event_filter.py +98 -0
- tb_client/models/referenced_entity_key.py +113 -0
- tb_client/models/relation_entity_type_filter.py +104 -0
- tb_client/models/relation_path_level.py +99 -0
- tb_client/models/relation_path_query_dynamic_source_configuration.py +99 -0
- tb_client/models/relations_query_filter.py +146 -0
- tb_client/models/relations_search_parameters.py +130 -0
- tb_client/models/repeating_alarm_condition_spec.py +95 -0
- tb_client/models/report.py +141 -0
- tb_client/models/report_bar_chart_settings.py +168 -0
- tb_client/models/report_bar_chart_with_labels_settings.py +256 -0
- tb_client/models/report_component.py +169 -0
- tb_client/models/report_doughnut_chart_settings.py +172 -0
- tb_client/models/report_id.py +99 -0
- tb_client/models/report_info.py +151 -0
- tb_client/models/report_job_configuration.py +154 -0
- tb_client/models/report_job_result.py +112 -0
- tb_client/models/report_latest_chart_settings.py +151 -0
- tb_client/models/report_pie_chart_settings.py +180 -0
- tb_client/models/report_range_chart_settings.py +255 -0
- tb_client/models/report_request.py +118 -0
- tb_client/models/report_task_result.py +101 -0
- tb_client/models/report_template.py +151 -0
- tb_client/models/report_template_config.py +151 -0
- tb_client/models/report_template_id.py +99 -0
- tb_client/models/report_template_info.py +149 -0
- tb_client/models/report_time_series_chart_settings.py +222 -0
- tb_client/models/repository_settings.py +119 -0
- tb_client/models/repository_settings_info.py +91 -0
- tb_client/models/reset_password_email_request.py +89 -0
- tb_client/models/reset_password_request.py +91 -0
- tb_client/models/resource_export_data.py +129 -0
- tb_client/models/resources_shortage_notification_rule_trigger_config.py +96 -0
- tb_client/models/rich_text_component.py +121 -0
- tb_client/models/role.py +148 -0
- tb_client/models/role_id.py +99 -0
- tb_client/models/rpc.py +158 -0
- tb_client/models/rpc_id.py +99 -0
- tb_client/models/rpklw_m2_m_bootstrap_server_credential.py +137 -0
- tb_client/models/rule_chain.py +145 -0
- tb_client/models/rule_chain_connection_info.py +104 -0
- tb_client/models/rule_chain_data.py +111 -0
- tb_client/models/rule_chain_debug_event_filter.py +100 -0
- tb_client/models/rule_chain_export_data.py +134 -0
- tb_client/models/rule_chain_id.py +99 -0
- tb_client/models/rule_chain_import_result.py +99 -0
- tb_client/models/rule_chain_meta_data.py +129 -0
- tb_client/models/rule_chain_output_labels_usage.py +115 -0
- tb_client/models/rule_engine_component_lifecycle_event_notification_rule_trigger_config.py +124 -0
- tb_client/models/rule_node.py +142 -0
- tb_client/models/rule_node_debug_event_filter.py +134 -0
- tb_client/models/rule_node_id.py +99 -0
- tb_client/models/save_device_with_credentials_request.py +99 -0
- tb_client/models/save_ota_package_info_request.py +192 -0
- tb_client/models/scheduled_report_info.py +166 -0
- tb_client/models/scheduler_event.py +157 -0
- tb_client/models/scheduler_event_export_data.py +128 -0
- tb_client/models/scheduler_event_filter.py +104 -0
- tb_client/models/scheduler_event_id.py +99 -0
- tb_client/models/scheduler_event_info.py +150 -0
- tb_client/models/scheduler_event_with_customer_info.py +158 -0
- tb_client/models/secret.py +123 -0
- tb_client/models/secret_id.py +99 -0
- tb_client/models/secret_info.py +119 -0
- tb_client/models/security_settings.py +104 -0
- tb_client/models/self_registration_params.py +175 -0
- tb_client/models/share_group_request.py +113 -0
- tb_client/models/shared_attributes_setting_snmp_communication_config.py +99 -0
- tb_client/models/short_customer_info.py +99 -0
- tb_client/models/short_entity_view.py +99 -0
- tb_client/models/sign_up_field.py +100 -0
- tb_client/models/sign_up_request.py +107 -0
- tb_client/models/sign_up_self_registration_params.py +109 -0
- tb_client/models/simple_alarm_condition_spec.py +89 -0
- tb_client/models/simple_calculated_field_configuration.py +112 -0
- tb_client/models/simple_entity.py +91 -0
- tb_client/models/single_entity_filter.py +95 -0
- tb_client/models/single_entity_version_create_request.py +103 -0
- tb_client/models/single_entity_version_load_request.py +107 -0
- tb_client/models/slack_conversation.py +107 -0
- tb_client/models/slack_delivery_method_notification_template.py +91 -0
- tb_client/models/slack_notification_delivery_method_config.py +92 -0
- tb_client/models/slack_notification_target_config.py +108 -0
- tb_client/models/smpp_sms_provider_configuration.py +146 -0
- tb_client/models/sms_delivery_method_notification_template.py +91 -0
- tb_client/models/sms_provider_configuration.py +115 -0
- tb_client/models/sms_two_fa_account_config.py +103 -0
- tb_client/models/sms_two_fa_provider_config.py +104 -0
- tb_client/models/snmp_communication_config.py +131 -0
- tb_client/models/snmp_device_profile_transport_configuration.py +103 -0
- tb_client/models/snmp_device_transport_configuration.py +143 -0
- tb_client/models/snmp_mapping.py +103 -0
- tb_client/models/solution_install_response.py +111 -0
- tb_client/models/specific_time_schedule.py +102 -0
- tb_client/models/split_view_component.py +147 -0
- tb_client/models/starred_dashboard_info.py +96 -0
- tb_client/models/state_entity_filter.py +95 -0
- tb_client/models/state_entity_owner_filter.py +100 -0
- tb_client/models/statistics_event_filter.py +100 -0
- tb_client/models/store_info.py +93 -0
- tb_client/models/string_filter_predicate.py +109 -0
- tb_client/models/sub_report_component.py +108 -0
- tb_client/models/submit_strategy.py +101 -0
- tb_client/models/subscription_info.py +139 -0
- tb_client/models/success.py +92 -0
- tb_client/models/system_administrators_filter.py +89 -0
- tb_client/models/system_info.py +99 -0
- tb_client/models/system_info_data.py +103 -0
- tb_client/models/table_sort_order.py +101 -0
- tb_client/models/task_processing_failure_notification_rule_trigger_config.py +89 -0
- tb_client/models/task_result.py +119 -0
- tb_client/models/tb_chat_request.py +101 -0
- tb_client/models/tb_chat_response.py +112 -0
- tb_client/models/tb_content.py +109 -0
- tb_client/models/tb_image_delete_result.py +116 -0
- tb_client/models/tb_resource.py +182 -0
- tb_client/models/tb_resource_delete_result.py +106 -0
- tb_client/models/tb_resource_id.py +99 -0
- tb_client/models/tb_resource_info.py +178 -0
- tb_client/models/tb_secret_delete_result.py +106 -0
- tb_client/models/tb_text_content.py +92 -0
- tb_client/models/tb_user_message.py +98 -0
- tb_client/models/telemetry_entity_view.py +95 -0
- tb_client/models/telemetry_mapping_configuration.py +124 -0
- tb_client/models/telemetry_querying_snmp_communication_config.py +101 -0
- tb_client/models/tenant.py +136 -0
- tb_client/models/tenant_administrators_filter.py +94 -0
- tb_client/models/tenant_id.py +99 -0
- tb_client/models/tenant_info.py +138 -0
- tb_client/models/tenant_profile.py +111 -0
- tb_client/models/tenant_profile_configuration.py +109 -0
- tb_client/models/tenant_profile_data.py +103 -0
- tb_client/models/tenant_profile_id.py +99 -0
- tb_client/models/tenant_profile_queue_configuration.py +118 -0
- tb_client/models/tenant_solution_template_details.py +117 -0
- tb_client/models/tenant_solution_template_info.py +119 -0
- tb_client/models/tenant_solution_template_instructions.py +109 -0
- tb_client/models/test_sms_request.py +97 -0
- tb_client/models/thingsboard_credentials_expired_response.py +138 -0
- tb_client/models/thingsboard_error_response.py +134 -0
- tb_client/models/time_series_chart_bar_width.py +93 -0
- tb_client/models/time_series_chart_bar_width_settings.py +91 -0
- tb_client/models/time_series_chart_grid_settings.py +95 -0
- tb_client/models/time_series_chart_key_settings.py +123 -0
- tb_client/models/time_series_chart_no_aggregation_bar_width_settings.py +110 -0
- tb_client/models/time_series_chart_state_settings.py +114 -0
- tb_client/models/time_series_chart_threshold.py +187 -0
- tb_client/models/time_series_chart_x_axis_settings.py +134 -0
- tb_client/models/time_series_chart_y_axis_settings.py +148 -0
- tb_client/models/time_series_immediate_output_strategy.py +99 -0
- tb_client/models/time_series_output.py +98 -0
- tb_client/models/time_series_output_strategy.py +112 -0
- tb_client/models/time_series_rule_chain_output_strategy.py +89 -0
- tb_client/models/time_window_configuration.py +101 -0
- tb_client/models/timeseries_chart_component.py +159 -0
- tb_client/models/timeseries_chart_component_all_of_time_series_chart_settings.py +152 -0
- tb_client/models/timeseries_table_component.py +151 -0
- tb_client/models/to_core_edqs_request.py +95 -0
- tb_client/models/to_device_rpc_request_snmp_communication_config.py +99 -0
- tb_client/models/to_server_rpc_request_snmp_communication_config.py +99 -0
- tb_client/models/token.py +91 -0
- tb_client/models/totp_two_fa_account_config.py +103 -0
- tb_client/models/totp_two_fa_provider_config.py +92 -0
- tb_client/models/translation_info.py +97 -0
- tb_client/models/transport_payload_type_configuration.py +112 -0
- tb_client/models/trendz_configuration.py +91 -0
- tb_client/models/trendz_healthcheck_result.py +115 -0
- tb_client/models/trendz_summary.py +99 -0
- tb_client/models/trendz_synchronization_result.py +115 -0
- tb_client/models/trendz_usage.py +121 -0
- tb_client/models/trendz_view_config.py +94 -0
- tb_client/models/trendz_view_config_lite.py +92 -0
- tb_client/models/ts_value.py +93 -0
- tb_client/models/twilio_sms_provider_configuration.py +95 -0
- tb_client/models/two_fa_account_config.py +119 -0
- tb_client/models/two_fa_account_config_update_request.py +89 -0
- tb_client/models/two_fa_provider_config.py +118 -0
- tb_client/models/two_fa_provider_info.py +107 -0
- tb_client/models/update_message.py +99 -0
- tb_client/models/usage_info.py +141 -0
- tb_client/models/user.py +157 -0
- tb_client/models/user_activation_link.py +91 -0
- tb_client/models/user_dashboards_info.py +111 -0
- tb_client/models/user_email_info.py +99 -0
- tb_client/models/user_group_list_filter.py +93 -0
- tb_client/models/user_id.py +99 -0
- tb_client/models/user_info.py +173 -0
- tb_client/models/user_list_filter.py +93 -0
- tb_client/models/user_mobile_info.py +118 -0
- tb_client/models/user_notification_settings.py +102 -0
- tb_client/models/user_password_policy.py +107 -0
- tb_client/models/user_role_filter.py +93 -0
- tb_client/models/users_filter.py +136 -0
- tb_client/models/v2_captcha_params.py +95 -0
- tb_client/models/v3_captcha_params.py +95 -0
- tb_client/models/vendor.py +91 -0
- tb_client/models/version_create_config.py +99 -0
- tb_client/models/version_create_request.py +124 -0
- tb_client/models/version_creation_result.py +103 -0
- tb_client/models/version_load_config.py +101 -0
- tb_client/models/version_load_request.py +123 -0
- tb_client/models/version_load_result.py +105 -0
- tb_client/models/versioned_entity_info.py +95 -0
- tb_client/models/web_delivery_method_notification_template.py +101 -0
- tb_client/models/web_self_registration_params.py +165 -0
- tb_client/models/web_view_page.py +97 -0
- tb_client/models/white_labeling.py +124 -0
- tb_client/models/white_labeling_params.py +127 -0
- tb_client/models/widget_bundle_info.py +95 -0
- tb_client/models/widget_type.py +128 -0
- tb_client/models/widget_type_details.py +144 -0
- tb_client/models/widget_type_export_data.py +128 -0
- tb_client/models/widget_type_id.py +99 -0
- tb_client/models/widget_type_info.py +147 -0
- tb_client/models/widgets_bundle.py +135 -0
- tb_client/models/widgets_bundle_export_data.py +132 -0
- tb_client/models/widgets_bundle_id.py +99 -0
- tb_client/models/x509_certificate_chain_provision_configuration.py +94 -0
- tb_client/models/x509_lw_m2_m_bootstrap_server_credential.py +137 -0
- tb_client/py.typed +0 -0
- tb_client/rest.py +264 -0
- tbctl/__init__.py +0 -0
- tbctl/cli.py +36 -0
- tbctl/commands/__init__.py +0 -0
- tbctl/commands/_client.py +252 -0
- tbctl/commands/attributes.py +70 -0
- tbctl/commands/config_cmd.py +73 -0
- tbctl/commands/device.py +223 -0
- tbctl/commands/ota.py +562 -0
- tbctl/commands/telemetry.py +273 -0
- tbctl/config.py +31 -0
- tbctl-0.2.0.dist-info/METADATA +201 -0
- tbctl-0.2.0.dist-info/RECORD +829 -0
- tbctl-0.2.0.dist-info/WHEEL +4 -0
- tbctl-0.2.0.dist-info/entry_points.txt +2 -0
- tbctl-0.2.0.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,1638 @@
|
|
|
1
|
+
"""
|
|
2
|
+
ThingsBoard REST API
|
|
3
|
+
|
|
4
|
+
ThingsBoard Professional Edition IoT platform REST API documentation.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 4.3.0.1PE
|
|
7
|
+
Contact: info@thingsboard.io
|
|
8
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
9
|
+
|
|
10
|
+
Do not edit the class manually.
|
|
11
|
+
""" # noqa: E501
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from tb_client.models.trendz_configuration import TrendzConfiguration
|
|
20
|
+
from tb_client.models.trendz_healthcheck_result import TrendzHealthcheckResult
|
|
21
|
+
from tb_client.models.trendz_synchronization_result import TrendzSynchronizationResult
|
|
22
|
+
|
|
23
|
+
from tb_client.api_client import ApiClient, RequestSerialized
|
|
24
|
+
from tb_client.api_response import ApiResponse
|
|
25
|
+
from tb_client.rest import RESTResponseType
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class TrendzControllerApi:
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None) -> None:
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient.get_default()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@validate_call
|
|
42
|
+
def connect_to_trendz(
|
|
43
|
+
self,
|
|
44
|
+
_request_timeout: Union[
|
|
45
|
+
None,
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Tuple[
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
50
|
+
]
|
|
51
|
+
] = None,
|
|
52
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_content_type: Optional[StrictStr] = None,
|
|
54
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
55
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
56
|
+
) -> TrendzSynchronizationResult:
|
|
57
|
+
"""Connect to Trendz (connectToTrendz)
|
|
58
|
+
|
|
59
|
+
Initiates synchronization with Trendz (Connect button action). Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync. Available for users with 'SYS_ADMIN' authority.
|
|
60
|
+
|
|
61
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
62
|
+
number provided, it will be total request
|
|
63
|
+
timeout. It can also be a pair (tuple) of
|
|
64
|
+
(connection, read) timeouts.
|
|
65
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
66
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
67
|
+
request; this effectively ignores the
|
|
68
|
+
authentication in the spec for a single request.
|
|
69
|
+
:type _request_auth: dict, optional
|
|
70
|
+
:param _content_type: force content-type for the request.
|
|
71
|
+
:type _content_type: str, Optional
|
|
72
|
+
:param _headers: set to override the headers for a single
|
|
73
|
+
request; this effectively ignores the headers
|
|
74
|
+
in the spec for a single request.
|
|
75
|
+
:type _headers: dict, optional
|
|
76
|
+
:param _host_index: set to override the host_index for a single
|
|
77
|
+
request; this effectively ignores the host_index
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _host_index: int, optional
|
|
80
|
+
:return: Returns the result object.
|
|
81
|
+
""" # noqa: E501
|
|
82
|
+
|
|
83
|
+
_param = self._connect_to_trendz_serialize(
|
|
84
|
+
_request_auth=_request_auth,
|
|
85
|
+
_content_type=_content_type,
|
|
86
|
+
_headers=_headers,
|
|
87
|
+
_host_index=_host_index
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
91
|
+
'200': "TrendzSynchronizationResult",
|
|
92
|
+
'400': "ThingsboardErrorResponse",
|
|
93
|
+
'401': "ThingsboardErrorResponse",
|
|
94
|
+
'403': "ThingsboardErrorResponse",
|
|
95
|
+
'404': "ThingsboardErrorResponse",
|
|
96
|
+
'429': "ThingsboardErrorResponse",
|
|
97
|
+
}
|
|
98
|
+
response_data = self.api_client.call_api(
|
|
99
|
+
*_param,
|
|
100
|
+
_request_timeout=_request_timeout
|
|
101
|
+
)
|
|
102
|
+
response_data.read()
|
|
103
|
+
return self.api_client.response_deserialize(
|
|
104
|
+
response_data=response_data,
|
|
105
|
+
response_types_map=_response_types_map,
|
|
106
|
+
).data
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@validate_call
|
|
110
|
+
def connect_to_trendz_with_http_info(
|
|
111
|
+
self,
|
|
112
|
+
_request_timeout: Union[
|
|
113
|
+
None,
|
|
114
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
115
|
+
Tuple[
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
118
|
+
]
|
|
119
|
+
] = None,
|
|
120
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
121
|
+
_content_type: Optional[StrictStr] = None,
|
|
122
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
124
|
+
) -> ApiResponse[TrendzSynchronizationResult]:
|
|
125
|
+
"""Connect to Trendz (connectToTrendz)
|
|
126
|
+
|
|
127
|
+
Initiates synchronization with Trendz (Connect button action). Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync. Available for users with 'SYS_ADMIN' authority.
|
|
128
|
+
|
|
129
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
130
|
+
number provided, it will be total request
|
|
131
|
+
timeout. It can also be a pair (tuple) of
|
|
132
|
+
(connection, read) timeouts.
|
|
133
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
134
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
135
|
+
request; this effectively ignores the
|
|
136
|
+
authentication in the spec for a single request.
|
|
137
|
+
:type _request_auth: dict, optional
|
|
138
|
+
:param _content_type: force content-type for the request.
|
|
139
|
+
:type _content_type: str, Optional
|
|
140
|
+
:param _headers: set to override the headers for a single
|
|
141
|
+
request; this effectively ignores the headers
|
|
142
|
+
in the spec for a single request.
|
|
143
|
+
:type _headers: dict, optional
|
|
144
|
+
:param _host_index: set to override the host_index for a single
|
|
145
|
+
request; this effectively ignores the host_index
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
:type _host_index: int, optional
|
|
148
|
+
:return: Returns the result object.
|
|
149
|
+
""" # noqa: E501
|
|
150
|
+
|
|
151
|
+
_param = self._connect_to_trendz_serialize(
|
|
152
|
+
_request_auth=_request_auth,
|
|
153
|
+
_content_type=_content_type,
|
|
154
|
+
_headers=_headers,
|
|
155
|
+
_host_index=_host_index
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
159
|
+
'200': "TrendzSynchronizationResult",
|
|
160
|
+
'400': "ThingsboardErrorResponse",
|
|
161
|
+
'401': "ThingsboardErrorResponse",
|
|
162
|
+
'403': "ThingsboardErrorResponse",
|
|
163
|
+
'404': "ThingsboardErrorResponse",
|
|
164
|
+
'429': "ThingsboardErrorResponse",
|
|
165
|
+
}
|
|
166
|
+
response_data = self.api_client.call_api(
|
|
167
|
+
*_param,
|
|
168
|
+
_request_timeout=_request_timeout
|
|
169
|
+
)
|
|
170
|
+
response_data.read()
|
|
171
|
+
return self.api_client.response_deserialize(
|
|
172
|
+
response_data=response_data,
|
|
173
|
+
response_types_map=_response_types_map,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
@validate_call
|
|
178
|
+
def connect_to_trendz_without_preload_content(
|
|
179
|
+
self,
|
|
180
|
+
_request_timeout: Union[
|
|
181
|
+
None,
|
|
182
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
183
|
+
Tuple[
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
186
|
+
]
|
|
187
|
+
] = None,
|
|
188
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
189
|
+
_content_type: Optional[StrictStr] = None,
|
|
190
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
191
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
192
|
+
) -> RESTResponseType:
|
|
193
|
+
"""Connect to Trendz (connectToTrendz)
|
|
194
|
+
|
|
195
|
+
Initiates synchronization with Trendz (Connect button action). Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync. Available for users with 'SYS_ADMIN' authority.
|
|
196
|
+
|
|
197
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
198
|
+
number provided, it will be total request
|
|
199
|
+
timeout. It can also be a pair (tuple) of
|
|
200
|
+
(connection, read) timeouts.
|
|
201
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
202
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
203
|
+
request; this effectively ignores the
|
|
204
|
+
authentication in the spec for a single request.
|
|
205
|
+
:type _request_auth: dict, optional
|
|
206
|
+
:param _content_type: force content-type for the request.
|
|
207
|
+
:type _content_type: str, Optional
|
|
208
|
+
:param _headers: set to override the headers for a single
|
|
209
|
+
request; this effectively ignores the headers
|
|
210
|
+
in the spec for a single request.
|
|
211
|
+
:type _headers: dict, optional
|
|
212
|
+
:param _host_index: set to override the host_index for a single
|
|
213
|
+
request; this effectively ignores the host_index
|
|
214
|
+
in the spec for a single request.
|
|
215
|
+
:type _host_index: int, optional
|
|
216
|
+
:return: Returns the result object.
|
|
217
|
+
""" # noqa: E501
|
|
218
|
+
|
|
219
|
+
_param = self._connect_to_trendz_serialize(
|
|
220
|
+
_request_auth=_request_auth,
|
|
221
|
+
_content_type=_content_type,
|
|
222
|
+
_headers=_headers,
|
|
223
|
+
_host_index=_host_index
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
227
|
+
'200': "TrendzSynchronizationResult",
|
|
228
|
+
'400': "ThingsboardErrorResponse",
|
|
229
|
+
'401': "ThingsboardErrorResponse",
|
|
230
|
+
'403': "ThingsboardErrorResponse",
|
|
231
|
+
'404': "ThingsboardErrorResponse",
|
|
232
|
+
'429': "ThingsboardErrorResponse",
|
|
233
|
+
}
|
|
234
|
+
response_data = self.api_client.call_api(
|
|
235
|
+
*_param,
|
|
236
|
+
_request_timeout=_request_timeout
|
|
237
|
+
)
|
|
238
|
+
return response_data.response
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def _connect_to_trendz_serialize(
|
|
242
|
+
self,
|
|
243
|
+
_request_auth,
|
|
244
|
+
_content_type,
|
|
245
|
+
_headers,
|
|
246
|
+
_host_index,
|
|
247
|
+
) -> RequestSerialized:
|
|
248
|
+
|
|
249
|
+
_host = None
|
|
250
|
+
|
|
251
|
+
_collection_formats: Dict[str, str] = {
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
_path_params: Dict[str, str] = {}
|
|
255
|
+
_query_params: List[Tuple[str, str]] = []
|
|
256
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
257
|
+
_form_params: List[Tuple[str, str]] = []
|
|
258
|
+
_files: Dict[
|
|
259
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
260
|
+
] = {}
|
|
261
|
+
_body_params: Optional[bytes] = None
|
|
262
|
+
|
|
263
|
+
# process the path parameters
|
|
264
|
+
# process the query parameters
|
|
265
|
+
# process the header parameters
|
|
266
|
+
# process the form parameters
|
|
267
|
+
# process the body parameter
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
# set the HTTP header `Accept`
|
|
271
|
+
if 'Accept' not in _header_params:
|
|
272
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
273
|
+
[
|
|
274
|
+
'application/json'
|
|
275
|
+
]
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
# authentication setting
|
|
280
|
+
_auth_settings: List[str] = [
|
|
281
|
+
'HTTP login form',
|
|
282
|
+
'API key form'
|
|
283
|
+
]
|
|
284
|
+
|
|
285
|
+
return self.api_client.param_serialize(
|
|
286
|
+
method='POST',
|
|
287
|
+
resource_path='/api/trendz/connect',
|
|
288
|
+
path_params=_path_params,
|
|
289
|
+
query_params=_query_params,
|
|
290
|
+
header_params=_header_params,
|
|
291
|
+
body=_body_params,
|
|
292
|
+
post_params=_form_params,
|
|
293
|
+
files=_files,
|
|
294
|
+
auth_settings=_auth_settings,
|
|
295
|
+
collection_formats=_collection_formats,
|
|
296
|
+
_host=_host,
|
|
297
|
+
_request_auth=_request_auth
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
@validate_call
|
|
304
|
+
def get_trendz_config(
|
|
305
|
+
self,
|
|
306
|
+
_request_timeout: Union[
|
|
307
|
+
None,
|
|
308
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
309
|
+
Tuple[
|
|
310
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
311
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
312
|
+
]
|
|
313
|
+
] = None,
|
|
314
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
315
|
+
_content_type: Optional[StrictStr] = None,
|
|
316
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
317
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
318
|
+
) -> TrendzConfiguration:
|
|
319
|
+
"""Get Trendz configuration (getTrendzConfig)
|
|
320
|
+
|
|
321
|
+
Retrieves Trendz configuration (URLs). Returns trendzUrl and tbUrl. Available for users with 'SYS_ADMIN' authority.
|
|
322
|
+
|
|
323
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
324
|
+
number provided, it will be total request
|
|
325
|
+
timeout. It can also be a pair (tuple) of
|
|
326
|
+
(connection, read) timeouts.
|
|
327
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
328
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
329
|
+
request; this effectively ignores the
|
|
330
|
+
authentication in the spec for a single request.
|
|
331
|
+
:type _request_auth: dict, optional
|
|
332
|
+
:param _content_type: force content-type for the request.
|
|
333
|
+
:type _content_type: str, Optional
|
|
334
|
+
:param _headers: set to override the headers for a single
|
|
335
|
+
request; this effectively ignores the headers
|
|
336
|
+
in the spec for a single request.
|
|
337
|
+
:type _headers: dict, optional
|
|
338
|
+
:param _host_index: set to override the host_index for a single
|
|
339
|
+
request; this effectively ignores the host_index
|
|
340
|
+
in the spec for a single request.
|
|
341
|
+
:type _host_index: int, optional
|
|
342
|
+
:return: Returns the result object.
|
|
343
|
+
""" # noqa: E501
|
|
344
|
+
|
|
345
|
+
_param = self._get_trendz_config_serialize(
|
|
346
|
+
_request_auth=_request_auth,
|
|
347
|
+
_content_type=_content_type,
|
|
348
|
+
_headers=_headers,
|
|
349
|
+
_host_index=_host_index
|
|
350
|
+
)
|
|
351
|
+
|
|
352
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
353
|
+
'200': "TrendzConfiguration",
|
|
354
|
+
'400': "ThingsboardErrorResponse",
|
|
355
|
+
'401': "ThingsboardErrorResponse",
|
|
356
|
+
'403': "ThingsboardErrorResponse",
|
|
357
|
+
'404': "ThingsboardErrorResponse",
|
|
358
|
+
'429': "ThingsboardErrorResponse",
|
|
359
|
+
}
|
|
360
|
+
response_data = self.api_client.call_api(
|
|
361
|
+
*_param,
|
|
362
|
+
_request_timeout=_request_timeout
|
|
363
|
+
)
|
|
364
|
+
response_data.read()
|
|
365
|
+
return self.api_client.response_deserialize(
|
|
366
|
+
response_data=response_data,
|
|
367
|
+
response_types_map=_response_types_map,
|
|
368
|
+
).data
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
@validate_call
|
|
372
|
+
def get_trendz_config_with_http_info(
|
|
373
|
+
self,
|
|
374
|
+
_request_timeout: Union[
|
|
375
|
+
None,
|
|
376
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
377
|
+
Tuple[
|
|
378
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
379
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
380
|
+
]
|
|
381
|
+
] = None,
|
|
382
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
383
|
+
_content_type: Optional[StrictStr] = None,
|
|
384
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
385
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
386
|
+
) -> ApiResponse[TrendzConfiguration]:
|
|
387
|
+
"""Get Trendz configuration (getTrendzConfig)
|
|
388
|
+
|
|
389
|
+
Retrieves Trendz configuration (URLs). Returns trendzUrl and tbUrl. Available for users with 'SYS_ADMIN' authority.
|
|
390
|
+
|
|
391
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
392
|
+
number provided, it will be total request
|
|
393
|
+
timeout. It can also be a pair (tuple) of
|
|
394
|
+
(connection, read) timeouts.
|
|
395
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
396
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
397
|
+
request; this effectively ignores the
|
|
398
|
+
authentication in the spec for a single request.
|
|
399
|
+
:type _request_auth: dict, optional
|
|
400
|
+
:param _content_type: force content-type for the request.
|
|
401
|
+
:type _content_type: str, Optional
|
|
402
|
+
:param _headers: set to override the headers for a single
|
|
403
|
+
request; this effectively ignores the headers
|
|
404
|
+
in the spec for a single request.
|
|
405
|
+
:type _headers: dict, optional
|
|
406
|
+
:param _host_index: set to override the host_index for a single
|
|
407
|
+
request; this effectively ignores the host_index
|
|
408
|
+
in the spec for a single request.
|
|
409
|
+
:type _host_index: int, optional
|
|
410
|
+
:return: Returns the result object.
|
|
411
|
+
""" # noqa: E501
|
|
412
|
+
|
|
413
|
+
_param = self._get_trendz_config_serialize(
|
|
414
|
+
_request_auth=_request_auth,
|
|
415
|
+
_content_type=_content_type,
|
|
416
|
+
_headers=_headers,
|
|
417
|
+
_host_index=_host_index
|
|
418
|
+
)
|
|
419
|
+
|
|
420
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
421
|
+
'200': "TrendzConfiguration",
|
|
422
|
+
'400': "ThingsboardErrorResponse",
|
|
423
|
+
'401': "ThingsboardErrorResponse",
|
|
424
|
+
'403': "ThingsboardErrorResponse",
|
|
425
|
+
'404': "ThingsboardErrorResponse",
|
|
426
|
+
'429': "ThingsboardErrorResponse",
|
|
427
|
+
}
|
|
428
|
+
response_data = self.api_client.call_api(
|
|
429
|
+
*_param,
|
|
430
|
+
_request_timeout=_request_timeout
|
|
431
|
+
)
|
|
432
|
+
response_data.read()
|
|
433
|
+
return self.api_client.response_deserialize(
|
|
434
|
+
response_data=response_data,
|
|
435
|
+
response_types_map=_response_types_map,
|
|
436
|
+
)
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
@validate_call
|
|
440
|
+
def get_trendz_config_without_preload_content(
|
|
441
|
+
self,
|
|
442
|
+
_request_timeout: Union[
|
|
443
|
+
None,
|
|
444
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
445
|
+
Tuple[
|
|
446
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
447
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
448
|
+
]
|
|
449
|
+
] = None,
|
|
450
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
451
|
+
_content_type: Optional[StrictStr] = None,
|
|
452
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
453
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
454
|
+
) -> RESTResponseType:
|
|
455
|
+
"""Get Trendz configuration (getTrendzConfig)
|
|
456
|
+
|
|
457
|
+
Retrieves Trendz configuration (URLs). Returns trendzUrl and tbUrl. Available for users with 'SYS_ADMIN' authority.
|
|
458
|
+
|
|
459
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
460
|
+
number provided, it will be total request
|
|
461
|
+
timeout. It can also be a pair (tuple) of
|
|
462
|
+
(connection, read) timeouts.
|
|
463
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
464
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
465
|
+
request; this effectively ignores the
|
|
466
|
+
authentication in the spec for a single request.
|
|
467
|
+
:type _request_auth: dict, optional
|
|
468
|
+
:param _content_type: force content-type for the request.
|
|
469
|
+
:type _content_type: str, Optional
|
|
470
|
+
:param _headers: set to override the headers for a single
|
|
471
|
+
request; this effectively ignores the headers
|
|
472
|
+
in the spec for a single request.
|
|
473
|
+
:type _headers: dict, optional
|
|
474
|
+
:param _host_index: set to override the host_index for a single
|
|
475
|
+
request; this effectively ignores the host_index
|
|
476
|
+
in the spec for a single request.
|
|
477
|
+
:type _host_index: int, optional
|
|
478
|
+
:return: Returns the result object.
|
|
479
|
+
""" # noqa: E501
|
|
480
|
+
|
|
481
|
+
_param = self._get_trendz_config_serialize(
|
|
482
|
+
_request_auth=_request_auth,
|
|
483
|
+
_content_type=_content_type,
|
|
484
|
+
_headers=_headers,
|
|
485
|
+
_host_index=_host_index
|
|
486
|
+
)
|
|
487
|
+
|
|
488
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
489
|
+
'200': "TrendzConfiguration",
|
|
490
|
+
'400': "ThingsboardErrorResponse",
|
|
491
|
+
'401': "ThingsboardErrorResponse",
|
|
492
|
+
'403': "ThingsboardErrorResponse",
|
|
493
|
+
'404': "ThingsboardErrorResponse",
|
|
494
|
+
'429': "ThingsboardErrorResponse",
|
|
495
|
+
}
|
|
496
|
+
response_data = self.api_client.call_api(
|
|
497
|
+
*_param,
|
|
498
|
+
_request_timeout=_request_timeout
|
|
499
|
+
)
|
|
500
|
+
return response_data.response
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
def _get_trendz_config_serialize(
|
|
504
|
+
self,
|
|
505
|
+
_request_auth,
|
|
506
|
+
_content_type,
|
|
507
|
+
_headers,
|
|
508
|
+
_host_index,
|
|
509
|
+
) -> RequestSerialized:
|
|
510
|
+
|
|
511
|
+
_host = None
|
|
512
|
+
|
|
513
|
+
_collection_formats: Dict[str, str] = {
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
_path_params: Dict[str, str] = {}
|
|
517
|
+
_query_params: List[Tuple[str, str]] = []
|
|
518
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
519
|
+
_form_params: List[Tuple[str, str]] = []
|
|
520
|
+
_files: Dict[
|
|
521
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
522
|
+
] = {}
|
|
523
|
+
_body_params: Optional[bytes] = None
|
|
524
|
+
|
|
525
|
+
# process the path parameters
|
|
526
|
+
# process the query parameters
|
|
527
|
+
# process the header parameters
|
|
528
|
+
# process the form parameters
|
|
529
|
+
# process the body parameter
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
# set the HTTP header `Accept`
|
|
533
|
+
if 'Accept' not in _header_params:
|
|
534
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
535
|
+
[
|
|
536
|
+
'application/json'
|
|
537
|
+
]
|
|
538
|
+
)
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
# authentication setting
|
|
542
|
+
_auth_settings: List[str] = [
|
|
543
|
+
'HTTP login form',
|
|
544
|
+
'API key form'
|
|
545
|
+
]
|
|
546
|
+
|
|
547
|
+
return self.api_client.param_serialize(
|
|
548
|
+
method='GET',
|
|
549
|
+
resource_path='/api/trendz/config',
|
|
550
|
+
path_params=_path_params,
|
|
551
|
+
query_params=_query_params,
|
|
552
|
+
header_params=_header_params,
|
|
553
|
+
body=_body_params,
|
|
554
|
+
post_params=_form_params,
|
|
555
|
+
files=_files,
|
|
556
|
+
auth_settings=_auth_settings,
|
|
557
|
+
collection_formats=_collection_formats,
|
|
558
|
+
_host=_host,
|
|
559
|
+
_request_auth=_request_auth
|
|
560
|
+
)
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
@validate_call
|
|
566
|
+
def get_trendz_sync_result(
|
|
567
|
+
self,
|
|
568
|
+
_request_timeout: Union[
|
|
569
|
+
None,
|
|
570
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
571
|
+
Tuple[
|
|
572
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
573
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
574
|
+
]
|
|
575
|
+
] = None,
|
|
576
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
577
|
+
_content_type: Optional[StrictStr] = None,
|
|
578
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
579
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
580
|
+
) -> TrendzSynchronizationResult:
|
|
581
|
+
"""Get Trendz synchronization result (getTrendzSyncResult)
|
|
582
|
+
|
|
583
|
+
Retrieves Trendz synchronization result and status. Returns trendzVersion, updatedTs, resultType, and status. Available for any authorized user.
|
|
584
|
+
|
|
585
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
586
|
+
number provided, it will be total request
|
|
587
|
+
timeout. It can also be a pair (tuple) of
|
|
588
|
+
(connection, read) timeouts.
|
|
589
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
590
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
591
|
+
request; this effectively ignores the
|
|
592
|
+
authentication in the spec for a single request.
|
|
593
|
+
:type _request_auth: dict, optional
|
|
594
|
+
:param _content_type: force content-type for the request.
|
|
595
|
+
:type _content_type: str, Optional
|
|
596
|
+
:param _headers: set to override the headers for a single
|
|
597
|
+
request; this effectively ignores the headers
|
|
598
|
+
in the spec for a single request.
|
|
599
|
+
:type _headers: dict, optional
|
|
600
|
+
:param _host_index: set to override the host_index for a single
|
|
601
|
+
request; this effectively ignores the host_index
|
|
602
|
+
in the spec for a single request.
|
|
603
|
+
:type _host_index: int, optional
|
|
604
|
+
:return: Returns the result object.
|
|
605
|
+
""" # noqa: E501
|
|
606
|
+
|
|
607
|
+
_param = self._get_trendz_sync_result_serialize(
|
|
608
|
+
_request_auth=_request_auth,
|
|
609
|
+
_content_type=_content_type,
|
|
610
|
+
_headers=_headers,
|
|
611
|
+
_host_index=_host_index
|
|
612
|
+
)
|
|
613
|
+
|
|
614
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
615
|
+
'200': "TrendzSynchronizationResult",
|
|
616
|
+
'400': "ThingsboardErrorResponse",
|
|
617
|
+
'401': "ThingsboardErrorResponse",
|
|
618
|
+
'403': "ThingsboardErrorResponse",
|
|
619
|
+
'404': "ThingsboardErrorResponse",
|
|
620
|
+
'429': "ThingsboardErrorResponse",
|
|
621
|
+
}
|
|
622
|
+
response_data = self.api_client.call_api(
|
|
623
|
+
*_param,
|
|
624
|
+
_request_timeout=_request_timeout
|
|
625
|
+
)
|
|
626
|
+
response_data.read()
|
|
627
|
+
return self.api_client.response_deserialize(
|
|
628
|
+
response_data=response_data,
|
|
629
|
+
response_types_map=_response_types_map,
|
|
630
|
+
).data
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
@validate_call
|
|
634
|
+
def get_trendz_sync_result_with_http_info(
|
|
635
|
+
self,
|
|
636
|
+
_request_timeout: Union[
|
|
637
|
+
None,
|
|
638
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
639
|
+
Tuple[
|
|
640
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
641
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
642
|
+
]
|
|
643
|
+
] = None,
|
|
644
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
645
|
+
_content_type: Optional[StrictStr] = None,
|
|
646
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
647
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
648
|
+
) -> ApiResponse[TrendzSynchronizationResult]:
|
|
649
|
+
"""Get Trendz synchronization result (getTrendzSyncResult)
|
|
650
|
+
|
|
651
|
+
Retrieves Trendz synchronization result and status. Returns trendzVersion, updatedTs, resultType, and status. Available for any authorized user.
|
|
652
|
+
|
|
653
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
654
|
+
number provided, it will be total request
|
|
655
|
+
timeout. It can also be a pair (tuple) of
|
|
656
|
+
(connection, read) timeouts.
|
|
657
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
658
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
659
|
+
request; this effectively ignores the
|
|
660
|
+
authentication in the spec for a single request.
|
|
661
|
+
:type _request_auth: dict, optional
|
|
662
|
+
:param _content_type: force content-type for the request.
|
|
663
|
+
:type _content_type: str, Optional
|
|
664
|
+
:param _headers: set to override the headers for a single
|
|
665
|
+
request; this effectively ignores the headers
|
|
666
|
+
in the spec for a single request.
|
|
667
|
+
:type _headers: dict, optional
|
|
668
|
+
:param _host_index: set to override the host_index for a single
|
|
669
|
+
request; this effectively ignores the host_index
|
|
670
|
+
in the spec for a single request.
|
|
671
|
+
:type _host_index: int, optional
|
|
672
|
+
:return: Returns the result object.
|
|
673
|
+
""" # noqa: E501
|
|
674
|
+
|
|
675
|
+
_param = self._get_trendz_sync_result_serialize(
|
|
676
|
+
_request_auth=_request_auth,
|
|
677
|
+
_content_type=_content_type,
|
|
678
|
+
_headers=_headers,
|
|
679
|
+
_host_index=_host_index
|
|
680
|
+
)
|
|
681
|
+
|
|
682
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
683
|
+
'200': "TrendzSynchronizationResult",
|
|
684
|
+
'400': "ThingsboardErrorResponse",
|
|
685
|
+
'401': "ThingsboardErrorResponse",
|
|
686
|
+
'403': "ThingsboardErrorResponse",
|
|
687
|
+
'404': "ThingsboardErrorResponse",
|
|
688
|
+
'429': "ThingsboardErrorResponse",
|
|
689
|
+
}
|
|
690
|
+
response_data = self.api_client.call_api(
|
|
691
|
+
*_param,
|
|
692
|
+
_request_timeout=_request_timeout
|
|
693
|
+
)
|
|
694
|
+
response_data.read()
|
|
695
|
+
return self.api_client.response_deserialize(
|
|
696
|
+
response_data=response_data,
|
|
697
|
+
response_types_map=_response_types_map,
|
|
698
|
+
)
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
@validate_call
|
|
702
|
+
def get_trendz_sync_result_without_preload_content(
|
|
703
|
+
self,
|
|
704
|
+
_request_timeout: Union[
|
|
705
|
+
None,
|
|
706
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
707
|
+
Tuple[
|
|
708
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
709
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
710
|
+
]
|
|
711
|
+
] = None,
|
|
712
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
713
|
+
_content_type: Optional[StrictStr] = None,
|
|
714
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
715
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
716
|
+
) -> RESTResponseType:
|
|
717
|
+
"""Get Trendz synchronization result (getTrendzSyncResult)
|
|
718
|
+
|
|
719
|
+
Retrieves Trendz synchronization result and status. Returns trendzVersion, updatedTs, resultType, and status. Available for any authorized user.
|
|
720
|
+
|
|
721
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
722
|
+
number provided, it will be total request
|
|
723
|
+
timeout. It can also be a pair (tuple) of
|
|
724
|
+
(connection, read) timeouts.
|
|
725
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
726
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
727
|
+
request; this effectively ignores the
|
|
728
|
+
authentication in the spec for a single request.
|
|
729
|
+
:type _request_auth: dict, optional
|
|
730
|
+
:param _content_type: force content-type for the request.
|
|
731
|
+
:type _content_type: str, Optional
|
|
732
|
+
:param _headers: set to override the headers for a single
|
|
733
|
+
request; this effectively ignores the headers
|
|
734
|
+
in the spec for a single request.
|
|
735
|
+
:type _headers: dict, optional
|
|
736
|
+
:param _host_index: set to override the host_index for a single
|
|
737
|
+
request; this effectively ignores the host_index
|
|
738
|
+
in the spec for a single request.
|
|
739
|
+
:type _host_index: int, optional
|
|
740
|
+
:return: Returns the result object.
|
|
741
|
+
""" # noqa: E501
|
|
742
|
+
|
|
743
|
+
_param = self._get_trendz_sync_result_serialize(
|
|
744
|
+
_request_auth=_request_auth,
|
|
745
|
+
_content_type=_content_type,
|
|
746
|
+
_headers=_headers,
|
|
747
|
+
_host_index=_host_index
|
|
748
|
+
)
|
|
749
|
+
|
|
750
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
751
|
+
'200': "TrendzSynchronizationResult",
|
|
752
|
+
'400': "ThingsboardErrorResponse",
|
|
753
|
+
'401': "ThingsboardErrorResponse",
|
|
754
|
+
'403': "ThingsboardErrorResponse",
|
|
755
|
+
'404': "ThingsboardErrorResponse",
|
|
756
|
+
'429': "ThingsboardErrorResponse",
|
|
757
|
+
}
|
|
758
|
+
response_data = self.api_client.call_api(
|
|
759
|
+
*_param,
|
|
760
|
+
_request_timeout=_request_timeout
|
|
761
|
+
)
|
|
762
|
+
return response_data.response
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
def _get_trendz_sync_result_serialize(
|
|
766
|
+
self,
|
|
767
|
+
_request_auth,
|
|
768
|
+
_content_type,
|
|
769
|
+
_headers,
|
|
770
|
+
_host_index,
|
|
771
|
+
) -> RequestSerialized:
|
|
772
|
+
|
|
773
|
+
_host = None
|
|
774
|
+
|
|
775
|
+
_collection_formats: Dict[str, str] = {
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
_path_params: Dict[str, str] = {}
|
|
779
|
+
_query_params: List[Tuple[str, str]] = []
|
|
780
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
781
|
+
_form_params: List[Tuple[str, str]] = []
|
|
782
|
+
_files: Dict[
|
|
783
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
784
|
+
] = {}
|
|
785
|
+
_body_params: Optional[bytes] = None
|
|
786
|
+
|
|
787
|
+
# process the path parameters
|
|
788
|
+
# process the query parameters
|
|
789
|
+
# process the header parameters
|
|
790
|
+
# process the form parameters
|
|
791
|
+
# process the body parameter
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
# set the HTTP header `Accept`
|
|
795
|
+
if 'Accept' not in _header_params:
|
|
796
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
797
|
+
[
|
|
798
|
+
'application/json'
|
|
799
|
+
]
|
|
800
|
+
)
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
# authentication setting
|
|
804
|
+
_auth_settings: List[str] = [
|
|
805
|
+
'HTTP login form',
|
|
806
|
+
'API key form'
|
|
807
|
+
]
|
|
808
|
+
|
|
809
|
+
return self.api_client.param_serialize(
|
|
810
|
+
method='GET',
|
|
811
|
+
resource_path='/api/trendz/sync',
|
|
812
|
+
path_params=_path_params,
|
|
813
|
+
query_params=_query_params,
|
|
814
|
+
header_params=_header_params,
|
|
815
|
+
body=_body_params,
|
|
816
|
+
post_params=_form_params,
|
|
817
|
+
files=_files,
|
|
818
|
+
auth_settings=_auth_settings,
|
|
819
|
+
collection_formats=_collection_formats,
|
|
820
|
+
_host=_host,
|
|
821
|
+
_request_auth=_request_auth
|
|
822
|
+
)
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
@validate_call
|
|
828
|
+
def perform_trendz_healthcheck(
|
|
829
|
+
self,
|
|
830
|
+
_request_timeout: Union[
|
|
831
|
+
None,
|
|
832
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
833
|
+
Tuple[
|
|
834
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
835
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
836
|
+
]
|
|
837
|
+
] = None,
|
|
838
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
839
|
+
_content_type: Optional[StrictStr] = None,
|
|
840
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
841
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
842
|
+
) -> TrendzHealthcheckResult:
|
|
843
|
+
"""Perform Trendz healthcheck (performTrendzHealthcheck)
|
|
844
|
+
|
|
845
|
+
Performs healthcheck for Trendz integration. Returns version, type, status, and message. Can only be performed if Trendz is already synchronized and integration is enabled. Available for any authorized user.
|
|
846
|
+
|
|
847
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
848
|
+
number provided, it will be total request
|
|
849
|
+
timeout. It can also be a pair (tuple) of
|
|
850
|
+
(connection, read) timeouts.
|
|
851
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
852
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
853
|
+
request; this effectively ignores the
|
|
854
|
+
authentication in the spec for a single request.
|
|
855
|
+
:type _request_auth: dict, optional
|
|
856
|
+
:param _content_type: force content-type for the request.
|
|
857
|
+
:type _content_type: str, Optional
|
|
858
|
+
:param _headers: set to override the headers for a single
|
|
859
|
+
request; this effectively ignores the headers
|
|
860
|
+
in the spec for a single request.
|
|
861
|
+
:type _headers: dict, optional
|
|
862
|
+
:param _host_index: set to override the host_index for a single
|
|
863
|
+
request; this effectively ignores the host_index
|
|
864
|
+
in the spec for a single request.
|
|
865
|
+
:type _host_index: int, optional
|
|
866
|
+
:return: Returns the result object.
|
|
867
|
+
""" # noqa: E501
|
|
868
|
+
|
|
869
|
+
_param = self._perform_trendz_healthcheck_serialize(
|
|
870
|
+
_request_auth=_request_auth,
|
|
871
|
+
_content_type=_content_type,
|
|
872
|
+
_headers=_headers,
|
|
873
|
+
_host_index=_host_index
|
|
874
|
+
)
|
|
875
|
+
|
|
876
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
877
|
+
'200': "TrendzHealthcheckResult",
|
|
878
|
+
'400': "ThingsboardErrorResponse",
|
|
879
|
+
'401': "ThingsboardErrorResponse",
|
|
880
|
+
'403': "ThingsboardErrorResponse",
|
|
881
|
+
'404': "ThingsboardErrorResponse",
|
|
882
|
+
'429': "ThingsboardErrorResponse",
|
|
883
|
+
}
|
|
884
|
+
response_data = self.api_client.call_api(
|
|
885
|
+
*_param,
|
|
886
|
+
_request_timeout=_request_timeout
|
|
887
|
+
)
|
|
888
|
+
response_data.read()
|
|
889
|
+
return self.api_client.response_deserialize(
|
|
890
|
+
response_data=response_data,
|
|
891
|
+
response_types_map=_response_types_map,
|
|
892
|
+
).data
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
@validate_call
|
|
896
|
+
def perform_trendz_healthcheck_with_http_info(
|
|
897
|
+
self,
|
|
898
|
+
_request_timeout: Union[
|
|
899
|
+
None,
|
|
900
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
901
|
+
Tuple[
|
|
902
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
903
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
904
|
+
]
|
|
905
|
+
] = None,
|
|
906
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
907
|
+
_content_type: Optional[StrictStr] = None,
|
|
908
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
909
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
910
|
+
) -> ApiResponse[TrendzHealthcheckResult]:
|
|
911
|
+
"""Perform Trendz healthcheck (performTrendzHealthcheck)
|
|
912
|
+
|
|
913
|
+
Performs healthcheck for Trendz integration. Returns version, type, status, and message. Can only be performed if Trendz is already synchronized and integration is enabled. Available for any authorized user.
|
|
914
|
+
|
|
915
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
916
|
+
number provided, it will be total request
|
|
917
|
+
timeout. It can also be a pair (tuple) of
|
|
918
|
+
(connection, read) timeouts.
|
|
919
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
920
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
921
|
+
request; this effectively ignores the
|
|
922
|
+
authentication in the spec for a single request.
|
|
923
|
+
:type _request_auth: dict, optional
|
|
924
|
+
:param _content_type: force content-type for the request.
|
|
925
|
+
:type _content_type: str, Optional
|
|
926
|
+
:param _headers: set to override the headers for a single
|
|
927
|
+
request; this effectively ignores the headers
|
|
928
|
+
in the spec for a single request.
|
|
929
|
+
:type _headers: dict, optional
|
|
930
|
+
:param _host_index: set to override the host_index for a single
|
|
931
|
+
request; this effectively ignores the host_index
|
|
932
|
+
in the spec for a single request.
|
|
933
|
+
:type _host_index: int, optional
|
|
934
|
+
:return: Returns the result object.
|
|
935
|
+
""" # noqa: E501
|
|
936
|
+
|
|
937
|
+
_param = self._perform_trendz_healthcheck_serialize(
|
|
938
|
+
_request_auth=_request_auth,
|
|
939
|
+
_content_type=_content_type,
|
|
940
|
+
_headers=_headers,
|
|
941
|
+
_host_index=_host_index
|
|
942
|
+
)
|
|
943
|
+
|
|
944
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
945
|
+
'200': "TrendzHealthcheckResult",
|
|
946
|
+
'400': "ThingsboardErrorResponse",
|
|
947
|
+
'401': "ThingsboardErrorResponse",
|
|
948
|
+
'403': "ThingsboardErrorResponse",
|
|
949
|
+
'404': "ThingsboardErrorResponse",
|
|
950
|
+
'429': "ThingsboardErrorResponse",
|
|
951
|
+
}
|
|
952
|
+
response_data = self.api_client.call_api(
|
|
953
|
+
*_param,
|
|
954
|
+
_request_timeout=_request_timeout
|
|
955
|
+
)
|
|
956
|
+
response_data.read()
|
|
957
|
+
return self.api_client.response_deserialize(
|
|
958
|
+
response_data=response_data,
|
|
959
|
+
response_types_map=_response_types_map,
|
|
960
|
+
)
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
@validate_call
|
|
964
|
+
def perform_trendz_healthcheck_without_preload_content(
|
|
965
|
+
self,
|
|
966
|
+
_request_timeout: Union[
|
|
967
|
+
None,
|
|
968
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
969
|
+
Tuple[
|
|
970
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
971
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
972
|
+
]
|
|
973
|
+
] = None,
|
|
974
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
975
|
+
_content_type: Optional[StrictStr] = None,
|
|
976
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
977
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
978
|
+
) -> RESTResponseType:
|
|
979
|
+
"""Perform Trendz healthcheck (performTrendzHealthcheck)
|
|
980
|
+
|
|
981
|
+
Performs healthcheck for Trendz integration. Returns version, type, status, and message. Can only be performed if Trendz is already synchronized and integration is enabled. Available for any authorized user.
|
|
982
|
+
|
|
983
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
984
|
+
number provided, it will be total request
|
|
985
|
+
timeout. It can also be a pair (tuple) of
|
|
986
|
+
(connection, read) timeouts.
|
|
987
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
988
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
989
|
+
request; this effectively ignores the
|
|
990
|
+
authentication in the spec for a single request.
|
|
991
|
+
:type _request_auth: dict, optional
|
|
992
|
+
:param _content_type: force content-type for the request.
|
|
993
|
+
:type _content_type: str, Optional
|
|
994
|
+
:param _headers: set to override the headers for a single
|
|
995
|
+
request; this effectively ignores the headers
|
|
996
|
+
in the spec for a single request.
|
|
997
|
+
:type _headers: dict, optional
|
|
998
|
+
:param _host_index: set to override the host_index for a single
|
|
999
|
+
request; this effectively ignores the host_index
|
|
1000
|
+
in the spec for a single request.
|
|
1001
|
+
:type _host_index: int, optional
|
|
1002
|
+
:return: Returns the result object.
|
|
1003
|
+
""" # noqa: E501
|
|
1004
|
+
|
|
1005
|
+
_param = self._perform_trendz_healthcheck_serialize(
|
|
1006
|
+
_request_auth=_request_auth,
|
|
1007
|
+
_content_type=_content_type,
|
|
1008
|
+
_headers=_headers,
|
|
1009
|
+
_host_index=_host_index
|
|
1010
|
+
)
|
|
1011
|
+
|
|
1012
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1013
|
+
'200': "TrendzHealthcheckResult",
|
|
1014
|
+
'400': "ThingsboardErrorResponse",
|
|
1015
|
+
'401': "ThingsboardErrorResponse",
|
|
1016
|
+
'403': "ThingsboardErrorResponse",
|
|
1017
|
+
'404': "ThingsboardErrorResponse",
|
|
1018
|
+
'429': "ThingsboardErrorResponse",
|
|
1019
|
+
}
|
|
1020
|
+
response_data = self.api_client.call_api(
|
|
1021
|
+
*_param,
|
|
1022
|
+
_request_timeout=_request_timeout
|
|
1023
|
+
)
|
|
1024
|
+
return response_data.response
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
def _perform_trendz_healthcheck_serialize(
|
|
1028
|
+
self,
|
|
1029
|
+
_request_auth,
|
|
1030
|
+
_content_type,
|
|
1031
|
+
_headers,
|
|
1032
|
+
_host_index,
|
|
1033
|
+
) -> RequestSerialized:
|
|
1034
|
+
|
|
1035
|
+
_host = None
|
|
1036
|
+
|
|
1037
|
+
_collection_formats: Dict[str, str] = {
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
_path_params: Dict[str, str] = {}
|
|
1041
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1042
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1043
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1044
|
+
_files: Dict[
|
|
1045
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1046
|
+
] = {}
|
|
1047
|
+
_body_params: Optional[bytes] = None
|
|
1048
|
+
|
|
1049
|
+
# process the path parameters
|
|
1050
|
+
# process the query parameters
|
|
1051
|
+
# process the header parameters
|
|
1052
|
+
# process the form parameters
|
|
1053
|
+
# process the body parameter
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
# set the HTTP header `Accept`
|
|
1057
|
+
if 'Accept' not in _header_params:
|
|
1058
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1059
|
+
[
|
|
1060
|
+
'application/json'
|
|
1061
|
+
]
|
|
1062
|
+
)
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
# authentication setting
|
|
1066
|
+
_auth_settings: List[str] = [
|
|
1067
|
+
'HTTP login form',
|
|
1068
|
+
'API key form'
|
|
1069
|
+
]
|
|
1070
|
+
|
|
1071
|
+
return self.api_client.param_serialize(
|
|
1072
|
+
method='GET',
|
|
1073
|
+
resource_path='/api/trendz/healthcheck',
|
|
1074
|
+
path_params=_path_params,
|
|
1075
|
+
query_params=_query_params,
|
|
1076
|
+
header_params=_header_params,
|
|
1077
|
+
body=_body_params,
|
|
1078
|
+
post_params=_form_params,
|
|
1079
|
+
files=_files,
|
|
1080
|
+
auth_settings=_auth_settings,
|
|
1081
|
+
collection_formats=_collection_formats,
|
|
1082
|
+
_host=_host,
|
|
1083
|
+
_request_auth=_request_auth
|
|
1084
|
+
)
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
@validate_call
|
|
1090
|
+
def public_connect_to_trendz(
|
|
1091
|
+
self,
|
|
1092
|
+
_request_timeout: Union[
|
|
1093
|
+
None,
|
|
1094
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1095
|
+
Tuple[
|
|
1096
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1097
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1098
|
+
]
|
|
1099
|
+
] = None,
|
|
1100
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1101
|
+
_content_type: Optional[StrictStr] = None,
|
|
1102
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1103
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1104
|
+
) -> None:
|
|
1105
|
+
"""Public connect to Trendz (publicConnectToTrendz)
|
|
1106
|
+
|
|
1107
|
+
Initiates synchronization with Trendz if Trendz is not synced yet. Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync.
|
|
1108
|
+
|
|
1109
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1110
|
+
number provided, it will be total request
|
|
1111
|
+
timeout. It can also be a pair (tuple) of
|
|
1112
|
+
(connection, read) timeouts.
|
|
1113
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1114
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1115
|
+
request; this effectively ignores the
|
|
1116
|
+
authentication in the spec for a single request.
|
|
1117
|
+
:type _request_auth: dict, optional
|
|
1118
|
+
:param _content_type: force content-type for the request.
|
|
1119
|
+
:type _content_type: str, Optional
|
|
1120
|
+
:param _headers: set to override the headers for a single
|
|
1121
|
+
request; this effectively ignores the headers
|
|
1122
|
+
in the spec for a single request.
|
|
1123
|
+
:type _headers: dict, optional
|
|
1124
|
+
:param _host_index: set to override the host_index for a single
|
|
1125
|
+
request; this effectively ignores the host_index
|
|
1126
|
+
in the spec for a single request.
|
|
1127
|
+
:type _host_index: int, optional
|
|
1128
|
+
:return: Returns the result object.
|
|
1129
|
+
""" # noqa: E501
|
|
1130
|
+
|
|
1131
|
+
_param = self._public_connect_to_trendz_serialize(
|
|
1132
|
+
_request_auth=_request_auth,
|
|
1133
|
+
_content_type=_content_type,
|
|
1134
|
+
_headers=_headers,
|
|
1135
|
+
_host_index=_host_index
|
|
1136
|
+
)
|
|
1137
|
+
|
|
1138
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1139
|
+
'200': None,
|
|
1140
|
+
'400': "ThingsboardErrorResponse",
|
|
1141
|
+
'401': "ThingsboardErrorResponse",
|
|
1142
|
+
'403': "ThingsboardErrorResponse",
|
|
1143
|
+
'404': "ThingsboardErrorResponse",
|
|
1144
|
+
'429': "ThingsboardErrorResponse",
|
|
1145
|
+
}
|
|
1146
|
+
response_data = self.api_client.call_api(
|
|
1147
|
+
*_param,
|
|
1148
|
+
_request_timeout=_request_timeout
|
|
1149
|
+
)
|
|
1150
|
+
response_data.read()
|
|
1151
|
+
return self.api_client.response_deserialize(
|
|
1152
|
+
response_data=response_data,
|
|
1153
|
+
response_types_map=_response_types_map,
|
|
1154
|
+
).data
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
@validate_call
|
|
1158
|
+
def public_connect_to_trendz_with_http_info(
|
|
1159
|
+
self,
|
|
1160
|
+
_request_timeout: Union[
|
|
1161
|
+
None,
|
|
1162
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1163
|
+
Tuple[
|
|
1164
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1165
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1166
|
+
]
|
|
1167
|
+
] = None,
|
|
1168
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1169
|
+
_content_type: Optional[StrictStr] = None,
|
|
1170
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1171
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1172
|
+
) -> ApiResponse[None]:
|
|
1173
|
+
"""Public connect to Trendz (publicConnectToTrendz)
|
|
1174
|
+
|
|
1175
|
+
Initiates synchronization with Trendz if Trendz is not synced yet. Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync.
|
|
1176
|
+
|
|
1177
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1178
|
+
number provided, it will be total request
|
|
1179
|
+
timeout. It can also be a pair (tuple) of
|
|
1180
|
+
(connection, read) timeouts.
|
|
1181
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1182
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1183
|
+
request; this effectively ignores the
|
|
1184
|
+
authentication in the spec for a single request.
|
|
1185
|
+
:type _request_auth: dict, optional
|
|
1186
|
+
:param _content_type: force content-type for the request.
|
|
1187
|
+
:type _content_type: str, Optional
|
|
1188
|
+
:param _headers: set to override the headers for a single
|
|
1189
|
+
request; this effectively ignores the headers
|
|
1190
|
+
in the spec for a single request.
|
|
1191
|
+
:type _headers: dict, optional
|
|
1192
|
+
:param _host_index: set to override the host_index for a single
|
|
1193
|
+
request; this effectively ignores the host_index
|
|
1194
|
+
in the spec for a single request.
|
|
1195
|
+
:type _host_index: int, optional
|
|
1196
|
+
:return: Returns the result object.
|
|
1197
|
+
""" # noqa: E501
|
|
1198
|
+
|
|
1199
|
+
_param = self._public_connect_to_trendz_serialize(
|
|
1200
|
+
_request_auth=_request_auth,
|
|
1201
|
+
_content_type=_content_type,
|
|
1202
|
+
_headers=_headers,
|
|
1203
|
+
_host_index=_host_index
|
|
1204
|
+
)
|
|
1205
|
+
|
|
1206
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1207
|
+
'200': None,
|
|
1208
|
+
'400': "ThingsboardErrorResponse",
|
|
1209
|
+
'401': "ThingsboardErrorResponse",
|
|
1210
|
+
'403': "ThingsboardErrorResponse",
|
|
1211
|
+
'404': "ThingsboardErrorResponse",
|
|
1212
|
+
'429': "ThingsboardErrorResponse",
|
|
1213
|
+
}
|
|
1214
|
+
response_data = self.api_client.call_api(
|
|
1215
|
+
*_param,
|
|
1216
|
+
_request_timeout=_request_timeout
|
|
1217
|
+
)
|
|
1218
|
+
response_data.read()
|
|
1219
|
+
return self.api_client.response_deserialize(
|
|
1220
|
+
response_data=response_data,
|
|
1221
|
+
response_types_map=_response_types_map,
|
|
1222
|
+
)
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
@validate_call
|
|
1226
|
+
def public_connect_to_trendz_without_preload_content(
|
|
1227
|
+
self,
|
|
1228
|
+
_request_timeout: Union[
|
|
1229
|
+
None,
|
|
1230
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1231
|
+
Tuple[
|
|
1232
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1233
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1234
|
+
]
|
|
1235
|
+
] = None,
|
|
1236
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1237
|
+
_content_type: Optional[StrictStr] = None,
|
|
1238
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1239
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1240
|
+
) -> RESTResponseType:
|
|
1241
|
+
"""Public connect to Trendz (publicConnectToTrendz)
|
|
1242
|
+
|
|
1243
|
+
Initiates synchronization with Trendz if Trendz is not synced yet. Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync.
|
|
1244
|
+
|
|
1245
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1246
|
+
number provided, it will be total request
|
|
1247
|
+
timeout. It can also be a pair (tuple) of
|
|
1248
|
+
(connection, read) timeouts.
|
|
1249
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1250
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1251
|
+
request; this effectively ignores the
|
|
1252
|
+
authentication in the spec for a single request.
|
|
1253
|
+
:type _request_auth: dict, optional
|
|
1254
|
+
:param _content_type: force content-type for the request.
|
|
1255
|
+
:type _content_type: str, Optional
|
|
1256
|
+
:param _headers: set to override the headers for a single
|
|
1257
|
+
request; this effectively ignores the headers
|
|
1258
|
+
in the spec for a single request.
|
|
1259
|
+
:type _headers: dict, optional
|
|
1260
|
+
:param _host_index: set to override the host_index for a single
|
|
1261
|
+
request; this effectively ignores the host_index
|
|
1262
|
+
in the spec for a single request.
|
|
1263
|
+
:type _host_index: int, optional
|
|
1264
|
+
:return: Returns the result object.
|
|
1265
|
+
""" # noqa: E501
|
|
1266
|
+
|
|
1267
|
+
_param = self._public_connect_to_trendz_serialize(
|
|
1268
|
+
_request_auth=_request_auth,
|
|
1269
|
+
_content_type=_content_type,
|
|
1270
|
+
_headers=_headers,
|
|
1271
|
+
_host_index=_host_index
|
|
1272
|
+
)
|
|
1273
|
+
|
|
1274
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1275
|
+
'200': None,
|
|
1276
|
+
'400': "ThingsboardErrorResponse",
|
|
1277
|
+
'401': "ThingsboardErrorResponse",
|
|
1278
|
+
'403': "ThingsboardErrorResponse",
|
|
1279
|
+
'404': "ThingsboardErrorResponse",
|
|
1280
|
+
'429': "ThingsboardErrorResponse",
|
|
1281
|
+
}
|
|
1282
|
+
response_data = self.api_client.call_api(
|
|
1283
|
+
*_param,
|
|
1284
|
+
_request_timeout=_request_timeout
|
|
1285
|
+
)
|
|
1286
|
+
return response_data.response
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
def _public_connect_to_trendz_serialize(
|
|
1290
|
+
self,
|
|
1291
|
+
_request_auth,
|
|
1292
|
+
_content_type,
|
|
1293
|
+
_headers,
|
|
1294
|
+
_host_index,
|
|
1295
|
+
) -> RequestSerialized:
|
|
1296
|
+
|
|
1297
|
+
_host = None
|
|
1298
|
+
|
|
1299
|
+
_collection_formats: Dict[str, str] = {
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
_path_params: Dict[str, str] = {}
|
|
1303
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1304
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1305
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1306
|
+
_files: Dict[
|
|
1307
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1308
|
+
] = {}
|
|
1309
|
+
_body_params: Optional[bytes] = None
|
|
1310
|
+
|
|
1311
|
+
# process the path parameters
|
|
1312
|
+
# process the query parameters
|
|
1313
|
+
# process the header parameters
|
|
1314
|
+
# process the form parameters
|
|
1315
|
+
# process the body parameter
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
# set the HTTP header `Accept`
|
|
1319
|
+
if 'Accept' not in _header_params:
|
|
1320
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1321
|
+
[
|
|
1322
|
+
'application/json'
|
|
1323
|
+
]
|
|
1324
|
+
)
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
# authentication setting
|
|
1328
|
+
_auth_settings: List[str] = [
|
|
1329
|
+
'HTTP login form',
|
|
1330
|
+
'API key form'
|
|
1331
|
+
]
|
|
1332
|
+
|
|
1333
|
+
return self.api_client.param_serialize(
|
|
1334
|
+
method='POST',
|
|
1335
|
+
resource_path='/api/trendz/public/connect',
|
|
1336
|
+
path_params=_path_params,
|
|
1337
|
+
query_params=_query_params,
|
|
1338
|
+
header_params=_header_params,
|
|
1339
|
+
body=_body_params,
|
|
1340
|
+
post_params=_form_params,
|
|
1341
|
+
files=_files,
|
|
1342
|
+
auth_settings=_auth_settings,
|
|
1343
|
+
collection_formats=_collection_formats,
|
|
1344
|
+
_host=_host,
|
|
1345
|
+
_request_auth=_request_auth
|
|
1346
|
+
)
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
@validate_call
|
|
1352
|
+
def save_trendz_config(
|
|
1353
|
+
self,
|
|
1354
|
+
trendz_configuration: TrendzConfiguration,
|
|
1355
|
+
_request_timeout: Union[
|
|
1356
|
+
None,
|
|
1357
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1358
|
+
Tuple[
|
|
1359
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1360
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1361
|
+
]
|
|
1362
|
+
] = None,
|
|
1363
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1364
|
+
_content_type: Optional[StrictStr] = None,
|
|
1365
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1366
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1367
|
+
) -> TrendzConfiguration:
|
|
1368
|
+
"""Save Trendz configuration (saveTrendzConfig)
|
|
1369
|
+
|
|
1370
|
+
Saves Trendz configuration (URLs only, without triggering synchronization). Request body example: ```json { \"trendzUrl\": \"https://trendz.domain.com\", \"tbUrl\": \"https://thingsboard.domain.com\" } ``` Available for users with 'SYS_ADMIN' authority.
|
|
1371
|
+
|
|
1372
|
+
:param trendz_configuration: (required)
|
|
1373
|
+
:type trendz_configuration: TrendzConfiguration
|
|
1374
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1375
|
+
number provided, it will be total request
|
|
1376
|
+
timeout. It can also be a pair (tuple) of
|
|
1377
|
+
(connection, read) timeouts.
|
|
1378
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1379
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1380
|
+
request; this effectively ignores the
|
|
1381
|
+
authentication in the spec for a single request.
|
|
1382
|
+
:type _request_auth: dict, optional
|
|
1383
|
+
:param _content_type: force content-type for the request.
|
|
1384
|
+
:type _content_type: str, Optional
|
|
1385
|
+
:param _headers: set to override the headers for a single
|
|
1386
|
+
request; this effectively ignores the headers
|
|
1387
|
+
in the spec for a single request.
|
|
1388
|
+
:type _headers: dict, optional
|
|
1389
|
+
:param _host_index: set to override the host_index for a single
|
|
1390
|
+
request; this effectively ignores the host_index
|
|
1391
|
+
in the spec for a single request.
|
|
1392
|
+
:type _host_index: int, optional
|
|
1393
|
+
:return: Returns the result object.
|
|
1394
|
+
""" # noqa: E501
|
|
1395
|
+
|
|
1396
|
+
_param = self._save_trendz_config_serialize(
|
|
1397
|
+
trendz_configuration=trendz_configuration,
|
|
1398
|
+
_request_auth=_request_auth,
|
|
1399
|
+
_content_type=_content_type,
|
|
1400
|
+
_headers=_headers,
|
|
1401
|
+
_host_index=_host_index
|
|
1402
|
+
)
|
|
1403
|
+
|
|
1404
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1405
|
+
'200': "TrendzConfiguration",
|
|
1406
|
+
'400': "ThingsboardErrorResponse",
|
|
1407
|
+
'401': "ThingsboardErrorResponse",
|
|
1408
|
+
'403': "ThingsboardErrorResponse",
|
|
1409
|
+
'404': "ThingsboardErrorResponse",
|
|
1410
|
+
'429': "ThingsboardErrorResponse",
|
|
1411
|
+
}
|
|
1412
|
+
response_data = self.api_client.call_api(
|
|
1413
|
+
*_param,
|
|
1414
|
+
_request_timeout=_request_timeout
|
|
1415
|
+
)
|
|
1416
|
+
response_data.read()
|
|
1417
|
+
return self.api_client.response_deserialize(
|
|
1418
|
+
response_data=response_data,
|
|
1419
|
+
response_types_map=_response_types_map,
|
|
1420
|
+
).data
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
@validate_call
|
|
1424
|
+
def save_trendz_config_with_http_info(
|
|
1425
|
+
self,
|
|
1426
|
+
trendz_configuration: TrendzConfiguration,
|
|
1427
|
+
_request_timeout: Union[
|
|
1428
|
+
None,
|
|
1429
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1430
|
+
Tuple[
|
|
1431
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1432
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1433
|
+
]
|
|
1434
|
+
] = None,
|
|
1435
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1436
|
+
_content_type: Optional[StrictStr] = None,
|
|
1437
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1438
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1439
|
+
) -> ApiResponse[TrendzConfiguration]:
|
|
1440
|
+
"""Save Trendz configuration (saveTrendzConfig)
|
|
1441
|
+
|
|
1442
|
+
Saves Trendz configuration (URLs only, without triggering synchronization). Request body example: ```json { \"trendzUrl\": \"https://trendz.domain.com\", \"tbUrl\": \"https://thingsboard.domain.com\" } ``` Available for users with 'SYS_ADMIN' authority.
|
|
1443
|
+
|
|
1444
|
+
:param trendz_configuration: (required)
|
|
1445
|
+
:type trendz_configuration: TrendzConfiguration
|
|
1446
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1447
|
+
number provided, it will be total request
|
|
1448
|
+
timeout. It can also be a pair (tuple) of
|
|
1449
|
+
(connection, read) timeouts.
|
|
1450
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1451
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1452
|
+
request; this effectively ignores the
|
|
1453
|
+
authentication in the spec for a single request.
|
|
1454
|
+
:type _request_auth: dict, optional
|
|
1455
|
+
:param _content_type: force content-type for the request.
|
|
1456
|
+
:type _content_type: str, Optional
|
|
1457
|
+
:param _headers: set to override the headers for a single
|
|
1458
|
+
request; this effectively ignores the headers
|
|
1459
|
+
in the spec for a single request.
|
|
1460
|
+
:type _headers: dict, optional
|
|
1461
|
+
:param _host_index: set to override the host_index for a single
|
|
1462
|
+
request; this effectively ignores the host_index
|
|
1463
|
+
in the spec for a single request.
|
|
1464
|
+
:type _host_index: int, optional
|
|
1465
|
+
:return: Returns the result object.
|
|
1466
|
+
""" # noqa: E501
|
|
1467
|
+
|
|
1468
|
+
_param = self._save_trendz_config_serialize(
|
|
1469
|
+
trendz_configuration=trendz_configuration,
|
|
1470
|
+
_request_auth=_request_auth,
|
|
1471
|
+
_content_type=_content_type,
|
|
1472
|
+
_headers=_headers,
|
|
1473
|
+
_host_index=_host_index
|
|
1474
|
+
)
|
|
1475
|
+
|
|
1476
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1477
|
+
'200': "TrendzConfiguration",
|
|
1478
|
+
'400': "ThingsboardErrorResponse",
|
|
1479
|
+
'401': "ThingsboardErrorResponse",
|
|
1480
|
+
'403': "ThingsboardErrorResponse",
|
|
1481
|
+
'404': "ThingsboardErrorResponse",
|
|
1482
|
+
'429': "ThingsboardErrorResponse",
|
|
1483
|
+
}
|
|
1484
|
+
response_data = self.api_client.call_api(
|
|
1485
|
+
*_param,
|
|
1486
|
+
_request_timeout=_request_timeout
|
|
1487
|
+
)
|
|
1488
|
+
response_data.read()
|
|
1489
|
+
return self.api_client.response_deserialize(
|
|
1490
|
+
response_data=response_data,
|
|
1491
|
+
response_types_map=_response_types_map,
|
|
1492
|
+
)
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
@validate_call
|
|
1496
|
+
def save_trendz_config_without_preload_content(
|
|
1497
|
+
self,
|
|
1498
|
+
trendz_configuration: TrendzConfiguration,
|
|
1499
|
+
_request_timeout: Union[
|
|
1500
|
+
None,
|
|
1501
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1502
|
+
Tuple[
|
|
1503
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1504
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1505
|
+
]
|
|
1506
|
+
] = None,
|
|
1507
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1508
|
+
_content_type: Optional[StrictStr] = None,
|
|
1509
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1510
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1511
|
+
) -> RESTResponseType:
|
|
1512
|
+
"""Save Trendz configuration (saveTrendzConfig)
|
|
1513
|
+
|
|
1514
|
+
Saves Trendz configuration (URLs only, without triggering synchronization). Request body example: ```json { \"trendzUrl\": \"https://trendz.domain.com\", \"tbUrl\": \"https://thingsboard.domain.com\" } ``` Available for users with 'SYS_ADMIN' authority.
|
|
1515
|
+
|
|
1516
|
+
:param trendz_configuration: (required)
|
|
1517
|
+
:type trendz_configuration: TrendzConfiguration
|
|
1518
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1519
|
+
number provided, it will be total request
|
|
1520
|
+
timeout. It can also be a pair (tuple) of
|
|
1521
|
+
(connection, read) timeouts.
|
|
1522
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1523
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1524
|
+
request; this effectively ignores the
|
|
1525
|
+
authentication in the spec for a single request.
|
|
1526
|
+
:type _request_auth: dict, optional
|
|
1527
|
+
:param _content_type: force content-type for the request.
|
|
1528
|
+
:type _content_type: str, Optional
|
|
1529
|
+
:param _headers: set to override the headers for a single
|
|
1530
|
+
request; this effectively ignores the headers
|
|
1531
|
+
in the spec for a single request.
|
|
1532
|
+
:type _headers: dict, optional
|
|
1533
|
+
:param _host_index: set to override the host_index for a single
|
|
1534
|
+
request; this effectively ignores the host_index
|
|
1535
|
+
in the spec for a single request.
|
|
1536
|
+
:type _host_index: int, optional
|
|
1537
|
+
:return: Returns the result object.
|
|
1538
|
+
""" # noqa: E501
|
|
1539
|
+
|
|
1540
|
+
_param = self._save_trendz_config_serialize(
|
|
1541
|
+
trendz_configuration=trendz_configuration,
|
|
1542
|
+
_request_auth=_request_auth,
|
|
1543
|
+
_content_type=_content_type,
|
|
1544
|
+
_headers=_headers,
|
|
1545
|
+
_host_index=_host_index
|
|
1546
|
+
)
|
|
1547
|
+
|
|
1548
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1549
|
+
'200': "TrendzConfiguration",
|
|
1550
|
+
'400': "ThingsboardErrorResponse",
|
|
1551
|
+
'401': "ThingsboardErrorResponse",
|
|
1552
|
+
'403': "ThingsboardErrorResponse",
|
|
1553
|
+
'404': "ThingsboardErrorResponse",
|
|
1554
|
+
'429': "ThingsboardErrorResponse",
|
|
1555
|
+
}
|
|
1556
|
+
response_data = self.api_client.call_api(
|
|
1557
|
+
*_param,
|
|
1558
|
+
_request_timeout=_request_timeout
|
|
1559
|
+
)
|
|
1560
|
+
return response_data.response
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
def _save_trendz_config_serialize(
|
|
1564
|
+
self,
|
|
1565
|
+
trendz_configuration,
|
|
1566
|
+
_request_auth,
|
|
1567
|
+
_content_type,
|
|
1568
|
+
_headers,
|
|
1569
|
+
_host_index,
|
|
1570
|
+
) -> RequestSerialized:
|
|
1571
|
+
|
|
1572
|
+
_host = None
|
|
1573
|
+
|
|
1574
|
+
_collection_formats: Dict[str, str] = {
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
_path_params: Dict[str, str] = {}
|
|
1578
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1579
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1580
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1581
|
+
_files: Dict[
|
|
1582
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1583
|
+
] = {}
|
|
1584
|
+
_body_params: Optional[bytes] = None
|
|
1585
|
+
|
|
1586
|
+
# process the path parameters
|
|
1587
|
+
# process the query parameters
|
|
1588
|
+
# process the header parameters
|
|
1589
|
+
# process the form parameters
|
|
1590
|
+
# process the body parameter
|
|
1591
|
+
if trendz_configuration is not None:
|
|
1592
|
+
_body_params = trendz_configuration
|
|
1593
|
+
|
|
1594
|
+
|
|
1595
|
+
# set the HTTP header `Accept`
|
|
1596
|
+
if 'Accept' not in _header_params:
|
|
1597
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1598
|
+
[
|
|
1599
|
+
'application/json'
|
|
1600
|
+
]
|
|
1601
|
+
)
|
|
1602
|
+
|
|
1603
|
+
# set the HTTP header `Content-Type`
|
|
1604
|
+
if _content_type:
|
|
1605
|
+
_header_params['Content-Type'] = _content_type
|
|
1606
|
+
else:
|
|
1607
|
+
_default_content_type = (
|
|
1608
|
+
self.api_client.select_header_content_type(
|
|
1609
|
+
[
|
|
1610
|
+
'application/json'
|
|
1611
|
+
]
|
|
1612
|
+
)
|
|
1613
|
+
)
|
|
1614
|
+
if _default_content_type is not None:
|
|
1615
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1616
|
+
|
|
1617
|
+
# authentication setting
|
|
1618
|
+
_auth_settings: List[str] = [
|
|
1619
|
+
'HTTP login form',
|
|
1620
|
+
'API key form'
|
|
1621
|
+
]
|
|
1622
|
+
|
|
1623
|
+
return self.api_client.param_serialize(
|
|
1624
|
+
method='POST',
|
|
1625
|
+
resource_path='/api/trendz/config',
|
|
1626
|
+
path_params=_path_params,
|
|
1627
|
+
query_params=_query_params,
|
|
1628
|
+
header_params=_header_params,
|
|
1629
|
+
body=_body_params,
|
|
1630
|
+
post_params=_form_params,
|
|
1631
|
+
files=_files,
|
|
1632
|
+
auth_settings=_auth_settings,
|
|
1633
|
+
collection_formats=_collection_formats,
|
|
1634
|
+
_host=_host,
|
|
1635
|
+
_request_auth=_request_auth
|
|
1636
|
+
)
|
|
1637
|
+
|
|
1638
|
+
|