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.
Files changed (829) hide show
  1. tb_client/__init__.py +1 -0
  2. tb_client/api/__init__.py +1 -0
  3. tb_client/api/admin_controller_api.py +7410 -0
  4. tb_client/api/ai_model_controller_api.py +1524 -0
  5. tb_client/api/alarm_comment_controller_api.py +982 -0
  6. tb_client/api/alarm_controller_api.py +4821 -0
  7. tb_client/api/api_key_controller_api.py +1568 -0
  8. tb_client/api/asset_controller_api.py +4920 -0
  9. tb_client/api/asset_profile_controller_api.py +2973 -0
  10. tb_client/api/audit_log_controller_api.py +1691 -0
  11. tb_client/api/auth_controller_api.py +2554 -0
  12. tb_client/api/blob_entity_controller_api.py +1550 -0
  13. tb_client/api/calculated_field_controller_api.py +3493 -0
  14. tb_client/api/component_descriptor_controller_api.py +907 -0
  15. tb_client/api/converter_controller_api.py +2809 -0
  16. tb_client/api/converter_library_controller_api.py +2490 -0
  17. tb_client/api/custom_menu_controller_api.py +3101 -0
  18. tb_client/api/custom_translation_controller_api.py +2076 -0
  19. tb_client/api/customer_controller_api.py +4162 -0
  20. tb_client/api/dashboard_controller_api.py +6553 -0
  21. tb_client/api/dashboard_report_controller_api.py +657 -0
  22. tb_client/api/device_api_controller_api.py +3441 -0
  23. tb_client/api/device_connectivity_controller_api.py +869 -0
  24. tb_client/api/device_controller_api.py +7390 -0
  25. tb_client/api/device_group_ota_package_controller_api.py +887 -0
  26. tb_client/api/device_profile_controller_api.py +3548 -0
  27. tb_client/api/domain_controller_api.py +1557 -0
  28. tb_client/api/edge_controller_api.py +7752 -0
  29. tb_client/api/edge_event_controller_api.py +435 -0
  30. tb_client/api/entities_version_control_controller_api.py +3800 -0
  31. tb_client/api/entity_group_controller_api.py +11279 -0
  32. tb_client/api/entity_query_controller_api.py +2094 -0
  33. tb_client/api/entity_relation_controller_api.py +4501 -0
  34. tb_client/api/entity_view_controller_api.py +4608 -0
  35. tb_client/api/event_controller_api.py +1721 -0
  36. tb_client/api/group_permission_controller_api.py +2023 -0
  37. tb_client/api/image_controller_api.py +4427 -0
  38. tb_client/api/integration_controller_api.py +4603 -0
  39. tb_client/api/job_controller_api.py +1581 -0
  40. tb_client/api/login_endpoint_api.py +611 -0
  41. tb_client/api/lwm2m_controller_api.py +621 -0
  42. tb_client/api/mail_config_template_controller_api.py +298 -0
  43. tb_client/api/mobile_app_bundle_controller_api.py +1557 -0
  44. tb_client/api/mobile_app_controller_api.py +1838 -0
  45. tb_client/api/notification_controller_api.py +5522 -0
  46. tb_client/api/notification_rule_controller_api.py +1233 -0
  47. tb_client/api/notification_target_controller_api.py +2201 -0
  48. tb_client/api/notification_template_controller_api.py +1547 -0
  49. tb_client/api/o_auth2_config_template_controller_api.py +868 -0
  50. tb_client/api/o_auth2_controller_api.py +2070 -0
  51. tb_client/api/ota_package_controller_api.py +2880 -0
  52. tb_client/api/owner_controller_api.py +710 -0
  53. tb_client/api/qr_code_settings_controller_api.py +1664 -0
  54. tb_client/api/queue_controller_api.py +1542 -0
  55. tb_client/api/queue_stats_controller_api.py +944 -0
  56. tb_client/api/report_controller_api.py +2754 -0
  57. tb_client/api/report_template_controller_api.py +1842 -0
  58. tb_client/api/role_controller_api.py +1528 -0
  59. tb_client/api/rpc_v1_controller_api.py +647 -0
  60. tb_client/api/rpc_v2_controller_api.py +1594 -0
  61. tb_client/api/rule_chain_controller_api.py +6709 -0
  62. tb_client/api/rule_engine_controller_api.py +1332 -0
  63. tb_client/api/scheduler_event_controller_api.py +4366 -0
  64. tb_client/api/secret_controller_api.py +2385 -0
  65. tb_client/api/self_registration_controller_api.py +1734 -0
  66. tb_client/api/sign_up_controller_api.py +2603 -0
  67. tb_client/api/solution_controller_api.py +1412 -0
  68. tb_client/api/tb_resource_controller_api.py +5886 -0
  69. tb_client/api/telemetry_controller_api.py +5517 -0
  70. tb_client/api/tenant_controller_api.py +2134 -0
  71. tb_client/api/tenant_profile_controller_api.py +2673 -0
  72. tb_client/api/translation_controller_api.py +1991 -0
  73. tb_client/api/trendz_api_controller_api.py +1190 -0
  74. tb_client/api/trendz_controller_api.py +1638 -0
  75. tb_client/api/two_factor_auth_config_controller_api.py +2580 -0
  76. tb_client/api/two_factor_auth_controller_api.py +1138 -0
  77. tb_client/api/ui_settings_controller_api.py +298 -0
  78. tb_client/api/usage_info_controller_api.py +295 -0
  79. tb_client/api/user_controller_api.py +9796 -0
  80. tb_client/api/user_permissions_controller_api.py +607 -0
  81. tb_client/api/white_labeling_controller_api.py +3675 -0
  82. tb_client/api/widget_type_controller_api.py +4392 -0
  83. tb_client/api/widgets_bundle_controller_api.py +2453 -0
  84. tb_client/api_client.py +805 -0
  85. tb_client/api_response.py +21 -0
  86. tb_client/configuration.py +627 -0
  87. tb_client/exceptions.py +219 -0
  88. tb_client/models/__init__.py +16 -0
  89. tb_client/models/account_two_fa_settings.py +102 -0
  90. tb_client/models/activate_user_request.py +91 -0
  91. tb_client/models/admin_settings.py +114 -0
  92. tb_client/models/admin_settings_id.py +99 -0
  93. tb_client/models/affected_tenant_administrators_filter.py +89 -0
  94. tb_client/models/affected_user_filter.py +89 -0
  95. tb_client/models/aggregation_configuration.py +101 -0
  96. tb_client/models/aggregation_params.py +115 -0
  97. tb_client/models/ai_chat_model_config_object.py +107 -0
  98. tb_client/models/ai_chat_model_config_object_provider_config.py +236 -0
  99. tb_client/models/ai_model.py +118 -0
  100. tb_client/models/ai_model_config.py +138 -0
  101. tb_client/models/ai_model_id.py +99 -0
  102. tb_client/models/alarm.py +182 -0
  103. tb_client/models/alarm_assignee.py +99 -0
  104. tb_client/models/alarm_assignment_notification_rule_trigger_config.py +128 -0
  105. tb_client/models/alarm_comment.py +140 -0
  106. tb_client/models/alarm_comment_id.py +90 -0
  107. tb_client/models/alarm_comment_info.py +146 -0
  108. tb_client/models/alarm_comment_notification_rule_trigger_config.py +121 -0
  109. tb_client/models/alarm_condition.py +103 -0
  110. tb_client/models/alarm_condition_filter.py +118 -0
  111. tb_client/models/alarm_condition_filter_key.py +101 -0
  112. tb_client/models/alarm_condition_spec.py +115 -0
  113. tb_client/models/alarm_count_query.py +145 -0
  114. tb_client/models/alarm_data.py +222 -0
  115. tb_client/models/alarm_data_page_link.py +143 -0
  116. tb_client/models/alarm_data_query.py +137 -0
  117. tb_client/models/alarm_filter_config.py +123 -0
  118. tb_client/models/alarm_id.py +99 -0
  119. tb_client/models/alarm_info.py +194 -0
  120. tb_client/models/alarm_notification_rule_trigger_config.py +121 -0
  121. tb_client/models/alarm_rule.py +107 -0
  122. tb_client/models/alarm_schedule.py +130 -0
  123. tb_client/models/alarm_table_component.py +135 -0
  124. tb_client/models/alias_entity_id.py +111 -0
  125. tb_client/models/all_users_filter.py +89 -0
  126. tb_client/models/allow_create_new_devices_device_profile_provision_configuration.py +90 -0
  127. tb_client/models/allowed_permissions_info.py +164 -0
  128. tb_client/models/amazon_bedrock_chat_model_config.py +122 -0
  129. tb_client/models/amazon_bedrock_provider_config.py +93 -0
  130. tb_client/models/anthropic_chat_model_config.py +124 -0
  131. tb_client/models/anthropic_provider_config.py +89 -0
  132. tb_client/models/any_time_schedule.py +94 -0
  133. tb_client/models/api_auth_token_post_request.py +94 -0
  134. tb_client/models/api_key.py +124 -0
  135. tb_client/models/api_key_id.py +99 -0
  136. tb_client/models/api_key_info.py +122 -0
  137. tb_client/models/api_usage_limit_notification_rule_trigger_config.py +115 -0
  138. tb_client/models/api_usage_state_filter.py +95 -0
  139. tb_client/models/argument.py +111 -0
  140. tb_client/models/asset.py +142 -0
  141. tb_client/models/asset_id.py +99 -0
  142. tb_client/models/asset_info.py +158 -0
  143. tb_client/models/asset_profile.py +134 -0
  144. tb_client/models/asset_profile_id.py +99 -0
  145. tb_client/models/asset_profile_info.py +109 -0
  146. tb_client/models/asset_search_query.py +97 -0
  147. tb_client/models/asset_search_query_filter.py +122 -0
  148. tb_client/models/asset_type_filter.py +95 -0
  149. tb_client/models/attribute_export_data.py +101 -0
  150. tb_client/models/attributes_entity_view.py +93 -0
  151. tb_client/models/attributes_immediate_output_strategy.py +99 -0
  152. tb_client/models/attributes_output.py +98 -0
  153. tb_client/models/attributes_output_strategy.py +112 -0
  154. tb_client/models/attributes_rule_chain_output_strategy.py +89 -0
  155. tb_client/models/audit_log.py +178 -0
  156. tb_client/models/audit_log_id.py +90 -0
  157. tb_client/models/auto_version_create_config.py +101 -0
  158. tb_client/models/available_entity_keys.py +102 -0
  159. tb_client/models/aws_sns_sms_provider_configuration.py +95 -0
  160. tb_client/models/azure_open_ai_chat_model_config.py +126 -0
  161. tb_client/models/azure_open_ai_provider_config.py +93 -0
  162. tb_client/models/backup_code_two_fa_account_config.py +95 -0
  163. tb_client/models/backup_code_two_fa_provider_config.py +92 -0
  164. tb_client/models/bar_series_settings.py +127 -0
  165. tb_client/models/base_read_ts_kv_query.py +119 -0
  166. tb_client/models/basic.py +93 -0
  167. tb_client/models/blob_entity_id.py +99 -0
  168. tb_client/models/blob_entity_info.py +150 -0
  169. tb_client/models/blob_entity_with_customer_info.py +156 -0
  170. tb_client/models/boolean_filter_predicate.py +107 -0
  171. tb_client/models/branch_info.py +91 -0
  172. tb_client/models/bulk_import_request.py +103 -0
  173. tb_client/models/bulk_import_result_asset.py +105 -0
  174. tb_client/models/bulk_import_result_asset_created.py +99 -0
  175. tb_client/models/bulk_import_result_device.py +105 -0
  176. tb_client/models/bulk_import_result_edge.py +105 -0
  177. tb_client/models/button.py +112 -0
  178. tb_client/models/calculated_field.py +141 -0
  179. tb_client/models/calculated_field_debug_event_filter.py +120 -0
  180. tb_client/models/calculated_field_id.py +99 -0
  181. tb_client/models/calculated_field_info.py +143 -0
  182. tb_client/models/captcha_params.py +115 -0
  183. tb_client/models/cell_settings.py +121 -0
  184. tb_client/models/cf_argument_dynamic_source_configuration.py +112 -0
  185. tb_client/models/cf_reprocessing_job_configuration.py +111 -0
  186. tb_client/models/cf_reprocessing_job_result.py +106 -0
  187. tb_client/models/cf_reprocessing_task_failure.py +95 -0
  188. tb_client/models/cf_reprocessing_task_result.py +99 -0
  189. tb_client/models/cf_reprocessing_validation_result.py +103 -0
  190. tb_client/models/change_password_request.py +91 -0
  191. tb_client/models/chart_fill_settings.py +107 -0
  192. tb_client/models/chart_fill_settings_gradient.py +91 -0
  193. tb_client/models/check_pre_provisioned_devices_device_profile_provision_configuration.py +90 -0
  194. tb_client/models/claim_request.py +89 -0
  195. tb_client/models/clear_rule.py +100 -0
  196. tb_client/models/client_attributes_querying_snmp_communication_config.py +101 -0
  197. tb_client/models/coap_device_profile_transport_configuration.py +101 -0
  198. tb_client/models/coap_device_transport_configuration.py +107 -0
  199. tb_client/models/coap_device_type_configuration.py +112 -0
  200. tb_client/models/color_range.py +93 -0
  201. tb_client/models/column_mapping.py +101 -0
  202. tb_client/models/column_settings.py +112 -0
  203. tb_client/models/comparison_ts_value.py +98 -0
  204. tb_client/models/complex_filter_predicate.py +110 -0
  205. tb_client/models/complex_version_create_request.py +118 -0
  206. tb_client/models/component_descriptor.py +170 -0
  207. tb_client/models/component_descriptor_id.py +90 -0
  208. tb_client/models/contact_based_object.py +123 -0
  209. tb_client/models/converter.py +156 -0
  210. tb_client/models/converter_id.py +99 -0
  211. tb_client/models/converters_info.py +93 -0
  212. tb_client/models/create_report_request.py +91 -0
  213. tb_client/models/csv_report_template_config.py +118 -0
  214. tb_client/models/current_owner_dynamic_source_configuration.py +89 -0
  215. tb_client/models/custom_menu.py +141 -0
  216. tb_client/models/custom_menu_config.py +97 -0
  217. tb_client/models/custom_menu_delete_result.py +111 -0
  218. tb_client/models/custom_menu_id.py +90 -0
  219. tb_client/models/custom_menu_info.py +135 -0
  220. tb_client/models/custom_menu_item.py +135 -0
  221. tb_client/models/custom_mobile_page.py +97 -0
  222. tb_client/models/custom_time_schedule.py +106 -0
  223. tb_client/models/custom_time_schedule_item.py +95 -0
  224. tb_client/models/customer.py +160 -0
  225. tb_client/models/customer_id.py +99 -0
  226. tb_client/models/customer_info.py +176 -0
  227. tb_client/models/customer_users_filter.py +92 -0
  228. tb_client/models/dashboard.py +168 -0
  229. tb_client/models/dashboard_component.py +151 -0
  230. tb_client/models/dashboard_id.py +99 -0
  231. tb_client/models/dashboard_info.py +184 -0
  232. tb_client/models/dashboard_page.py +97 -0
  233. tb_client/models/dashboard_report_config.py +112 -0
  234. tb_client/models/data_key.py +127 -0
  235. tb_client/models/data_key_comparison_settings.py +93 -0
  236. tb_client/models/data_key_settings.py +152 -0
  237. tb_client/models/data_source.py +130 -0
  238. tb_client/models/debug_converter_event_filter.py +106 -0
  239. tb_client/models/debug_integration_event_filter.py +104 -0
  240. tb_client/models/debug_settings.py +93 -0
  241. tb_client/models/default_coap_device_type_configuration.py +95 -0
  242. tb_client/models/default_dashboard_params.py +91 -0
  243. tb_client/models/default_data_key_settings.py +89 -0
  244. tb_client/models/default_device_configuration.py +89 -0
  245. tb_client/models/default_device_profile_configuration.py +89 -0
  246. tb_client/models/default_device_profile_transport_configuration.py +89 -0
  247. tb_client/models/default_device_transport_configuration.py +89 -0
  248. tb_client/models/default_menu_item.py +110 -0
  249. tb_client/models/default_mobile_page.py +107 -0
  250. tb_client/models/default_rule_chain_create_request.py +89 -0
  251. tb_client/models/default_tenant_profile_configuration.py +263 -0
  252. tb_client/models/delivery_method_notification_template.py +127 -0
  253. tb_client/models/device.py +159 -0
  254. tb_client/models/device_activity_notification_rule_trigger_config.py +105 -0
  255. tb_client/models/device_configuration.py +109 -0
  256. tb_client/models/device_credentials.py +121 -0
  257. tb_client/models/device_credentials_id.py +90 -0
  258. tb_client/models/device_data.py +99 -0
  259. tb_client/models/device_export_data.py +134 -0
  260. tb_client/models/device_group_ota_package.py +116 -0
  261. tb_client/models/device_id.py +99 -0
  262. tb_client/models/device_info.py +179 -0
  263. tb_client/models/device_profile.py +189 -0
  264. tb_client/models/device_profile_alarm.py +121 -0
  265. tb_client/models/device_profile_configuration.py +109 -0
  266. tb_client/models/device_profile_data.py +115 -0
  267. tb_client/models/device_profile_id.py +99 -0
  268. tb_client/models/device_profile_info.py +133 -0
  269. tb_client/models/device_profile_provision_configuration.py +119 -0
  270. tb_client/models/device_profile_transport_configuration.py +121 -0
  271. tb_client/models/device_search_query.py +97 -0
  272. tb_client/models/device_search_query_filter.py +122 -0
  273. tb_client/models/device_transport_configuration.py +121 -0
  274. tb_client/models/device_type_filter.py +95 -0
  275. tb_client/models/disabled_device_profile_provision_configuration.py +90 -0
  276. tb_client/models/divider_component.py +137 -0
  277. tb_client/models/domain.py +124 -0
  278. tb_client/models/domain_id.py +99 -0
  279. tb_client/models/domain_info.py +134 -0
  280. tb_client/models/dummy_job_configuration.py +117 -0
  281. tb_client/models/dummy_job_result.py +106 -0
  282. tb_client/models/dummy_task_failure.py +93 -0
  283. tb_client/models/dummy_task_result.py +99 -0
  284. tb_client/models/duration_alarm_condition_spec.py +107 -0
  285. tb_client/models/dynamic_value_boolean.py +105 -0
  286. tb_client/models/dynamic_value_double.py +105 -0
  287. tb_client/models/dynamic_value_integer.py +105 -0
  288. tb_client/models/dynamic_value_long.py +105 -0
  289. tb_client/models/dynamic_value_string.py +105 -0
  290. tb_client/models/edge.py +152 -0
  291. tb_client/models/edge_communication_failure_notification_rule_trigger_config.py +92 -0
  292. tb_client/models/edge_connection_notification_rule_trigger_config.py +105 -0
  293. tb_client/models/edge_event.py +149 -0
  294. tb_client/models/edge_event_id.py +90 -0
  295. tb_client/models/edge_id.py +99 -0
  296. tb_client/models/edge_info.py +168 -0
  297. tb_client/models/edge_instructions.py +89 -0
  298. tb_client/models/edge_search_query.py +97 -0
  299. tb_client/models/edge_search_query_filter.py +122 -0
  300. tb_client/models/edge_type_filter.py +95 -0
  301. tb_client/models/edqs_state.py +113 -0
  302. tb_client/models/edqs_sync_request.py +100 -0
  303. tb_client/models/efento_coap_device_type_configuration.py +89 -0
  304. tb_client/models/email_delivery_method_notification_template.py +94 -0
  305. tb_client/models/email_two_fa_account_config.py +93 -0
  306. tb_client/models/email_two_fa_provider_config.py +92 -0
  307. tb_client/models/enterprise_captcha_params.py +101 -0
  308. tb_client/models/entities_by_group_name_filter.py +113 -0
  309. tb_client/models/entities_limit_notification_rule_trigger_config.py +105 -0
  310. tb_client/models/entity.py +93 -0
  311. tb_client/models/entity_action_notification_rule_trigger_config.py +108 -0
  312. tb_client/models/entity_alias.py +97 -0
  313. tb_client/models/entity_count_query.py +103 -0
  314. tb_client/models/entity_data.py +151 -0
  315. tb_client/models/entity_data_diff.py +98 -0
  316. tb_client/models/entity_data_diff_current_version.py +239 -0
  317. tb_client/models/entity_data_info.py +99 -0
  318. tb_client/models/entity_data_page_link.py +101 -0
  319. tb_client/models/entity_data_query.py +128 -0
  320. tb_client/models/entity_data_sort_order.py +105 -0
  321. tb_client/models/entity_export_data_object.py +175 -0
  322. tb_client/models/entity_filter.py +169 -0
  323. tb_client/models/entity_group.py +142 -0
  324. tb_client/models/entity_group_export_data.py +150 -0
  325. tb_client/models/entity_group_filter.py +119 -0
  326. tb_client/models/entity_group_id.py +99 -0
  327. tb_client/models/entity_group_info.py +151 -0
  328. tb_client/models/entity_group_list_filter.py +103 -0
  329. tb_client/models/entity_group_name_filter.py +103 -0
  330. tb_client/models/entity_id.py +99 -0
  331. tb_client/models/entity_info.py +95 -0
  332. tb_client/models/entity_key.py +101 -0
  333. tb_client/models/entity_list_filter.py +103 -0
  334. tb_client/models/entity_load_error.py +102 -0
  335. tb_client/models/entity_name_filter.py +103 -0
  336. tb_client/models/entity_relation.py +119 -0
  337. tb_client/models/entity_relation_info.py +127 -0
  338. tb_client/models/entity_relations_query.py +103 -0
  339. tb_client/models/entity_subtype.py +107 -0
  340. tb_client/models/entity_table_component.py +133 -0
  341. tb_client/models/entity_type_filter.py +101 -0
  342. tb_client/models/entity_type_load_result.py +111 -0
  343. tb_client/models/entity_type_version_create_config.py +116 -0
  344. tb_client/models/entity_type_version_load_config.py +105 -0
  345. tb_client/models/entity_type_version_load_request.py +107 -0
  346. tb_client/models/entity_version.py +95 -0
  347. tb_client/models/entity_view.py +149 -0
  348. tb_client/models/entity_view_id.py +99 -0
  349. tb_client/models/entity_view_info.py +165 -0
  350. tb_client/models/entity_view_search_query.py +97 -0
  351. tb_client/models/entity_view_search_query_filter.py +122 -0
  352. tb_client/models/entity_view_type_filter.py +95 -0
  353. tb_client/models/error_component.py +98 -0
  354. tb_client/models/error_component_all_of_exception.py +116 -0
  355. tb_client/models/error_component_all_of_exception_cause.py +101 -0
  356. tb_client/models/error_component_all_of_exception_cause_stack_trace.py +103 -0
  357. tb_client/models/error_event_filter.py +96 -0
  358. tb_client/models/escalated_notification_rule_recipients_config.py +92 -0
  359. tb_client/models/event_filter.py +141 -0
  360. tb_client/models/event_id.py +90 -0
  361. tb_client/models/event_info.py +124 -0
  362. tb_client/models/exportable_entity_entity_id.py +95 -0
  363. tb_client/models/failure.py +92 -0
  364. tb_client/models/favicon.py +89 -0
  365. tb_client/models/features_info.py +99 -0
  366. tb_client/models/filter.py +101 -0
  367. tb_client/models/filter_predicate_value_boolean.py +97 -0
  368. tb_client/models/filter_predicate_value_double.py +97 -0
  369. tb_client/models/filter_predicate_value_integer.py +97 -0
  370. tb_client/models/filter_predicate_value_long.py +97 -0
  371. tb_client/models/filter_predicate_value_string.py +97 -0
  372. tb_client/models/fixed_time_window.py +91 -0
  373. tb_client/models/font.py +115 -0
  374. tb_client/models/git_hub_models_chat_model_config.py +126 -0
  375. tb_client/models/git_hub_models_provider_config.py +89 -0
  376. tb_client/models/google_ai_gemini_chat_model_config.py +128 -0
  377. tb_client/models/google_ai_gemini_provider_config.py +89 -0
  378. tb_client/models/google_vertex_ai_gemini_chat_model_config.py +128 -0
  379. tb_client/models/google_vertex_ai_gemini_provider_config.py +95 -0
  380. tb_client/models/group_entity_export_data.py +128 -0
  381. tb_client/models/group_permission.py +142 -0
  382. tb_client/models/group_permission_id.py +99 -0
  383. tb_client/models/group_permission_info.py +167 -0
  384. tb_client/models/has_id_object.py +94 -0
  385. tb_client/models/header_footer.py +106 -0
  386. tb_client/models/heading.py +123 -0
  387. tb_client/models/heading_component.py +155 -0
  388. tb_client/models/history.py +115 -0
  389. tb_client/models/home_dashboard_info.py +95 -0
  390. tb_client/models/home_dashboard_params.py +91 -0
  391. tb_client/models/home_menu_item.py +125 -0
  392. tb_client/models/image_component.py +159 -0
  393. tb_client/models/insets.py +95 -0
  394. tb_client/models/integration.py +163 -0
  395. tb_client/models/integration_converters_info.py +98 -0
  396. tb_client/models/integration_id.py +99 -0
  397. tb_client/models/integration_info.py +143 -0
  398. tb_client/models/integration_lifecycle_event_notification_rule_trigger_config.py +120 -0
  399. tb_client/models/interval.py +101 -0
  400. tb_client/models/job.py +144 -0
  401. tb_client/models/job_configuration.py +126 -0
  402. tb_client/models/job_id.py +99 -0
  403. tb_client/models/job_result.py +132 -0
  404. tb_client/models/json_transport_payload_configuration.py +89 -0
  405. tb_client/models/jwt_pair.py +103 -0
  406. tb_client/models/jwt_settings.py +95 -0
  407. tb_client/models/key_filter.py +111 -0
  408. tb_client/models/key_filter_predicate.py +118 -0
  409. tb_client/models/last_visited_dashboard_info.py +98 -0
  410. tb_client/models/latest_chart_component.py +153 -0
  411. tb_client/models/latest_chart_component_all_of_latest_chart_settings.py +166 -0
  412. tb_client/models/legend_config.py +111 -0
  413. tb_client/models/license_usage_info.py +109 -0
  414. tb_client/models/life_cycle_event_filter.py +108 -0
  415. tb_client/models/line_series_settings.py +167 -0
  416. tb_client/models/login_mobile_info.py +115 -0
  417. tb_client/models/login_request.py +91 -0
  418. tb_client/models/login_response.py +91 -0
  419. tb_client/models/login_white_labeling_params.py +145 -0
  420. tb_client/models/lw_m2_m_bootstrap_server_credential.py +118 -0
  421. tb_client/models/lw_m2_m_server_security_config_default.py +143 -0
  422. tb_client/models/lw_m2m_instance.py +99 -0
  423. tb_client/models/lw_m2m_object.py +107 -0
  424. tb_client/models/lw_m2m_resource_observe.py +99 -0
  425. tb_client/models/lw_m2m_version.py +89 -0
  426. tb_client/models/lwm2m_device_profile_transport_configuration.py +113 -0
  427. tb_client/models/lwm2m_device_transport_configuration.py +107 -0
  428. tb_client/models/mapping.py +103 -0
  429. tb_client/models/menu_item.py +126 -0
  430. tb_client/models/merged_group_permission_info.py +112 -0
  431. tb_client/models/merged_group_type_permission_info.py +99 -0
  432. tb_client/models/merged_user_permissions.py +172 -0
  433. tb_client/models/microsoft_teams_delivery_method_notification_template.py +101 -0
  434. tb_client/models/microsoft_teams_notification_target_config.py +112 -0
  435. tb_client/models/mistral_ai_chat_model_config.py +126 -0
  436. tb_client/models/mistral_ai_provider_config.py +89 -0
  437. tb_client/models/mobile_app.py +144 -0
  438. tb_client/models/mobile_app_bundle.py +137 -0
  439. tb_client/models/mobile_app_bundle_id.py +99 -0
  440. tb_client/models/mobile_app_bundle_info.py +153 -0
  441. tb_client/models/mobile_app_delivery_method_notification_template.py +101 -0
  442. tb_client/models/mobile_app_id.py +99 -0
  443. tb_client/models/mobile_app_notification_delivery_method_config.py +95 -0
  444. tb_client/models/mobile_app_version_info.py +95 -0
  445. tb_client/models/mobile_layout_config.py +97 -0
  446. tb_client/models/mobile_page.py +129 -0
  447. tb_client/models/mobile_redirect_params.py +91 -0
  448. tb_client/models/mobile_self_registration_params.py +165 -0
  449. tb_client/models/mobile_session_info.py +89 -0
  450. tb_client/models/model.py +98 -0
  451. tb_client/models/model_none.py +89 -0
  452. tb_client/models/mqtt_device_profile_transport_configuration.py +107 -0
  453. tb_client/models/mqtt_device_transport_configuration.py +89 -0
  454. tb_client/models/multi_value_map_string_string.py +102 -0
  455. tb_client/models/new_platform_version_notification_rule_trigger_config.py +89 -0
  456. tb_client/models/no_sec_lw_m2_m_bootstrap_server_credential.py +137 -0
  457. tb_client/models/node_connection_info.py +93 -0
  458. tb_client/models/notification.py +162 -0
  459. tb_client/models/notification_delivery_method_config.py +112 -0
  460. tb_client/models/notification_id.py +99 -0
  461. tb_client/models/notification_info.py +101 -0
  462. tb_client/models/notification_pref.py +91 -0
  463. tb_client/models/notification_request.py +161 -0
  464. tb_client/models/notification_request_config.py +100 -0
  465. tb_client/models/notification_request_id.py +99 -0
  466. tb_client/models/notification_request_info.py +176 -0
  467. tb_client/models/notification_request_preview.py +108 -0
  468. tb_client/models/notification_request_stats.py +113 -0
  469. tb_client/models/notification_rule.py +141 -0
  470. tb_client/models/notification_rule_config.py +89 -0
  471. tb_client/models/notification_rule_id.py +99 -0
  472. tb_client/models/notification_rule_info.py +156 -0
  473. tb_client/models/notification_rule_recipients_config.py +116 -0
  474. tb_client/models/notification_rule_trigger_config.py +161 -0
  475. tb_client/models/notification_settings.py +102 -0
  476. tb_client/models/notification_target.py +112 -0
  477. tb_client/models/notification_target_config.py +116 -0
  478. tb_client/models/notification_target_id.py +99 -0
  479. tb_client/models/notification_template.py +121 -0
  480. tb_client/models/notification_template_config.py +118 -0
  481. tb_client/models/notification_template_id.py +99 -0
  482. tb_client/models/numeric_filter_predicate.py +107 -0
  483. tb_client/models/o_auth2_basic_mapper_config.py +114 -0
  484. tb_client/models/o_auth2_client.py +172 -0
  485. tb_client/models/o_auth2_client_id.py +99 -0
  486. tb_client/models/o_auth2_client_info.py +118 -0
  487. tb_client/models/o_auth2_client_login_info.py +93 -0
  488. tb_client/models/o_auth2_client_registration_template.py +136 -0
  489. tb_client/models/o_auth2_client_registration_template_id.py +90 -0
  490. tb_client/models/o_auth2_custom_mapper_config.py +95 -0
  491. tb_client/models/o_auth2_mapper_config.py +112 -0
  492. tb_client/models/object_attributes.py +120 -0
  493. tb_client/models/ollama_auth.py +115 -0
  494. tb_client/models/ollama_chat_model_config.py +126 -0
  495. tb_client/models/ollama_provider_config.py +95 -0
  496. tb_client/models/open_ai_chat_model_config.py +126 -0
  497. tb_client/models/open_ai_provider_config.py +91 -0
  498. tb_client/models/originator_entity_owner_users_filter.py +89 -0
  499. tb_client/models/ota_package.py +194 -0
  500. tb_client/models/ota_package_data.py +103 -0
  501. tb_client/models/ota_package_export_data.py +128 -0
  502. tb_client/models/ota_package_id.py +99 -0
  503. tb_client/models/ota_package_info.py +188 -0
  504. tb_client/models/other_configuration.py +119 -0
  505. tb_client/models/output.py +131 -0
  506. tb_client/models/page_break_component.py +90 -0
  507. tb_client/models/page_data_ai_model.py +111 -0
  508. tb_client/models/page_data_alarm_comment_info.py +111 -0
  509. tb_client/models/page_data_alarm_data.py +111 -0
  510. tb_client/models/page_data_alarm_info.py +111 -0
  511. tb_client/models/page_data_api_key_info.py +111 -0
  512. tb_client/models/page_data_asset.py +111 -0
  513. tb_client/models/page_data_asset_info.py +111 -0
  514. tb_client/models/page_data_asset_profile.py +111 -0
  515. tb_client/models/page_data_asset_profile_info.py +111 -0
  516. tb_client/models/page_data_audit_log.py +111 -0
  517. tb_client/models/page_data_blob_entity_with_customer_info.py +111 -0
  518. tb_client/models/page_data_calculated_field.py +111 -0
  519. tb_client/models/page_data_calculated_field_info.py +111 -0
  520. tb_client/models/page_data_contact_based_object.py +111 -0
  521. tb_client/models/page_data_converter.py +111 -0
  522. tb_client/models/page_data_custom_menu_info.py +111 -0
  523. tb_client/models/page_data_customer.py +111 -0
  524. tb_client/models/page_data_customer_info.py +111 -0
  525. tb_client/models/page_data_dashboard_info.py +111 -0
  526. tb_client/models/page_data_device.py +111 -0
  527. tb_client/models/page_data_device_info.py +111 -0
  528. tb_client/models/page_data_device_profile.py +111 -0
  529. tb_client/models/page_data_device_profile_info.py +111 -0
  530. tb_client/models/page_data_domain_info.py +111 -0
  531. tb_client/models/page_data_edge.py +111 -0
  532. tb_client/models/page_data_edge_event.py +111 -0
  533. tb_client/models/page_data_edge_info.py +111 -0
  534. tb_client/models/page_data_entity_data.py +111 -0
  535. tb_client/models/page_data_entity_group_info.py +111 -0
  536. tb_client/models/page_data_entity_info.py +111 -0
  537. tb_client/models/page_data_entity_subtype.py +111 -0
  538. tb_client/models/page_data_entity_version.py +111 -0
  539. tb_client/models/page_data_entity_view.py +111 -0
  540. tb_client/models/page_data_entity_view_info.py +111 -0
  541. tb_client/models/page_data_event_info.py +111 -0
  542. tb_client/models/page_data_integration.py +111 -0
  543. tb_client/models/page_data_integration_info.py +111 -0
  544. tb_client/models/page_data_job.py +111 -0
  545. tb_client/models/page_data_mobile_app.py +111 -0
  546. tb_client/models/page_data_mobile_app_bundle_info.py +111 -0
  547. tb_client/models/page_data_notification.py +111 -0
  548. tb_client/models/page_data_notification_request_info.py +111 -0
  549. tb_client/models/page_data_notification_rule_info.py +111 -0
  550. tb_client/models/page_data_notification_target.py +111 -0
  551. tb_client/models/page_data_notification_template.py +111 -0
  552. tb_client/models/page_data_o_auth2_client_info.py +111 -0
  553. tb_client/models/page_data_ota_package_info.py +111 -0
  554. tb_client/models/page_data_queue.py +111 -0
  555. tb_client/models/page_data_queue_stats.py +111 -0
  556. tb_client/models/page_data_report.py +111 -0
  557. tb_client/models/page_data_report_info.py +111 -0
  558. tb_client/models/page_data_report_template_info.py +111 -0
  559. tb_client/models/page_data_role.py +111 -0
  560. tb_client/models/page_data_rule_chain.py +111 -0
  561. tb_client/models/page_data_scheduled_report_info.py +111 -0
  562. tb_client/models/page_data_scheduler_event_info.py +111 -0
  563. tb_client/models/page_data_scheduler_event_with_customer_info.py +111 -0
  564. tb_client/models/page_data_secret_info.py +111 -0
  565. tb_client/models/page_data_short_entity_view.py +111 -0
  566. tb_client/models/page_data_string.py +103 -0
  567. tb_client/models/page_data_tb_resource_info.py +111 -0
  568. tb_client/models/page_data_tenant.py +111 -0
  569. tb_client/models/page_data_tenant_info.py +111 -0
  570. tb_client/models/page_data_tenant_profile.py +111 -0
  571. tb_client/models/page_data_trendz_view_config_lite.py +111 -0
  572. tb_client/models/page_data_user.py +111 -0
  573. tb_client/models/page_data_user_email_info.py +111 -0
  574. tb_client/models/page_data_user_info.py +111 -0
  575. tb_client/models/page_data_widget_type_info.py +111 -0
  576. tb_client/models/page_data_widgets_bundle.py +111 -0
  577. tb_client/models/palette.py +93 -0
  578. tb_client/models/palette_settings.py +98 -0
  579. tb_client/models/pdf_report_template_config.py +161 -0
  580. tb_client/models/platform_two_fa_settings.py +130 -0
  581. tb_client/models/platform_users_notification_target_config.py +96 -0
  582. tb_client/models/power_saving_configuration.py +105 -0
  583. tb_client/models/processing_strategy.py +107 -0
  584. tb_client/models/proto_transport_payload_configuration.py +101 -0
  585. tb_client/models/psklw_m2_m_bootstrap_server_credential.py +137 -0
  586. tb_client/models/qr_code_config.py +107 -0
  587. tb_client/models/qr_code_settings.py +133 -0
  588. tb_client/models/qr_code_settings_id.py +90 -0
  589. tb_client/models/queue.py +134 -0
  590. tb_client/models/queue_id.py +99 -0
  591. tb_client/models/queue_stats.py +107 -0
  592. tb_client/models/queue_stats_id.py +99 -0
  593. tb_client/models/rate_limits_notification_rule_trigger_config.py +102 -0
  594. tb_client/models/raw_data_event_filter.py +98 -0
  595. tb_client/models/referenced_entity_key.py +113 -0
  596. tb_client/models/relation_entity_type_filter.py +104 -0
  597. tb_client/models/relation_path_level.py +99 -0
  598. tb_client/models/relation_path_query_dynamic_source_configuration.py +99 -0
  599. tb_client/models/relations_query_filter.py +146 -0
  600. tb_client/models/relations_search_parameters.py +130 -0
  601. tb_client/models/repeating_alarm_condition_spec.py +95 -0
  602. tb_client/models/report.py +141 -0
  603. tb_client/models/report_bar_chart_settings.py +168 -0
  604. tb_client/models/report_bar_chart_with_labels_settings.py +256 -0
  605. tb_client/models/report_component.py +169 -0
  606. tb_client/models/report_doughnut_chart_settings.py +172 -0
  607. tb_client/models/report_id.py +99 -0
  608. tb_client/models/report_info.py +151 -0
  609. tb_client/models/report_job_configuration.py +154 -0
  610. tb_client/models/report_job_result.py +112 -0
  611. tb_client/models/report_latest_chart_settings.py +151 -0
  612. tb_client/models/report_pie_chart_settings.py +180 -0
  613. tb_client/models/report_range_chart_settings.py +255 -0
  614. tb_client/models/report_request.py +118 -0
  615. tb_client/models/report_task_result.py +101 -0
  616. tb_client/models/report_template.py +151 -0
  617. tb_client/models/report_template_config.py +151 -0
  618. tb_client/models/report_template_id.py +99 -0
  619. tb_client/models/report_template_info.py +149 -0
  620. tb_client/models/report_time_series_chart_settings.py +222 -0
  621. tb_client/models/repository_settings.py +119 -0
  622. tb_client/models/repository_settings_info.py +91 -0
  623. tb_client/models/reset_password_email_request.py +89 -0
  624. tb_client/models/reset_password_request.py +91 -0
  625. tb_client/models/resource_export_data.py +129 -0
  626. tb_client/models/resources_shortage_notification_rule_trigger_config.py +96 -0
  627. tb_client/models/rich_text_component.py +121 -0
  628. tb_client/models/role.py +148 -0
  629. tb_client/models/role_id.py +99 -0
  630. tb_client/models/rpc.py +158 -0
  631. tb_client/models/rpc_id.py +99 -0
  632. tb_client/models/rpklw_m2_m_bootstrap_server_credential.py +137 -0
  633. tb_client/models/rule_chain.py +145 -0
  634. tb_client/models/rule_chain_connection_info.py +104 -0
  635. tb_client/models/rule_chain_data.py +111 -0
  636. tb_client/models/rule_chain_debug_event_filter.py +100 -0
  637. tb_client/models/rule_chain_export_data.py +134 -0
  638. tb_client/models/rule_chain_id.py +99 -0
  639. tb_client/models/rule_chain_import_result.py +99 -0
  640. tb_client/models/rule_chain_meta_data.py +129 -0
  641. tb_client/models/rule_chain_output_labels_usage.py +115 -0
  642. tb_client/models/rule_engine_component_lifecycle_event_notification_rule_trigger_config.py +124 -0
  643. tb_client/models/rule_node.py +142 -0
  644. tb_client/models/rule_node_debug_event_filter.py +134 -0
  645. tb_client/models/rule_node_id.py +99 -0
  646. tb_client/models/save_device_with_credentials_request.py +99 -0
  647. tb_client/models/save_ota_package_info_request.py +192 -0
  648. tb_client/models/scheduled_report_info.py +166 -0
  649. tb_client/models/scheduler_event.py +157 -0
  650. tb_client/models/scheduler_event_export_data.py +128 -0
  651. tb_client/models/scheduler_event_filter.py +104 -0
  652. tb_client/models/scheduler_event_id.py +99 -0
  653. tb_client/models/scheduler_event_info.py +150 -0
  654. tb_client/models/scheduler_event_with_customer_info.py +158 -0
  655. tb_client/models/secret.py +123 -0
  656. tb_client/models/secret_id.py +99 -0
  657. tb_client/models/secret_info.py +119 -0
  658. tb_client/models/security_settings.py +104 -0
  659. tb_client/models/self_registration_params.py +175 -0
  660. tb_client/models/share_group_request.py +113 -0
  661. tb_client/models/shared_attributes_setting_snmp_communication_config.py +99 -0
  662. tb_client/models/short_customer_info.py +99 -0
  663. tb_client/models/short_entity_view.py +99 -0
  664. tb_client/models/sign_up_field.py +100 -0
  665. tb_client/models/sign_up_request.py +107 -0
  666. tb_client/models/sign_up_self_registration_params.py +109 -0
  667. tb_client/models/simple_alarm_condition_spec.py +89 -0
  668. tb_client/models/simple_calculated_field_configuration.py +112 -0
  669. tb_client/models/simple_entity.py +91 -0
  670. tb_client/models/single_entity_filter.py +95 -0
  671. tb_client/models/single_entity_version_create_request.py +103 -0
  672. tb_client/models/single_entity_version_load_request.py +107 -0
  673. tb_client/models/slack_conversation.py +107 -0
  674. tb_client/models/slack_delivery_method_notification_template.py +91 -0
  675. tb_client/models/slack_notification_delivery_method_config.py +92 -0
  676. tb_client/models/slack_notification_target_config.py +108 -0
  677. tb_client/models/smpp_sms_provider_configuration.py +146 -0
  678. tb_client/models/sms_delivery_method_notification_template.py +91 -0
  679. tb_client/models/sms_provider_configuration.py +115 -0
  680. tb_client/models/sms_two_fa_account_config.py +103 -0
  681. tb_client/models/sms_two_fa_provider_config.py +104 -0
  682. tb_client/models/snmp_communication_config.py +131 -0
  683. tb_client/models/snmp_device_profile_transport_configuration.py +103 -0
  684. tb_client/models/snmp_device_transport_configuration.py +143 -0
  685. tb_client/models/snmp_mapping.py +103 -0
  686. tb_client/models/solution_install_response.py +111 -0
  687. tb_client/models/specific_time_schedule.py +102 -0
  688. tb_client/models/split_view_component.py +147 -0
  689. tb_client/models/starred_dashboard_info.py +96 -0
  690. tb_client/models/state_entity_filter.py +95 -0
  691. tb_client/models/state_entity_owner_filter.py +100 -0
  692. tb_client/models/statistics_event_filter.py +100 -0
  693. tb_client/models/store_info.py +93 -0
  694. tb_client/models/string_filter_predicate.py +109 -0
  695. tb_client/models/sub_report_component.py +108 -0
  696. tb_client/models/submit_strategy.py +101 -0
  697. tb_client/models/subscription_info.py +139 -0
  698. tb_client/models/success.py +92 -0
  699. tb_client/models/system_administrators_filter.py +89 -0
  700. tb_client/models/system_info.py +99 -0
  701. tb_client/models/system_info_data.py +103 -0
  702. tb_client/models/table_sort_order.py +101 -0
  703. tb_client/models/task_processing_failure_notification_rule_trigger_config.py +89 -0
  704. tb_client/models/task_result.py +119 -0
  705. tb_client/models/tb_chat_request.py +101 -0
  706. tb_client/models/tb_chat_response.py +112 -0
  707. tb_client/models/tb_content.py +109 -0
  708. tb_client/models/tb_image_delete_result.py +116 -0
  709. tb_client/models/tb_resource.py +182 -0
  710. tb_client/models/tb_resource_delete_result.py +106 -0
  711. tb_client/models/tb_resource_id.py +99 -0
  712. tb_client/models/tb_resource_info.py +178 -0
  713. tb_client/models/tb_secret_delete_result.py +106 -0
  714. tb_client/models/tb_text_content.py +92 -0
  715. tb_client/models/tb_user_message.py +98 -0
  716. tb_client/models/telemetry_entity_view.py +95 -0
  717. tb_client/models/telemetry_mapping_configuration.py +124 -0
  718. tb_client/models/telemetry_querying_snmp_communication_config.py +101 -0
  719. tb_client/models/tenant.py +136 -0
  720. tb_client/models/tenant_administrators_filter.py +94 -0
  721. tb_client/models/tenant_id.py +99 -0
  722. tb_client/models/tenant_info.py +138 -0
  723. tb_client/models/tenant_profile.py +111 -0
  724. tb_client/models/tenant_profile_configuration.py +109 -0
  725. tb_client/models/tenant_profile_data.py +103 -0
  726. tb_client/models/tenant_profile_id.py +99 -0
  727. tb_client/models/tenant_profile_queue_configuration.py +118 -0
  728. tb_client/models/tenant_solution_template_details.py +117 -0
  729. tb_client/models/tenant_solution_template_info.py +119 -0
  730. tb_client/models/tenant_solution_template_instructions.py +109 -0
  731. tb_client/models/test_sms_request.py +97 -0
  732. tb_client/models/thingsboard_credentials_expired_response.py +138 -0
  733. tb_client/models/thingsboard_error_response.py +134 -0
  734. tb_client/models/time_series_chart_bar_width.py +93 -0
  735. tb_client/models/time_series_chart_bar_width_settings.py +91 -0
  736. tb_client/models/time_series_chart_grid_settings.py +95 -0
  737. tb_client/models/time_series_chart_key_settings.py +123 -0
  738. tb_client/models/time_series_chart_no_aggregation_bar_width_settings.py +110 -0
  739. tb_client/models/time_series_chart_state_settings.py +114 -0
  740. tb_client/models/time_series_chart_threshold.py +187 -0
  741. tb_client/models/time_series_chart_x_axis_settings.py +134 -0
  742. tb_client/models/time_series_chart_y_axis_settings.py +148 -0
  743. tb_client/models/time_series_immediate_output_strategy.py +99 -0
  744. tb_client/models/time_series_output.py +98 -0
  745. tb_client/models/time_series_output_strategy.py +112 -0
  746. tb_client/models/time_series_rule_chain_output_strategy.py +89 -0
  747. tb_client/models/time_window_configuration.py +101 -0
  748. tb_client/models/timeseries_chart_component.py +159 -0
  749. tb_client/models/timeseries_chart_component_all_of_time_series_chart_settings.py +152 -0
  750. tb_client/models/timeseries_table_component.py +151 -0
  751. tb_client/models/to_core_edqs_request.py +95 -0
  752. tb_client/models/to_device_rpc_request_snmp_communication_config.py +99 -0
  753. tb_client/models/to_server_rpc_request_snmp_communication_config.py +99 -0
  754. tb_client/models/token.py +91 -0
  755. tb_client/models/totp_two_fa_account_config.py +103 -0
  756. tb_client/models/totp_two_fa_provider_config.py +92 -0
  757. tb_client/models/translation_info.py +97 -0
  758. tb_client/models/transport_payload_type_configuration.py +112 -0
  759. tb_client/models/trendz_configuration.py +91 -0
  760. tb_client/models/trendz_healthcheck_result.py +115 -0
  761. tb_client/models/trendz_summary.py +99 -0
  762. tb_client/models/trendz_synchronization_result.py +115 -0
  763. tb_client/models/trendz_usage.py +121 -0
  764. tb_client/models/trendz_view_config.py +94 -0
  765. tb_client/models/trendz_view_config_lite.py +92 -0
  766. tb_client/models/ts_value.py +93 -0
  767. tb_client/models/twilio_sms_provider_configuration.py +95 -0
  768. tb_client/models/two_fa_account_config.py +119 -0
  769. tb_client/models/two_fa_account_config_update_request.py +89 -0
  770. tb_client/models/two_fa_provider_config.py +118 -0
  771. tb_client/models/two_fa_provider_info.py +107 -0
  772. tb_client/models/update_message.py +99 -0
  773. tb_client/models/usage_info.py +141 -0
  774. tb_client/models/user.py +157 -0
  775. tb_client/models/user_activation_link.py +91 -0
  776. tb_client/models/user_dashboards_info.py +111 -0
  777. tb_client/models/user_email_info.py +99 -0
  778. tb_client/models/user_group_list_filter.py +93 -0
  779. tb_client/models/user_id.py +99 -0
  780. tb_client/models/user_info.py +173 -0
  781. tb_client/models/user_list_filter.py +93 -0
  782. tb_client/models/user_mobile_info.py +118 -0
  783. tb_client/models/user_notification_settings.py +102 -0
  784. tb_client/models/user_password_policy.py +107 -0
  785. tb_client/models/user_role_filter.py +93 -0
  786. tb_client/models/users_filter.py +136 -0
  787. tb_client/models/v2_captcha_params.py +95 -0
  788. tb_client/models/v3_captcha_params.py +95 -0
  789. tb_client/models/vendor.py +91 -0
  790. tb_client/models/version_create_config.py +99 -0
  791. tb_client/models/version_create_request.py +124 -0
  792. tb_client/models/version_creation_result.py +103 -0
  793. tb_client/models/version_load_config.py +101 -0
  794. tb_client/models/version_load_request.py +123 -0
  795. tb_client/models/version_load_result.py +105 -0
  796. tb_client/models/versioned_entity_info.py +95 -0
  797. tb_client/models/web_delivery_method_notification_template.py +101 -0
  798. tb_client/models/web_self_registration_params.py +165 -0
  799. tb_client/models/web_view_page.py +97 -0
  800. tb_client/models/white_labeling.py +124 -0
  801. tb_client/models/white_labeling_params.py +127 -0
  802. tb_client/models/widget_bundle_info.py +95 -0
  803. tb_client/models/widget_type.py +128 -0
  804. tb_client/models/widget_type_details.py +144 -0
  805. tb_client/models/widget_type_export_data.py +128 -0
  806. tb_client/models/widget_type_id.py +99 -0
  807. tb_client/models/widget_type_info.py +147 -0
  808. tb_client/models/widgets_bundle.py +135 -0
  809. tb_client/models/widgets_bundle_export_data.py +132 -0
  810. tb_client/models/widgets_bundle_id.py +99 -0
  811. tb_client/models/x509_certificate_chain_provision_configuration.py +94 -0
  812. tb_client/models/x509_lw_m2_m_bootstrap_server_credential.py +137 -0
  813. tb_client/py.typed +0 -0
  814. tb_client/rest.py +264 -0
  815. tbctl/__init__.py +0 -0
  816. tbctl/cli.py +36 -0
  817. tbctl/commands/__init__.py +0 -0
  818. tbctl/commands/_client.py +252 -0
  819. tbctl/commands/attributes.py +70 -0
  820. tbctl/commands/config_cmd.py +73 -0
  821. tbctl/commands/device.py +223 -0
  822. tbctl/commands/ota.py +562 -0
  823. tbctl/commands/telemetry.py +273 -0
  824. tbctl/config.py +31 -0
  825. tbctl-0.2.0.dist-info/METADATA +201 -0
  826. tbctl-0.2.0.dist-info/RECORD +829 -0
  827. tbctl-0.2.0.dist-info/WHEEL +4 -0
  828. tbctl-0.2.0.dist-info/entry_points.txt +2 -0
  829. tbctl-0.2.0.dist-info/licenses/LICENSE +202 -0
@@ -0,0 +1,982 @@
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 pydantic import Field, StrictInt, StrictStr, field_validator
20
+ from typing import Optional
21
+ from typing_extensions import Annotated
22
+ from tb_client.models.alarm_comment import AlarmComment
23
+ from tb_client.models.page_data_alarm_comment_info import PageDataAlarmCommentInfo
24
+
25
+ from tb_client.api_client import ApiClient, RequestSerialized
26
+ from tb_client.api_response import ApiResponse
27
+ from tb_client.rest import RESTResponseType
28
+
29
+
30
+ class AlarmCommentControllerApi:
31
+ """NOTE: This class is auto generated by OpenAPI Generator
32
+ Ref: https://openapi-generator.tech
33
+
34
+ Do not edit the class manually.
35
+ """
36
+
37
+ def __init__(self, api_client=None) -> None:
38
+ if api_client is None:
39
+ api_client = ApiClient.get_default()
40
+ self.api_client = api_client
41
+
42
+
43
+ @validate_call
44
+ def delete_alarm_comment(
45
+ self,
46
+ alarm_id: Annotated[StrictStr, Field(description="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
47
+ comment_id: Annotated[StrictStr, Field(description="A string value representing the alarm comment id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
48
+ _request_timeout: Union[
49
+ None,
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Tuple[
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Annotated[StrictFloat, Field(gt=0)]
54
+ ]
55
+ ] = None,
56
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
57
+ _content_type: Optional[StrictStr] = None,
58
+ _headers: Optional[Dict[StrictStr, Any]] = None,
59
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
60
+ ) -> None:
61
+ """Delete Alarm comment (deleteAlarmComment)
62
+
63
+ Deletes the Alarm comment. Referencing non-existing Alarm comment Id will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
64
+
65
+ :param alarm_id: A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
66
+ :type alarm_id: str
67
+ :param comment_id: A string value representing the alarm comment id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
68
+ :type comment_id: str
69
+ :param _request_timeout: timeout setting for this request. If one
70
+ number provided, it will be total request
71
+ timeout. It can also be a pair (tuple) of
72
+ (connection, read) timeouts.
73
+ :type _request_timeout: int, tuple(int, int), optional
74
+ :param _request_auth: set to override the auth_settings for an a single
75
+ request; this effectively ignores the
76
+ authentication in the spec for a single request.
77
+ :type _request_auth: dict, optional
78
+ :param _content_type: force content-type for the request.
79
+ :type _content_type: str, Optional
80
+ :param _headers: set to override the headers for a single
81
+ request; this effectively ignores the headers
82
+ in the spec for a single request.
83
+ :type _headers: dict, optional
84
+ :param _host_index: set to override the host_index for a single
85
+ request; this effectively ignores the host_index
86
+ in the spec for a single request.
87
+ :type _host_index: int, optional
88
+ :return: Returns the result object.
89
+ """ # noqa: E501
90
+
91
+ _param = self._delete_alarm_comment_serialize(
92
+ alarm_id=alarm_id,
93
+ comment_id=comment_id,
94
+ _request_auth=_request_auth,
95
+ _content_type=_content_type,
96
+ _headers=_headers,
97
+ _host_index=_host_index
98
+ )
99
+
100
+ _response_types_map: Dict[str, Optional[str]] = {
101
+ '200': None,
102
+ '400': "ThingsboardErrorResponse",
103
+ '401': "ThingsboardErrorResponse",
104
+ '403': "ThingsboardErrorResponse",
105
+ '404': "ThingsboardErrorResponse",
106
+ '429': "ThingsboardErrorResponse",
107
+ }
108
+ response_data = self.api_client.call_api(
109
+ *_param,
110
+ _request_timeout=_request_timeout
111
+ )
112
+ response_data.read()
113
+ return self.api_client.response_deserialize(
114
+ response_data=response_data,
115
+ response_types_map=_response_types_map,
116
+ ).data
117
+
118
+
119
+ @validate_call
120
+ def delete_alarm_comment_with_http_info(
121
+ self,
122
+ alarm_id: Annotated[StrictStr, Field(description="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
123
+ comment_id: Annotated[StrictStr, Field(description="A string value representing the alarm comment id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
124
+ _request_timeout: Union[
125
+ None,
126
+ Annotated[StrictFloat, Field(gt=0)],
127
+ Tuple[
128
+ Annotated[StrictFloat, Field(gt=0)],
129
+ Annotated[StrictFloat, Field(gt=0)]
130
+ ]
131
+ ] = None,
132
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
133
+ _content_type: Optional[StrictStr] = None,
134
+ _headers: Optional[Dict[StrictStr, Any]] = None,
135
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
136
+ ) -> ApiResponse[None]:
137
+ """Delete Alarm comment (deleteAlarmComment)
138
+
139
+ Deletes the Alarm comment. Referencing non-existing Alarm comment Id will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
140
+
141
+ :param alarm_id: A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
142
+ :type alarm_id: str
143
+ :param comment_id: A string value representing the alarm comment id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
144
+ :type comment_id: str
145
+ :param _request_timeout: timeout setting for this request. If one
146
+ number provided, it will be total request
147
+ timeout. It can also be a pair (tuple) of
148
+ (connection, read) timeouts.
149
+ :type _request_timeout: int, tuple(int, int), optional
150
+ :param _request_auth: set to override the auth_settings for an a single
151
+ request; this effectively ignores the
152
+ authentication in the spec for a single request.
153
+ :type _request_auth: dict, optional
154
+ :param _content_type: force content-type for the request.
155
+ :type _content_type: str, Optional
156
+ :param _headers: set to override the headers for a single
157
+ request; this effectively ignores the headers
158
+ in the spec for a single request.
159
+ :type _headers: dict, optional
160
+ :param _host_index: set to override the host_index for a single
161
+ request; this effectively ignores the host_index
162
+ in the spec for a single request.
163
+ :type _host_index: int, optional
164
+ :return: Returns the result object.
165
+ """ # noqa: E501
166
+
167
+ _param = self._delete_alarm_comment_serialize(
168
+ alarm_id=alarm_id,
169
+ comment_id=comment_id,
170
+ _request_auth=_request_auth,
171
+ _content_type=_content_type,
172
+ _headers=_headers,
173
+ _host_index=_host_index
174
+ )
175
+
176
+ _response_types_map: Dict[str, Optional[str]] = {
177
+ '200': None,
178
+ '400': "ThingsboardErrorResponse",
179
+ '401': "ThingsboardErrorResponse",
180
+ '403': "ThingsboardErrorResponse",
181
+ '404': "ThingsboardErrorResponse",
182
+ '429': "ThingsboardErrorResponse",
183
+ }
184
+ response_data = self.api_client.call_api(
185
+ *_param,
186
+ _request_timeout=_request_timeout
187
+ )
188
+ response_data.read()
189
+ return self.api_client.response_deserialize(
190
+ response_data=response_data,
191
+ response_types_map=_response_types_map,
192
+ )
193
+
194
+
195
+ @validate_call
196
+ def delete_alarm_comment_without_preload_content(
197
+ self,
198
+ alarm_id: Annotated[StrictStr, Field(description="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
199
+ comment_id: Annotated[StrictStr, Field(description="A string value representing the alarm comment id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
200
+ _request_timeout: Union[
201
+ None,
202
+ Annotated[StrictFloat, Field(gt=0)],
203
+ Tuple[
204
+ Annotated[StrictFloat, Field(gt=0)],
205
+ Annotated[StrictFloat, Field(gt=0)]
206
+ ]
207
+ ] = None,
208
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
209
+ _content_type: Optional[StrictStr] = None,
210
+ _headers: Optional[Dict[StrictStr, Any]] = None,
211
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
212
+ ) -> RESTResponseType:
213
+ """Delete Alarm comment (deleteAlarmComment)
214
+
215
+ Deletes the Alarm comment. Referencing non-existing Alarm comment Id will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
216
+
217
+ :param alarm_id: A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
218
+ :type alarm_id: str
219
+ :param comment_id: A string value representing the alarm comment id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
220
+ :type comment_id: str
221
+ :param _request_timeout: timeout setting for this request. If one
222
+ number provided, it will be total request
223
+ timeout. It can also be a pair (tuple) of
224
+ (connection, read) timeouts.
225
+ :type _request_timeout: int, tuple(int, int), optional
226
+ :param _request_auth: set to override the auth_settings for an a single
227
+ request; this effectively ignores the
228
+ authentication in the spec for a single request.
229
+ :type _request_auth: dict, optional
230
+ :param _content_type: force content-type for the request.
231
+ :type _content_type: str, Optional
232
+ :param _headers: set to override the headers for a single
233
+ request; this effectively ignores the headers
234
+ in the spec for a single request.
235
+ :type _headers: dict, optional
236
+ :param _host_index: set to override the host_index for a single
237
+ request; this effectively ignores the host_index
238
+ in the spec for a single request.
239
+ :type _host_index: int, optional
240
+ :return: Returns the result object.
241
+ """ # noqa: E501
242
+
243
+ _param = self._delete_alarm_comment_serialize(
244
+ alarm_id=alarm_id,
245
+ comment_id=comment_id,
246
+ _request_auth=_request_auth,
247
+ _content_type=_content_type,
248
+ _headers=_headers,
249
+ _host_index=_host_index
250
+ )
251
+
252
+ _response_types_map: Dict[str, Optional[str]] = {
253
+ '200': None,
254
+ '400': "ThingsboardErrorResponse",
255
+ '401': "ThingsboardErrorResponse",
256
+ '403': "ThingsboardErrorResponse",
257
+ '404': "ThingsboardErrorResponse",
258
+ '429': "ThingsboardErrorResponse",
259
+ }
260
+ response_data = self.api_client.call_api(
261
+ *_param,
262
+ _request_timeout=_request_timeout
263
+ )
264
+ return response_data.response
265
+
266
+
267
+ def _delete_alarm_comment_serialize(
268
+ self,
269
+ alarm_id,
270
+ comment_id,
271
+ _request_auth,
272
+ _content_type,
273
+ _headers,
274
+ _host_index,
275
+ ) -> RequestSerialized:
276
+
277
+ _host = None
278
+
279
+ _collection_formats: Dict[str, str] = {
280
+ }
281
+
282
+ _path_params: Dict[str, str] = {}
283
+ _query_params: List[Tuple[str, str]] = []
284
+ _header_params: Dict[str, Optional[str]] = _headers or {}
285
+ _form_params: List[Tuple[str, str]] = []
286
+ _files: Dict[
287
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
288
+ ] = {}
289
+ _body_params: Optional[bytes] = None
290
+
291
+ # process the path parameters
292
+ if alarm_id is not None:
293
+ _path_params['alarmId'] = alarm_id
294
+ if comment_id is not None:
295
+ _path_params['commentId'] = comment_id
296
+ # process the query parameters
297
+ # process the header parameters
298
+ # process the form parameters
299
+ # process the body parameter
300
+
301
+
302
+ # set the HTTP header `Accept`
303
+ if 'Accept' not in _header_params:
304
+ _header_params['Accept'] = self.api_client.select_header_accept(
305
+ [
306
+ 'application/json'
307
+ ]
308
+ )
309
+
310
+
311
+ # authentication setting
312
+ _auth_settings: List[str] = [
313
+ 'HTTP login form',
314
+ 'API key form'
315
+ ]
316
+
317
+ return self.api_client.param_serialize(
318
+ method='DELETE',
319
+ resource_path='/api/alarm/{alarmId}/comment/{commentId}',
320
+ path_params=_path_params,
321
+ query_params=_query_params,
322
+ header_params=_header_params,
323
+ body=_body_params,
324
+ post_params=_form_params,
325
+ files=_files,
326
+ auth_settings=_auth_settings,
327
+ collection_formats=_collection_formats,
328
+ _host=_host,
329
+ _request_auth=_request_auth
330
+ )
331
+
332
+
333
+
334
+
335
+ @validate_call
336
+ def get_alarm_comments(
337
+ self,
338
+ alarm_id: Annotated[StrictStr, Field(description="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
339
+ page_size: Annotated[StrictInt, Field(description="Maximum amount of entities in a one page")],
340
+ page: Annotated[StrictInt, Field(description="Sequence number of page starting from 0")],
341
+ sort_property: Annotated[Optional[StrictStr], Field(description="Property of entity to sort by")] = None,
342
+ sort_order: Annotated[Optional[StrictStr], Field(description="Sort order. ASC (ASCENDING) or DESC (DESCENDING)")] = None,
343
+ _request_timeout: Union[
344
+ None,
345
+ Annotated[StrictFloat, Field(gt=0)],
346
+ Tuple[
347
+ Annotated[StrictFloat, Field(gt=0)],
348
+ Annotated[StrictFloat, Field(gt=0)]
349
+ ]
350
+ ] = None,
351
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
352
+ _content_type: Optional[StrictStr] = None,
353
+ _headers: Optional[Dict[StrictStr, Any]] = None,
354
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
355
+ ) -> PageDataAlarmCommentInfo:
356
+ """Get Alarm comments (getAlarmComments)
357
+
358
+ Returns a page of alarm comments for specified alarm. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
359
+
360
+ :param alarm_id: A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
361
+ :type alarm_id: str
362
+ :param page_size: Maximum amount of entities in a one page (required)
363
+ :type page_size: int
364
+ :param page: Sequence number of page starting from 0 (required)
365
+ :type page: int
366
+ :param sort_property: Property of entity to sort by
367
+ :type sort_property: str
368
+ :param sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
369
+ :type sort_order: str
370
+ :param _request_timeout: timeout setting for this request. If one
371
+ number provided, it will be total request
372
+ timeout. It can also be a pair (tuple) of
373
+ (connection, read) timeouts.
374
+ :type _request_timeout: int, tuple(int, int), optional
375
+ :param _request_auth: set to override the auth_settings for an a single
376
+ request; this effectively ignores the
377
+ authentication in the spec for a single request.
378
+ :type _request_auth: dict, optional
379
+ :param _content_type: force content-type for the request.
380
+ :type _content_type: str, Optional
381
+ :param _headers: set to override the headers for a single
382
+ request; this effectively ignores the headers
383
+ in the spec for a single request.
384
+ :type _headers: dict, optional
385
+ :param _host_index: set to override the host_index for a single
386
+ request; this effectively ignores the host_index
387
+ in the spec for a single request.
388
+ :type _host_index: int, optional
389
+ :return: Returns the result object.
390
+ """ # noqa: E501
391
+
392
+ _param = self._get_alarm_comments_serialize(
393
+ alarm_id=alarm_id,
394
+ page_size=page_size,
395
+ page=page,
396
+ sort_property=sort_property,
397
+ sort_order=sort_order,
398
+ _request_auth=_request_auth,
399
+ _content_type=_content_type,
400
+ _headers=_headers,
401
+ _host_index=_host_index
402
+ )
403
+
404
+ _response_types_map: Dict[str, Optional[str]] = {
405
+ '200': "PageDataAlarmCommentInfo",
406
+ '400': "ThingsboardErrorResponse",
407
+ '401': "ThingsboardErrorResponse",
408
+ '403': "ThingsboardErrorResponse",
409
+ '404': "ThingsboardErrorResponse",
410
+ '429': "ThingsboardErrorResponse",
411
+ }
412
+ response_data = self.api_client.call_api(
413
+ *_param,
414
+ _request_timeout=_request_timeout
415
+ )
416
+ response_data.read()
417
+ return self.api_client.response_deserialize(
418
+ response_data=response_data,
419
+ response_types_map=_response_types_map,
420
+ ).data
421
+
422
+
423
+ @validate_call
424
+ def get_alarm_comments_with_http_info(
425
+ self,
426
+ alarm_id: Annotated[StrictStr, Field(description="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
427
+ page_size: Annotated[StrictInt, Field(description="Maximum amount of entities in a one page")],
428
+ page: Annotated[StrictInt, Field(description="Sequence number of page starting from 0")],
429
+ sort_property: Annotated[Optional[StrictStr], Field(description="Property of entity to sort by")] = None,
430
+ sort_order: Annotated[Optional[StrictStr], Field(description="Sort order. ASC (ASCENDING) or DESC (DESCENDING)")] = None,
431
+ _request_timeout: Union[
432
+ None,
433
+ Annotated[StrictFloat, Field(gt=0)],
434
+ Tuple[
435
+ Annotated[StrictFloat, Field(gt=0)],
436
+ Annotated[StrictFloat, Field(gt=0)]
437
+ ]
438
+ ] = None,
439
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
440
+ _content_type: Optional[StrictStr] = None,
441
+ _headers: Optional[Dict[StrictStr, Any]] = None,
442
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
443
+ ) -> ApiResponse[PageDataAlarmCommentInfo]:
444
+ """Get Alarm comments (getAlarmComments)
445
+
446
+ Returns a page of alarm comments for specified alarm. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
447
+
448
+ :param alarm_id: A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
449
+ :type alarm_id: str
450
+ :param page_size: Maximum amount of entities in a one page (required)
451
+ :type page_size: int
452
+ :param page: Sequence number of page starting from 0 (required)
453
+ :type page: int
454
+ :param sort_property: Property of entity to sort by
455
+ :type sort_property: str
456
+ :param sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
457
+ :type sort_order: str
458
+ :param _request_timeout: timeout setting for this request. If one
459
+ number provided, it will be total request
460
+ timeout. It can also be a pair (tuple) of
461
+ (connection, read) timeouts.
462
+ :type _request_timeout: int, tuple(int, int), optional
463
+ :param _request_auth: set to override the auth_settings for an a single
464
+ request; this effectively ignores the
465
+ authentication in the spec for a single request.
466
+ :type _request_auth: dict, optional
467
+ :param _content_type: force content-type for the request.
468
+ :type _content_type: str, Optional
469
+ :param _headers: set to override the headers for a single
470
+ request; this effectively ignores the headers
471
+ in the spec for a single request.
472
+ :type _headers: dict, optional
473
+ :param _host_index: set to override the host_index for a single
474
+ request; this effectively ignores the host_index
475
+ in the spec for a single request.
476
+ :type _host_index: int, optional
477
+ :return: Returns the result object.
478
+ """ # noqa: E501
479
+
480
+ _param = self._get_alarm_comments_serialize(
481
+ alarm_id=alarm_id,
482
+ page_size=page_size,
483
+ page=page,
484
+ sort_property=sort_property,
485
+ sort_order=sort_order,
486
+ _request_auth=_request_auth,
487
+ _content_type=_content_type,
488
+ _headers=_headers,
489
+ _host_index=_host_index
490
+ )
491
+
492
+ _response_types_map: Dict[str, Optional[str]] = {
493
+ '200': "PageDataAlarmCommentInfo",
494
+ '400': "ThingsboardErrorResponse",
495
+ '401': "ThingsboardErrorResponse",
496
+ '403': "ThingsboardErrorResponse",
497
+ '404': "ThingsboardErrorResponse",
498
+ '429': "ThingsboardErrorResponse",
499
+ }
500
+ response_data = self.api_client.call_api(
501
+ *_param,
502
+ _request_timeout=_request_timeout
503
+ )
504
+ response_data.read()
505
+ return self.api_client.response_deserialize(
506
+ response_data=response_data,
507
+ response_types_map=_response_types_map,
508
+ )
509
+
510
+
511
+ @validate_call
512
+ def get_alarm_comments_without_preload_content(
513
+ self,
514
+ alarm_id: Annotated[StrictStr, Field(description="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
515
+ page_size: Annotated[StrictInt, Field(description="Maximum amount of entities in a one page")],
516
+ page: Annotated[StrictInt, Field(description="Sequence number of page starting from 0")],
517
+ sort_property: Annotated[Optional[StrictStr], Field(description="Property of entity to sort by")] = None,
518
+ sort_order: Annotated[Optional[StrictStr], Field(description="Sort order. ASC (ASCENDING) or DESC (DESCENDING)")] = None,
519
+ _request_timeout: Union[
520
+ None,
521
+ Annotated[StrictFloat, Field(gt=0)],
522
+ Tuple[
523
+ Annotated[StrictFloat, Field(gt=0)],
524
+ Annotated[StrictFloat, Field(gt=0)]
525
+ ]
526
+ ] = None,
527
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
528
+ _content_type: Optional[StrictStr] = None,
529
+ _headers: Optional[Dict[StrictStr, Any]] = None,
530
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
531
+ ) -> RESTResponseType:
532
+ """Get Alarm comments (getAlarmComments)
533
+
534
+ Returns a page of alarm comments for specified alarm. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
535
+
536
+ :param alarm_id: A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
537
+ :type alarm_id: str
538
+ :param page_size: Maximum amount of entities in a one page (required)
539
+ :type page_size: int
540
+ :param page: Sequence number of page starting from 0 (required)
541
+ :type page: int
542
+ :param sort_property: Property of entity to sort by
543
+ :type sort_property: str
544
+ :param sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
545
+ :type sort_order: str
546
+ :param _request_timeout: timeout setting for this request. If one
547
+ number provided, it will be total request
548
+ timeout. It can also be a pair (tuple) of
549
+ (connection, read) timeouts.
550
+ :type _request_timeout: int, tuple(int, int), optional
551
+ :param _request_auth: set to override the auth_settings for an a single
552
+ request; this effectively ignores the
553
+ authentication in the spec for a single request.
554
+ :type _request_auth: dict, optional
555
+ :param _content_type: force content-type for the request.
556
+ :type _content_type: str, Optional
557
+ :param _headers: set to override the headers for a single
558
+ request; this effectively ignores the headers
559
+ in the spec for a single request.
560
+ :type _headers: dict, optional
561
+ :param _host_index: set to override the host_index for a single
562
+ request; this effectively ignores the host_index
563
+ in the spec for a single request.
564
+ :type _host_index: int, optional
565
+ :return: Returns the result object.
566
+ """ # noqa: E501
567
+
568
+ _param = self._get_alarm_comments_serialize(
569
+ alarm_id=alarm_id,
570
+ page_size=page_size,
571
+ page=page,
572
+ sort_property=sort_property,
573
+ sort_order=sort_order,
574
+ _request_auth=_request_auth,
575
+ _content_type=_content_type,
576
+ _headers=_headers,
577
+ _host_index=_host_index
578
+ )
579
+
580
+ _response_types_map: Dict[str, Optional[str]] = {
581
+ '200': "PageDataAlarmCommentInfo",
582
+ '400': "ThingsboardErrorResponse",
583
+ '401': "ThingsboardErrorResponse",
584
+ '403': "ThingsboardErrorResponse",
585
+ '404': "ThingsboardErrorResponse",
586
+ '429': "ThingsboardErrorResponse",
587
+ }
588
+ response_data = self.api_client.call_api(
589
+ *_param,
590
+ _request_timeout=_request_timeout
591
+ )
592
+ return response_data.response
593
+
594
+
595
+ def _get_alarm_comments_serialize(
596
+ self,
597
+ alarm_id,
598
+ page_size,
599
+ page,
600
+ sort_property,
601
+ sort_order,
602
+ _request_auth,
603
+ _content_type,
604
+ _headers,
605
+ _host_index,
606
+ ) -> RequestSerialized:
607
+
608
+ _host = None
609
+
610
+ _collection_formats: Dict[str, str] = {
611
+ }
612
+
613
+ _path_params: Dict[str, str] = {}
614
+ _query_params: List[Tuple[str, str]] = []
615
+ _header_params: Dict[str, Optional[str]] = _headers or {}
616
+ _form_params: List[Tuple[str, str]] = []
617
+ _files: Dict[
618
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
619
+ ] = {}
620
+ _body_params: Optional[bytes] = None
621
+
622
+ # process the path parameters
623
+ if alarm_id is not None:
624
+ _path_params['alarmId'] = alarm_id
625
+ # process the query parameters
626
+ if page_size is not None:
627
+
628
+ _query_params.append(('pageSize', page_size))
629
+
630
+ if page is not None:
631
+
632
+ _query_params.append(('page', page))
633
+
634
+ if sort_property is not None:
635
+
636
+ _query_params.append(('sortProperty', sort_property))
637
+
638
+ if sort_order is not None:
639
+
640
+ _query_params.append(('sortOrder', sort_order))
641
+
642
+ # process the header parameters
643
+ # process the form parameters
644
+ # process the body parameter
645
+
646
+
647
+ # set the HTTP header `Accept`
648
+ if 'Accept' not in _header_params:
649
+ _header_params['Accept'] = self.api_client.select_header_accept(
650
+ [
651
+ 'application/json'
652
+ ]
653
+ )
654
+
655
+
656
+ # authentication setting
657
+ _auth_settings: List[str] = [
658
+ 'HTTP login form',
659
+ 'API key form'
660
+ ]
661
+
662
+ return self.api_client.param_serialize(
663
+ method='GET',
664
+ resource_path='/api/alarm/{alarmId}/comment{?pageSize,page,sortProperty,sortOrder}',
665
+ path_params=_path_params,
666
+ query_params=_query_params,
667
+ header_params=_header_params,
668
+ body=_body_params,
669
+ post_params=_form_params,
670
+ files=_files,
671
+ auth_settings=_auth_settings,
672
+ collection_formats=_collection_formats,
673
+ _host=_host,
674
+ _request_auth=_request_auth
675
+ )
676
+
677
+
678
+
679
+
680
+ @validate_call
681
+ def save_alarm_comment(
682
+ self,
683
+ alarm_id: Annotated[StrictStr, Field(description="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
684
+ alarm_comment: Annotated[AlarmComment, Field(description="A JSON value representing the comment.")],
685
+ _request_timeout: Union[
686
+ None,
687
+ Annotated[StrictFloat, Field(gt=0)],
688
+ Tuple[
689
+ Annotated[StrictFloat, Field(gt=0)],
690
+ Annotated[StrictFloat, Field(gt=0)]
691
+ ]
692
+ ] = None,
693
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
694
+ _content_type: Optional[StrictStr] = None,
695
+ _headers: Optional[Dict[StrictStr, Any]] = None,
696
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
697
+ ) -> AlarmComment:
698
+ """Create or update Alarm Comment
699
+
700
+ Creates or Updates the Alarm Comment. When creating comment, platform generates Alarm Comment Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Alarm Comment id will be present in the response. Specify existing Alarm Comment id to update the alarm. Referencing non-existing Alarm Comment Id will cause 'Not Found' error. To create new Alarm comment entity it is enough to specify 'comment' json element with 'text' node, for example: {\"comment\": { \"text\": \"my comment\"}}. If comment type is not specified the default value 'OTHER' will be saved. If 'alarmId' or 'userId' specified in body it will be ignored. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
701
+
702
+ :param alarm_id: A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
703
+ :type alarm_id: str
704
+ :param alarm_comment: A JSON value representing the comment. (required)
705
+ :type alarm_comment: AlarmComment
706
+ :param _request_timeout: timeout setting for this request. If one
707
+ number provided, it will be total request
708
+ timeout. It can also be a pair (tuple) of
709
+ (connection, read) timeouts.
710
+ :type _request_timeout: int, tuple(int, int), optional
711
+ :param _request_auth: set to override the auth_settings for an a single
712
+ request; this effectively ignores the
713
+ authentication in the spec for a single request.
714
+ :type _request_auth: dict, optional
715
+ :param _content_type: force content-type for the request.
716
+ :type _content_type: str, Optional
717
+ :param _headers: set to override the headers for a single
718
+ request; this effectively ignores the headers
719
+ in the spec for a single request.
720
+ :type _headers: dict, optional
721
+ :param _host_index: set to override the host_index for a single
722
+ request; this effectively ignores the host_index
723
+ in the spec for a single request.
724
+ :type _host_index: int, optional
725
+ :return: Returns the result object.
726
+ """ # noqa: E501
727
+
728
+ _param = self._save_alarm_comment_serialize(
729
+ alarm_id=alarm_id,
730
+ alarm_comment=alarm_comment,
731
+ _request_auth=_request_auth,
732
+ _content_type=_content_type,
733
+ _headers=_headers,
734
+ _host_index=_host_index
735
+ )
736
+
737
+ _response_types_map: Dict[str, Optional[str]] = {
738
+ '200': "AlarmComment",
739
+ '400': "ThingsboardErrorResponse",
740
+ '401': "ThingsboardErrorResponse",
741
+ '403': "ThingsboardErrorResponse",
742
+ '404': "ThingsboardErrorResponse",
743
+ '429': "ThingsboardErrorResponse",
744
+ }
745
+ response_data = self.api_client.call_api(
746
+ *_param,
747
+ _request_timeout=_request_timeout
748
+ )
749
+ response_data.read()
750
+ return self.api_client.response_deserialize(
751
+ response_data=response_data,
752
+ response_types_map=_response_types_map,
753
+ ).data
754
+
755
+
756
+ @validate_call
757
+ def save_alarm_comment_with_http_info(
758
+ self,
759
+ alarm_id: Annotated[StrictStr, Field(description="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
760
+ alarm_comment: Annotated[AlarmComment, Field(description="A JSON value representing the comment.")],
761
+ _request_timeout: Union[
762
+ None,
763
+ Annotated[StrictFloat, Field(gt=0)],
764
+ Tuple[
765
+ Annotated[StrictFloat, Field(gt=0)],
766
+ Annotated[StrictFloat, Field(gt=0)]
767
+ ]
768
+ ] = None,
769
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
770
+ _content_type: Optional[StrictStr] = None,
771
+ _headers: Optional[Dict[StrictStr, Any]] = None,
772
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
773
+ ) -> ApiResponse[AlarmComment]:
774
+ """Create or update Alarm Comment
775
+
776
+ Creates or Updates the Alarm Comment. When creating comment, platform generates Alarm Comment Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Alarm Comment id will be present in the response. Specify existing Alarm Comment id to update the alarm. Referencing non-existing Alarm Comment Id will cause 'Not Found' error. To create new Alarm comment entity it is enough to specify 'comment' json element with 'text' node, for example: {\"comment\": { \"text\": \"my comment\"}}. If comment type is not specified the default value 'OTHER' will be saved. If 'alarmId' or 'userId' specified in body it will be ignored. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
777
+
778
+ :param alarm_id: A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
779
+ :type alarm_id: str
780
+ :param alarm_comment: A JSON value representing the comment. (required)
781
+ :type alarm_comment: AlarmComment
782
+ :param _request_timeout: timeout setting for this request. If one
783
+ number provided, it will be total request
784
+ timeout. It can also be a pair (tuple) of
785
+ (connection, read) timeouts.
786
+ :type _request_timeout: int, tuple(int, int), optional
787
+ :param _request_auth: set to override the auth_settings for an a single
788
+ request; this effectively ignores the
789
+ authentication in the spec for a single request.
790
+ :type _request_auth: dict, optional
791
+ :param _content_type: force content-type for the request.
792
+ :type _content_type: str, Optional
793
+ :param _headers: set to override the headers for a single
794
+ request; this effectively ignores the headers
795
+ in the spec for a single request.
796
+ :type _headers: dict, optional
797
+ :param _host_index: set to override the host_index for a single
798
+ request; this effectively ignores the host_index
799
+ in the spec for a single request.
800
+ :type _host_index: int, optional
801
+ :return: Returns the result object.
802
+ """ # noqa: E501
803
+
804
+ _param = self._save_alarm_comment_serialize(
805
+ alarm_id=alarm_id,
806
+ alarm_comment=alarm_comment,
807
+ _request_auth=_request_auth,
808
+ _content_type=_content_type,
809
+ _headers=_headers,
810
+ _host_index=_host_index
811
+ )
812
+
813
+ _response_types_map: Dict[str, Optional[str]] = {
814
+ '200': "AlarmComment",
815
+ '400': "ThingsboardErrorResponse",
816
+ '401': "ThingsboardErrorResponse",
817
+ '403': "ThingsboardErrorResponse",
818
+ '404': "ThingsboardErrorResponse",
819
+ '429': "ThingsboardErrorResponse",
820
+ }
821
+ response_data = self.api_client.call_api(
822
+ *_param,
823
+ _request_timeout=_request_timeout
824
+ )
825
+ response_data.read()
826
+ return self.api_client.response_deserialize(
827
+ response_data=response_data,
828
+ response_types_map=_response_types_map,
829
+ )
830
+
831
+
832
+ @validate_call
833
+ def save_alarm_comment_without_preload_content(
834
+ self,
835
+ alarm_id: Annotated[StrictStr, Field(description="A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'")],
836
+ alarm_comment: Annotated[AlarmComment, Field(description="A JSON value representing the comment.")],
837
+ _request_timeout: Union[
838
+ None,
839
+ Annotated[StrictFloat, Field(gt=0)],
840
+ Tuple[
841
+ Annotated[StrictFloat, Field(gt=0)],
842
+ Annotated[StrictFloat, Field(gt=0)]
843
+ ]
844
+ ] = None,
845
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
846
+ _content_type: Optional[StrictStr] = None,
847
+ _headers: Optional[Dict[StrictStr, Any]] = None,
848
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
849
+ ) -> RESTResponseType:
850
+ """Create or update Alarm Comment
851
+
852
+ Creates or Updates the Alarm Comment. When creating comment, platform generates Alarm Comment Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Alarm Comment id will be present in the response. Specify existing Alarm Comment id to update the alarm. Referencing non-existing Alarm Comment Id will cause 'Not Found' error. To create new Alarm comment entity it is enough to specify 'comment' json element with 'text' node, for example: {\"comment\": { \"text\": \"my comment\"}}. If comment type is not specified the default value 'OTHER' will be saved. If 'alarmId' or 'userId' specified in body it will be ignored. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
853
+
854
+ :param alarm_id: A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
855
+ :type alarm_id: str
856
+ :param alarm_comment: A JSON value representing the comment. (required)
857
+ :type alarm_comment: AlarmComment
858
+ :param _request_timeout: timeout setting for this request. If one
859
+ number provided, it will be total request
860
+ timeout. It can also be a pair (tuple) of
861
+ (connection, read) timeouts.
862
+ :type _request_timeout: int, tuple(int, int), optional
863
+ :param _request_auth: set to override the auth_settings for an a single
864
+ request; this effectively ignores the
865
+ authentication in the spec for a single request.
866
+ :type _request_auth: dict, optional
867
+ :param _content_type: force content-type for the request.
868
+ :type _content_type: str, Optional
869
+ :param _headers: set to override the headers for a single
870
+ request; this effectively ignores the headers
871
+ in the spec for a single request.
872
+ :type _headers: dict, optional
873
+ :param _host_index: set to override the host_index for a single
874
+ request; this effectively ignores the host_index
875
+ in the spec for a single request.
876
+ :type _host_index: int, optional
877
+ :return: Returns the result object.
878
+ """ # noqa: E501
879
+
880
+ _param = self._save_alarm_comment_serialize(
881
+ alarm_id=alarm_id,
882
+ alarm_comment=alarm_comment,
883
+ _request_auth=_request_auth,
884
+ _content_type=_content_type,
885
+ _headers=_headers,
886
+ _host_index=_host_index
887
+ )
888
+
889
+ _response_types_map: Dict[str, Optional[str]] = {
890
+ '200': "AlarmComment",
891
+ '400': "ThingsboardErrorResponse",
892
+ '401': "ThingsboardErrorResponse",
893
+ '403': "ThingsboardErrorResponse",
894
+ '404': "ThingsboardErrorResponse",
895
+ '429': "ThingsboardErrorResponse",
896
+ }
897
+ response_data = self.api_client.call_api(
898
+ *_param,
899
+ _request_timeout=_request_timeout
900
+ )
901
+ return response_data.response
902
+
903
+
904
+ def _save_alarm_comment_serialize(
905
+ self,
906
+ alarm_id,
907
+ alarm_comment,
908
+ _request_auth,
909
+ _content_type,
910
+ _headers,
911
+ _host_index,
912
+ ) -> RequestSerialized:
913
+
914
+ _host = None
915
+
916
+ _collection_formats: Dict[str, str] = {
917
+ }
918
+
919
+ _path_params: Dict[str, str] = {}
920
+ _query_params: List[Tuple[str, str]] = []
921
+ _header_params: Dict[str, Optional[str]] = _headers or {}
922
+ _form_params: List[Tuple[str, str]] = []
923
+ _files: Dict[
924
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
925
+ ] = {}
926
+ _body_params: Optional[bytes] = None
927
+
928
+ # process the path parameters
929
+ if alarm_id is not None:
930
+ _path_params['alarmId'] = alarm_id
931
+ # process the query parameters
932
+ # process the header parameters
933
+ # process the form parameters
934
+ # process the body parameter
935
+ if alarm_comment is not None:
936
+ _body_params = alarm_comment
937
+
938
+
939
+ # set the HTTP header `Accept`
940
+ if 'Accept' not in _header_params:
941
+ _header_params['Accept'] = self.api_client.select_header_accept(
942
+ [
943
+ 'application/json'
944
+ ]
945
+ )
946
+
947
+ # set the HTTP header `Content-Type`
948
+ if _content_type:
949
+ _header_params['Content-Type'] = _content_type
950
+ else:
951
+ _default_content_type = (
952
+ self.api_client.select_header_content_type(
953
+ [
954
+ 'application/json'
955
+ ]
956
+ )
957
+ )
958
+ if _default_content_type is not None:
959
+ _header_params['Content-Type'] = _default_content_type
960
+
961
+ # authentication setting
962
+ _auth_settings: List[str] = [
963
+ 'HTTP login form',
964
+ 'API key form'
965
+ ]
966
+
967
+ return self.api_client.param_serialize(
968
+ method='POST',
969
+ resource_path='/api/alarm/{alarmId}/comment',
970
+ path_params=_path_params,
971
+ query_params=_query_params,
972
+ header_params=_header_params,
973
+ body=_body_params,
974
+ post_params=_form_params,
975
+ files=_files,
976
+ auth_settings=_auth_settings,
977
+ collection_formats=_collection_formats,
978
+ _host=_host,
979
+ _request_auth=_request_auth
980
+ )
981
+
982
+