tb-rest-client 3.9.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1111) hide show
  1. tb_rest_client/__init__.py +16 -0
  2. tb_rest_client/api/__init__.py +14 -0
  3. tb_rest_client/api/api_ce/__init__.py +66 -0
  4. tb_rest_client/api/api_ce/admin_controller_api.py +2250 -0
  5. tb_rest_client/api/api_ce/alarm_comment_controller_api.py +376 -0
  6. tb_rest_client/api/api_ce/alarm_controller_api.py +1639 -0
  7. tb_rest_client/api/api_ce/asset_controller_api.py +2040 -0
  8. tb_rest_client/api/api_ce/asset_profile_controller_api.py +934 -0
  9. tb_rest_client/api/api_ce/audit_log_controller_api.py +587 -0
  10. tb_rest_client/api/api_ce/auth_controller_api.py +882 -0
  11. tb_rest_client/api/api_ce/component_descriptor_controller_api.py +340 -0
  12. tb_rest_client/api/api_ce/customer_controller_api.py +731 -0
  13. tb_rest_client/api/api_ce/dashboard_controller_api.py +2364 -0
  14. tb_rest_client/api/api_ce/device_api_controller_api.py +1212 -0
  15. tb_rest_client/api/api_ce/device_connectivity_controller_api.py +332 -0
  16. tb_rest_client/api/api_ce/device_controller_api.py +2737 -0
  17. tb_rest_client/api/api_ce/device_profile_controller_api.py +1120 -0
  18. tb_rest_client/api/api_ce/domain_controller_api.py +563 -0
  19. tb_rest_client/api/api_ce/edge_controller_api.py +2475 -0
  20. tb_rest_client/api/api_ce/edge_event_controller_api.py +178 -0
  21. tb_rest_client/api/api_ce/entities_version_control_controller_api.py +1327 -0
  22. tb_rest_client/api/api_ce/entity_query_controller_api.py +542 -0
  23. tb_rest_client/api/api_ce/entity_relation_controller_api.py +1355 -0
  24. tb_rest_client/api/api_ce/entity_view_controller_api.py +1828 -0
  25. tb_rest_client/api/api_ce/event_controller_api.py +623 -0
  26. tb_rest_client/api/api_ce/image_controller_api.py +1295 -0
  27. tb_rest_client/api/api_ce/login_endpoint_api.py +142 -0
  28. tb_rest_client/api/api_ce/lwm_2m_controller_api.py +142 -0
  29. tb_rest_client/api/api_ce/mail_config_template_controller_api.py +134 -0
  30. tb_rest_client/api/api_ce/mobile_app_bundle_controller_api.py +562 -0
  31. tb_rest_client/api/api_ce/mobile_app_controller_api.py +563 -0
  32. tb_rest_client/api/api_ce/mobile_application_controller_api.py +508 -0
  33. tb_rest_client/api/api_ce/notification_controller_api.py +1480 -0
  34. tb_rest_client/api/api_ce/notification_rule_controller_api.py +447 -0
  35. tb_rest_client/api/api_ce/notification_target_controller_api.py +776 -0
  36. tb_rest_client/api/api_ce/notification_template_controller_api.py +550 -0
  37. tb_rest_client/api/api_ce/o_auth_2_config_template_controller_api.py +324 -0
  38. tb_rest_client/api/api_ce/o_auth_2_controller_api.py +915 -0
  39. tb_rest_client/api/api_ce/ota_package_controller_api.py +879 -0
  40. tb_rest_client/api/api_ce/qr_code_settings_controller_api.py +508 -0
  41. tb_rest_client/api/api_ce/queue_controller_api.py +558 -0
  42. tb_rest_client/api/api_ce/queue_stats_controller_api.py +352 -0
  43. tb_rest_client/api/api_ce/rpc_v_1_controller_api.py +253 -0
  44. tb_rest_client/api/api_ce/rpc_v_2_controller_api.py +570 -0
  45. tb_rest_client/api/api_ce/rule_chain_controller_api.py +2201 -0
  46. tb_rest_client/api/api_ce/rule_engine_controller_api.py +515 -0
  47. tb_rest_client/api/api_ce/tb_resource_controller_api.py +1379 -0
  48. tb_rest_client/api/api_ce/telemetry_controller_api.py +1808 -0
  49. tb_rest_client/api/api_ce/tenant_controller_api.py +657 -0
  50. tb_rest_client/api/api_ce/tenant_profile_controller_api.py +932 -0
  51. tb_rest_client/api/api_ce/two_factor_auth_config_controller_api.py +890 -0
  52. tb_rest_client/api/api_ce/two_factor_auth_controller_api.py +332 -0
  53. tb_rest_client/api/api_ce/ui_settings_controller_api.py +134 -0
  54. tb_rest_client/api/api_ce/usage_info_controller_api.py +132 -0
  55. tb_rest_client/api/api_ce/user_controller_api.py +2645 -0
  56. tb_rest_client/api/api_ce/widget_type_controller_api.py +1505 -0
  57. tb_rest_client/api/api_ce/widgets_bundle_controller_api.py +752 -0
  58. tb_rest_client/api/api_pe/__init__.py +67 -0
  59. tb_rest_client/api/api_pe/admin_controller_api.py +2310 -0
  60. tb_rest_client/api/api_pe/alarm_comment_controller_api.py +372 -0
  61. tb_rest_client/api/api_pe/alarm_controller_api.py +1629 -0
  62. tb_rest_client/api/api_pe/asset_controller_api.py +1648 -0
  63. tb_rest_client/api/api_pe/asset_profile_controller_api.py +1029 -0
  64. tb_rest_client/api/api_pe/audit_log_controller_api.py +587 -0
  65. tb_rest_client/api/api_pe/auth_controller_api.py +882 -0
  66. tb_rest_client/api/api_pe/billing_endpoint_controller_api.py +868 -0
  67. tb_rest_client/api/api_pe/blob_entity_controller_api.py +554 -0
  68. tb_rest_client/api/api_pe/chirp_stack_integration_controller_api.py +838 -0
  69. tb_rest_client/api/api_pe/cloud_endpoint_controller_api.py +298 -0
  70. tb_rest_client/api/api_pe/component_descriptor_controller_api.py +340 -0
  71. tb_rest_client/api/api_pe/converter_controller_api.py +851 -0
  72. tb_rest_client/api/api_pe/converter_library_controller_api.py +915 -0
  73. tb_rest_client/api/api_pe/custom_menu_controller_api.py +1090 -0
  74. tb_rest_client/api/api_pe/custom_translation_controller_api.py +757 -0
  75. tb_rest_client/api/api_pe/customer_controller_api.py +1413 -0
  76. tb_rest_client/api/api_pe/dashboard_controller_api.py +2194 -0
  77. tb_rest_client/api/api_pe/device_api_controller_api.py +1212 -0
  78. tb_rest_client/api/api_pe/device_connectivity_controller_api.py +332 -0
  79. tb_rest_client/api/api_pe/device_controller_api.py +2468 -0
  80. tb_rest_client/api/api_pe/device_group_ota_package_controller_api.py +334 -0
  81. tb_rest_client/api/api_pe/device_profile_controller_api.py +1215 -0
  82. tb_rest_client/api/api_pe/domain_controller_api.py +549 -0
  83. tb_rest_client/api/api_pe/edge_controller_api.py +2638 -0
  84. tb_rest_client/api/api_pe/edge_event_controller_api.py +178 -0
  85. tb_rest_client/api/api_pe/entities_version_control_controller_api.py +1335 -0
  86. tb_rest_client/api/api_pe/entity_group_controller_api.py +3936 -0
  87. tb_rest_client/api/api_pe/entity_query_controller_api.py +542 -0
  88. tb_rest_client/api/api_pe/entity_relation_controller_api.py +1355 -0
  89. tb_rest_client/api/api_pe/entity_view_controller_api.py +1549 -0
  90. tb_rest_client/api/api_pe/event_controller_api.py +623 -0
  91. tb_rest_client/api/api_pe/group_permission_controller_api.py +720 -0
  92. tb_rest_client/api/api_pe/http_integration_controller_api.py +358 -0
  93. tb_rest_client/api/api_pe/image_controller_api.py +1505 -0
  94. tb_rest_client/api/api_pe/integration_controller_api.py +1592 -0
  95. tb_rest_client/api/api_pe/login_endpoint_api.py +142 -0
  96. tb_rest_client/api/api_pe/lwm_2m_controller_api.py +142 -0
  97. tb_rest_client/api/api_pe/mail_config_template_controller_api.py +134 -0
  98. tb_rest_client/api/api_pe/mobile_app_bundle_controller_api.py +562 -0
  99. tb_rest_client/api/api_pe/mobile_app_controller_api.py +549 -0
  100. tb_rest_client/api/api_pe/mobile_application_controller_api.py +581 -0
  101. tb_rest_client/api/api_pe/notification_controller_api.py +1476 -0
  102. tb_rest_client/api/api_pe/notification_rule_controller_api.py +447 -0
  103. tb_rest_client/api/api_pe/notification_target_controller_api.py +776 -0
  104. tb_rest_client/api/api_pe/notification_template_controller_api.py +550 -0
  105. tb_rest_client/api/api_pe/o_auth_2_config_template_controller_api.py +324 -0
  106. tb_rest_client/api/api_pe/o_auth_2_controller_api.py +816 -0
  107. tb_rest_client/api/api_pe/ota_package_controller_api.py +1010 -0
  108. tb_rest_client/api/api_pe/owner_controller_api.py +285 -0
  109. tb_rest_client/api/api_pe/qr_code_settings_controller_api.py +595 -0
  110. tb_rest_client/api/api_pe/queue_controller_api.py +558 -0
  111. tb_rest_client/api/api_pe/queue_stats_controller_api.py +339 -0
  112. tb_rest_client/api/api_pe/report_controller_api.py +245 -0
  113. tb_rest_client/api/api_pe/role_controller_api.py +546 -0
  114. tb_rest_client/api/api_pe/rpc_controller_api.py +257 -0
  115. tb_rest_client/api/api_pe/rpc_v_1_controller_api.py +253 -0
  116. tb_rest_client/api/api_pe/rpc_v_2_controller_api.py +570 -0
  117. tb_rest_client/api/api_pe/rule_chain_controller_api.py +2201 -0
  118. tb_rest_client/api/api_pe/rule_engine_controller_api.py +499 -0
  119. tb_rest_client/api/api_pe/scheduler_event_controller_api.py +1140 -0
  120. tb_rest_client/api/api_pe/self_registration_controller_api.py +587 -0
  121. tb_rest_client/api/api_pe/sig_fox_integration_controller_api.py +838 -0
  122. tb_rest_client/api/api_pe/sign_up_controller_api.py +882 -0
  123. tb_rest_client/api/api_pe/solution_controller_api.py +514 -0
  124. tb_rest_client/api/api_pe/subscription_controller_api.py +310 -0
  125. tb_rest_client/api/api_pe/t_mobile_iot_cdp_integration_controller_api.py +838 -0
  126. tb_rest_client/api/api_pe/tb_resource_controller_api.py +1379 -0
  127. tb_rest_client/api/api_pe/telemetry_controller_api.py +1808 -0
  128. tb_rest_client/api/api_pe/tenant_controller_api.py +750 -0
  129. tb_rest_client/api/api_pe/tenant_profile_controller_api.py +932 -0
  130. tb_rest_client/api/api_pe/thing_park_integration_controller_api.py +1741 -0
  131. tb_rest_client/api/api_pe/translation_controller_api.py +690 -0
  132. tb_rest_client/api/api_pe/two_factor_auth_config_controller_api.py +890 -0
  133. tb_rest_client/api/api_pe/two_factor_auth_controller_api.py +332 -0
  134. tb_rest_client/api/api_pe/ui_settings_controller_api.py +134 -0
  135. tb_rest_client/api/api_pe/usage_info_controller_api.py +132 -0
  136. tb_rest_client/api/api_pe/user_controller_api.py +3328 -0
  137. tb_rest_client/api/api_pe/user_permissions_controller_api.py +134 -0
  138. tb_rest_client/api/api_pe/white_labeling_controller_api.py +1056 -0
  139. tb_rest_client/api/api_pe/widget_type_controller_api.py +1410 -0
  140. tb_rest_client/api/api_pe/widgets_bundle_controller_api.py +847 -0
  141. tb_rest_client/api_client.py +705 -0
  142. tb_rest_client/configuration.py +234 -0
  143. tb_rest_client/models/__init__.py +14 -0
  144. tb_rest_client/models/models_ce/__init__.py +493 -0
  145. tb_rest_client/models/models_ce/account_configverification_code_body.py +98 -0
  146. tb_rest_client/models/models_ce/account_two_fa_settings.py +124 -0
  147. tb_rest_client/models/models_ce/activate_user_request.py +154 -0
  148. tb_rest_client/models/models_ce/admin_settings.py +232 -0
  149. tb_rest_client/models/models_ce/admin_settings_id.py +127 -0
  150. tb_rest_client/models/models_ce/affected_tenant_administrators_filter.py +104 -0
  151. tb_rest_client/models/models_ce/affected_user_filter.py +104 -0
  152. tb_rest_client/models/models_ce/alarm.py +707 -0
  153. tb_rest_client/models/models_ce/alarm_assignee.py +202 -0
  154. tb_rest_client/models/models_ce/alarm_assignment_notification_rule_trigger_config.py +216 -0
  155. tb_rest_client/models/models_ce/alarm_comment.py +292 -0
  156. tb_rest_client/models/models_ce/alarm_comment_id.py +127 -0
  157. tb_rest_client/models/models_ce/alarm_comment_info.py +376 -0
  158. tb_rest_client/models/models_ce/alarm_comment_notification_rule_trigger_config.py +248 -0
  159. tb_rest_client/models/models_ce/alarm_condition.py +154 -0
  160. tb_rest_client/models/models_ce/alarm_condition_filter.py +214 -0
  161. tb_rest_client/models/models_ce/alarm_condition_filter_key.py +160 -0
  162. tb_rest_client/models/models_ce/alarm_condition_spec.py +135 -0
  163. tb_rest_client/models/models_ce/alarm_count_query.py +372 -0
  164. tb_rest_client/models/models_ce/alarm_data.py +855 -0
  165. tb_rest_client/models/models_ce/alarm_data_page_link.py +450 -0
  166. tb_rest_client/models/models_ce/alarm_data_query.py +254 -0
  167. tb_rest_client/models/models_ce/alarm_id.py +162 -0
  168. tb_rest_client/models/models_ce/alarm_info.py +803 -0
  169. tb_rest_client/models/models_ce/alarm_notification_rule_trigger_config.py +223 -0
  170. tb_rest_client/models/models_ce/alarm_rule.py +206 -0
  171. tb_rest_client/models/models_ce/alarm_schedule.py +166 -0
  172. tb_rest_client/models/models_ce/all_users_filter.py +104 -0
  173. tb_rest_client/models/models_ce/allow_create_new_devices_device_profile_provision_configuration.py +104 -0
  174. tb_rest_client/models/models_ce/android_config.py +202 -0
  175. tb_rest_client/models/models_ce/any_time_schedule.py +104 -0
  176. tb_rest_client/models/models_ce/api_image_body.py +177 -0
  177. tb_rest_client/models/models_ce/api_usage_limit_notification_rule_trigger_config.py +170 -0
  178. tb_rest_client/models/models_ce/api_usage_state_filter.py +130 -0
  179. tb_rest_client/models/models_ce/asset.py +367 -0
  180. tb_rest_client/models/models_ce/asset_id.py +162 -0
  181. tb_rest_client/models/models_ce/asset_info.py +451 -0
  182. tb_rest_client/models/models_ce/asset_profile.py +422 -0
  183. tb_rest_client/models/models_ce/asset_profile_id.py +162 -0
  184. tb_rest_client/models/models_ce/asset_profile_info.py +232 -0
  185. tb_rest_client/models/models_ce/asset_search_query.py +180 -0
  186. tb_rest_client/models/models_ce/asset_search_query_filter.py +266 -0
  187. tb_rest_client/models/models_ce/asset_type_filter.py +182 -0
  188. tb_rest_client/models/models_ce/atomic_integer.py +228 -0
  189. tb_rest_client/models/models_ce/attribute_export_data.py +280 -0
  190. tb_rest_client/models/models_ce/attributes_entity_view.py +185 -0
  191. tb_rest_client/models/models_ce/audit_log.py +434 -0
  192. tb_rest_client/models/models_ce/audit_log_id.py +127 -0
  193. tb_rest_client/models/models_ce/auto_commit_settings.py +103 -0
  194. tb_rest_client/models/models_ce/auto_version_create_config.py +202 -0
  195. tb_rest_client/models/models_ce/aws_sns_sms_provider_configuration.py +188 -0
  196. tb_rest_client/models/models_ce/backup_code_two_fa_account_config.py +157 -0
  197. tb_rest_client/models/models_ce/backup_code_two_fa_provider_config.py +130 -0
  198. tb_rest_client/models/models_ce/boolean_filter_predicate.py +162 -0
  199. tb_rest_client/models/models_ce/branch_info.py +150 -0
  200. tb_rest_client/models/models_ce/bulk_import_request.py +150 -0
  201. tb_rest_client/models/models_ce/bulk_import_result_asset.py +202 -0
  202. tb_rest_client/models/models_ce/bulk_import_result_asset_created.py +254 -0
  203. tb_rest_client/models/models_ce/bulk_import_result_device.py +202 -0
  204. tb_rest_client/models/models_ce/bulk_import_result_edge.py +202 -0
  205. tb_rest_client/models/models_ce/button.py +286 -0
  206. tb_rest_client/models/models_ce/byte_array_resource.py +332 -0
  207. tb_rest_client/models/models_ce/byte_buffer.py +306 -0
  208. tb_rest_client/models/models_ce/change_password_request.py +154 -0
  209. tb_rest_client/models/models_ce/check_pre_provisioned_devices_device_profile_provision_configuration.py +104 -0
  210. tb_rest_client/models/models_ce/claim_request.py +124 -0
  211. tb_rest_client/models/models_ce/clear_rule.py +131 -0
  212. tb_rest_client/models/models_ce/client_attributes_querying_snmp_communication_config.py +156 -0
  213. tb_rest_client/models/models_ce/coap_device_profile_transport_configuration.py +156 -0
  214. tb_rest_client/models/models_ce/coap_device_transport_configuration.py +214 -0
  215. tb_rest_client/models/models_ce/coap_device_type_configuration.py +134 -0
  216. tb_rest_client/models/models_ce/column_mapping.py +156 -0
  217. tb_rest_client/models/models_ce/comparison_ts_value.py +150 -0
  218. tb_rest_client/models/models_ce/complex_filter_predicate.py +162 -0
  219. tb_rest_client/models/models_ce/complex_version_create_request.py +162 -0
  220. tb_rest_client/models/models_ce/component_descriptor.py +420 -0
  221. tb_rest_client/models/models_ce/component_descriptor_id.py +127 -0
  222. tb_rest_client/models/models_ce/config_submit_body.py +98 -0
  223. tb_rest_client/models/models_ce/custom_mobile_page.py +98 -0
  224. tb_rest_client/models/models_ce/custom_time_schedule.py +156 -0
  225. tb_rest_client/models/models_ce/custom_time_schedule_item.py +202 -0
  226. tb_rest_client/models/models_ce/customer.py +510 -0
  227. tb_rest_client/models/models_ce/customer_id.py +162 -0
  228. tb_rest_client/models/models_ce/customer_users_filter.py +131 -0
  229. tb_rest_client/models/models_ce/dashboard.py +399 -0
  230. tb_rest_client/models/models_ce/dashboard_id.py +162 -0
  231. tb_rest_client/models/models_ce/dashboard_info.py +373 -0
  232. tb_rest_client/models/models_ce/dashboard_page.py +98 -0
  233. tb_rest_client/models/models_ce/debug_converter_event_filter.py +351 -0
  234. tb_rest_client/models/models_ce/debug_integration_event_filter.py +325 -0
  235. tb_rest_client/models/models_ce/debug_rule_chain_event_filter.py +429 -0
  236. tb_rest_client/models/models_ce/debug_settings.py +182 -0
  237. tb_rest_client/models/models_ce/default_coap_device_type_configuration.py +130 -0
  238. tb_rest_client/models/models_ce/default_device_configuration.py +104 -0
  239. tb_rest_client/models/models_ce/default_device_profile_configuration.py +104 -0
  240. tb_rest_client/models/models_ce/default_device_profile_transport_configuration.py +104 -0
  241. tb_rest_client/models/models_ce/default_device_transport_configuration.py +104 -0
  242. tb_rest_client/models/models_ce/default_mobile_page.py +98 -0
  243. tb_rest_client/models/models_ce/default_rule_chain_create_request.py +127 -0
  244. tb_rest_client/models/models_ce/default_tenant_profile_configuration.py +1638 -0
  245. tb_rest_client/models/models_ce/deferred_result_entity_data_diff.py +150 -0
  246. tb_rest_client/models/models_ce/deferred_result_entity_data_info.py +150 -0
  247. tb_rest_client/models/models_ce/deferred_result_list_branch_info.py +150 -0
  248. tb_rest_client/models/models_ce/deferred_result_list_versioned_entity_info.py +150 -0
  249. tb_rest_client/models/models_ce/deferred_result_page_data_entity_version.py +150 -0
  250. tb_rest_client/models/models_ce/deferred_result_repository_settings.py +150 -0
  251. tb_rest_client/models/models_ce/deferred_result_response_entity.py +150 -0
  252. tb_rest_client/models/models_ce/deferred_result_void.py +150 -0
  253. tb_rest_client/models/models_ce/deferred_resultuuid.py +150 -0
  254. tb_rest_client/models/models_ce/delivery_method_notification_template.py +191 -0
  255. tb_rest_client/models/models_ce/device.py +446 -0
  256. tb_rest_client/models/models_ce/device_activity_notification_rule_trigger_config.py +190 -0
  257. tb_rest_client/models/models_ce/device_configuration.py +133 -0
  258. tb_rest_client/models/models_ce/device_credentials.py +293 -0
  259. tb_rest_client/models/models_ce/device_credentials_id.py +127 -0
  260. tb_rest_client/models/models_ce/device_data.py +154 -0
  261. tb_rest_client/models/models_ce/device_export_data.py +156 -0
  262. tb_rest_client/models/models_ce/device_id.py +162 -0
  263. tb_rest_client/models/models_ce/device_info.py +558 -0
  264. tb_rest_client/models/models_ce/device_profile.py +630 -0
  265. tb_rest_client/models/models_ce/device_profile_alarm.py +320 -0
  266. tb_rest_client/models/models_ce/device_profile_configuration.py +133 -0
  267. tb_rest_client/models/models_ce/device_profile_data.py +210 -0
  268. tb_rest_client/models/models_ce/device_profile_id.py +162 -0
  269. tb_rest_client/models/models_ce/device_profile_info.py +300 -0
  270. tb_rest_client/models/models_ce/device_profile_provision_configuration.py +162 -0
  271. tb_rest_client/models/models_ce/device_profile_transport_configuration.py +137 -0
  272. tb_rest_client/models/models_ce/device_search_query.py +180 -0
  273. tb_rest_client/models/models_ce/device_search_query_filter.py +266 -0
  274. tb_rest_client/models/models_ce/device_transport_configuration.py +137 -0
  275. tb_rest_client/models/models_ce/device_type_filter.py +182 -0
  276. tb_rest_client/models/models_ce/disabled_device_profile_provision_configuration.py +104 -0
  277. tb_rest_client/models/models_ce/domain.py +247 -0
  278. tb_rest_client/models/models_ce/domain_id.py +146 -0
  279. tb_rest_client/models/models_ce/domain_info.py +275 -0
  280. tb_rest_client/models/models_ce/duration_alarm_condition_spec.py +162 -0
  281. tb_rest_client/models/models_ce/dynamic_value_boolean.py +182 -0
  282. tb_rest_client/models/models_ce/dynamic_value_double.py +182 -0
  283. tb_rest_client/models/models_ce/dynamic_value_integer.py +182 -0
  284. tb_rest_client/models/models_ce/dynamic_value_long.py +182 -0
  285. tb_rest_client/models/models_ce/dynamic_value_string.py +182 -0
  286. tb_rest_client/models/models_ce/edge.py +426 -0
  287. tb_rest_client/models/models_ce/edge_communication_failure_notification_rule_trigger_config.py +130 -0
  288. tb_rest_client/models/models_ce/edge_connection_notification_rule_trigger_config.py +163 -0
  289. tb_rest_client/models/models_ce/edge_event.py +370 -0
  290. tb_rest_client/models/models_ce/edge_event_id.py +127 -0
  291. tb_rest_client/models/models_ce/edge_id.py +162 -0
  292. tb_rest_client/models/models_ce/edge_info.py +478 -0
  293. tb_rest_client/models/models_ce/edge_install_instructions.py +126 -0
  294. tb_rest_client/models/models_ce/edge_instructions.py +126 -0
  295. tb_rest_client/models/models_ce/edge_search_query.py +180 -0
  296. tb_rest_client/models/models_ce/edge_search_query_filter.py +266 -0
  297. tb_rest_client/models/models_ce/edge_type_filter.py +182 -0
  298. tb_rest_client/models/models_ce/efento_coap_device_type_configuration.py +104 -0
  299. tb_rest_client/models/models_ce/email_delivery_method_notification_template.py +131 -0
  300. tb_rest_client/models/models_ce/email_two_fa_account_config.py +131 -0
  301. tb_rest_client/models/models_ce/email_two_fa_provider_config.py +130 -0
  302. tb_rest_client/models/models_ce/entities_limit_notification_rule_trigger_config.py +163 -0
  303. tb_rest_client/models/models_ce/entity_action_notification_rule_trigger_config.py +215 -0
  304. tb_rest_client/models/models_ce/entity_count_query.py +150 -0
  305. tb_rest_client/models/models_ce/entity_data.py +202 -0
  306. tb_rest_client/models/models_ce/entity_data_diff.py +150 -0
  307. tb_rest_client/models/models_ce/entity_data_info.py +176 -0
  308. tb_rest_client/models/models_ce/entity_data_page_link.py +228 -0
  309. tb_rest_client/models/models_ce/entity_data_query.py +228 -0
  310. tb_rest_client/models/models_ce/entity_data_sort_order.py +156 -0
  311. tb_rest_client/models/models_ce/entity_export_data_object.py +219 -0
  312. tb_rest_client/models/models_ce/entity_filter.py +134 -0
  313. tb_rest_client/models/models_ce/entity_id.py +160 -0
  314. tb_rest_client/models/models_ce/entity_id_clearstart_timeend_time_body.py +98 -0
  315. tb_rest_client/models/models_ce/entity_info.py +152 -0
  316. tb_rest_client/models/models_ce/entity_key.py +156 -0
  317. tb_rest_client/models/models_ce/entity_list_filter.py +162 -0
  318. tb_rest_client/models/models_ce/entity_load_error.py +202 -0
  319. tb_rest_client/models/models_ce/entity_name_filter.py +162 -0
  320. tb_rest_client/models/models_ce/entity_relation.py +264 -0
  321. tb_rest_client/models/models_ce/entity_relation_info.py +320 -0
  322. tb_rest_client/models/models_ce/entity_relations_query.py +152 -0
  323. tb_rest_client/models/models_ce/entity_subtype.py +182 -0
  324. tb_rest_client/models/models_ce/entity_type_entity_idtenant_idpage_sizepagetext_searchsort_propertysort_orderstart_timeend_time_body.py +98 -0
  325. tb_rest_client/models/models_ce/entity_type_filter.py +136 -0
  326. tb_rest_client/models/models_ce/entity_type_load_result.py +208 -0
  327. tb_rest_client/models/models_ce/entity_type_version_create_config.py +260 -0
  328. tb_rest_client/models/models_ce/entity_type_version_load_config.py +228 -0
  329. tb_rest_client/models/models_ce/entity_type_version_load_request.py +156 -0
  330. tb_rest_client/models/models_ce/entity_version.py +202 -0
  331. tb_rest_client/models/models_ce/entity_view.py +423 -0
  332. tb_rest_client/models/models_ce/entity_view_id.py +162 -0
  333. tb_rest_client/models/models_ce/entity_view_info.py +479 -0
  334. tb_rest_client/models/models_ce/entity_view_search_query.py +180 -0
  335. tb_rest_client/models/models_ce/entity_view_search_query_filter.py +266 -0
  336. tb_rest_client/models/models_ce/entity_view_type_filter.py +182 -0
  337. tb_rest_client/models/models_ce/error_event_filter.py +188 -0
  338. tb_rest_client/models/models_ce/escalated_notification_rule_recipients_config.py +131 -0
  339. tb_rest_client/models/models_ce/event.py +286 -0
  340. tb_rest_client/models/models_ce/event_filter.py +171 -0
  341. tb_rest_client/models/models_ce/event_id.py +127 -0
  342. tb_rest_client/models/models_ce/event_info.py +286 -0
  343. tb_rest_client/models/models_ce/features_info.py +228 -0
  344. tb_rest_client/models/models_ce/file.py +488 -0
  345. tb_rest_client/models/models_ce/filter_predicate_value_boolean.py +176 -0
  346. tb_rest_client/models/models_ce/filter_predicate_value_double.py +176 -0
  347. tb_rest_client/models/models_ce/filter_predicate_value_integer.py +176 -0
  348. tb_rest_client/models/models_ce/filter_predicate_value_long.py +176 -0
  349. tb_rest_client/models/models_ce/filter_predicate_value_string.py +176 -0
  350. tb_rest_client/models/models_ce/has_id_object.py +124 -0
  351. tb_rest_client/models/models_ce/home_dashboard.py +427 -0
  352. tb_rest_client/models/models_ce/home_dashboard_info.py +152 -0
  353. tb_rest_client/models/models_ce/image_export_data.py +332 -0
  354. tb_rest_client/models/models_ce/inline_response200.py +99 -0
  355. tb_rest_client/models/models_ce/input_stream.py +98 -0
  356. tb_rest_client/models/models_ce/ios_config.py +176 -0
  357. tb_rest_client/models/models_ce/json_node.py +98 -0
  358. tb_rest_client/models/models_ce/json_transport_payload_configuration.py +104 -0
  359. tb_rest_client/models/models_ce/jwt_pair.py +186 -0
  360. tb_rest_client/models/models_ce/jwt_settings.py +210 -0
  361. tb_rest_client/models/models_ce/key_filter.py +182 -0
  362. tb_rest_client/models/models_ce/key_filter_predicate.py +136 -0
  363. tb_rest_client/models/models_ce/last_visited_dashboard_info.py +210 -0
  364. tb_rest_client/models/models_ce/life_cycle_event_filter.py +222 -0
  365. tb_rest_client/models/models_ce/login_mobile_info.py +176 -0
  366. tb_rest_client/models/models_ce/login_request.py +156 -0
  367. tb_rest_client/models/models_ce/login_response.py +156 -0
  368. tb_rest_client/models/models_ce/lw_m2_m_bootstrap_server_credential.py +136 -0
  369. tb_rest_client/models/models_ce/lw_m2_m_server_security_config_default.py +490 -0
  370. tb_rest_client/models/models_ce/lw_m2m_instance.py +154 -0
  371. tb_rest_client/models/models_ce/lw_m2m_object.py +266 -0
  372. tb_rest_client/models/models_ce/lw_m2m_resource_observe.py +266 -0
  373. tb_rest_client/models/models_ce/lw_m2m_version.py +124 -0
  374. tb_rest_client/models/models_ce/lwm2m_device_profile_transport_configuration.py +208 -0
  375. tb_rest_client/models/models_ce/lwm2m_device_transport_configuration.py +214 -0
  376. tb_rest_client/models/models_ce/mapping.py +202 -0
  377. tb_rest_client/models/models_ce/microsoft_teams_delivery_method_notification_template.py +182 -0
  378. tb_rest_client/models/models_ce/microsoft_teams_notification_target_config.py +314 -0
  379. tb_rest_client/models/models_ce/mobile_app.py +290 -0
  380. tb_rest_client/models/models_ce/mobile_app_bundle.py +375 -0
  381. tb_rest_client/models/models_ce/mobile_app_bundle_id.py +154 -0
  382. tb_rest_client/models/models_ce/mobile_app_bundle_info.py +487 -0
  383. tb_rest_client/models/models_ce/mobile_app_delivery_method_notification_template.py +157 -0
  384. tb_rest_client/models/models_ce/mobile_app_id.py +160 -0
  385. tb_rest_client/models/models_ce/mobile_app_info.py +318 -0
  386. tb_rest_client/models/models_ce/mobile_app_notification_delivery_method_config.py +157 -0
  387. tb_rest_client/models/models_ce/mobile_app_settings.py +352 -0
  388. tb_rest_client/models/models_ce/mobile_app_settings_id.py +127 -0
  389. tb_rest_client/models/models_ce/mobile_app_version_info.py +210 -0
  390. tb_rest_client/models/models_ce/mobile_layout_config.py +126 -0
  391. tb_rest_client/models/models_ce/mobile_page.py +158 -0
  392. tb_rest_client/models/models_ce/mobile_session_info.py +124 -0
  393. tb_rest_client/models/models_ce/mqtt_device_profile_transport_configuration.py +286 -0
  394. tb_rest_client/models/models_ce/mqtt_device_transport_configuration.py +104 -0
  395. tb_rest_client/models/models_ce/new_platform_version_notification_rule_trigger_config.py +104 -0
  396. tb_rest_client/models/models_ce/no_sec_lw_m2_m_bootstrap_server_credential.py +440 -0
  397. tb_rest_client/models/models_ce/node_connection_info.py +185 -0
  398. tb_rest_client/models/models_ce/notification.py +402 -0
  399. tb_rest_client/models/models_ce/notification_delivery_method_config.py +134 -0
  400. tb_rest_client/models/models_ce/notification_id.py +162 -0
  401. tb_rest_client/models/models_ce/notification_info.py +185 -0
  402. tb_rest_client/models/models_ce/notification_pref.py +151 -0
  403. tb_rest_client/models/models_ce/notification_request.py +417 -0
  404. tb_rest_client/models/models_ce/notification_request_config.py +124 -0
  405. tb_rest_client/models/models_ce/notification_request_id.py +162 -0
  406. tb_rest_client/models/models_ce/notification_request_info.py +476 -0
  407. tb_rest_client/models/models_ce/notification_request_preview.py +202 -0
  408. tb_rest_client/models/models_ce/notification_request_stats.py +202 -0
  409. tb_rest_client/models/models_ce/notification_rule.py +369 -0
  410. tb_rest_client/models/models_ce/notification_rule_config.py +124 -0
  411. tb_rest_client/models/models_ce/notification_rule_id.py +162 -0
  412. tb_rest_client/models/models_ce/notification_rule_info.py +428 -0
  413. tb_rest_client/models/models_ce/notification_rule_recipients_config.py +139 -0
  414. tb_rest_client/models/models_ce/notification_rule_trigger_config.py +178 -0
  415. tb_rest_client/models/models_ce/notification_settings.py +125 -0
  416. tb_rest_client/models/models_ce/notification_target.py +230 -0
  417. tb_rest_client/models/models_ce/notification_target_config.py +148 -0
  418. tb_rest_client/models/models_ce/notification_target_id.py +162 -0
  419. tb_rest_client/models/models_ce/notification_template.py +263 -0
  420. tb_rest_client/models/models_ce/notification_template_config.py +125 -0
  421. tb_rest_client/models/models_ce/notification_template_id.py +162 -0
  422. tb_rest_client/models/models_ce/numeric_filter_predicate.py +162 -0
  423. tb_rest_client/models/models_ce/o_auth2_basic_mapper_config.py +329 -0
  424. tb_rest_client/models/models_ce/o_auth2_client.py +636 -0
  425. tb_rest_client/models/models_ce/o_auth2_client_id.py +160 -0
  426. tb_rest_client/models/models_ce/o_auth2_client_info.py +267 -0
  427. tb_rest_client/models/models_ce/o_auth2_client_login_info.py +182 -0
  428. tb_rest_client/models/models_ce/o_auth2_client_registration_template.py +565 -0
  429. tb_rest_client/models/models_ce/o_auth2_client_registration_template_id.py +127 -0
  430. tb_rest_client/models/models_ce/o_auth2_custom_mapper_config.py +202 -0
  431. tb_rest_client/models/models_ce/o_auth2_domain_info.py +162 -0
  432. tb_rest_client/models/models_ce/o_auth2_info.py +183 -0
  433. tb_rest_client/models/models_ce/o_auth2_mapper_config.py +241 -0
  434. tb_rest_client/models/models_ce/o_auth2_mobile_info.py +156 -0
  435. tb_rest_client/models/models_ce/o_auth2_params_info.py +185 -0
  436. tb_rest_client/models/models_ce/o_auth2_registration_info.py +502 -0
  437. tb_rest_client/models/models_ce/object_attributes.py +410 -0
  438. tb_rest_client/models/models_ce/object_node.py +98 -0
  439. tb_rest_client/models/models_ce/one_of_alarm_condition_filter_predicate.py +98 -0
  440. tb_rest_client/models/models_ce/one_of_alarm_condition_spec.py +98 -0
  441. tb_rest_client/models/models_ce/one_of_alarm_count_query_entity_filter.py +98 -0
  442. tb_rest_client/models/models_ce/one_of_alarm_data_query_entity_filter.py +98 -0
  443. tb_rest_client/models/models_ce/one_of_alarm_rule_schedule.py +98 -0
  444. tb_rest_client/models/models_ce/one_of_device_data_configuration.py +98 -0
  445. tb_rest_client/models/models_ce/one_of_device_data_transport_configuration.py +98 -0
  446. tb_rest_client/models/models_ce/one_of_device_profile_data_configuration.py +98 -0
  447. tb_rest_client/models/models_ce/one_of_device_profile_data_provision_configuration.py +98 -0
  448. tb_rest_client/models/models_ce/one_of_device_profile_data_transport_configuration.py +98 -0
  449. tb_rest_client/models/models_ce/one_of_entity_count_query_entity_filter.py +98 -0
  450. tb_rest_client/models/models_ce/one_of_entity_data_diff_current_version.py +98 -0
  451. tb_rest_client/models/models_ce/one_of_entity_data_diff_other_version.py +98 -0
  452. tb_rest_client/models/models_ce/one_of_entity_data_query_entity_filter.py +98 -0
  453. tb_rest_client/models/models_ce/one_of_key_filter_predicate.py +98 -0
  454. tb_rest_client/models/models_ce/one_of_notification_rule_info_recipients_config.py +98 -0
  455. tb_rest_client/models/models_ce/one_of_notification_rule_info_trigger_config.py +98 -0
  456. tb_rest_client/models/models_ce/one_of_notification_rule_recipients_config.py +98 -0
  457. tb_rest_client/models/models_ce/one_of_notification_rule_trigger_config.py +98 -0
  458. tb_rest_client/models/models_ce/one_of_notification_target_configuration.py +98 -0
  459. tb_rest_client/models/models_ce/one_of_platform_two_fa_settings_providers_items.py +98 -0
  460. tb_rest_client/models/models_ce/one_of_tenant_profile_data_configuration.py +98 -0
  461. tb_rest_client/models/models_ce/one_of_test_sms_request_provider_configuration.py +98 -0
  462. tb_rest_client/models/models_ce/originator_entity_owner_users_filter.py +104 -0
  463. tb_rest_client/models/models_ce/ota_package.py +576 -0
  464. tb_rest_client/models/models_ce/ota_package_data.py +306 -0
  465. tb_rest_client/models/models_ce/ota_package_id.py +162 -0
  466. tb_rest_client/models/models_ce/ota_package_info.py +550 -0
  467. tb_rest_client/models/models_ce/ota_package_ota_package_idchecksumchecksum_algorithm_body.py +127 -0
  468. tb_rest_client/models/models_ce/other_configuration.py +364 -0
  469. tb_rest_client/models/models_ce/page_data_alarm_comment_info.py +210 -0
  470. tb_rest_client/models/models_ce/page_data_alarm_data.py +210 -0
  471. tb_rest_client/models/models_ce/page_data_alarm_info.py +210 -0
  472. tb_rest_client/models/models_ce/page_data_asset.py +210 -0
  473. tb_rest_client/models/models_ce/page_data_asset_info.py +210 -0
  474. tb_rest_client/models/models_ce/page_data_asset_profile.py +210 -0
  475. tb_rest_client/models/models_ce/page_data_asset_profile_info.py +210 -0
  476. tb_rest_client/models/models_ce/page_data_audit_log.py +210 -0
  477. tb_rest_client/models/models_ce/page_data_customer.py +210 -0
  478. tb_rest_client/models/models_ce/page_data_dashboard_info.py +210 -0
  479. tb_rest_client/models/models_ce/page_data_device.py +210 -0
  480. tb_rest_client/models/models_ce/page_data_device_info.py +210 -0
  481. tb_rest_client/models/models_ce/page_data_device_profile.py +210 -0
  482. tb_rest_client/models/models_ce/page_data_device_profile_info.py +210 -0
  483. tb_rest_client/models/models_ce/page_data_domain_info.py +210 -0
  484. tb_rest_client/models/models_ce/page_data_edge.py +210 -0
  485. tb_rest_client/models/models_ce/page_data_edge_event.py +210 -0
  486. tb_rest_client/models/models_ce/page_data_edge_info.py +210 -0
  487. tb_rest_client/models/models_ce/page_data_entity_data.py +210 -0
  488. tb_rest_client/models/models_ce/page_data_entity_info.py +210 -0
  489. tb_rest_client/models/models_ce/page_data_entity_subtype.py +210 -0
  490. tb_rest_client/models/models_ce/page_data_entity_version.py +210 -0
  491. tb_rest_client/models/models_ce/page_data_entity_view.py +210 -0
  492. tb_rest_client/models/models_ce/page_data_entity_view_info.py +210 -0
  493. tb_rest_client/models/models_ce/page_data_event.py +210 -0
  494. tb_rest_client/models/models_ce/page_data_event_info.py +210 -0
  495. tb_rest_client/models/models_ce/page_data_mobile_app.py +210 -0
  496. tb_rest_client/models/models_ce/page_data_mobile_app_bundle_info.py +196 -0
  497. tb_rest_client/models/models_ce/page_data_mobile_app_info.py +210 -0
  498. tb_rest_client/models/models_ce/page_data_notification.py +210 -0
  499. tb_rest_client/models/models_ce/page_data_notification_request_info.py +210 -0
  500. tb_rest_client/models/models_ce/page_data_notification_rule_info.py +210 -0
  501. tb_rest_client/models/models_ce/page_data_notification_target.py +210 -0
  502. tb_rest_client/models/models_ce/page_data_notification_template.py +210 -0
  503. tb_rest_client/models/models_ce/page_data_o_auth2_client_info.py +210 -0
  504. tb_rest_client/models/models_ce/page_data_ota_package_info.py +210 -0
  505. tb_rest_client/models/models_ce/page_data_queue.py +210 -0
  506. tb_rest_client/models/models_ce/page_data_queue_stats.py +210 -0
  507. tb_rest_client/models/models_ce/page_data_rpc.py +202 -0
  508. tb_rest_client/models/models_ce/page_data_rule_chain.py +210 -0
  509. tb_rest_client/models/models_ce/page_data_tb_resource_info.py +210 -0
  510. tb_rest_client/models/models_ce/page_data_tenant.py +210 -0
  511. tb_rest_client/models/models_ce/page_data_tenant_info.py +210 -0
  512. tb_rest_client/models/models_ce/page_data_tenant_profile.py +210 -0
  513. tb_rest_client/models/models_ce/page_data_user.py +210 -0
  514. tb_rest_client/models/models_ce/page_data_user_email_info.py +210 -0
  515. tb_rest_client/models/models_ce/page_data_widget_type_info.py +210 -0
  516. tb_rest_client/models/models_ce/page_data_widgets_bundle.py +210 -0
  517. tb_rest_client/models/models_ce/platform_two_fa_settings.py +231 -0
  518. tb_rest_client/models/models_ce/platform_users_notification_target_config.py +131 -0
  519. tb_rest_client/models/models_ce/power_saving_configuration.py +208 -0
  520. tb_rest_client/models/models_ce/processing_strategy.py +234 -0
  521. tb_rest_client/models/models_ce/proto_transport_payload_configuration.py +260 -0
  522. tb_rest_client/models/models_ce/psklw_m2_m_bootstrap_server_credential.py +440 -0
  523. tb_rest_client/models/models_ce/qr_code_config.py +234 -0
  524. tb_rest_client/models/models_ce/qr_code_settings.py +399 -0
  525. tb_rest_client/models/models_ce/qr_code_settings_id.py +127 -0
  526. tb_rest_client/models/models_ce/queue.py +410 -0
  527. tb_rest_client/models/models_ce/queue_id.py +162 -0
  528. tb_rest_client/models/models_ce/queue_stats.py +228 -0
  529. tb_rest_client/models/models_ce/queue_stats_id.py +162 -0
  530. tb_rest_client/models/models_ce/rate_limits_notification_rule_trigger_config.py +137 -0
  531. tb_rest_client/models/models_ce/relation_entity_type_filter.py +189 -0
  532. tb_rest_client/models/models_ce/relations_query_filter.py +350 -0
  533. tb_rest_client/models/models_ce/relations_search_parameters.py +284 -0
  534. tb_rest_client/models/models_ce/repeating_alarm_condition_spec.py +130 -0
  535. tb_rest_client/models/models_ce/repository_settings.py +390 -0
  536. tb_rest_client/models/models_ce/repository_settings_info.py +150 -0
  537. tb_rest_client/models/models_ce/reset_password_email_request.py +126 -0
  538. tb_rest_client/models/models_ce/reset_password_request.py +154 -0
  539. tb_rest_client/models/models_ce/resource.py +306 -0
  540. tb_rest_client/models/models_ce/resource_export_data.py +384 -0
  541. tb_rest_client/models/models_ce/response_entity.py +182 -0
  542. tb_rest_client/models/models_ce/rpc.py +344 -0
  543. tb_rest_client/models/models_ce/rpc_id.py +162 -0
  544. tb_rest_client/models/models_ce/rpklw_m2_m_bootstrap_server_credential.py +440 -0
  545. tb_rest_client/models/models_ce/rule_chain.py +402 -0
  546. tb_rest_client/models/models_ce/rule_chain_connection_info.py +210 -0
  547. tb_rest_client/models/models_ce/rule_chain_data.py +156 -0
  548. tb_rest_client/models/models_ce/rule_chain_debug_event_filter.py +240 -0
  549. tb_rest_client/models/models_ce/rule_chain_export_data.py +156 -0
  550. tb_rest_client/models/models_ce/rule_chain_id.py +162 -0
  551. tb_rest_client/models/models_ce/rule_chain_import_result.py +202 -0
  552. tb_rest_client/models/models_ce/rule_chain_meta_data.py +269 -0
  553. tb_rest_client/models/models_ce/rule_chain_output_labels_usage.py +239 -0
  554. tb_rest_client/models/models_ce/rule_engine_component_lifecycle_event_notification_rule_trigger_config.py +274 -0
  555. tb_rest_client/models/models_ce/rule_node.py +424 -0
  556. tb_rest_client/models/models_ce/rule_node_debug_event_filter.py +448 -0
  557. tb_rest_client/models/models_ce/rule_node_id.py +162 -0
  558. tb_rest_client/models/models_ce/save_device_with_credentials_request.py +152 -0
  559. tb_rest_client/models/models_ce/save_ota_package_info_request.py +578 -0
  560. tb_rest_client/models/models_ce/security_settings.py +266 -0
  561. tb_rest_client/models/models_ce/server_security_config.py +332 -0
  562. tb_rest_client/models/models_ce/shared_attributes_setting_snmp_communication_config.py +130 -0
  563. tb_rest_client/models/models_ce/short_customer_info.py +204 -0
  564. tb_rest_client/models/models_ce/sign_up_request.py +294 -0
  565. tb_rest_client/models/models_ce/simple_alarm_condition_spec.py +104 -0
  566. tb_rest_client/models/models_ce/single_entity_filter.py +130 -0
  567. tb_rest_client/models/models_ce/single_entity_version_create_request.py +156 -0
  568. tb_rest_client/models/models_ce/single_entity_version_load_request.py +156 -0
  569. tb_rest_client/models/models_ce/slack_conversation.py +263 -0
  570. tb_rest_client/models/models_ce/slack_delivery_method_notification_template.py +104 -0
  571. tb_rest_client/models/models_ce/slack_notification_delivery_method_config.py +131 -0
  572. tb_rest_client/models/models_ce/slack_notification_target_config.py +163 -0
  573. tb_rest_client/models/models_ce/smpp_sms_provider_configuration.py +541 -0
  574. tb_rest_client/models/models_ce/sms_delivery_method_notification_template.py +104 -0
  575. tb_rest_client/models/models_ce/sms_provider_configuration.py +135 -0
  576. tb_rest_client/models/models_ce/sms_two_fa_account_config.py +131 -0
  577. tb_rest_client/models/models_ce/sms_two_fa_provider_config.py +157 -0
  578. tb_rest_client/models/models_ce/snmp_communication_config.py +142 -0
  579. tb_rest_client/models/models_ce/snmp_device_profile_transport_configuration.py +182 -0
  580. tb_rest_client/models/models_ce/snmp_device_transport_configuration.py +434 -0
  581. tb_rest_client/models/models_ce/snmp_mapping.py +182 -0
  582. tb_rest_client/models/models_ce/specific_time_schedule.py +208 -0
  583. tb_rest_client/models/models_ce/starred_dashboard_info.py +182 -0
  584. tb_rest_client/models/models_ce/statistics_event_filter.py +244 -0
  585. tb_rest_client/models/models_ce/store_info.py +176 -0
  586. tb_rest_client/models/models_ce/string_filter_predicate.py +188 -0
  587. tb_rest_client/models/models_ce/submit_strategy.py +156 -0
  588. tb_rest_client/models/models_ce/system_administrators_filter.py +104 -0
  589. tb_rest_client/models/models_ce/system_info.py +152 -0
  590. tb_rest_client/models/models_ce/system_info_data.py +322 -0
  591. tb_rest_client/models/models_ce/task_processing_failure_notification_rule_trigger_config.py +104 -0
  592. tb_rest_client/models/models_ce/tb_image_delete_result.py +150 -0
  593. tb_rest_client/models/models_ce/tb_resource.py +568 -0
  594. tb_rest_client/models/models_ce/tb_resource_id.py +162 -0
  595. tb_rest_client/models/models_ce/tb_resource_info.py +514 -0
  596. tb_rest_client/models/models_ce/telemetry_entity_view.py +154 -0
  597. tb_rest_client/models/models_ce/telemetry_mapping_configuration.py +228 -0
  598. tb_rest_client/models/models_ce/telemetry_querying_snmp_communication_config.py +156 -0
  599. tb_rest_client/models/models_ce/tenant.py +539 -0
  600. tb_rest_client/models/models_ce/tenant_administrators_filter.py +156 -0
  601. tb_rest_client/models/models_ce/tenant_id.py +162 -0
  602. tb_rest_client/models/models_ce/tenant_info.py +567 -0
  603. tb_rest_client/models/models_ce/tenant_profile.py +288 -0
  604. tb_rest_client/models/models_ce/tenant_profile_configuration.py +133 -0
  605. tb_rest_client/models/models_ce/tenant_profile_data.py +154 -0
  606. tb_rest_client/models/models_ce/tenant_profile_id.py +162 -0
  607. tb_rest_client/models/models_ce/tenant_profile_queue_configuration.py +332 -0
  608. tb_rest_client/models/models_ce/test_sms_request.py +182 -0
  609. tb_rest_client/models/models_ce/thingsboard_credentials_expired_response.py +238 -0
  610. tb_rest_client/models/models_ce/thingsboard_error_response.py +210 -0
  611. tb_rest_client/models/models_ce/to_device_rpc_request_snmp_communication_config.py +130 -0
  612. tb_rest_client/models/models_ce/to_server_rpc_request_snmp_communication_config.py +130 -0
  613. tb_rest_client/models/models_ce/totp_two_fa_account_config.py +131 -0
  614. tb_rest_client/models/models_ce/totp_two_fa_provider_config.py +131 -0
  615. tb_rest_client/models/models_ce/transport_payload_type_configuration.py +134 -0
  616. tb_rest_client/models/models_ce/ts_value.py +176 -0
  617. tb_rest_client/models/models_ce/twilio_sms_provider_configuration.py +188 -0
  618. tb_rest_client/models/models_ce/two_fa_account_config.py +162 -0
  619. tb_rest_client/models/models_ce/two_fa_account_config_update_request.py +124 -0
  620. tb_rest_client/models/models_ce/two_fa_provider_config.py +136 -0
  621. tb_rest_client/models/models_ce/two_fa_provider_info.py +234 -0
  622. tb_rest_client/models/models_ce/type_key_body.py +125 -0
  623. tb_rest_client/models/models_ce/update_message.py +266 -0
  624. tb_rest_client/models/models_ce/usage_info.py +696 -0
  625. tb_rest_client/models/models_ce/user.py +432 -0
  626. tb_rest_client/models/models_ce/user_activation_link.py +150 -0
  627. tb_rest_client/models/models_ce/user_dashboards_info.py +154 -0
  628. tb_rest_client/models/models_ce/user_email_info.py +208 -0
  629. tb_rest_client/models/models_ce/user_id.py +162 -0
  630. tb_rest_client/models/models_ce/user_list_filter.py +131 -0
  631. tb_rest_client/models/models_ce/user_mobile_info.py +228 -0
  632. tb_rest_client/models/models_ce/user_notification_settings.py +125 -0
  633. tb_rest_client/models/models_ce/user_password_policy.py +378 -0
  634. tb_rest_client/models/models_ce/users_filter.py +140 -0
  635. tb_rest_client/models/models_ce/vc_entity_body.py +98 -0
  636. tb_rest_client/models/models_ce/vc_version_body.py +98 -0
  637. tb_rest_client/models/models_ce/version.py +98 -0
  638. tb_rest_client/models/models_ce/version_create_config.py +176 -0
  639. tb_rest_client/models/models_ce/version_create_request.py +191 -0
  640. tb_rest_client/models/models_ce/version_creation_result.py +254 -0
  641. tb_rest_client/models/models_ce/version_load_config.py +176 -0
  642. tb_rest_client/models/models_ce/version_load_request.py +165 -0
  643. tb_rest_client/models/models_ce/version_load_result.py +176 -0
  644. tb_rest_client/models/models_ce/versioned_entity_info.py +124 -0
  645. tb_rest_client/models/models_ce/web_delivery_method_notification_template.py +157 -0
  646. tb_rest_client/models/models_ce/web_view_page.py +98 -0
  647. tb_rest_client/models/models_ce/widget_type.py +342 -0
  648. tb_rest_client/models/models_ce/widget_type_details.py +426 -0
  649. tb_rest_client/models/models_ce/widget_type_export_data.py +130 -0
  650. tb_rest_client/models/models_ce/widget_type_id.py +162 -0
  651. tb_rest_client/models/models_ce/widget_type_info.py +428 -0
  652. tb_rest_client/models/models_ce/widgets_bundle.py +400 -0
  653. tb_rest_client/models/models_ce/widgets_bundle_export_data.py +182 -0
  654. tb_rest_client/models/models_ce/widgets_bundle_id.py +162 -0
  655. tb_rest_client/models/models_ce/x509_certificate_chain_provision_configuration.py +156 -0
  656. tb_rest_client/models/models_ce/x509_lw_m2_m_bootstrap_server_credential.py +440 -0
  657. tb_rest_client/models/models_pe/__init__.py +413 -0
  658. tb_rest_client/models/models_pe/account_two_fa_settings.py +124 -0
  659. tb_rest_client/models/models_pe/activate_user_request.py +154 -0
  660. tb_rest_client/models/models_pe/admin_settings.py +232 -0
  661. tb_rest_client/models/models_pe/admin_settings_id.py +127 -0
  662. tb_rest_client/models/models_pe/affected_tenant_administrators_filter.py +104 -0
  663. tb_rest_client/models/models_pe/affected_user_filter.py +104 -0
  664. tb_rest_client/models/models_pe/alarm.py +749 -0
  665. tb_rest_client/models/models_pe/alarm_assignee.py +202 -0
  666. tb_rest_client/models/models_pe/alarm_assignment_notification_rule_trigger_config.py +230 -0
  667. tb_rest_client/models/models_pe/alarm_comment.py +292 -0
  668. tb_rest_client/models/models_pe/alarm_comment_id.py +127 -0
  669. tb_rest_client/models/models_pe/alarm_comment_info.py +376 -0
  670. tb_rest_client/models/models_pe/alarm_comment_notification_rule_trigger_config.py +248 -0
  671. tb_rest_client/models/models_pe/alarm_condition.py +154 -0
  672. tb_rest_client/models/models_pe/alarm_condition_filter.py +214 -0
  673. tb_rest_client/models/models_pe/alarm_condition_filter_key.py +160 -0
  674. tb_rest_client/models/models_pe/alarm_condition_spec.py +135 -0
  675. tb_rest_client/models/models_pe/alarm_count_query.py +372 -0
  676. tb_rest_client/models/models_pe/alarm_data.py +883 -0
  677. tb_rest_client/models/models_pe/alarm_data_page_link.py +450 -0
  678. tb_rest_client/models/models_pe/alarm_data_query.py +254 -0
  679. tb_rest_client/models/models_pe/alarm_id.py +162 -0
  680. tb_rest_client/models/models_pe/alarm_info.py +831 -0
  681. tb_rest_client/models/models_pe/alarm_notification_rule_trigger_config.py +223 -0
  682. tb_rest_client/models/models_pe/alarm_rule.py +206 -0
  683. tb_rest_client/models/models_pe/alarm_schedule.py +152 -0
  684. tb_rest_client/models/models_pe/all_users_filter.py +104 -0
  685. tb_rest_client/models/models_pe/allow_create_new_devices_device_profile_provision_configuration.py +104 -0
  686. tb_rest_client/models/models_pe/allowed_permissions_info.py +318 -0
  687. tb_rest_client/models/models_pe/any_time_schedule.py +104 -0
  688. tb_rest_client/models/models_pe/api_usage_limit_notification_rule_trigger_config.py +170 -0
  689. tb_rest_client/models/models_pe/api_usage_state_filter.py +130 -0
  690. tb_rest_client/models/models_pe/array_node.py +98 -0
  691. tb_rest_client/models/models_pe/asset.py +393 -0
  692. tb_rest_client/models/models_pe/asset_id.py +162 -0
  693. tb_rest_client/models/models_pe/asset_info.py +449 -0
  694. tb_rest_client/models/models_pe/asset_profile_id.py +162 -0
  695. tb_rest_client/models/models_pe/asset_search_query.py +180 -0
  696. tb_rest_client/models/models_pe/asset_search_query_filter.py +266 -0
  697. tb_rest_client/models/models_pe/asset_type_filter.py +182 -0
  698. tb_rest_client/models/models_pe/atomic_integer.py +228 -0
  699. tb_rest_client/models/models_pe/attribute_export_data.py +280 -0
  700. tb_rest_client/models/models_pe/attributes_entity_view.py +185 -0
  701. tb_rest_client/models/models_pe/audit_log.py +434 -0
  702. tb_rest_client/models/models_pe/audit_log_id.py +127 -0
  703. tb_rest_client/models/models_pe/auto_version_create_config.py +254 -0
  704. tb_rest_client/models/models_pe/aws_sns_sms_provider_configuration.py +188 -0
  705. tb_rest_client/models/models_pe/backup_code_two_fa_account_config.py +157 -0
  706. tb_rest_client/models/models_pe/backup_code_two_fa_provider_config.py +130 -0
  707. tb_rest_client/models/models_pe/blob_entity_id.py +162 -0
  708. tb_rest_client/models/models_pe/blob_entity_info.py +346 -0
  709. tb_rest_client/models/models_pe/blob_entity_with_customer_info.py +402 -0
  710. tb_rest_client/models/models_pe/boolean_filter_predicate.py +162 -0
  711. tb_rest_client/models/models_pe/branch_info.py +150 -0
  712. tb_rest_client/models/models_pe/bulk_import_request.py +202 -0
  713. tb_rest_client/models/models_pe/bulk_import_result_asset.py +202 -0
  714. tb_rest_client/models/models_pe/bulk_import_result_device.py +202 -0
  715. tb_rest_client/models/models_pe/bulk_import_result_edge.py +202 -0
  716. tb_rest_client/models/models_pe/byte_buffer.py +306 -0
  717. tb_rest_client/models/models_pe/captcha_params.py +132 -0
  718. tb_rest_client/models/models_pe/change_password_request.py +154 -0
  719. tb_rest_client/models/models_pe/check_pre_provisioned_devices_device_profile_provision_configuration.py +104 -0
  720. tb_rest_client/models/models_pe/claim_request.py +124 -0
  721. tb_rest_client/models/models_pe/clear_rule.py +131 -0
  722. tb_rest_client/models/models_pe/client_attributes_querying_snmp_communication_config.py +156 -0
  723. tb_rest_client/models/models_pe/coap_device_profile_transport_configuration.py +156 -0
  724. tb_rest_client/models/models_pe/coap_device_transport_configuration.py +214 -0
  725. tb_rest_client/models/models_pe/coap_device_type_configuration.py +134 -0
  726. tb_rest_client/models/models_pe/column_mapping.py +156 -0
  727. tb_rest_client/models/models_pe/comparison_ts_value.py +150 -0
  728. tb_rest_client/models/models_pe/complex_filter_predicate.py +162 -0
  729. tb_rest_client/models/models_pe/complex_version_create_request.py +162 -0
  730. tb_rest_client/models/models_pe/component_descriptor.py +420 -0
  731. tb_rest_client/models/models_pe/component_descriptor_id.py +127 -0
  732. tb_rest_client/models/models_pe/contact_based_object.py +410 -0
  733. tb_rest_client/models/models_pe/converter.py +376 -0
  734. tb_rest_client/models/models_pe/converter_id.py +162 -0
  735. tb_rest_client/models/models_pe/converters_info.py +136 -0
  736. tb_rest_client/models/models_pe/custom_menu.py +327 -0
  737. tb_rest_client/models/models_pe/custom_menu_config.py +113 -0
  738. tb_rest_client/models/models_pe/custom_menu_delete_result.py +168 -0
  739. tb_rest_client/models/models_pe/custom_menu_id.py +113 -0
  740. tb_rest_client/models/models_pe/custom_menu_info.py +287 -0
  741. tb_rest_client/models/models_pe/custom_menu_item.py +398 -0
  742. tb_rest_client/models/models_pe/custom_time_schedule.py +156 -0
  743. tb_rest_client/models/models_pe/custom_time_schedule_item.py +202 -0
  744. tb_rest_client/models/models_pe/custom_translation.py +127 -0
  745. tb_rest_client/models/models_pe/customer_id.py +162 -0
  746. tb_rest_client/models/models_pe/customer_info.py +672 -0
  747. tb_rest_client/models/models_pe/customer_users_filter.py +131 -0
  748. tb_rest_client/models/models_pe/dashboard_id.py +162 -0
  749. tb_rest_client/models/models_pe/dashboard_info.py +506 -0
  750. tb_rest_client/models/models_pe/debug_converter_event_filter.py +316 -0
  751. tb_rest_client/models/models_pe/debug_integration_event_filter.py +290 -0
  752. tb_rest_client/models/models_pe/default_coap_device_type_configuration.py +130 -0
  753. tb_rest_client/models/models_pe/default_dashboard_params.py +154 -0
  754. tb_rest_client/models/models_pe/default_device_configuration.py +104 -0
  755. tb_rest_client/models/models_pe/default_device_profile_configuration.py +104 -0
  756. tb_rest_client/models/models_pe/default_device_profile_transport_configuration.py +104 -0
  757. tb_rest_client/models/models_pe/default_device_transport_configuration.py +104 -0
  758. tb_rest_client/models/models_pe/default_menu_item.py +230 -0
  759. tb_rest_client/models/models_pe/default_rule_chain_create_request.py +127 -0
  760. tb_rest_client/models/models_pe/default_tenant_profile_configuration.py +1794 -0
  761. tb_rest_client/models/models_pe/deferred_result_entity_data_diff.py +150 -0
  762. tb_rest_client/models/models_pe/deferred_result_entity_data_info.py +150 -0
  763. tb_rest_client/models/models_pe/deferred_result_list_branch_info.py +150 -0
  764. tb_rest_client/models/models_pe/deferred_result_list_versioned_entity_info.py +150 -0
  765. tb_rest_client/models/models_pe/deferred_result_page_data_entity_version.py +150 -0
  766. tb_rest_client/models/models_pe/deferred_result_repository_settings.py +150 -0
  767. tb_rest_client/models/models_pe/deferred_result_void.py +150 -0
  768. tb_rest_client/models/models_pe/deferred_resultuuid.py +150 -0
  769. tb_rest_client/models/models_pe/delivery_method_notification_template.py +191 -0
  770. tb_rest_client/models/models_pe/device.py +471 -0
  771. tb_rest_client/models/models_pe/device_activity_notification_rule_trigger_config.py +190 -0
  772. tb_rest_client/models/models_pe/device_configuration.py +133 -0
  773. tb_rest_client/models/models_pe/device_credentials_id.py +127 -0
  774. tb_rest_client/models/models_pe/device_data.py +154 -0
  775. tb_rest_client/models/models_pe/device_export_data.py +156 -0
  776. tb_rest_client/models/models_pe/device_group_ota_package.py +234 -0
  777. tb_rest_client/models/models_pe/device_id.py +162 -0
  778. tb_rest_client/models/models_pe/device_info.py +555 -0
  779. tb_rest_client/models/models_pe/device_profile_alarm.py +348 -0
  780. tb_rest_client/models/models_pe/device_profile_configuration.py +133 -0
  781. tb_rest_client/models/models_pe/device_profile_data.py +210 -0
  782. tb_rest_client/models/models_pe/device_profile_id.py +162 -0
  783. tb_rest_client/models/models_pe/device_profile_provision_configuration.py +162 -0
  784. tb_rest_client/models/models_pe/device_profile_transport_configuration.py +137 -0
  785. tb_rest_client/models/models_pe/device_search_query.py +180 -0
  786. tb_rest_client/models/models_pe/device_search_query_filter.py +266 -0
  787. tb_rest_client/models/models_pe/device_transport_configuration.py +137 -0
  788. tb_rest_client/models/models_pe/device_type_filter.py +182 -0
  789. tb_rest_client/models/models_pe/disabled_device_profile_provision_configuration.py +104 -0
  790. tb_rest_client/models/models_pe/duration_alarm_condition_spec.py +162 -0
  791. tb_rest_client/models/models_pe/edge.py +510 -0
  792. tb_rest_client/models/models_pe/edge_communication_failure_notification_rule_trigger_config.py +130 -0
  793. tb_rest_client/models/models_pe/edge_connection_notification_rule_trigger_config.py +163 -0
  794. tb_rest_client/models/models_pe/edge_event.py +396 -0
  795. tb_rest_client/models/models_pe/edge_event_id.py +127 -0
  796. tb_rest_client/models/models_pe/edge_id.py +162 -0
  797. tb_rest_client/models/models_pe/edge_info.py +566 -0
  798. tb_rest_client/models/models_pe/edge_instructions.py +126 -0
  799. tb_rest_client/models/models_pe/edge_search_query.py +180 -0
  800. tb_rest_client/models/models_pe/edge_search_query_filter.py +266 -0
  801. tb_rest_client/models/models_pe/edge_type_filter.py +168 -0
  802. tb_rest_client/models/models_pe/efento_coap_device_type_configuration.py +104 -0
  803. tb_rest_client/models/models_pe/email_delivery_method_notification_template.py +131 -0
  804. tb_rest_client/models/models_pe/email_two_fa_account_config.py +131 -0
  805. tb_rest_client/models/models_pe/email_two_fa_provider_config.py +130 -0
  806. tb_rest_client/models/models_pe/enterprise_captcha_params.py +98 -0
  807. tb_rest_client/models/models_pe/entities_by_group_name_filter.py +188 -0
  808. tb_rest_client/models/models_pe/entities_limit_notification_rule_trigger_config.py +163 -0
  809. tb_rest_client/models/models_pe/entity_action_notification_rule_trigger_config.py +215 -0
  810. tb_rest_client/models/models_pe/entity_count_query.py +150 -0
  811. tb_rest_client/models/models_pe/entity_data.py +254 -0
  812. tb_rest_client/models/models_pe/entity_data_diff.py +150 -0
  813. tb_rest_client/models/models_pe/entity_data_info.py +228 -0
  814. tb_rest_client/models/models_pe/entity_data_page_link.py +228 -0
  815. tb_rest_client/models/models_pe/entity_data_query.py +228 -0
  816. tb_rest_client/models/models_pe/entity_data_sort_order.py +156 -0
  817. tb_rest_client/models/models_pe/entity_export_data_object.py +210 -0
  818. tb_rest_client/models/models_pe/entity_filter.py +152 -0
  819. tb_rest_client/models/models_pe/entity_group.py +400 -0
  820. tb_rest_client/models/models_pe/entity_group_export_data.py +182 -0
  821. tb_rest_client/models/models_pe/entity_group_filter.py +162 -0
  822. tb_rest_client/models/models_pe/entity_group_id.py +162 -0
  823. tb_rest_client/models/models_pe/entity_group_info.py +429 -0
  824. tb_rest_client/models/models_pe/entity_group_list_filter.py +162 -0
  825. tb_rest_client/models/models_pe/entity_group_name_filter.py +162 -0
  826. tb_rest_client/models/models_pe/entity_id.py +160 -0
  827. tb_rest_client/models/models_pe/entity_key.py +156 -0
  828. tb_rest_client/models/models_pe/entity_list_filter.py +162 -0
  829. tb_rest_client/models/models_pe/entity_load_error.py +202 -0
  830. tb_rest_client/models/models_pe/entity_name_filter.py +162 -0
  831. tb_rest_client/models/models_pe/entity_relation_info.py +320 -0
  832. tb_rest_client/models/models_pe/entity_relations_query.py +152 -0
  833. tb_rest_client/models/models_pe/entity_subtype.py +182 -0
  834. tb_rest_client/models/models_pe/entity_type_filter.py +136 -0
  835. tb_rest_client/models/models_pe/entity_type_load_result.py +286 -0
  836. tb_rest_client/models/models_pe/entity_type_version_create_config.py +312 -0
  837. tb_rest_client/models/models_pe/entity_type_version_load_config.py +306 -0
  838. tb_rest_client/models/models_pe/entity_type_version_load_request.py +156 -0
  839. tb_rest_client/models/models_pe/entity_version.py +202 -0
  840. tb_rest_client/models/models_pe/entity_view.py +449 -0
  841. tb_rest_client/models/models_pe/entity_view_id.py +162 -0
  842. tb_rest_client/models/models_pe/entity_view_info.py +505 -0
  843. tb_rest_client/models/models_pe/entity_view_search_query.py +180 -0
  844. tb_rest_client/models/models_pe/entity_view_search_query_filter.py +266 -0
  845. tb_rest_client/models/models_pe/entity_view_type_filter.py +182 -0
  846. tb_rest_client/models/models_pe/error_event_filter.py +188 -0
  847. tb_rest_client/models/models_pe/escalated_notification_rule_recipients_config.py +131 -0
  848. tb_rest_client/models/models_pe/event_filter.py +174 -0
  849. tb_rest_client/models/models_pe/event_id.py +127 -0
  850. tb_rest_client/models/models_pe/event_info.py +286 -0
  851. tb_rest_client/models/models_pe/exportable_entity_entity_id.py +150 -0
  852. tb_rest_client/models/models_pe/favicon.py +124 -0
  853. tb_rest_client/models/models_pe/features_info.py +254 -0
  854. tb_rest_client/models/models_pe/group_entity_export_data.py +130 -0
  855. tb_rest_client/models/models_pe/group_permission.py +370 -0
  856. tb_rest_client/models/models_pe/group_permission_id.py +162 -0
  857. tb_rest_client/models/models_pe/group_permission_info.py +560 -0
  858. tb_rest_client/models/models_pe/home_dashboard.py +478 -0
  859. tb_rest_client/models/models_pe/home_menu_item.py +320 -0
  860. tb_rest_client/models/models_pe/input_stream.py +98 -0
  861. tb_rest_client/models/models_pe/integration.py +571 -0
  862. tb_rest_client/models/models_pe/integration_converters_info.py +136 -0
  863. tb_rest_client/models/models_pe/integration_id.py +162 -0
  864. tb_rest_client/models/models_pe/integration_info.py +460 -0
  865. tb_rest_client/models/models_pe/integration_lifecycle_event_notification_rule_trigger_config.py +222 -0
  866. tb_rest_client/models/models_pe/json_node.py +98 -0
  867. tb_rest_client/models/models_pe/json_transport_payload_configuration.py +104 -0
  868. tb_rest_client/models/models_pe/key_filter.py +182 -0
  869. tb_rest_client/models/models_pe/key_filter_predicate.py +136 -0
  870. tb_rest_client/models/models_pe/last_visited_dashboard_info.py +210 -0
  871. tb_rest_client/models/models_pe/license_usage_info.py +332 -0
  872. tb_rest_client/models/models_pe/life_cycle_event_filter.py +222 -0
  873. tb_rest_client/models/models_pe/locale_code_upload_body.py +125 -0
  874. tb_rest_client/models/models_pe/login_request.py +156 -0
  875. tb_rest_client/models/models_pe/login_response.py +156 -0
  876. tb_rest_client/models/models_pe/login_white_labeling_params.py +682 -0
  877. tb_rest_client/models/models_pe/lw_m2_m_bootstrap_server_credential.py +136 -0
  878. tb_rest_client/models/models_pe/lw_m2_m_server_security_config_default.py +490 -0
  879. tb_rest_client/models/models_pe/lw_m2m_instance.py +154 -0
  880. tb_rest_client/models/models_pe/lw_m2m_object.py +266 -0
  881. tb_rest_client/models/models_pe/lw_m2m_resource_observe.py +266 -0
  882. tb_rest_client/models/models_pe/lwm2m_device_profile_transport_configuration.py +208 -0
  883. tb_rest_client/models/models_pe/lwm2m_device_transport_configuration.py +214 -0
  884. tb_rest_client/models/models_pe/mapping.py +202 -0
  885. tb_rest_client/models/models_pe/menu_item.py +152 -0
  886. tb_rest_client/models/models_pe/merged_group_permission_info.py +163 -0
  887. tb_rest_client/models/models_pe/merged_group_type_permission_info.py +154 -0
  888. tb_rest_client/models/models_pe/merged_user_permissions.py +273 -0
  889. tb_rest_client/models/models_pe/mobile_app_delivery_method_notification_template.py +157 -0
  890. tb_rest_client/models/models_pe/mobile_app_notification_delivery_method_config.py +182 -0
  891. tb_rest_client/models/models_pe/mobile_app_settings_id.py +113 -0
  892. tb_rest_client/models/models_pe/mobile_redirect_params.py +154 -0
  893. tb_rest_client/models/models_pe/mobile_self_registration_params.py +98 -0
  894. tb_rest_client/models/models_pe/mobile_session_info.py +124 -0
  895. tb_rest_client/models/models_pe/model.py +162 -0
  896. tb_rest_client/models/models_pe/mqtt_device_profile_transport_configuration.py +286 -0
  897. tb_rest_client/models/models_pe/mqtt_device_transport_configuration.py +104 -0
  898. tb_rest_client/models/models_pe/new_platform_version_notification_rule_trigger_config.py +104 -0
  899. tb_rest_client/models/models_pe/no_sec_lw_m2_m_bootstrap_server_credential.py +440 -0
  900. tb_rest_client/models/models_pe/node_connection_info.py +185 -0
  901. tb_rest_client/models/models_pe/notification.py +402 -0
  902. tb_rest_client/models/models_pe/notification_delivery_method_config.py +134 -0
  903. tb_rest_client/models/models_pe/notification_id.py +162 -0
  904. tb_rest_client/models/models_pe/notification_info.py +185 -0
  905. tb_rest_client/models/models_pe/notification_request.py +417 -0
  906. tb_rest_client/models/models_pe/notification_request_config.py +124 -0
  907. tb_rest_client/models/models_pe/notification_request_id.py +162 -0
  908. tb_rest_client/models/models_pe/notification_request_preview.py +202 -0
  909. tb_rest_client/models/models_pe/notification_request_stats.py +202 -0
  910. tb_rest_client/models/models_pe/notification_rule_config.py +124 -0
  911. tb_rest_client/models/models_pe/notification_rule_id.py +162 -0
  912. tb_rest_client/models/models_pe/notification_rule_recipients_config.py +139 -0
  913. tb_rest_client/models/models_pe/notification_rule_trigger_config.py +135 -0
  914. tb_rest_client/models/models_pe/notification_template_config.py +125 -0
  915. tb_rest_client/models/models_pe/notification_template_id.py +162 -0
  916. tb_rest_client/models/models_pe/numeric_filter_predicate.py +162 -0
  917. tb_rest_client/models/models_pe/o_auth2_basic_mapper_config.py +381 -0
  918. tb_rest_client/models/models_pe/o_auth2_client_info.py +267 -0
  919. tb_rest_client/models/models_pe/o_auth2_client_registration_template.py +565 -0
  920. tb_rest_client/models/models_pe/o_auth2_client_registration_template_id.py +127 -0
  921. tb_rest_client/models/models_pe/o_auth2_custom_mapper_config.py +202 -0
  922. tb_rest_client/models/models_pe/o_auth2_domain_info.py +162 -0
  923. tb_rest_client/models/models_pe/o_auth2_info.py +183 -0
  924. tb_rest_client/models/models_pe/o_auth2_mapper_config.py +241 -0
  925. tb_rest_client/models/models_pe/o_auth2_mobile_info.py +156 -0
  926. tb_rest_client/models/models_pe/o_auth2_params_info.py +185 -0
  927. tb_rest_client/models/models_pe/o_auth2_registration_info.py +502 -0
  928. tb_rest_client/models/models_pe/object_attributes.py +410 -0
  929. tb_rest_client/models/models_pe/object_node.py +98 -0
  930. tb_rest_client/models/models_pe/originator_entity_owner_users_filter.py +104 -0
  931. tb_rest_client/models/models_pe/ota_package.py +576 -0
  932. tb_rest_client/models/models_pe/ota_package_id.py +162 -0
  933. tb_rest_client/models/models_pe/ota_package_info.py +550 -0
  934. tb_rest_client/models/models_pe/ota_package_ota_package_id_body.py +184 -0
  935. tb_rest_client/models/models_pe/other_configuration.py +364 -0
  936. tb_rest_client/models/models_pe/page_data_blob_entity_with_customer_info.py +210 -0
  937. tb_rest_client/models/models_pe/page_data_contact_basedobject.py +210 -0
  938. tb_rest_client/models/models_pe/page_data_converter.py +210 -0
  939. tb_rest_client/models/models_pe/page_data_customer_info.py +210 -0
  940. tb_rest_client/models/models_pe/page_data_edge.py +210 -0
  941. tb_rest_client/models/models_pe/page_data_edge_event.py +210 -0
  942. tb_rest_client/models/models_pe/page_data_edge_info.py +210 -0
  943. tb_rest_client/models/models_pe/page_data_entity_group_info.py +210 -0
  944. tb_rest_client/models/models_pe/page_data_entity_version.py +210 -0
  945. tb_rest_client/models/models_pe/page_data_entity_view_info.py +210 -0
  946. tb_rest_client/models/models_pe/page_data_event_info.py +210 -0
  947. tb_rest_client/models/models_pe/page_data_integration.py +210 -0
  948. tb_rest_client/models/models_pe/page_data_integration_info.py +210 -0
  949. tb_rest_client/models/models_pe/page_data_ota_package_info.py +210 -0
  950. tb_rest_client/models/models_pe/page_data_queue.py +210 -0
  951. tb_rest_client/models/models_pe/page_data_role.py +210 -0
  952. tb_rest_client/models/models_pe/page_data_rule_chain.py +210 -0
  953. tb_rest_client/models/models_pe/page_data_scheduler_event_info.py +210 -0
  954. tb_rest_client/models/models_pe/page_data_short_entity_view.py +210 -0
  955. tb_rest_client/models/models_pe/page_data_user_email_info.py +210 -0
  956. tb_rest_client/models/models_pe/page_data_user_info.py +210 -0
  957. tb_rest_client/models/models_pe/palette.py +183 -0
  958. tb_rest_client/models/models_pe/palette_settings.py +152 -0
  959. tb_rest_client/models/models_pe/platform_two_fa_settings.py +257 -0
  960. tb_rest_client/models/models_pe/platform_users_notification_target_config.py +131 -0
  961. tb_rest_client/models/models_pe/power_saving_configuration.py +208 -0
  962. tb_rest_client/models/models_pe/processing_strategy.py +234 -0
  963. tb_rest_client/models/models_pe/proto_transport_payload_configuration.py +260 -0
  964. tb_rest_client/models/models_pe/psklw_m2_m_bootstrap_server_credential.py +440 -0
  965. tb_rest_client/models/models_pe/queue.py +410 -0
  966. tb_rest_client/models/models_pe/raw_data_event_filter.py +216 -0
  967. tb_rest_client/models/models_pe/relation_entity_type_filter.py +189 -0
  968. tb_rest_client/models/models_pe/relations_query_filter.py +350 -0
  969. tb_rest_client/models/models_pe/relations_search_parameters.py +284 -0
  970. tb_rest_client/models/models_pe/repeating_alarm_condition_spec.py +130 -0
  971. tb_rest_client/models/models_pe/report_config.py +381 -0
  972. tb_rest_client/models/models_pe/repository_settings.py +390 -0
  973. tb_rest_client/models/models_pe/repository_settings_info.py +150 -0
  974. tb_rest_client/models/models_pe/reset_password_email_request.py +126 -0
  975. tb_rest_client/models/models_pe/reset_password_request.py +154 -0
  976. tb_rest_client/models/models_pe/resource.py +306 -0
  977. tb_rest_client/models/models_pe/response_entity.py +182 -0
  978. tb_rest_client/models/models_pe/role.py +371 -0
  979. tb_rest_client/models/models_pe/role_id.py +162 -0
  980. tb_rest_client/models/models_pe/rpc.py +344 -0
  981. tb_rest_client/models/models_pe/rpc_id.py +162 -0
  982. tb_rest_client/models/models_pe/rpklw_m2_m_bootstrap_server_credential.py +440 -0
  983. tb_rest_client/models/models_pe/rule_chain.py +402 -0
  984. tb_rest_client/models/models_pe/rule_chain_connection_info.py +210 -0
  985. tb_rest_client/models/models_pe/rule_chain_data.py +156 -0
  986. tb_rest_client/models/models_pe/rule_chain_debug_event_filter.py +240 -0
  987. tb_rest_client/models/models_pe/rule_chain_export_data.py +156 -0
  988. tb_rest_client/models/models_pe/rule_chain_id.py +162 -0
  989. tb_rest_client/models/models_pe/rule_chain_import_result.py +202 -0
  990. tb_rest_client/models/models_pe/rule_chain_meta_data.py +269 -0
  991. tb_rest_client/models/models_pe/rule_chain_output_labels_usage.py +239 -0
  992. tb_rest_client/models/models_pe/rule_engine_component_lifecycle_event_notification_rule_trigger_config.py +274 -0
  993. tb_rest_client/models/models_pe/rule_node.py +424 -0
  994. tb_rest_client/models/models_pe/rule_node_debug_event_filter.py +448 -0
  995. tb_rest_client/models/models_pe/rule_node_id.py +162 -0
  996. tb_rest_client/models/models_pe/save_device_with_credentials_request.py +152 -0
  997. tb_rest_client/models/models_pe/save_ota_package_info_request.py +578 -0
  998. tb_rest_client/models/models_pe/scheduler_event.py +444 -0
  999. tb_rest_client/models/models_pe/scheduler_event_filter.py +156 -0
  1000. tb_rest_client/models/models_pe/scheduler_event_id.py +162 -0
  1001. tb_rest_client/models/models_pe/scheduler_event_info.py +418 -0
  1002. tb_rest_client/models/models_pe/scheduler_event_with_customer_info.py +474 -0
  1003. tb_rest_client/models/models_pe/security_settings.py +266 -0
  1004. tb_rest_client/models/models_pe/self_registration_params.py +630 -0
  1005. tb_rest_client/models/models_pe/share_group_request.py +235 -0
  1006. tb_rest_client/models/models_pe/shared_attributes_setting_snmp_communication_config.py +130 -0
  1007. tb_rest_client/models/models_pe/short_customer_info.py +204 -0
  1008. tb_rest_client/models/models_pe/short_entity_view.py +154 -0
  1009. tb_rest_client/models/models_pe/sign_up_field.py +184 -0
  1010. tb_rest_client/models/models_pe/sign_up_request.py +294 -0
  1011. tb_rest_client/models/models_pe/sign_up_self_registration_params.py +266 -0
  1012. tb_rest_client/models/models_pe/simple_alarm_condition_spec.py +104 -0
  1013. tb_rest_client/models/models_pe/single_entity_filter.py +130 -0
  1014. tb_rest_client/models/models_pe/single_entity_version_create_request.py +156 -0
  1015. tb_rest_client/models/models_pe/single_entity_version_load_request.py +182 -0
  1016. tb_rest_client/models/models_pe/slack_conversation.py +263 -0
  1017. tb_rest_client/models/models_pe/slack_delivery_method_notification_template.py +104 -0
  1018. tb_rest_client/models/models_pe/slack_notification_delivery_method_config.py +131 -0
  1019. tb_rest_client/models/models_pe/slack_notification_target_config.py +163 -0
  1020. tb_rest_client/models/models_pe/smpp_sms_provider_configuration.py +541 -0
  1021. tb_rest_client/models/models_pe/sms_delivery_method_notification_template.py +104 -0
  1022. tb_rest_client/models/models_pe/sms_provider_configuration.py +135 -0
  1023. tb_rest_client/models/models_pe/sms_two_fa_account_config.py +131 -0
  1024. tb_rest_client/models/models_pe/sms_two_fa_provider_config.py +157 -0
  1025. tb_rest_client/models/models_pe/snmp_communication_config.py +142 -0
  1026. tb_rest_client/models/models_pe/snmp_device_profile_transport_configuration.py +182 -0
  1027. tb_rest_client/models/models_pe/snmp_device_transport_configuration.py +434 -0
  1028. tb_rest_client/models/models_pe/snmp_mapping.py +182 -0
  1029. tb_rest_client/models/models_pe/solution_install_response.py +260 -0
  1030. tb_rest_client/models/models_pe/specific_time_schedule.py +208 -0
  1031. tb_rest_client/models/models_pe/starred_dashboard_info.py +182 -0
  1032. tb_rest_client/models/models_pe/state_entity_owner_filter.py +130 -0
  1033. tb_rest_client/models/models_pe/statistics_event_filter.py +244 -0
  1034. tb_rest_client/models/models_pe/string_filter_predicate.py +188 -0
  1035. tb_rest_client/models/models_pe/submit_strategy.py +156 -0
  1036. tb_rest_client/models/models_pe/subscription_usage.py +540 -0
  1037. tb_rest_client/models/models_pe/system_administrators_filter.py +104 -0
  1038. tb_rest_client/models/models_pe/system_info.py +152 -0
  1039. tb_rest_client/models/models_pe/system_info_data.py +322 -0
  1040. tb_rest_client/models/models_pe/task_processing_failure_notification_rule_trigger_config.py +98 -0
  1041. tb_rest_client/models/models_pe/tb_image_delete_result.py +176 -0
  1042. tb_rest_client/models/models_pe/tb_resource.py +594 -0
  1043. tb_rest_client/models/models_pe/tb_resource_id.py +162 -0
  1044. tb_rest_client/models/models_pe/tb_resource_info.py +540 -0
  1045. tb_rest_client/models/models_pe/telemetry_entity_view.py +154 -0
  1046. tb_rest_client/models/models_pe/telemetry_mapping_configuration.py +228 -0
  1047. tb_rest_client/models/models_pe/telemetry_querying_snmp_communication_config.py +156 -0
  1048. tb_rest_client/models/models_pe/tenant_administrators_filter.py +156 -0
  1049. tb_rest_client/models/models_pe/tenant_profile_configuration.py +133 -0
  1050. tb_rest_client/models/models_pe/tenant_profile_data.py +154 -0
  1051. tb_rest_client/models/models_pe/tenant_profile_id.py +162 -0
  1052. tb_rest_client/models/models_pe/tenant_profile_queue_configuration.py +332 -0
  1053. tb_rest_client/models/models_pe/tenant_solution_template_details.py +376 -0
  1054. tb_rest_client/models/models_pe/tenant_solution_template_info.py +440 -0
  1055. tb_rest_client/models/models_pe/tenant_solution_template_instructions.py +232 -0
  1056. tb_rest_client/models/models_pe/test_sms_request.py +182 -0
  1057. tb_rest_client/models/models_pe/thingsboard_credentials_expired_response.py +238 -0
  1058. tb_rest_client/models/models_pe/thingsboard_error_response.py +210 -0
  1059. tb_rest_client/models/models_pe/to_device_rpc_request_snmp_communication_config.py +130 -0
  1060. tb_rest_client/models/models_pe/totp_two_fa_account_config.py +131 -0
  1061. tb_rest_client/models/models_pe/totp_two_fa_provider_config.py +131 -0
  1062. tb_rest_client/models/models_pe/translation_info.py +238 -0
  1063. tb_rest_client/models/models_pe/transport_payload_type_configuration.py +134 -0
  1064. tb_rest_client/models/models_pe/ts_value.py +176 -0
  1065. tb_rest_client/models/models_pe/twilio_sms_provider_configuration.py +188 -0
  1066. tb_rest_client/models/models_pe/two_fa_account_config.py +162 -0
  1067. tb_rest_client/models/models_pe/two_fa_account_config_update_request.py +124 -0
  1068. tb_rest_client/models/models_pe/two_fa_provider_config.py +136 -0
  1069. tb_rest_client/models/models_pe/two_fa_provider_info.py +234 -0
  1070. tb_rest_client/models/models_pe/update_message.py +266 -0
  1071. tb_rest_client/models/models_pe/user.py +484 -0
  1072. tb_rest_client/models/models_pe/user_dashboards_info.py +154 -0
  1073. tb_rest_client/models/models_pe/user_email_info.py +208 -0
  1074. tb_rest_client/models/models_pe/user_group_list_filter.py +131 -0
  1075. tb_rest_client/models/models_pe/user_id.py +162 -0
  1076. tb_rest_client/models/models_pe/user_info.py +540 -0
  1077. tb_rest_client/models/models_pe/user_list_filter.py +131 -0
  1078. tb_rest_client/models/models_pe/user_password_policy.py +378 -0
  1079. tb_rest_client/models/models_pe/user_role_filter.py +131 -0
  1080. tb_rest_client/models/models_pe/users_filter.py +142 -0
  1081. tb_rest_client/models/models_pe/v2_captcha_params.py +98 -0
  1082. tb_rest_client/models/models_pe/v3_captcha_params.py +98 -0
  1083. tb_rest_client/models/models_pe/vendor.py +150 -0
  1084. tb_rest_client/models/models_pe/version_create_config.py +228 -0
  1085. tb_rest_client/models/models_pe/version_create_request.py +191 -0
  1086. tb_rest_client/models/models_pe/version_creation_result.py +254 -0
  1087. tb_rest_client/models/models_pe/version_load_config.py +254 -0
  1088. tb_rest_client/models/models_pe/version_load_request.py +165 -0
  1089. tb_rest_client/models/models_pe/version_load_result.py +176 -0
  1090. tb_rest_client/models/models_pe/versioned_entity_info.py +150 -0
  1091. tb_rest_client/models/models_pe/web_delivery_method_notification_template.py +157 -0
  1092. tb_rest_client/models/models_pe/web_self_registration_params.py +98 -0
  1093. tb_rest_client/models/models_pe/white_labeling.py +234 -0
  1094. tb_rest_client/models/models_pe/white_labeling_params.py +486 -0
  1095. tb_rest_client/models/models_pe/widget_type.py +342 -0
  1096. tb_rest_client/models/models_pe/widget_type_details.py +426 -0
  1097. tb_rest_client/models/models_pe/widget_type_export_data.py +130 -0
  1098. tb_rest_client/models/models_pe/widget_type_id.py +162 -0
  1099. tb_rest_client/models/models_pe/widget_type_info.py +428 -0
  1100. tb_rest_client/models/models_pe/widgets_bundle_export_data.py +182 -0
  1101. tb_rest_client/models/models_pe/widgets_bundle_id.py +162 -0
  1102. tb_rest_client/models/models_pe/x509_certificate_chain_provision_configuration.py +156 -0
  1103. tb_rest_client/models/models_pe/x509_lw_m2_m_bootstrap_server_credential.py +440 -0
  1104. tb_rest_client/rest.py +342 -0
  1105. tb_rest_client/rest_client_base.py +2193 -0
  1106. tb_rest_client/rest_client_ce.py +1284 -0
  1107. tb_rest_client/rest_client_pe.py +1910 -0
  1108. tb_rest_client-3.9.0.dist-info/LICENSE +201 -0
  1109. tb_rest_client-3.9.0.dist-info/METADATA +80 -0
  1110. tb_rest_client-3.9.0.dist-info/RECORD +1111 -0
  1111. tb_rest_client-3.9.0.dist-info/WHEEL +4 -0
@@ -0,0 +1,2737 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ThingsBoard REST API
5
+
6
+ ThingsBoard open-source IoT platform REST API documentation. # noqa: E501
7
+
8
+ OpenAPI spec version: 3.9.0
9
+ Contact: info@thingsboard.io
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ # Copyright 2025. ThingsBoard
14
+ #
15
+ # Licensed under the Apache License, Version 2.0 (the "License");
16
+ # you may not use this file except in compliance with the License.
17
+ # You may obtain a copy of the License at
18
+ #
19
+ # http://www.apache.org/licenses/LICENSE-2.0
20
+ #
21
+ # Unless required by applicable law or agreed to in writing, software
22
+ # distributed under the License is distributed on an "AS IS" BASIS,
23
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ # See the License for the specific language governing permissions and
25
+ # limitations under the License.
26
+
27
+ from __future__ import absolute_import
28
+
29
+ import re # noqa: F401
30
+
31
+ # python 2 and python 3 compatibility library
32
+ import six
33
+
34
+ from tb_rest_client.api_client import ApiClient
35
+
36
+
37
+ class DeviceControllerApi(object):
38
+ """NOTE: This class is auto generated by the swagger code generator program.
39
+
40
+ Do not edit the class manually.
41
+ Ref: https://github.com/swagger-api/swagger-codegen
42
+ """
43
+
44
+ def __init__(self, api_client=None):
45
+ if api_client is None:
46
+ api_client = ApiClient()
47
+ self.api_client = api_client
48
+
49
+ def assign_device_to_customer_using_post(self, customer_id, device_id, **kwargs): # noqa: E501
50
+ """Assign device to customer (assignDeviceToCustomer) # noqa: E501
51
+
52
+ Creates assignment of the device to customer. Customer will be able to query device afterwards. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
53
+ This method makes a synchronous HTTP request by default. To make an
54
+ asynchronous HTTP request, please pass async_req=True
55
+ >>> thread = api.assign_device_to_customer_using_post(customer_id, device_id, async_req=True)
56
+ >>> result = thread.get()
57
+
58
+ :param async_req bool
59
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
60
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
61
+ :return: Device
62
+ If the method is called asynchronously,
63
+ returns the request thread.
64
+ """
65
+ kwargs['_return_http_data_only'] = True
66
+ if kwargs.get('async_req'):
67
+ return self.assign_device_to_customer_using_post_with_http_info(customer_id, device_id, **kwargs) # noqa: E501
68
+ else:
69
+ (data) = self.assign_device_to_customer_using_post_with_http_info(customer_id, device_id, **kwargs) # noqa: E501
70
+ return data
71
+
72
+ def assign_device_to_customer_using_post_with_http_info(self, customer_id, device_id, **kwargs): # noqa: E501
73
+ """Assign device to customer (assignDeviceToCustomer) # noqa: E501
74
+
75
+ Creates assignment of the device to customer. Customer will be able to query device afterwards. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
76
+ This method makes a synchronous HTTP request by default. To make an
77
+ asynchronous HTTP request, please pass async_req=True
78
+ >>> thread = api.assign_device_to_customer_using_post_with_http_info(customer_id, device_id, async_req=True)
79
+ >>> result = thread.get()
80
+
81
+ :param async_req bool
82
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
83
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
84
+ :return: Device
85
+ If the method is called asynchronously,
86
+ returns the request thread.
87
+ """
88
+
89
+ all_params = ['customer_id', 'device_id'] # noqa: E501
90
+ all_params.append('async_req')
91
+ all_params.append('_return_http_data_only')
92
+ all_params.append('_preload_content')
93
+ all_params.append('_request_timeout')
94
+
95
+ params = locals()
96
+ for key, val in six.iteritems(params['kwargs']):
97
+ if key not in all_params:
98
+ raise TypeError(
99
+ "Got an unexpected keyword argument '%s'"
100
+ " to method assign_device_to_customer_using_post" % key
101
+ )
102
+ params[key] = val
103
+ del params['kwargs']
104
+ # verify the required parameter 'customer_id' is set
105
+ if ('customer_id' not in params or
106
+ params['customer_id'] is None):
107
+ raise ValueError("Missing the required parameter `customer_id` when calling `assign_device_to_customer_using_post`") # noqa: E501
108
+ # verify the required parameter 'device_id' is set
109
+ if ('device_id' not in params or
110
+ params['device_id'] is None):
111
+ raise ValueError("Missing the required parameter `device_id` when calling `assign_device_to_customer_using_post`") # noqa: E501
112
+
113
+ collection_formats = {}
114
+
115
+ path_params = {}
116
+ if 'customer_id' in params:
117
+ path_params['customerId'] = params['customer_id'] # noqa: E501
118
+ if 'device_id' in params:
119
+ path_params['deviceId'] = params['device_id'] # noqa: E501
120
+
121
+ query_params = []
122
+
123
+ header_params = {}
124
+
125
+ form_params = []
126
+ local_var_files = {}
127
+
128
+ body_params = None
129
+ # HTTP header `Accept`
130
+ header_params['Accept'] = self.api_client.select_header_accept(
131
+ ['application/json']) # noqa: E501
132
+
133
+ # Authentication setting
134
+ auth_settings = ['X-Authorization'] # noqa: E501
135
+
136
+ return self.api_client.call_api(
137
+ '/api/customer/{customerId}/device/{deviceId}', 'POST',
138
+ path_params,
139
+ query_params,
140
+ header_params,
141
+ body=body_params,
142
+ post_params=form_params,
143
+ files=local_var_files,
144
+ response_type='Device', # noqa: E501
145
+ auth_settings=auth_settings,
146
+ async_req=params.get('async_req'),
147
+ _return_http_data_only=params.get('_return_http_data_only'),
148
+ _preload_content=params.get('_preload_content', True),
149
+ _request_timeout=params.get('_request_timeout'),
150
+ collection_formats=collection_formats)
151
+
152
+ def assign_device_to_edge_using_post(self, edge_id, device_id, **kwargs): # noqa: E501
153
+ """Assign device to edge (assignDeviceToEdge) # noqa: E501
154
+
155
+ Creates assignment of an existing device to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment device (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once device will be delivered to edge service, it's going to be available for usage on remote edge instance. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
156
+ This method makes a synchronous HTTP request by default. To make an
157
+ asynchronous HTTP request, please pass async_req=True
158
+ >>> thread = api.assign_device_to_edge_using_post(edge_id, device_id, async_req=True)
159
+ >>> result = thread.get()
160
+
161
+ :param async_req bool
162
+ :param str edge_id: A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
163
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
164
+ :return: Device
165
+ If the method is called asynchronously,
166
+ returns the request thread.
167
+ """
168
+ kwargs['_return_http_data_only'] = True
169
+ if kwargs.get('async_req'):
170
+ return self.assign_device_to_edge_using_post_with_http_info(edge_id, device_id, **kwargs) # noqa: E501
171
+ else:
172
+ (data) = self.assign_device_to_edge_using_post_with_http_info(edge_id, device_id, **kwargs) # noqa: E501
173
+ return data
174
+
175
+ def assign_device_to_edge_using_post_with_http_info(self, edge_id, device_id, **kwargs): # noqa: E501
176
+ """Assign device to edge (assignDeviceToEdge) # noqa: E501
177
+
178
+ Creates assignment of an existing device to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment device (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once device will be delivered to edge service, it's going to be available for usage on remote edge instance. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
179
+ This method makes a synchronous HTTP request by default. To make an
180
+ asynchronous HTTP request, please pass async_req=True
181
+ >>> thread = api.assign_device_to_edge_using_post_with_http_info(edge_id, device_id, async_req=True)
182
+ >>> result = thread.get()
183
+
184
+ :param async_req bool
185
+ :param str edge_id: A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
186
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
187
+ :return: Device
188
+ If the method is called asynchronously,
189
+ returns the request thread.
190
+ """
191
+
192
+ all_params = ['edge_id', 'device_id'] # noqa: E501
193
+ all_params.append('async_req')
194
+ all_params.append('_return_http_data_only')
195
+ all_params.append('_preload_content')
196
+ all_params.append('_request_timeout')
197
+
198
+ params = locals()
199
+ for key, val in six.iteritems(params['kwargs']):
200
+ if key not in all_params:
201
+ raise TypeError(
202
+ "Got an unexpected keyword argument '%s'"
203
+ " to method assign_device_to_edge_using_post" % key
204
+ )
205
+ params[key] = val
206
+ del params['kwargs']
207
+ # verify the required parameter 'edge_id' is set
208
+ if ('edge_id' not in params or
209
+ params['edge_id'] is None):
210
+ raise ValueError("Missing the required parameter `edge_id` when calling `assign_device_to_edge_using_post`") # noqa: E501
211
+ # verify the required parameter 'device_id' is set
212
+ if ('device_id' not in params or
213
+ params['device_id'] is None):
214
+ raise ValueError("Missing the required parameter `device_id` when calling `assign_device_to_edge_using_post`") # noqa: E501
215
+
216
+ collection_formats = {}
217
+
218
+ path_params = {}
219
+ if 'edge_id' in params:
220
+ path_params['edgeId'] = params['edge_id'] # noqa: E501
221
+ if 'device_id' in params:
222
+ path_params['deviceId'] = params['device_id'] # noqa: E501
223
+
224
+ query_params = []
225
+
226
+ header_params = {}
227
+
228
+ form_params = []
229
+ local_var_files = {}
230
+
231
+ body_params = None
232
+ # HTTP header `Accept`
233
+ header_params['Accept'] = self.api_client.select_header_accept(
234
+ ['application/json']) # noqa: E501
235
+
236
+ # Authentication setting
237
+ auth_settings = ['X-Authorization'] # noqa: E501
238
+
239
+ return self.api_client.call_api(
240
+ '/api/edge/{edgeId}/device/{deviceId}', 'POST',
241
+ path_params,
242
+ query_params,
243
+ header_params,
244
+ body=body_params,
245
+ post_params=form_params,
246
+ files=local_var_files,
247
+ response_type='Device', # noqa: E501
248
+ auth_settings=auth_settings,
249
+ async_req=params.get('async_req'),
250
+ _return_http_data_only=params.get('_return_http_data_only'),
251
+ _preload_content=params.get('_preload_content', True),
252
+ _request_timeout=params.get('_request_timeout'),
253
+ collection_formats=collection_formats)
254
+
255
+ def assign_device_to_public_customer_using_post(self, device_id, **kwargs): # noqa: E501
256
+ """Make device publicly available (assignDeviceToPublicCustomer) # noqa: E501
257
+
258
+ Device will be available for non-authorized (not logged-in) users. This is useful to create dashboards that you plan to share/embed on a publicly available website. However, users that are logged-in and belong to different tenant will not be able to access the device. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
259
+ This method makes a synchronous HTTP request by default. To make an
260
+ asynchronous HTTP request, please pass async_req=True
261
+ >>> thread = api.assign_device_to_public_customer_using_post(device_id, async_req=True)
262
+ >>> result = thread.get()
263
+
264
+ :param async_req bool
265
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
266
+ :return: Device
267
+ If the method is called asynchronously,
268
+ returns the request thread.
269
+ """
270
+ kwargs['_return_http_data_only'] = True
271
+ if kwargs.get('async_req'):
272
+ return self.assign_device_to_public_customer_using_post_with_http_info(device_id, **kwargs) # noqa: E501
273
+ else:
274
+ (data) = self.assign_device_to_public_customer_using_post_with_http_info(device_id, **kwargs) # noqa: E501
275
+ return data
276
+
277
+ def assign_device_to_public_customer_using_post_with_http_info(self, device_id, **kwargs): # noqa: E501
278
+ """Make device publicly available (assignDeviceToPublicCustomer) # noqa: E501
279
+
280
+ Device will be available for non-authorized (not logged-in) users. This is useful to create dashboards that you plan to share/embed on a publicly available website. However, users that are logged-in and belong to different tenant will not be able to access the device. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
281
+ This method makes a synchronous HTTP request by default. To make an
282
+ asynchronous HTTP request, please pass async_req=True
283
+ >>> thread = api.assign_device_to_public_customer_using_post_with_http_info(device_id, async_req=True)
284
+ >>> result = thread.get()
285
+
286
+ :param async_req bool
287
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
288
+ :return: Device
289
+ If the method is called asynchronously,
290
+ returns the request thread.
291
+ """
292
+
293
+ all_params = ['device_id'] # noqa: E501
294
+ all_params.append('async_req')
295
+ all_params.append('_return_http_data_only')
296
+ all_params.append('_preload_content')
297
+ all_params.append('_request_timeout')
298
+
299
+ params = locals()
300
+ for key, val in six.iteritems(params['kwargs']):
301
+ if key not in all_params:
302
+ raise TypeError(
303
+ "Got an unexpected keyword argument '%s'"
304
+ " to method assign_device_to_public_customer_using_post" % key
305
+ )
306
+ params[key] = val
307
+ del params['kwargs']
308
+ # verify the required parameter 'device_id' is set
309
+ if ('device_id' not in params or
310
+ params['device_id'] is None):
311
+ raise ValueError("Missing the required parameter `device_id` when calling `assign_device_to_public_customer_using_post`") # noqa: E501
312
+
313
+ collection_formats = {}
314
+
315
+ path_params = {}
316
+ if 'device_id' in params:
317
+ path_params['deviceId'] = params['device_id'] # noqa: E501
318
+
319
+ query_params = []
320
+
321
+ header_params = {}
322
+
323
+ form_params = []
324
+ local_var_files = {}
325
+
326
+ body_params = None
327
+ # HTTP header `Accept`
328
+ header_params['Accept'] = self.api_client.select_header_accept(
329
+ ['application/json']) # noqa: E501
330
+
331
+ # Authentication setting
332
+ auth_settings = ['X-Authorization'] # noqa: E501
333
+
334
+ return self.api_client.call_api(
335
+ '/api/customer/public/device/{deviceId}', 'POST',
336
+ path_params,
337
+ query_params,
338
+ header_params,
339
+ body=body_params,
340
+ post_params=form_params,
341
+ files=local_var_files,
342
+ response_type='Device', # noqa: E501
343
+ auth_settings=auth_settings,
344
+ async_req=params.get('async_req'),
345
+ _return_http_data_only=params.get('_return_http_data_only'),
346
+ _preload_content=params.get('_preload_content', True),
347
+ _request_timeout=params.get('_request_timeout'),
348
+ collection_formats=collection_formats)
349
+
350
+ def assign_device_to_tenant_using_post(self, tenant_id, device_id, **kwargs): # noqa: E501
351
+ """Assign device to tenant (assignDeviceToTenant) # noqa: E501
352
+
353
+ Creates assignment of the device to tenant. Thereafter tenant will be able to reassign the device to a customer. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
354
+ This method makes a synchronous HTTP request by default. To make an
355
+ asynchronous HTTP request, please pass async_req=True
356
+ >>> thread = api.assign_device_to_tenant_using_post(tenant_id, device_id, async_req=True)
357
+ >>> result = thread.get()
358
+
359
+ :param async_req bool
360
+ :param str tenant_id: A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
361
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
362
+ :return: Device
363
+ If the method is called asynchronously,
364
+ returns the request thread.
365
+ """
366
+ kwargs['_return_http_data_only'] = True
367
+ if kwargs.get('async_req'):
368
+ return self.assign_device_to_tenant_using_post_with_http_info(tenant_id, device_id, **kwargs) # noqa: E501
369
+ else:
370
+ (data) = self.assign_device_to_tenant_using_post_with_http_info(tenant_id, device_id, **kwargs) # noqa: E501
371
+ return data
372
+
373
+ def assign_device_to_tenant_using_post_with_http_info(self, tenant_id, device_id, **kwargs): # noqa: E501
374
+ """Assign device to tenant (assignDeviceToTenant) # noqa: E501
375
+
376
+ Creates assignment of the device to tenant. Thereafter tenant will be able to reassign the device to a customer. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
377
+ This method makes a synchronous HTTP request by default. To make an
378
+ asynchronous HTTP request, please pass async_req=True
379
+ >>> thread = api.assign_device_to_tenant_using_post_with_http_info(tenant_id, device_id, async_req=True)
380
+ >>> result = thread.get()
381
+
382
+ :param async_req bool
383
+ :param str tenant_id: A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
384
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
385
+ :return: Device
386
+ If the method is called asynchronously,
387
+ returns the request thread.
388
+ """
389
+
390
+ all_params = ['tenant_id', 'device_id'] # noqa: E501
391
+ all_params.append('async_req')
392
+ all_params.append('_return_http_data_only')
393
+ all_params.append('_preload_content')
394
+ all_params.append('_request_timeout')
395
+
396
+ params = locals()
397
+ for key, val in six.iteritems(params['kwargs']):
398
+ if key not in all_params:
399
+ raise TypeError(
400
+ "Got an unexpected keyword argument '%s'"
401
+ " to method assign_device_to_tenant_using_post" % key
402
+ )
403
+ params[key] = val
404
+ del params['kwargs']
405
+ # verify the required parameter 'tenant_id' is set
406
+ if ('tenant_id' not in params or
407
+ params['tenant_id'] is None):
408
+ raise ValueError("Missing the required parameter `tenant_id` when calling `assign_device_to_tenant_using_post`") # noqa: E501
409
+ # verify the required parameter 'device_id' is set
410
+ if ('device_id' not in params or
411
+ params['device_id'] is None):
412
+ raise ValueError("Missing the required parameter `device_id` when calling `assign_device_to_tenant_using_post`") # noqa: E501
413
+
414
+ collection_formats = {}
415
+
416
+ path_params = {}
417
+ if 'tenant_id' in params:
418
+ path_params['tenantId'] = params['tenant_id'] # noqa: E501
419
+ if 'device_id' in params:
420
+ path_params['deviceId'] = params['device_id'] # noqa: E501
421
+
422
+ query_params = []
423
+
424
+ header_params = {}
425
+
426
+ form_params = []
427
+ local_var_files = {}
428
+
429
+ body_params = None
430
+ # HTTP header `Accept`
431
+ header_params['Accept'] = self.api_client.select_header_accept(
432
+ ['application/json']) # noqa: E501
433
+
434
+ # Authentication setting
435
+ auth_settings = ['X-Authorization'] # noqa: E501
436
+
437
+ return self.api_client.call_api(
438
+ '/api/tenant/{tenantId}/device/{deviceId}', 'POST',
439
+ path_params,
440
+ query_params,
441
+ header_params,
442
+ body=body_params,
443
+ post_params=form_params,
444
+ files=local_var_files,
445
+ response_type='Device', # noqa: E501
446
+ auth_settings=auth_settings,
447
+ async_req=params.get('async_req'),
448
+ _return_http_data_only=params.get('_return_http_data_only'),
449
+ _preload_content=params.get('_preload_content', True),
450
+ _request_timeout=params.get('_request_timeout'),
451
+ collection_formats=collection_formats)
452
+
453
+ def claim_device_using_post1(self, device_name, **kwargs): # noqa: E501
454
+ """Claim device (claimDevice) # noqa: E501
455
+
456
+ Claiming makes it possible to assign a device to the specific customer using device/server side claiming data (in the form of secret key).To make this happen you have to provide unique device name and optional claiming data (it is needed only for device-side claiming).Once device is claimed, the customer becomes its owner and customer users may access device data as well as control the device. In order to enable claiming devices feature a system parameter security.claim.allowClaimingByDefault should be set to true, otherwise a server-side claimingAllowed attribute with the value true is obligatory for provisioned devices. See official documentation for more details regarding claiming. Available for users with 'CUSTOMER_USER' authority. # noqa: E501
457
+ This method makes a synchronous HTTP request by default. To make an
458
+ asynchronous HTTP request, please pass async_req=True
459
+ >>> thread = api.claim_device_using_post1(device_name, async_req=True)
460
+ >>> result = thread.get()
461
+
462
+ :param async_req bool
463
+ :param str device_name: Unique name of the device which is going to be claimed (required)
464
+ :param ClaimRequest body:
465
+ :return: DeferredResultResponseEntity
466
+ If the method is called asynchronously,
467
+ returns the request thread.
468
+ """
469
+ kwargs['_return_http_data_only'] = True
470
+ if kwargs.get('async_req'):
471
+ return self.claim_device_using_post1_with_http_info(device_name, **kwargs) # noqa: E501
472
+ else:
473
+ (data) = self.claim_device_using_post1_with_http_info(device_name, **kwargs) # noqa: E501
474
+ return data
475
+
476
+ def claim_device_using_post1_with_http_info(self, device_name, **kwargs): # noqa: E501
477
+ """Claim device (claimDevice) # noqa: E501
478
+
479
+ Claiming makes it possible to assign a device to the specific customer using device/server side claiming data (in the form of secret key).To make this happen you have to provide unique device name and optional claiming data (it is needed only for device-side claiming).Once device is claimed, the customer becomes its owner and customer users may access device data as well as control the device. In order to enable claiming devices feature a system parameter security.claim.allowClaimingByDefault should be set to true, otherwise a server-side claimingAllowed attribute with the value true is obligatory for provisioned devices. See official documentation for more details regarding claiming. Available for users with 'CUSTOMER_USER' authority. # noqa: E501
480
+ This method makes a synchronous HTTP request by default. To make an
481
+ asynchronous HTTP request, please pass async_req=True
482
+ >>> thread = api.claim_device_using_post1_with_http_info(device_name, async_req=True)
483
+ >>> result = thread.get()
484
+
485
+ :param async_req bool
486
+ :param str device_name: Unique name of the device which is going to be claimed (required)
487
+ :param ClaimRequest body:
488
+ :return: DeferredResultResponseEntity
489
+ If the method is called asynchronously,
490
+ returns the request thread.
491
+ """
492
+
493
+ all_params = ['device_name', 'body'] # noqa: E501
494
+ all_params.append('async_req')
495
+ all_params.append('_return_http_data_only')
496
+ all_params.append('_preload_content')
497
+ all_params.append('_request_timeout')
498
+
499
+ params = locals()
500
+ for key, val in six.iteritems(params['kwargs']):
501
+ if key not in all_params:
502
+ raise TypeError(
503
+ "Got an unexpected keyword argument '%s'"
504
+ " to method claim_device_using_post1" % key
505
+ )
506
+ params[key] = val
507
+ del params['kwargs']
508
+ # verify the required parameter 'device_name' is set
509
+ if ('device_name' not in params or
510
+ params['device_name'] is None):
511
+ raise ValueError("Missing the required parameter `device_name` when calling `claim_device_using_post1`") # noqa: E501
512
+
513
+ collection_formats = {}
514
+
515
+ path_params = {}
516
+ if 'device_name' in params:
517
+ path_params['deviceName'] = params['device_name'] # noqa: E501
518
+
519
+ query_params = []
520
+
521
+ header_params = {}
522
+
523
+ form_params = []
524
+ local_var_files = {}
525
+
526
+ body_params = None
527
+ if 'body' in params:
528
+ body_params = params['body']
529
+ # HTTP header `Accept`
530
+ header_params['Accept'] = self.api_client.select_header_accept(
531
+ ['application/json']) # noqa: E501
532
+
533
+ # HTTP header `Content-Type`
534
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
535
+ ['application/json']) # noqa: E501
536
+
537
+ # Authentication setting
538
+ auth_settings = ['X-Authorization'] # noqa: E501
539
+
540
+ return self.api_client.call_api(
541
+ '/api/customer/device/{deviceName}/claim', 'POST',
542
+ path_params,
543
+ query_params,
544
+ header_params,
545
+ body=body_params,
546
+ post_params=form_params,
547
+ files=local_var_files,
548
+ response_type='DeferredResultResponseEntity', # noqa: E501
549
+ auth_settings=auth_settings,
550
+ async_req=params.get('async_req'),
551
+ _return_http_data_only=params.get('_return_http_data_only'),
552
+ _preload_content=params.get('_preload_content', True),
553
+ _request_timeout=params.get('_request_timeout'),
554
+ collection_formats=collection_formats)
555
+
556
+ def count_by_device_profile_and_empty_ota_package_using_get(self, ota_package_type, device_profile_id, **kwargs): # noqa: E501
557
+ """Count devices by device profile (countByDeviceProfileAndEmptyOtaPackage) # noqa: E501
558
+
559
+ The platform gives an ability to load OTA (over-the-air) packages to devices. It can be done in two different ways: device scope or device profile scope.In the response you will find the number of devices with specified device profile, but without previously defined device scope OTA package. It can be useful when you want to define number of devices that will be affected with future OTA package Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
560
+ This method makes a synchronous HTTP request by default. To make an
561
+ asynchronous HTTP request, please pass async_req=True
562
+ >>> thread = api.count_by_device_profile_and_empty_ota_package_using_get(ota_package_type, device_profile_id, async_req=True)
563
+ >>> result = thread.get()
564
+
565
+ :param async_req bool
566
+ :param str ota_package_type: OTA package type (required)
567
+ :param str device_profile_id: Device Profile Id. I.g. '784f394c-42b6-435a-983c-b7beff2784f9' (required)
568
+ :return: int
569
+ If the method is called asynchronously,
570
+ returns the request thread.
571
+ """
572
+ kwargs['_return_http_data_only'] = True
573
+ if kwargs.get('async_req'):
574
+ return self.count_by_device_profile_and_empty_ota_package_using_get_with_http_info(ota_package_type, device_profile_id, **kwargs) # noqa: E501
575
+ else:
576
+ (data) = self.count_by_device_profile_and_empty_ota_package_using_get_with_http_info(ota_package_type, device_profile_id, **kwargs) # noqa: E501
577
+ return data
578
+
579
+ def count_by_device_profile_and_empty_ota_package_using_get_with_http_info(self, ota_package_type, device_profile_id, **kwargs): # noqa: E501
580
+ """Count devices by device profile (countByDeviceProfileAndEmptyOtaPackage) # noqa: E501
581
+
582
+ The platform gives an ability to load OTA (over-the-air) packages to devices. It can be done in two different ways: device scope or device profile scope.In the response you will find the number of devices with specified device profile, but without previously defined device scope OTA package. It can be useful when you want to define number of devices that will be affected with future OTA package Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
583
+ This method makes a synchronous HTTP request by default. To make an
584
+ asynchronous HTTP request, please pass async_req=True
585
+ >>> thread = api.count_by_device_profile_and_empty_ota_package_using_get_with_http_info(ota_package_type, device_profile_id, async_req=True)
586
+ >>> result = thread.get()
587
+
588
+ :param async_req bool
589
+ :param str ota_package_type: OTA package type (required)
590
+ :param str device_profile_id: Device Profile Id. I.g. '784f394c-42b6-435a-983c-b7beff2784f9' (required)
591
+ :return: int
592
+ If the method is called asynchronously,
593
+ returns the request thread.
594
+ """
595
+
596
+ all_params = ['ota_package_type', 'device_profile_id'] # noqa: E501
597
+ all_params.append('async_req')
598
+ all_params.append('_return_http_data_only')
599
+ all_params.append('_preload_content')
600
+ all_params.append('_request_timeout')
601
+
602
+ params = locals()
603
+ for key, val in six.iteritems(params['kwargs']):
604
+ if key not in all_params:
605
+ raise TypeError(
606
+ "Got an unexpected keyword argument '%s'"
607
+ " to method count_by_device_profile_and_empty_ota_package_using_get" % key
608
+ )
609
+ params[key] = val
610
+ del params['kwargs']
611
+ # verify the required parameter 'ota_package_type' is set
612
+ if ('ota_package_type' not in params or
613
+ params['ota_package_type'] is None):
614
+ raise ValueError("Missing the required parameter `ota_package_type` when calling `count_by_device_profile_and_empty_ota_package_using_get`") # noqa: E501
615
+ # verify the required parameter 'device_profile_id' is set
616
+ if ('device_profile_id' not in params or
617
+ params['device_profile_id'] is None):
618
+ raise ValueError("Missing the required parameter `device_profile_id` when calling `count_by_device_profile_and_empty_ota_package_using_get`") # noqa: E501
619
+
620
+ collection_formats = {}
621
+
622
+ path_params = {}
623
+ if 'ota_package_type' in params:
624
+ path_params['otaPackageType'] = params['ota_package_type'] # noqa: E501
625
+ if 'device_profile_id' in params:
626
+ path_params['deviceProfileId'] = params['device_profile_id'] # noqa: E501
627
+
628
+ query_params = []
629
+
630
+ header_params = {}
631
+
632
+ form_params = []
633
+ local_var_files = {}
634
+
635
+ body_params = None
636
+ # HTTP header `Accept`
637
+ header_params['Accept'] = self.api_client.select_header_accept(
638
+ ['application/json']) # noqa: E501
639
+
640
+ # Authentication setting
641
+ auth_settings = ['X-Authorization'] # noqa: E501
642
+
643
+ return self.api_client.call_api(
644
+ '/api/devices/count/{otaPackageType}/{deviceProfileId}', 'GET',
645
+ path_params,
646
+ query_params,
647
+ header_params,
648
+ body=body_params,
649
+ post_params=form_params,
650
+ files=local_var_files,
651
+ response_type='int', # noqa: E501
652
+ auth_settings=auth_settings,
653
+ async_req=params.get('async_req'),
654
+ _return_http_data_only=params.get('_return_http_data_only'),
655
+ _preload_content=params.get('_preload_content', True),
656
+ _request_timeout=params.get('_request_timeout'),
657
+ collection_formats=collection_formats)
658
+
659
+ def delete_device_using_delete(self, device_id, **kwargs): # noqa: E501
660
+ """Delete device (deleteDevice) # noqa: E501
661
+
662
+ Deletes the device, it's credentials and all the relations (from and to the device). Referencing non-existing device Id will cause an error. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
663
+ This method makes a synchronous HTTP request by default. To make an
664
+ asynchronous HTTP request, please pass async_req=True
665
+ >>> thread = api.delete_device_using_delete(device_id, async_req=True)
666
+ >>> result = thread.get()
667
+
668
+ :param async_req bool
669
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
670
+ :return: None
671
+ If the method is called asynchronously,
672
+ returns the request thread.
673
+ """
674
+ kwargs['_return_http_data_only'] = True
675
+ if kwargs.get('async_req'):
676
+ return self.delete_device_using_delete_with_http_info(device_id, **kwargs) # noqa: E501
677
+ else:
678
+ (data) = self.delete_device_using_delete_with_http_info(device_id, **kwargs) # noqa: E501
679
+ return data
680
+
681
+ def delete_device_using_delete_with_http_info(self, device_id, **kwargs): # noqa: E501
682
+ """Delete device (deleteDevice) # noqa: E501
683
+
684
+ Deletes the device, it's credentials and all the relations (from and to the device). Referencing non-existing device Id will cause an error. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
685
+ This method makes a synchronous HTTP request by default. To make an
686
+ asynchronous HTTP request, please pass async_req=True
687
+ >>> thread = api.delete_device_using_delete_with_http_info(device_id, async_req=True)
688
+ >>> result = thread.get()
689
+
690
+ :param async_req bool
691
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
692
+ :return: None
693
+ If the method is called asynchronously,
694
+ returns the request thread.
695
+ """
696
+
697
+ all_params = ['device_id'] # noqa: E501
698
+ all_params.append('async_req')
699
+ all_params.append('_return_http_data_only')
700
+ all_params.append('_preload_content')
701
+ all_params.append('_request_timeout')
702
+
703
+ params = locals()
704
+ for key, val in six.iteritems(params['kwargs']):
705
+ if key not in all_params:
706
+ raise TypeError(
707
+ "Got an unexpected keyword argument '%s'"
708
+ " to method delete_device_using_delete" % key
709
+ )
710
+ params[key] = val
711
+ del params['kwargs']
712
+ # verify the required parameter 'device_id' is set
713
+ if ('device_id' not in params or
714
+ params['device_id'] is None):
715
+ raise ValueError("Missing the required parameter `device_id` when calling `delete_device_using_delete`") # noqa: E501
716
+
717
+ collection_formats = {}
718
+
719
+ path_params = {}
720
+ if 'device_id' in params:
721
+ path_params['deviceId'] = params['device_id'] # noqa: E501
722
+
723
+ query_params = []
724
+
725
+ header_params = {}
726
+
727
+ form_params = []
728
+ local_var_files = {}
729
+
730
+ body_params = None
731
+ # HTTP header `Accept`
732
+ header_params['Accept'] = self.api_client.select_header_accept(
733
+ ['application/json']) # noqa: E501
734
+
735
+ # Authentication setting
736
+ auth_settings = ['X-Authorization'] # noqa: E501
737
+
738
+ return self.api_client.call_api(
739
+ '/api/device/{deviceId}', 'DELETE',
740
+ path_params,
741
+ query_params,
742
+ header_params,
743
+ body=body_params,
744
+ post_params=form_params,
745
+ files=local_var_files,
746
+ response_type=None, # noqa: E501
747
+ auth_settings=auth_settings,
748
+ async_req=params.get('async_req'),
749
+ _return_http_data_only=params.get('_return_http_data_only'),
750
+ _preload_content=params.get('_preload_content', True),
751
+ _request_timeout=params.get('_request_timeout'),
752
+ collection_formats=collection_formats)
753
+
754
+ def find_by_query_using_post1(self, **kwargs): # noqa: E501
755
+ """Find related devices (findByQuery) # noqa: E501
756
+
757
+ Returns all devices that are related to the specific entity. The entity id, relation type, device types, depth of the search, and other query parameters defined using complex 'DeviceSearchQuery' object. See 'Model' tab of the Parameters for more info. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
758
+ This method makes a synchronous HTTP request by default. To make an
759
+ asynchronous HTTP request, please pass async_req=True
760
+ >>> thread = api.find_by_query_using_post1(async_req=True)
761
+ >>> result = thread.get()
762
+
763
+ :param async_req bool
764
+ :param DeviceSearchQuery body:
765
+ :return: list[Device]
766
+ If the method is called asynchronously,
767
+ returns the request thread.
768
+ """
769
+ kwargs['_return_http_data_only'] = True
770
+ if kwargs.get('async_req'):
771
+ return self.find_by_query_using_post1_with_http_info(**kwargs) # noqa: E501
772
+ else:
773
+ (data) = self.find_by_query_using_post1_with_http_info(**kwargs) # noqa: E501
774
+ return data
775
+
776
+ def find_by_query_using_post1_with_http_info(self, **kwargs): # noqa: E501
777
+ """Find related devices (findByQuery) # noqa: E501
778
+
779
+ Returns all devices that are related to the specific entity. The entity id, relation type, device types, depth of the search, and other query parameters defined using complex 'DeviceSearchQuery' object. See 'Model' tab of the Parameters for more info. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
780
+ This method makes a synchronous HTTP request by default. To make an
781
+ asynchronous HTTP request, please pass async_req=True
782
+ >>> thread = api.find_by_query_using_post1_with_http_info(async_req=True)
783
+ >>> result = thread.get()
784
+
785
+ :param async_req bool
786
+ :param DeviceSearchQuery body:
787
+ :return: list[Device]
788
+ If the method is called asynchronously,
789
+ returns the request thread.
790
+ """
791
+
792
+ all_params = ['body'] # noqa: E501
793
+ all_params.append('async_req')
794
+ all_params.append('_return_http_data_only')
795
+ all_params.append('_preload_content')
796
+ all_params.append('_request_timeout')
797
+
798
+ params = locals()
799
+ for key, val in six.iteritems(params['kwargs']):
800
+ if key not in all_params:
801
+ raise TypeError(
802
+ "Got an unexpected keyword argument '%s'"
803
+ " to method find_by_query_using_post1" % key
804
+ )
805
+ params[key] = val
806
+ del params['kwargs']
807
+
808
+ collection_formats = {}
809
+
810
+ path_params = {}
811
+
812
+ query_params = []
813
+
814
+ header_params = {}
815
+
816
+ form_params = []
817
+ local_var_files = {}
818
+
819
+ body_params = None
820
+ if 'body' in params:
821
+ body_params = params['body']
822
+ # HTTP header `Accept`
823
+ header_params['Accept'] = self.api_client.select_header_accept(
824
+ ['application/json']) # noqa: E501
825
+
826
+ # HTTP header `Content-Type`
827
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
828
+ ['application/json']) # noqa: E501
829
+
830
+ # Authentication setting
831
+ auth_settings = ['X-Authorization'] # noqa: E501
832
+
833
+ return self.api_client.call_api(
834
+ '/api/devices', 'POST',
835
+ path_params,
836
+ query_params,
837
+ header_params,
838
+ body=body_params,
839
+ post_params=form_params,
840
+ files=local_var_files,
841
+ response_type='list[Device]', # noqa: E501
842
+ auth_settings=auth_settings,
843
+ async_req=params.get('async_req'),
844
+ _return_http_data_only=params.get('_return_http_data_only'),
845
+ _preload_content=params.get('_preload_content', True),
846
+ _request_timeout=params.get('_request_timeout'),
847
+ collection_formats=collection_formats)
848
+
849
+ def get_customer_device_infos_using_get(self, customer_id, page_size, page, **kwargs): # noqa: E501
850
+ """Get Customer Device Infos (getCustomerDeviceInfos) # noqa: E501
851
+
852
+ Returns a page of devices info objects assigned to customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Device Info is an extension of the default Device object that contains information about the assigned customer name and device profile name. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
853
+ This method makes a synchronous HTTP request by default. To make an
854
+ asynchronous HTTP request, please pass async_req=True
855
+ >>> thread = api.get_customer_device_infos_using_get(customer_id, page_size, page, async_req=True)
856
+ >>> result = thread.get()
857
+
858
+ :param async_req bool
859
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
860
+ :param int page_size: Maximum amount of entities in a one page (required)
861
+ :param int page: Sequence number of page starting from 0 (required)
862
+ :param str type: Device type as the name of the device profile
863
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
864
+ :param bool active: A boolean value representing the device active flag.
865
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
866
+ :param str sort_property: Property of entity to sort by
867
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
868
+ :return: PageDataDeviceInfo
869
+ If the method is called asynchronously,
870
+ returns the request thread.
871
+ """
872
+ kwargs['_return_http_data_only'] = True
873
+ if kwargs.get('async_req'):
874
+ return self.get_customer_device_infos_using_get_with_http_info(customer_id, page_size, page, **kwargs) # noqa: E501
875
+ else:
876
+ (data) = self.get_customer_device_infos_using_get_with_http_info(customer_id, page_size, page, **kwargs) # noqa: E501
877
+ return data
878
+
879
+ def get_customer_device_infos_using_get_with_http_info(self, customer_id, page_size, page, **kwargs): # noqa: E501
880
+ """Get Customer Device Infos (getCustomerDeviceInfos) # noqa: E501
881
+
882
+ Returns a page of devices info objects assigned to customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Device Info is an extension of the default Device object that contains information about the assigned customer name and device profile name. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
883
+ This method makes a synchronous HTTP request by default. To make an
884
+ asynchronous HTTP request, please pass async_req=True
885
+ >>> thread = api.get_customer_device_infos_using_get_with_http_info(customer_id, page_size, page, async_req=True)
886
+ >>> result = thread.get()
887
+
888
+ :param async_req bool
889
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
890
+ :param int page_size: Maximum amount of entities in a one page (required)
891
+ :param int page: Sequence number of page starting from 0 (required)
892
+ :param str type: Device type as the name of the device profile
893
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
894
+ :param bool active: A boolean value representing the device active flag.
895
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
896
+ :param str sort_property: Property of entity to sort by
897
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
898
+ :return: PageDataDeviceInfo
899
+ If the method is called asynchronously,
900
+ returns the request thread.
901
+ """
902
+
903
+ all_params = ['customer_id', 'page_size', 'page', 'type', 'device_profile_id', 'active', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
904
+ all_params.append('async_req')
905
+ all_params.append('_return_http_data_only')
906
+ all_params.append('_preload_content')
907
+ all_params.append('_request_timeout')
908
+
909
+ params = locals()
910
+ for key, val in six.iteritems(params['kwargs']):
911
+ if key not in all_params:
912
+ raise TypeError(
913
+ "Got an unexpected keyword argument '%s'"
914
+ " to method get_customer_device_infos_using_get" % key
915
+ )
916
+ params[key] = val
917
+ del params['kwargs']
918
+ # verify the required parameter 'customer_id' is set
919
+ if ('customer_id' not in params or
920
+ params['customer_id'] is None):
921
+ raise ValueError("Missing the required parameter `customer_id` when calling `get_customer_device_infos_using_get`") # noqa: E501
922
+ # verify the required parameter 'page_size' is set
923
+ if ('page_size' not in params or
924
+ params['page_size'] is None):
925
+ raise ValueError("Missing the required parameter `page_size` when calling `get_customer_device_infos_using_get`") # noqa: E501
926
+ # verify the required parameter 'page' is set
927
+ if ('page' not in params or
928
+ params['page'] is None):
929
+ raise ValueError("Missing the required parameter `page` when calling `get_customer_device_infos_using_get`") # noqa: E501
930
+
931
+ collection_formats = {}
932
+
933
+ path_params = {}
934
+ if 'customer_id' in params:
935
+ path_params['customerId'] = params['customer_id'] # noqa: E501
936
+
937
+ query_params = []
938
+ if 'page_size' in params:
939
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
940
+ if 'page' in params:
941
+ query_params.append(('page', params['page'])) # noqa: E501
942
+ if 'type' in params:
943
+ query_params.append(('type', params['type'])) # noqa: E501
944
+ if 'device_profile_id' in params:
945
+ query_params.append(('deviceProfileId', params['device_profile_id'])) # noqa: E501
946
+ if 'active' in params:
947
+ query_params.append(('active', params['active'])) # noqa: E501
948
+ if 'text_search' in params:
949
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
950
+ if 'sort_property' in params:
951
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
952
+ if 'sort_order' in params:
953
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
954
+
955
+ header_params = {}
956
+
957
+ form_params = []
958
+ local_var_files = {}
959
+
960
+ body_params = None
961
+ # HTTP header `Accept`
962
+ header_params['Accept'] = self.api_client.select_header_accept(
963
+ ['application/json']) # noqa: E501
964
+
965
+ # Authentication setting
966
+ auth_settings = ['X-Authorization'] # noqa: E501
967
+
968
+ return self.api_client.call_api(
969
+ '/api/customer/{customerId}/deviceInfos{?active,deviceProfileId,page,pageSize,sortOrder,sortProperty,textSearch,type}', 'GET',
970
+ path_params,
971
+ query_params,
972
+ header_params,
973
+ body=body_params,
974
+ post_params=form_params,
975
+ files=local_var_files,
976
+ response_type='PageDataDeviceInfo', # noqa: E501
977
+ auth_settings=auth_settings,
978
+ async_req=params.get('async_req'),
979
+ _return_http_data_only=params.get('_return_http_data_only'),
980
+ _preload_content=params.get('_preload_content', True),
981
+ _request_timeout=params.get('_request_timeout'),
982
+ collection_formats=collection_formats)
983
+
984
+ def get_customer_devices_using_get(self, customer_id, page_size, page, **kwargs): # noqa: E501
985
+ """Get Customer Devices (getCustomerDevices) # noqa: E501
986
+
987
+ Returns a page of devices objects assigned to customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
988
+ This method makes a synchronous HTTP request by default. To make an
989
+ asynchronous HTTP request, please pass async_req=True
990
+ >>> thread = api.get_customer_devices_using_get(customer_id, page_size, page, async_req=True)
991
+ >>> result = thread.get()
992
+
993
+ :param async_req bool
994
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
995
+ :param int page_size: Maximum amount of entities in a one page (required)
996
+ :param int page: Sequence number of page starting from 0 (required)
997
+ :param str type: Device type as the name of the device profile
998
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
999
+ :param str sort_property: Property of entity to sort by
1000
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1001
+ :return: PageDataDevice
1002
+ If the method is called asynchronously,
1003
+ returns the request thread.
1004
+ """
1005
+ kwargs['_return_http_data_only'] = True
1006
+ if kwargs.get('async_req'):
1007
+ return self.get_customer_devices_using_get_with_http_info(customer_id, page_size, page, **kwargs) # noqa: E501
1008
+ else:
1009
+ (data) = self.get_customer_devices_using_get_with_http_info(customer_id, page_size, page, **kwargs) # noqa: E501
1010
+ return data
1011
+
1012
+ def get_customer_devices_using_get_with_http_info(self, customer_id, page_size, page, **kwargs): # noqa: E501
1013
+ """Get Customer Devices (getCustomerDevices) # noqa: E501
1014
+
1015
+ Returns a page of devices objects assigned to customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1016
+ This method makes a synchronous HTTP request by default. To make an
1017
+ asynchronous HTTP request, please pass async_req=True
1018
+ >>> thread = api.get_customer_devices_using_get_with_http_info(customer_id, page_size, page, async_req=True)
1019
+ >>> result = thread.get()
1020
+
1021
+ :param async_req bool
1022
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1023
+ :param int page_size: Maximum amount of entities in a one page (required)
1024
+ :param int page: Sequence number of page starting from 0 (required)
1025
+ :param str type: Device type as the name of the device profile
1026
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1027
+ :param str sort_property: Property of entity to sort by
1028
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1029
+ :return: PageDataDevice
1030
+ If the method is called asynchronously,
1031
+ returns the request thread.
1032
+ """
1033
+
1034
+ all_params = ['customer_id', 'page_size', 'page', 'type', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
1035
+ all_params.append('async_req')
1036
+ all_params.append('_return_http_data_only')
1037
+ all_params.append('_preload_content')
1038
+ all_params.append('_request_timeout')
1039
+
1040
+ params = locals()
1041
+ for key, val in six.iteritems(params['kwargs']):
1042
+ if key not in all_params:
1043
+ raise TypeError(
1044
+ "Got an unexpected keyword argument '%s'"
1045
+ " to method get_customer_devices_using_get" % key
1046
+ )
1047
+ params[key] = val
1048
+ del params['kwargs']
1049
+ # verify the required parameter 'customer_id' is set
1050
+ if ('customer_id' not in params or
1051
+ params['customer_id'] is None):
1052
+ raise ValueError("Missing the required parameter `customer_id` when calling `get_customer_devices_using_get`") # noqa: E501
1053
+ # verify the required parameter 'page_size' is set
1054
+ if ('page_size' not in params or
1055
+ params['page_size'] is None):
1056
+ raise ValueError("Missing the required parameter `page_size` when calling `get_customer_devices_using_get`") # noqa: E501
1057
+ # verify the required parameter 'page' is set
1058
+ if ('page' not in params or
1059
+ params['page'] is None):
1060
+ raise ValueError("Missing the required parameter `page` when calling `get_customer_devices_using_get`") # noqa: E501
1061
+
1062
+ collection_formats = {}
1063
+
1064
+ path_params = {}
1065
+ if 'customer_id' in params:
1066
+ path_params['customerId'] = params['customer_id'] # noqa: E501
1067
+
1068
+ query_params = []
1069
+ if 'page_size' in params:
1070
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
1071
+ if 'page' in params:
1072
+ query_params.append(('page', params['page'])) # noqa: E501
1073
+ if 'type' in params:
1074
+ query_params.append(('type', params['type'])) # noqa: E501
1075
+ if 'text_search' in params:
1076
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
1077
+ if 'sort_property' in params:
1078
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
1079
+ if 'sort_order' in params:
1080
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
1081
+
1082
+ header_params = {}
1083
+
1084
+ form_params = []
1085
+ local_var_files = {}
1086
+
1087
+ body_params = None
1088
+ # HTTP header `Accept`
1089
+ header_params['Accept'] = self.api_client.select_header_accept(
1090
+ ['application/json']) # noqa: E501
1091
+
1092
+ # Authentication setting
1093
+ auth_settings = ['X-Authorization'] # noqa: E501
1094
+
1095
+ return self.api_client.call_api(
1096
+ '/api/customer/{customerId}/devices{?page,pageSize,sortOrder,sortProperty,textSearch,type}', 'GET',
1097
+ path_params,
1098
+ query_params,
1099
+ header_params,
1100
+ body=body_params,
1101
+ post_params=form_params,
1102
+ files=local_var_files,
1103
+ response_type='PageDataDevice', # noqa: E501
1104
+ auth_settings=auth_settings,
1105
+ async_req=params.get('async_req'),
1106
+ _return_http_data_only=params.get('_return_http_data_only'),
1107
+ _preload_content=params.get('_preload_content', True),
1108
+ _request_timeout=params.get('_request_timeout'),
1109
+ collection_formats=collection_formats)
1110
+
1111
+ def get_device_by_id_using_get(self, device_id, **kwargs): # noqa: E501
1112
+ """Get Device (getDeviceById) # noqa: E501
1113
+
1114
+ Fetch the Device object based on the provided Device Id. If the user has the authority of 'TENANT_ADMIN', the server checks that the device is owned by the same tenant. If the user has the authority of 'CUSTOMER_USER', the server checks that the device is assigned to the same customer. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1115
+ This method makes a synchronous HTTP request by default. To make an
1116
+ asynchronous HTTP request, please pass async_req=True
1117
+ >>> thread = api.get_device_by_id_using_get(device_id, async_req=True)
1118
+ >>> result = thread.get()
1119
+
1120
+ :param async_req bool
1121
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1122
+ :return: Device
1123
+ If the method is called asynchronously,
1124
+ returns the request thread.
1125
+ """
1126
+ kwargs['_return_http_data_only'] = True
1127
+ if kwargs.get('async_req'):
1128
+ return self.get_device_by_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1129
+ else:
1130
+ (data) = self.get_device_by_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1131
+ return data
1132
+
1133
+ def get_device_by_id_using_get_with_http_info(self, device_id, **kwargs): # noqa: E501
1134
+ """Get Device (getDeviceById) # noqa: E501
1135
+
1136
+ Fetch the Device object based on the provided Device Id. If the user has the authority of 'TENANT_ADMIN', the server checks that the device is owned by the same tenant. If the user has the authority of 'CUSTOMER_USER', the server checks that the device is assigned to the same customer. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1137
+ This method makes a synchronous HTTP request by default. To make an
1138
+ asynchronous HTTP request, please pass async_req=True
1139
+ >>> thread = api.get_device_by_id_using_get_with_http_info(device_id, async_req=True)
1140
+ >>> result = thread.get()
1141
+
1142
+ :param async_req bool
1143
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1144
+ :return: Device
1145
+ If the method is called asynchronously,
1146
+ returns the request thread.
1147
+ """
1148
+
1149
+ all_params = ['device_id'] # noqa: E501
1150
+ all_params.append('async_req')
1151
+ all_params.append('_return_http_data_only')
1152
+ all_params.append('_preload_content')
1153
+ all_params.append('_request_timeout')
1154
+
1155
+ params = locals()
1156
+ for key, val in six.iteritems(params['kwargs']):
1157
+ if key not in all_params:
1158
+ raise TypeError(
1159
+ "Got an unexpected keyword argument '%s'"
1160
+ " to method get_device_by_id_using_get" % key
1161
+ )
1162
+ params[key] = val
1163
+ del params['kwargs']
1164
+ # verify the required parameter 'device_id' is set
1165
+ if ('device_id' not in params or
1166
+ params['device_id'] is None):
1167
+ raise ValueError("Missing the required parameter `device_id` when calling `get_device_by_id_using_get`") # noqa: E501
1168
+
1169
+ collection_formats = {}
1170
+
1171
+ path_params = {}
1172
+ if 'device_id' in params:
1173
+ path_params['deviceId'] = params['device_id'] # noqa: E501
1174
+
1175
+ query_params = []
1176
+
1177
+ header_params = {}
1178
+
1179
+ form_params = []
1180
+ local_var_files = {}
1181
+
1182
+ body_params = None
1183
+ # HTTP header `Accept`
1184
+ header_params['Accept'] = self.api_client.select_header_accept(
1185
+ ['application/json']) # noqa: E501
1186
+
1187
+ # Authentication setting
1188
+ auth_settings = ['X-Authorization'] # noqa: E501
1189
+
1190
+ return self.api_client.call_api(
1191
+ '/api/device/{deviceId}', 'GET',
1192
+ path_params,
1193
+ query_params,
1194
+ header_params,
1195
+ body=body_params,
1196
+ post_params=form_params,
1197
+ files=local_var_files,
1198
+ response_type='Device', # noqa: E501
1199
+ auth_settings=auth_settings,
1200
+ async_req=params.get('async_req'),
1201
+ _return_http_data_only=params.get('_return_http_data_only'),
1202
+ _preload_content=params.get('_preload_content', True),
1203
+ _request_timeout=params.get('_request_timeout'),
1204
+ collection_formats=collection_formats)
1205
+
1206
+ def get_device_credentials_by_device_id_using_get(self, device_id, **kwargs): # noqa: E501
1207
+ """Get Device Credentials (getDeviceCredentialsByDeviceId) # noqa: E501
1208
+
1209
+ If during device creation there wasn't specified any credentials, platform generates random 'ACCESS_TOKEN' credentials. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1210
+ This method makes a synchronous HTTP request by default. To make an
1211
+ asynchronous HTTP request, please pass async_req=True
1212
+ >>> thread = api.get_device_credentials_by_device_id_using_get(device_id, async_req=True)
1213
+ >>> result = thread.get()
1214
+
1215
+ :param async_req bool
1216
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1217
+ :return: DeviceCredentials
1218
+ If the method is called asynchronously,
1219
+ returns the request thread.
1220
+ """
1221
+ kwargs['_return_http_data_only'] = True
1222
+ if kwargs.get('async_req'):
1223
+ return self.get_device_credentials_by_device_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1224
+ else:
1225
+ (data) = self.get_device_credentials_by_device_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1226
+ return data
1227
+
1228
+ def get_device_credentials_by_device_id_using_get_with_http_info(self, device_id, **kwargs): # noqa: E501
1229
+ """Get Device Credentials (getDeviceCredentialsByDeviceId) # noqa: E501
1230
+
1231
+ If during device creation there wasn't specified any credentials, platform generates random 'ACCESS_TOKEN' credentials. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1232
+ This method makes a synchronous HTTP request by default. To make an
1233
+ asynchronous HTTP request, please pass async_req=True
1234
+ >>> thread = api.get_device_credentials_by_device_id_using_get_with_http_info(device_id, async_req=True)
1235
+ >>> result = thread.get()
1236
+
1237
+ :param async_req bool
1238
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1239
+ :return: DeviceCredentials
1240
+ If the method is called asynchronously,
1241
+ returns the request thread.
1242
+ """
1243
+
1244
+ all_params = ['device_id'] # noqa: E501
1245
+ all_params.append('async_req')
1246
+ all_params.append('_return_http_data_only')
1247
+ all_params.append('_preload_content')
1248
+ all_params.append('_request_timeout')
1249
+
1250
+ params = locals()
1251
+ for key, val in six.iteritems(params['kwargs']):
1252
+ if key not in all_params:
1253
+ raise TypeError(
1254
+ "Got an unexpected keyword argument '%s'"
1255
+ " to method get_device_credentials_by_device_id_using_get" % key
1256
+ )
1257
+ params[key] = val
1258
+ del params['kwargs']
1259
+ # verify the required parameter 'device_id' is set
1260
+ if ('device_id' not in params or
1261
+ params['device_id'] is None):
1262
+ raise ValueError("Missing the required parameter `device_id` when calling `get_device_credentials_by_device_id_using_get`") # noqa: E501
1263
+
1264
+ collection_formats = {}
1265
+
1266
+ path_params = {}
1267
+ if 'device_id' in params:
1268
+ path_params['deviceId'] = params['device_id'] # noqa: E501
1269
+
1270
+ query_params = []
1271
+
1272
+ header_params = {}
1273
+
1274
+ form_params = []
1275
+ local_var_files = {}
1276
+
1277
+ body_params = None
1278
+ # HTTP header `Accept`
1279
+ header_params['Accept'] = self.api_client.select_header_accept(
1280
+ ['application/json']) # noqa: E501
1281
+
1282
+ # Authentication setting
1283
+ auth_settings = ['X-Authorization'] # noqa: E501
1284
+
1285
+ return self.api_client.call_api(
1286
+ '/api/device/{deviceId}/credentials', 'GET',
1287
+ path_params,
1288
+ query_params,
1289
+ header_params,
1290
+ body=body_params,
1291
+ post_params=form_params,
1292
+ files=local_var_files,
1293
+ response_type='DeviceCredentials', # noqa: E501
1294
+ auth_settings=auth_settings,
1295
+ async_req=params.get('async_req'),
1296
+ _return_http_data_only=params.get('_return_http_data_only'),
1297
+ _preload_content=params.get('_preload_content', True),
1298
+ _request_timeout=params.get('_request_timeout'),
1299
+ collection_formats=collection_formats)
1300
+
1301
+ def get_device_info_by_id_using_get(self, device_id, **kwargs): # noqa: E501
1302
+ """Get Device Info (getDeviceInfoById) # noqa: E501
1303
+
1304
+ Fetch the Device Info object based on the provided Device Id. If the user has the authority of 'Tenant Administrator', the server checks that the device is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the device is assigned to the same customer. Device Info is an extension of the default Device object that contains information about the assigned customer name and device profile name. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1305
+ This method makes a synchronous HTTP request by default. To make an
1306
+ asynchronous HTTP request, please pass async_req=True
1307
+ >>> thread = api.get_device_info_by_id_using_get(device_id, async_req=True)
1308
+ >>> result = thread.get()
1309
+
1310
+ :param async_req bool
1311
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1312
+ :return: DeviceInfo
1313
+ If the method is called asynchronously,
1314
+ returns the request thread.
1315
+ """
1316
+ kwargs['_return_http_data_only'] = True
1317
+ if kwargs.get('async_req'):
1318
+ return self.get_device_info_by_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1319
+ else:
1320
+ (data) = self.get_device_info_by_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1321
+ return data
1322
+
1323
+ def get_device_info_by_id_using_get_with_http_info(self, device_id, **kwargs): # noqa: E501
1324
+ """Get Device Info (getDeviceInfoById) # noqa: E501
1325
+
1326
+ Fetch the Device Info object based on the provided Device Id. If the user has the authority of 'Tenant Administrator', the server checks that the device is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the device is assigned to the same customer. Device Info is an extension of the default Device object that contains information about the assigned customer name and device profile name. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1327
+ This method makes a synchronous HTTP request by default. To make an
1328
+ asynchronous HTTP request, please pass async_req=True
1329
+ >>> thread = api.get_device_info_by_id_using_get_with_http_info(device_id, async_req=True)
1330
+ >>> result = thread.get()
1331
+
1332
+ :param async_req bool
1333
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1334
+ :return: DeviceInfo
1335
+ If the method is called asynchronously,
1336
+ returns the request thread.
1337
+ """
1338
+
1339
+ all_params = ['device_id'] # noqa: E501
1340
+ all_params.append('async_req')
1341
+ all_params.append('_return_http_data_only')
1342
+ all_params.append('_preload_content')
1343
+ all_params.append('_request_timeout')
1344
+
1345
+ params = locals()
1346
+ for key, val in six.iteritems(params['kwargs']):
1347
+ if key not in all_params:
1348
+ raise TypeError(
1349
+ "Got an unexpected keyword argument '%s'"
1350
+ " to method get_device_info_by_id_using_get" % key
1351
+ )
1352
+ params[key] = val
1353
+ del params['kwargs']
1354
+ # verify the required parameter 'device_id' is set
1355
+ if ('device_id' not in params or
1356
+ params['device_id'] is None):
1357
+ raise ValueError("Missing the required parameter `device_id` when calling `get_device_info_by_id_using_get`") # noqa: E501
1358
+
1359
+ collection_formats = {}
1360
+
1361
+ path_params = {}
1362
+ if 'device_id' in params:
1363
+ path_params['deviceId'] = params['device_id'] # noqa: E501
1364
+
1365
+ query_params = []
1366
+
1367
+ header_params = {}
1368
+
1369
+ form_params = []
1370
+ local_var_files = {}
1371
+
1372
+ body_params = None
1373
+ # HTTP header `Accept`
1374
+ header_params['Accept'] = self.api_client.select_header_accept(
1375
+ ['application/json']) # noqa: E501
1376
+
1377
+ # Authentication setting
1378
+ auth_settings = ['X-Authorization'] # noqa: E501
1379
+
1380
+ return self.api_client.call_api(
1381
+ '/api/device/info/{deviceId}', 'GET',
1382
+ path_params,
1383
+ query_params,
1384
+ header_params,
1385
+ body=body_params,
1386
+ post_params=form_params,
1387
+ files=local_var_files,
1388
+ response_type='DeviceInfo', # noqa: E501
1389
+ auth_settings=auth_settings,
1390
+ async_req=params.get('async_req'),
1391
+ _return_http_data_only=params.get('_return_http_data_only'),
1392
+ _preload_content=params.get('_preload_content', True),
1393
+ _request_timeout=params.get('_request_timeout'),
1394
+ collection_formats=collection_formats)
1395
+
1396
+ def get_device_types_using_get(self, **kwargs): # noqa: E501
1397
+ """Get Device Types (getDeviceTypes) # noqa: E501
1398
+
1399
+ Deprecated. See 'getDeviceProfileNames' API from Device Profile Controller instead. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1400
+ This method makes a synchronous HTTP request by default. To make an
1401
+ asynchronous HTTP request, please pass async_req=True
1402
+ >>> thread = api.get_device_types_using_get(async_req=True)
1403
+ >>> result = thread.get()
1404
+
1405
+ :param async_req bool
1406
+ :return: list[EntitySubtype]
1407
+ If the method is called asynchronously,
1408
+ returns the request thread.
1409
+ """
1410
+ kwargs['_return_http_data_only'] = True
1411
+ if kwargs.get('async_req'):
1412
+ return self.get_device_types_using_get_with_http_info(**kwargs) # noqa: E501
1413
+ else:
1414
+ (data) = self.get_device_types_using_get_with_http_info(**kwargs) # noqa: E501
1415
+ return data
1416
+
1417
+ def get_device_types_using_get_with_http_info(self, **kwargs): # noqa: E501
1418
+ """Get Device Types (getDeviceTypes) # noqa: E501
1419
+
1420
+ Deprecated. See 'getDeviceProfileNames' API from Device Profile Controller instead. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1421
+ This method makes a synchronous HTTP request by default. To make an
1422
+ asynchronous HTTP request, please pass async_req=True
1423
+ >>> thread = api.get_device_types_using_get_with_http_info(async_req=True)
1424
+ >>> result = thread.get()
1425
+
1426
+ :param async_req bool
1427
+ :return: list[EntitySubtype]
1428
+ If the method is called asynchronously,
1429
+ returns the request thread.
1430
+ """
1431
+
1432
+ all_params = [] # noqa: E501
1433
+ all_params.append('async_req')
1434
+ all_params.append('_return_http_data_only')
1435
+ all_params.append('_preload_content')
1436
+ all_params.append('_request_timeout')
1437
+
1438
+ params = locals()
1439
+ for key, val in six.iteritems(params['kwargs']):
1440
+ if key not in all_params:
1441
+ raise TypeError(
1442
+ "Got an unexpected keyword argument '%s'"
1443
+ " to method get_device_types_using_get" % key
1444
+ )
1445
+ params[key] = val
1446
+ del params['kwargs']
1447
+
1448
+ collection_formats = {}
1449
+
1450
+ path_params = {}
1451
+
1452
+ query_params = []
1453
+
1454
+ header_params = {}
1455
+
1456
+ form_params = []
1457
+ local_var_files = {}
1458
+
1459
+ body_params = None
1460
+ # HTTP header `Accept`
1461
+ header_params['Accept'] = self.api_client.select_header_accept(
1462
+ ['application/json']) # noqa: E501
1463
+
1464
+ # Authentication setting
1465
+ auth_settings = ['X-Authorization'] # noqa: E501
1466
+
1467
+ return self.api_client.call_api(
1468
+ '/api/device/types', 'GET',
1469
+ path_params,
1470
+ query_params,
1471
+ header_params,
1472
+ body=body_params,
1473
+ post_params=form_params,
1474
+ files=local_var_files,
1475
+ response_type='list[EntitySubtype]', # noqa: E501
1476
+ auth_settings=auth_settings,
1477
+ async_req=params.get('async_req'),
1478
+ _return_http_data_only=params.get('_return_http_data_only'),
1479
+ _preload_content=params.get('_preload_content', True),
1480
+ _request_timeout=params.get('_request_timeout'),
1481
+ collection_formats=collection_formats)
1482
+
1483
+ def get_devices_by_ids_using_get(self, device_ids, **kwargs): # noqa: E501
1484
+ """Get Devices By Ids (getDevicesByIds) # noqa: E501
1485
+
1486
+ Requested devices must be owned by tenant or assigned to customer which user is performing the request. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1487
+ This method makes a synchronous HTTP request by default. To make an
1488
+ asynchronous HTTP request, please pass async_req=True
1489
+ >>> thread = api.get_devices_by_ids_using_get(device_ids, async_req=True)
1490
+ >>> result = thread.get()
1491
+
1492
+ :param async_req bool
1493
+ :param str device_ids: A list of devices ids, separated by comma ',' (required)
1494
+ :return: list[Device]
1495
+ If the method is called asynchronously,
1496
+ returns the request thread.
1497
+ """
1498
+ kwargs['_return_http_data_only'] = True
1499
+ if kwargs.get('async_req'):
1500
+ return self.get_devices_by_ids_using_get_with_http_info(device_ids, **kwargs) # noqa: E501
1501
+ else:
1502
+ (data) = self.get_devices_by_ids_using_get_with_http_info(device_ids, **kwargs) # noqa: E501
1503
+ return data
1504
+
1505
+ def get_devices_by_ids_using_get_with_http_info(self, device_ids, **kwargs): # noqa: E501
1506
+ """Get Devices By Ids (getDevicesByIds) # noqa: E501
1507
+
1508
+ Requested devices must be owned by tenant or assigned to customer which user is performing the request. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1509
+ This method makes a synchronous HTTP request by default. To make an
1510
+ asynchronous HTTP request, please pass async_req=True
1511
+ >>> thread = api.get_devices_by_ids_using_get_with_http_info(device_ids, async_req=True)
1512
+ >>> result = thread.get()
1513
+
1514
+ :param async_req bool
1515
+ :param str device_ids: A list of devices ids, separated by comma ',' (required)
1516
+ :return: list[Device]
1517
+ If the method is called asynchronously,
1518
+ returns the request thread.
1519
+ """
1520
+
1521
+ all_params = ['device_ids'] # noqa: E501
1522
+ all_params.append('async_req')
1523
+ all_params.append('_return_http_data_only')
1524
+ all_params.append('_preload_content')
1525
+ all_params.append('_request_timeout')
1526
+
1527
+ params = locals()
1528
+ for key, val in six.iteritems(params['kwargs']):
1529
+ if key not in all_params:
1530
+ raise TypeError(
1531
+ "Got an unexpected keyword argument '%s'"
1532
+ " to method get_devices_by_ids_using_get" % key
1533
+ )
1534
+ params[key] = val
1535
+ del params['kwargs']
1536
+ # verify the required parameter 'device_ids' is set
1537
+ if ('device_ids' not in params or
1538
+ params['device_ids'] is None):
1539
+ raise ValueError("Missing the required parameter `device_ids` when calling `get_devices_by_ids_using_get`") # noqa: E501
1540
+
1541
+ collection_formats = {}
1542
+
1543
+ path_params = {}
1544
+
1545
+ query_params = []
1546
+ if 'device_ids' in params:
1547
+ query_params.append(('deviceIds', params['device_ids'])) # noqa: E501
1548
+
1549
+ header_params = {}
1550
+
1551
+ form_params = []
1552
+ local_var_files = {}
1553
+
1554
+ body_params = None
1555
+ # HTTP header `Accept`
1556
+ header_params['Accept'] = self.api_client.select_header_accept(
1557
+ ['application/json']) # noqa: E501
1558
+
1559
+ # Authentication setting
1560
+ auth_settings = ['X-Authorization'] # noqa: E501
1561
+
1562
+ return self.api_client.call_api(
1563
+ '/api/devices{?deviceIds}', 'GET',
1564
+ path_params,
1565
+ query_params,
1566
+ header_params,
1567
+ body=body_params,
1568
+ post_params=form_params,
1569
+ files=local_var_files,
1570
+ response_type='list[Device]', # noqa: E501
1571
+ auth_settings=auth_settings,
1572
+ async_req=params.get('async_req'),
1573
+ _return_http_data_only=params.get('_return_http_data_only'),
1574
+ _preload_content=params.get('_preload_content', True),
1575
+ _request_timeout=params.get('_request_timeout'),
1576
+ collection_formats=collection_formats)
1577
+
1578
+ def get_edge_devices_using_get(self, edge_id, page_size, page, **kwargs): # noqa: E501
1579
+ """Get devices assigned to edge (getEdgeDevices) # noqa: E501
1580
+
1581
+ Returns a page of devices assigned to edge. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1582
+ This method makes a synchronous HTTP request by default. To make an
1583
+ asynchronous HTTP request, please pass async_req=True
1584
+ >>> thread = api.get_edge_devices_using_get(edge_id, page_size, page, async_req=True)
1585
+ >>> result = thread.get()
1586
+
1587
+ :param async_req bool
1588
+ :param str edge_id: A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1589
+ :param int page_size: Maximum amount of entities in a one page (required)
1590
+ :param int page: Sequence number of page starting from 0 (required)
1591
+ :param str type: Device type as the name of the device profile
1592
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
1593
+ :param bool active: A boolean value representing the device active flag.
1594
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1595
+ :param str sort_property: Property of entity to sort by
1596
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1597
+ :param int start_time: Timestamp. Devices with creation time before it won't be queried
1598
+ :param int end_time: Timestamp. Devices with creation time after it won't be queried
1599
+ :return: PageDataDeviceInfo
1600
+ If the method is called asynchronously,
1601
+ returns the request thread.
1602
+ """
1603
+ kwargs['_return_http_data_only'] = True
1604
+ if kwargs.get('async_req'):
1605
+ return self.get_edge_devices_using_get_with_http_info(edge_id, page_size, page, **kwargs) # noqa: E501
1606
+ else:
1607
+ (data) = self.get_edge_devices_using_get_with_http_info(edge_id, page_size, page, **kwargs) # noqa: E501
1608
+ return data
1609
+
1610
+ def get_edge_devices_using_get_with_http_info(self, edge_id, page_size, page, **kwargs): # noqa: E501
1611
+ """Get devices assigned to edge (getEdgeDevices) # noqa: E501
1612
+
1613
+ Returns a page of devices assigned to edge. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1614
+ This method makes a synchronous HTTP request by default. To make an
1615
+ asynchronous HTTP request, please pass async_req=True
1616
+ >>> thread = api.get_edge_devices_using_get_with_http_info(edge_id, page_size, page, async_req=True)
1617
+ >>> result = thread.get()
1618
+
1619
+ :param async_req bool
1620
+ :param str edge_id: A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1621
+ :param int page_size: Maximum amount of entities in a one page (required)
1622
+ :param int page: Sequence number of page starting from 0 (required)
1623
+ :param str type: Device type as the name of the device profile
1624
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
1625
+ :param bool active: A boolean value representing the device active flag.
1626
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1627
+ :param str sort_property: Property of entity to sort by
1628
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1629
+ :param int start_time: Timestamp. Devices with creation time before it won't be queried
1630
+ :param int end_time: Timestamp. Devices with creation time after it won't be queried
1631
+ :return: PageDataDeviceInfo
1632
+ If the method is called asynchronously,
1633
+ returns the request thread.
1634
+ """
1635
+
1636
+ all_params = ['edge_id', 'page_size', 'page', 'type', 'device_profile_id', 'active', 'text_search', 'sort_property', 'sort_order', 'start_time', 'end_time'] # noqa: E501
1637
+ all_params.append('async_req')
1638
+ all_params.append('_return_http_data_only')
1639
+ all_params.append('_preload_content')
1640
+ all_params.append('_request_timeout')
1641
+
1642
+ params = locals()
1643
+ for key, val in six.iteritems(params['kwargs']):
1644
+ if key not in all_params:
1645
+ raise TypeError(
1646
+ "Got an unexpected keyword argument '%s'"
1647
+ " to method get_edge_devices_using_get" % key
1648
+ )
1649
+ params[key] = val
1650
+ del params['kwargs']
1651
+ # verify the required parameter 'edge_id' is set
1652
+ if ('edge_id' not in params or
1653
+ params['edge_id'] is None):
1654
+ raise ValueError("Missing the required parameter `edge_id` when calling `get_edge_devices_using_get`") # noqa: E501
1655
+ # verify the required parameter 'page_size' is set
1656
+ if ('page_size' not in params or
1657
+ params['page_size'] is None):
1658
+ raise ValueError("Missing the required parameter `page_size` when calling `get_edge_devices_using_get`") # noqa: E501
1659
+ # verify the required parameter 'page' is set
1660
+ if ('page' not in params or
1661
+ params['page'] is None):
1662
+ raise ValueError("Missing the required parameter `page` when calling `get_edge_devices_using_get`") # noqa: E501
1663
+
1664
+ collection_formats = {}
1665
+
1666
+ path_params = {}
1667
+ if 'edge_id' in params:
1668
+ path_params['edgeId'] = params['edge_id'] # noqa: E501
1669
+
1670
+ query_params = []
1671
+ if 'page_size' in params:
1672
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
1673
+ if 'page' in params:
1674
+ query_params.append(('page', params['page'])) # noqa: E501
1675
+ if 'type' in params:
1676
+ query_params.append(('type', params['type'])) # noqa: E501
1677
+ if 'device_profile_id' in params:
1678
+ query_params.append(('deviceProfileId', params['device_profile_id'])) # noqa: E501
1679
+ if 'active' in params:
1680
+ query_params.append(('active', params['active'])) # noqa: E501
1681
+ if 'text_search' in params:
1682
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
1683
+ if 'sort_property' in params:
1684
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
1685
+ if 'sort_order' in params:
1686
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
1687
+ if 'start_time' in params:
1688
+ query_params.append(('startTime', params['start_time'])) # noqa: E501
1689
+ if 'end_time' in params:
1690
+ query_params.append(('endTime', params['end_time'])) # noqa: E501
1691
+
1692
+ header_params = {}
1693
+
1694
+ form_params = []
1695
+ local_var_files = {}
1696
+
1697
+ body_params = None
1698
+ # HTTP header `Accept`
1699
+ header_params['Accept'] = self.api_client.select_header_accept(
1700
+ ['application/json']) # noqa: E501
1701
+
1702
+ # Authentication setting
1703
+ auth_settings = ['X-Authorization'] # noqa: E501
1704
+
1705
+ return self.api_client.call_api(
1706
+ '/api/edge/{edgeId}/devices{?active,deviceProfileId,endTime,page,pageSize,sortOrder,sortProperty,startTime,textSearch,type}', 'GET',
1707
+ path_params,
1708
+ query_params,
1709
+ header_params,
1710
+ body=body_params,
1711
+ post_params=form_params,
1712
+ files=local_var_files,
1713
+ response_type='PageDataDeviceInfo', # noqa: E501
1714
+ auth_settings=auth_settings,
1715
+ async_req=params.get('async_req'),
1716
+ _return_http_data_only=params.get('_return_http_data_only'),
1717
+ _preload_content=params.get('_preload_content', True),
1718
+ _request_timeout=params.get('_request_timeout'),
1719
+ collection_formats=collection_formats)
1720
+
1721
+ def get_tenant_device_infos_using_get(self, page_size, page, **kwargs): # noqa: E501
1722
+ """Get Tenant Device Infos (getTenantDeviceInfos) # noqa: E501
1723
+
1724
+ Returns a page of devices info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Device Info is an extension of the default Device object that contains information about the assigned customer name and device profile name. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
1725
+ This method makes a synchronous HTTP request by default. To make an
1726
+ asynchronous HTTP request, please pass async_req=True
1727
+ >>> thread = api.get_tenant_device_infos_using_get(page_size, page, async_req=True)
1728
+ >>> result = thread.get()
1729
+
1730
+ :param async_req bool
1731
+ :param int page_size: Maximum amount of entities in a one page (required)
1732
+ :param int page: Sequence number of page starting from 0 (required)
1733
+ :param str type: Device type as the name of the device profile
1734
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
1735
+ :param bool active: A boolean value representing the device active flag.
1736
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1737
+ :param str sort_property: Property of entity to sort by
1738
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1739
+ :return: PageDataDeviceInfo
1740
+ If the method is called asynchronously,
1741
+ returns the request thread.
1742
+ """
1743
+ kwargs['_return_http_data_only'] = True
1744
+ if kwargs.get('async_req'):
1745
+ return self.get_tenant_device_infos_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
1746
+ else:
1747
+ (data) = self.get_tenant_device_infos_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
1748
+ return data
1749
+
1750
+ def get_tenant_device_infos_using_get_with_http_info(self, page_size, page, **kwargs): # noqa: E501
1751
+ """Get Tenant Device Infos (getTenantDeviceInfos) # noqa: E501
1752
+
1753
+ Returns a page of devices info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Device Info is an extension of the default Device object that contains information about the assigned customer name and device profile name. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
1754
+ This method makes a synchronous HTTP request by default. To make an
1755
+ asynchronous HTTP request, please pass async_req=True
1756
+ >>> thread = api.get_tenant_device_infos_using_get_with_http_info(page_size, page, async_req=True)
1757
+ >>> result = thread.get()
1758
+
1759
+ :param async_req bool
1760
+ :param int page_size: Maximum amount of entities in a one page (required)
1761
+ :param int page: Sequence number of page starting from 0 (required)
1762
+ :param str type: Device type as the name of the device profile
1763
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
1764
+ :param bool active: A boolean value representing the device active flag.
1765
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1766
+ :param str sort_property: Property of entity to sort by
1767
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1768
+ :return: PageDataDeviceInfo
1769
+ If the method is called asynchronously,
1770
+ returns the request thread.
1771
+ """
1772
+
1773
+ all_params = ['page_size', 'page', 'type', 'device_profile_id', 'active', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
1774
+ all_params.append('async_req')
1775
+ all_params.append('_return_http_data_only')
1776
+ all_params.append('_preload_content')
1777
+ all_params.append('_request_timeout')
1778
+
1779
+ params = locals()
1780
+ for key, val in six.iteritems(params['kwargs']):
1781
+ if key not in all_params:
1782
+ raise TypeError(
1783
+ "Got an unexpected keyword argument '%s'"
1784
+ " to method get_tenant_device_infos_using_get" % key
1785
+ )
1786
+ params[key] = val
1787
+ del params['kwargs']
1788
+ # verify the required parameter 'page_size' is set
1789
+ if ('page_size' not in params or
1790
+ params['page_size'] is None):
1791
+ raise ValueError("Missing the required parameter `page_size` when calling `get_tenant_device_infos_using_get`") # noqa: E501
1792
+ # verify the required parameter 'page' is set
1793
+ if ('page' not in params or
1794
+ params['page'] is None):
1795
+ raise ValueError("Missing the required parameter `page` when calling `get_tenant_device_infos_using_get`") # noqa: E501
1796
+
1797
+ collection_formats = {}
1798
+
1799
+ path_params = {}
1800
+
1801
+ query_params = []
1802
+ if 'page_size' in params:
1803
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
1804
+ if 'page' in params:
1805
+ query_params.append(('page', params['page'])) # noqa: E501
1806
+ if 'type' in params:
1807
+ query_params.append(('type', params['type'])) # noqa: E501
1808
+ if 'device_profile_id' in params:
1809
+ query_params.append(('deviceProfileId', params['device_profile_id'])) # noqa: E501
1810
+ if 'active' in params:
1811
+ query_params.append(('active', params['active'])) # noqa: E501
1812
+ if 'text_search' in params:
1813
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
1814
+ if 'sort_property' in params:
1815
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
1816
+ if 'sort_order' in params:
1817
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
1818
+
1819
+ header_params = {}
1820
+
1821
+ form_params = []
1822
+ local_var_files = {}
1823
+
1824
+ body_params = None
1825
+ # HTTP header `Accept`
1826
+ header_params['Accept'] = self.api_client.select_header_accept(
1827
+ ['application/json']) # noqa: E501
1828
+
1829
+ # Authentication setting
1830
+ auth_settings = ['X-Authorization'] # noqa: E501
1831
+
1832
+ return self.api_client.call_api(
1833
+ '/api/tenant/deviceInfos{?active,deviceProfileId,page,pageSize,sortOrder,sortProperty,textSearch,type}', 'GET',
1834
+ path_params,
1835
+ query_params,
1836
+ header_params,
1837
+ body=body_params,
1838
+ post_params=form_params,
1839
+ files=local_var_files,
1840
+ response_type='PageDataDeviceInfo', # noqa: E501
1841
+ auth_settings=auth_settings,
1842
+ async_req=params.get('async_req'),
1843
+ _return_http_data_only=params.get('_return_http_data_only'),
1844
+ _preload_content=params.get('_preload_content', True),
1845
+ _request_timeout=params.get('_request_timeout'),
1846
+ collection_formats=collection_formats)
1847
+
1848
+ def get_tenant_device_using_get(self, device_name, **kwargs): # noqa: E501
1849
+ """Get Tenant Device (getTenantDevice) # noqa: E501
1850
+
1851
+ Requested device must be owned by tenant that the user belongs to. Device name is an unique property of device. So it can be used to identify the device. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
1852
+ This method makes a synchronous HTTP request by default. To make an
1853
+ asynchronous HTTP request, please pass async_req=True
1854
+ >>> thread = api.get_tenant_device_using_get(device_name, async_req=True)
1855
+ >>> result = thread.get()
1856
+
1857
+ :param async_req bool
1858
+ :param str device_name: A string value representing the Device name. (required)
1859
+ :return: Device
1860
+ If the method is called asynchronously,
1861
+ returns the request thread.
1862
+ """
1863
+ kwargs['_return_http_data_only'] = True
1864
+ if kwargs.get('async_req'):
1865
+ return self.get_tenant_device_using_get_with_http_info(device_name, **kwargs) # noqa: E501
1866
+ else:
1867
+ (data) = self.get_tenant_device_using_get_with_http_info(device_name, **kwargs) # noqa: E501
1868
+ return data
1869
+
1870
+ def get_tenant_device_using_get_with_http_info(self, device_name, **kwargs): # noqa: E501
1871
+ """Get Tenant Device (getTenantDevice) # noqa: E501
1872
+
1873
+ Requested device must be owned by tenant that the user belongs to. Device name is an unique property of device. So it can be used to identify the device. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
1874
+ This method makes a synchronous HTTP request by default. To make an
1875
+ asynchronous HTTP request, please pass async_req=True
1876
+ >>> thread = api.get_tenant_device_using_get_with_http_info(device_name, async_req=True)
1877
+ >>> result = thread.get()
1878
+
1879
+ :param async_req bool
1880
+ :param str device_name: A string value representing the Device name. (required)
1881
+ :return: Device
1882
+ If the method is called asynchronously,
1883
+ returns the request thread.
1884
+ """
1885
+
1886
+ all_params = ['device_name'] # noqa: E501
1887
+ all_params.append('async_req')
1888
+ all_params.append('_return_http_data_only')
1889
+ all_params.append('_preload_content')
1890
+ all_params.append('_request_timeout')
1891
+
1892
+ params = locals()
1893
+ for key, val in six.iteritems(params['kwargs']):
1894
+ if key not in all_params:
1895
+ raise TypeError(
1896
+ "Got an unexpected keyword argument '%s'"
1897
+ " to method get_tenant_device_using_get" % key
1898
+ )
1899
+ params[key] = val
1900
+ del params['kwargs']
1901
+ # verify the required parameter 'device_name' is set
1902
+ if ('device_name' not in params or
1903
+ params['device_name'] is None):
1904
+ raise ValueError("Missing the required parameter `device_name` when calling `get_tenant_device_using_get`") # noqa: E501
1905
+
1906
+ collection_formats = {}
1907
+
1908
+ path_params = {}
1909
+
1910
+ query_params = []
1911
+ if 'device_name' in params:
1912
+ query_params.append(('deviceName', params['device_name'])) # noqa: E501
1913
+
1914
+ header_params = {}
1915
+
1916
+ form_params = []
1917
+ local_var_files = {}
1918
+
1919
+ body_params = None
1920
+ # HTTP header `Accept`
1921
+ header_params['Accept'] = self.api_client.select_header_accept(
1922
+ ['application/json']) # noqa: E501
1923
+
1924
+ # Authentication setting
1925
+ auth_settings = ['X-Authorization'] # noqa: E501
1926
+
1927
+ return self.api_client.call_api(
1928
+ '/api/tenant/devices{?deviceName}', 'GET',
1929
+ path_params,
1930
+ query_params,
1931
+ header_params,
1932
+ body=body_params,
1933
+ post_params=form_params,
1934
+ files=local_var_files,
1935
+ response_type='Device', # noqa: E501
1936
+ auth_settings=auth_settings,
1937
+ async_req=params.get('async_req'),
1938
+ _return_http_data_only=params.get('_return_http_data_only'),
1939
+ _preload_content=params.get('_preload_content', True),
1940
+ _request_timeout=params.get('_request_timeout'),
1941
+ collection_formats=collection_formats)
1942
+
1943
+ def get_tenant_devices_using_get(self, page_size, page, **kwargs): # noqa: E501
1944
+ """Get Tenant Devices (getTenantDevices) # noqa: E501
1945
+
1946
+ Returns a page of devices owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
1947
+ This method makes a synchronous HTTP request by default. To make an
1948
+ asynchronous HTTP request, please pass async_req=True
1949
+ >>> thread = api.get_tenant_devices_using_get(page_size, page, async_req=True)
1950
+ >>> result = thread.get()
1951
+
1952
+ :param async_req bool
1953
+ :param int page_size: Maximum amount of entities in a one page (required)
1954
+ :param int page: Sequence number of page starting from 0 (required)
1955
+ :param str type: Device type as the name of the device profile
1956
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1957
+ :param str sort_property: Property of entity to sort by
1958
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1959
+ :return: PageDataDevice
1960
+ If the method is called asynchronously,
1961
+ returns the request thread.
1962
+ """
1963
+ kwargs['_return_http_data_only'] = True
1964
+ if kwargs.get('async_req'):
1965
+ return self.get_tenant_devices_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
1966
+ else:
1967
+ (data) = self.get_tenant_devices_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
1968
+ return data
1969
+
1970
+ def get_tenant_devices_using_get_with_http_info(self, page_size, page, **kwargs): # noqa: E501
1971
+ """Get Tenant Devices (getTenantDevices) # noqa: E501
1972
+
1973
+ Returns a page of devices owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
1974
+ This method makes a synchronous HTTP request by default. To make an
1975
+ asynchronous HTTP request, please pass async_req=True
1976
+ >>> thread = api.get_tenant_devices_using_get_with_http_info(page_size, page, async_req=True)
1977
+ >>> result = thread.get()
1978
+
1979
+ :param async_req bool
1980
+ :param int page_size: Maximum amount of entities in a one page (required)
1981
+ :param int page: Sequence number of page starting from 0 (required)
1982
+ :param str type: Device type as the name of the device profile
1983
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1984
+ :param str sort_property: Property of entity to sort by
1985
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1986
+ :return: PageDataDevice
1987
+ If the method is called asynchronously,
1988
+ returns the request thread.
1989
+ """
1990
+
1991
+ all_params = ['page_size', 'page', 'type', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
1992
+ all_params.append('async_req')
1993
+ all_params.append('_return_http_data_only')
1994
+ all_params.append('_preload_content')
1995
+ all_params.append('_request_timeout')
1996
+
1997
+ params = locals()
1998
+ for key, val in six.iteritems(params['kwargs']):
1999
+ if key not in all_params:
2000
+ raise TypeError(
2001
+ "Got an unexpected keyword argument '%s'"
2002
+ " to method get_tenant_devices_using_get" % key
2003
+ )
2004
+ params[key] = val
2005
+ del params['kwargs']
2006
+ # verify the required parameter 'page_size' is set
2007
+ if ('page_size' not in params or
2008
+ params['page_size'] is None):
2009
+ raise ValueError("Missing the required parameter `page_size` when calling `get_tenant_devices_using_get`") # noqa: E501
2010
+ # verify the required parameter 'page' is set
2011
+ if ('page' not in params or
2012
+ params['page'] is None):
2013
+ raise ValueError("Missing the required parameter `page` when calling `get_tenant_devices_using_get`") # noqa: E501
2014
+
2015
+ collection_formats = {}
2016
+
2017
+ path_params = {}
2018
+
2019
+ query_params = []
2020
+ if 'page_size' in params:
2021
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
2022
+ if 'page' in params:
2023
+ query_params.append(('page', params['page'])) # noqa: E501
2024
+ if 'type' in params:
2025
+ query_params.append(('type', params['type'])) # noqa: E501
2026
+ if 'text_search' in params:
2027
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
2028
+ if 'sort_property' in params:
2029
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
2030
+ if 'sort_order' in params:
2031
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
2032
+
2033
+ header_params = {}
2034
+
2035
+ form_params = []
2036
+ local_var_files = {}
2037
+
2038
+ body_params = None
2039
+ # HTTP header `Accept`
2040
+ header_params['Accept'] = self.api_client.select_header_accept(
2041
+ ['application/json']) # noqa: E501
2042
+
2043
+ # Authentication setting
2044
+ auth_settings = ['X-Authorization'] # noqa: E501
2045
+
2046
+ return self.api_client.call_api(
2047
+ '/api/tenant/devices{?page,pageSize,sortOrder,sortProperty,textSearch,type}', 'GET',
2048
+ path_params,
2049
+ query_params,
2050
+ header_params,
2051
+ body=body_params,
2052
+ post_params=form_params,
2053
+ files=local_var_files,
2054
+ response_type='PageDataDevice', # noqa: E501
2055
+ auth_settings=auth_settings,
2056
+ async_req=params.get('async_req'),
2057
+ _return_http_data_only=params.get('_return_http_data_only'),
2058
+ _preload_content=params.get('_preload_content', True),
2059
+ _request_timeout=params.get('_request_timeout'),
2060
+ collection_formats=collection_formats)
2061
+
2062
+ def process_devices_bulk_import_using_post(self, **kwargs): # noqa: E501
2063
+ """Import the bulk of devices (processDevicesBulkImport) # noqa: E501
2064
+
2065
+ There's an ability to import the bulk of devices using the only .csv file. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
2066
+ This method makes a synchronous HTTP request by default. To make an
2067
+ asynchronous HTTP request, please pass async_req=True
2068
+ >>> thread = api.process_devices_bulk_import_using_post(async_req=True)
2069
+ >>> result = thread.get()
2070
+
2071
+ :param async_req bool
2072
+ :param BulkImportRequest body:
2073
+ :return: BulkImportResultDevice
2074
+ If the method is called asynchronously,
2075
+ returns the request thread.
2076
+ """
2077
+ kwargs['_return_http_data_only'] = True
2078
+ if kwargs.get('async_req'):
2079
+ return self.process_devices_bulk_import_using_post_with_http_info(**kwargs) # noqa: E501
2080
+ else:
2081
+ (data) = self.process_devices_bulk_import_using_post_with_http_info(**kwargs) # noqa: E501
2082
+ return data
2083
+
2084
+ def process_devices_bulk_import_using_post_with_http_info(self, **kwargs): # noqa: E501
2085
+ """Import the bulk of devices (processDevicesBulkImport) # noqa: E501
2086
+
2087
+ There's an ability to import the bulk of devices using the only .csv file. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
2088
+ This method makes a synchronous HTTP request by default. To make an
2089
+ asynchronous HTTP request, please pass async_req=True
2090
+ >>> thread = api.process_devices_bulk_import_using_post_with_http_info(async_req=True)
2091
+ >>> result = thread.get()
2092
+
2093
+ :param async_req bool
2094
+ :param BulkImportRequest body:
2095
+ :return: BulkImportResultDevice
2096
+ If the method is called asynchronously,
2097
+ returns the request thread.
2098
+ """
2099
+
2100
+ all_params = ['body'] # noqa: E501
2101
+ all_params.append('async_req')
2102
+ all_params.append('_return_http_data_only')
2103
+ all_params.append('_preload_content')
2104
+ all_params.append('_request_timeout')
2105
+
2106
+ params = locals()
2107
+ for key, val in six.iteritems(params['kwargs']):
2108
+ if key not in all_params:
2109
+ raise TypeError(
2110
+ "Got an unexpected keyword argument '%s'"
2111
+ " to method process_devices_bulk_import_using_post" % key
2112
+ )
2113
+ params[key] = val
2114
+ del params['kwargs']
2115
+
2116
+ collection_formats = {}
2117
+
2118
+ path_params = {}
2119
+
2120
+ query_params = []
2121
+
2122
+ header_params = {}
2123
+
2124
+ form_params = []
2125
+ local_var_files = {}
2126
+
2127
+ body_params = None
2128
+ if 'body' in params:
2129
+ body_params = params['body']
2130
+ # HTTP header `Accept`
2131
+ header_params['Accept'] = self.api_client.select_header_accept(
2132
+ ['application/json']) # noqa: E501
2133
+
2134
+ # HTTP header `Content-Type`
2135
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2136
+ ['application/json']) # noqa: E501
2137
+
2138
+ # Authentication setting
2139
+ auth_settings = ['X-Authorization'] # noqa: E501
2140
+
2141
+ return self.api_client.call_api(
2142
+ '/api/device/bulk_import', 'POST',
2143
+ path_params,
2144
+ query_params,
2145
+ header_params,
2146
+ body=body_params,
2147
+ post_params=form_params,
2148
+ files=local_var_files,
2149
+ response_type='BulkImportResultDevice', # noqa: E501
2150
+ auth_settings=auth_settings,
2151
+ async_req=params.get('async_req'),
2152
+ _return_http_data_only=params.get('_return_http_data_only'),
2153
+ _preload_content=params.get('_preload_content', True),
2154
+ _request_timeout=params.get('_request_timeout'),
2155
+ collection_formats=collection_formats)
2156
+
2157
+ def re_claim_device_using_delete(self, device_name, **kwargs): # noqa: E501
2158
+ """Reclaim device (reClaimDevice) # noqa: E501
2159
+
2160
+ Reclaiming means the device will be unassigned from the customer and the device will be available for claiming again. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
2161
+ This method makes a synchronous HTTP request by default. To make an
2162
+ asynchronous HTTP request, please pass async_req=True
2163
+ >>> thread = api.re_claim_device_using_delete(device_name, async_req=True)
2164
+ >>> result = thread.get()
2165
+
2166
+ :param async_req bool
2167
+ :param str device_name: Unique name of the device which is going to be reclaimed (required)
2168
+ :return: DeferredResultResponseEntity
2169
+ If the method is called asynchronously,
2170
+ returns the request thread.
2171
+ """
2172
+ kwargs['_return_http_data_only'] = True
2173
+ if kwargs.get('async_req'):
2174
+ return self.re_claim_device_using_delete_with_http_info(device_name, **kwargs) # noqa: E501
2175
+ else:
2176
+ (data) = self.re_claim_device_using_delete_with_http_info(device_name, **kwargs) # noqa: E501
2177
+ return data
2178
+
2179
+ def re_claim_device_using_delete_with_http_info(self, device_name, **kwargs): # noqa: E501
2180
+ """Reclaim device (reClaimDevice) # noqa: E501
2181
+
2182
+ Reclaiming means the device will be unassigned from the customer and the device will be available for claiming again. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
2183
+ This method makes a synchronous HTTP request by default. To make an
2184
+ asynchronous HTTP request, please pass async_req=True
2185
+ >>> thread = api.re_claim_device_using_delete_with_http_info(device_name, async_req=True)
2186
+ >>> result = thread.get()
2187
+
2188
+ :param async_req bool
2189
+ :param str device_name: Unique name of the device which is going to be reclaimed (required)
2190
+ :return: DeferredResultResponseEntity
2191
+ If the method is called asynchronously,
2192
+ returns the request thread.
2193
+ """
2194
+
2195
+ all_params = ['device_name'] # noqa: E501
2196
+ all_params.append('async_req')
2197
+ all_params.append('_return_http_data_only')
2198
+ all_params.append('_preload_content')
2199
+ all_params.append('_request_timeout')
2200
+
2201
+ params = locals()
2202
+ for key, val in six.iteritems(params['kwargs']):
2203
+ if key not in all_params:
2204
+ raise TypeError(
2205
+ "Got an unexpected keyword argument '%s'"
2206
+ " to method re_claim_device_using_delete" % key
2207
+ )
2208
+ params[key] = val
2209
+ del params['kwargs']
2210
+ # verify the required parameter 'device_name' is set
2211
+ if ('device_name' not in params or
2212
+ params['device_name'] is None):
2213
+ raise ValueError("Missing the required parameter `device_name` when calling `re_claim_device_using_delete`") # noqa: E501
2214
+
2215
+ collection_formats = {}
2216
+
2217
+ path_params = {}
2218
+ if 'device_name' in params:
2219
+ path_params['deviceName'] = params['device_name'] # noqa: E501
2220
+
2221
+ query_params = []
2222
+
2223
+ header_params = {}
2224
+
2225
+ form_params = []
2226
+ local_var_files = {}
2227
+
2228
+ body_params = None
2229
+ # HTTP header `Accept`
2230
+ header_params['Accept'] = self.api_client.select_header_accept(
2231
+ ['application/json']) # noqa: E501
2232
+
2233
+ # Authentication setting
2234
+ auth_settings = ['X-Authorization'] # noqa: E501
2235
+
2236
+ return self.api_client.call_api(
2237
+ '/api/customer/device/{deviceName}/claim', 'DELETE',
2238
+ path_params,
2239
+ query_params,
2240
+ header_params,
2241
+ body=body_params,
2242
+ post_params=form_params,
2243
+ files=local_var_files,
2244
+ response_type='DeferredResultResponseEntity', # noqa: E501
2245
+ auth_settings=auth_settings,
2246
+ async_req=params.get('async_req'),
2247
+ _return_http_data_only=params.get('_return_http_data_only'),
2248
+ _preload_content=params.get('_preload_content', True),
2249
+ _request_timeout=params.get('_request_timeout'),
2250
+ collection_formats=collection_formats)
2251
+
2252
+ def save_device_using_post(self, **kwargs): # noqa: E501
2253
+ """Create Or Update Device (saveDevice) # noqa: E501
2254
+
2255
+ Create or update the Device. When creating device, platform generates Device Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). Device credentials are also generated if not provided in the 'accessToken' request parameter. The newly created device id will be present in the response. Specify existing Device id to update the device. Referencing non-existing device Id will cause 'Not Found' error. Device name is unique in the scope of tenant. Use unique identifiers like MAC or IMEI for the device names and non-unique 'label' field for user-friendly visualization purposes.Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
2256
+ This method makes a synchronous HTTP request by default. To make an
2257
+ asynchronous HTTP request, please pass async_req=True
2258
+ >>> thread = api.save_device_using_post(async_req=True)
2259
+ >>> result = thread.get()
2260
+
2261
+ :param async_req bool
2262
+ :param Device body:
2263
+ :param str access_token: Optional value of the device credentials to be used during device creation. If omitted, access token will be auto-generated.
2264
+ :return: Device
2265
+ If the method is called asynchronously,
2266
+ returns the request thread.
2267
+ """
2268
+ kwargs['_return_http_data_only'] = True
2269
+ if kwargs.get('async_req'):
2270
+ return self.save_device_using_post_with_http_info(**kwargs) # noqa: E501
2271
+ else:
2272
+ (data) = self.save_device_using_post_with_http_info(**kwargs) # noqa: E501
2273
+ return data
2274
+
2275
+ def save_device_using_post_with_http_info(self, **kwargs): # noqa: E501
2276
+ """Create Or Update Device (saveDevice) # noqa: E501
2277
+
2278
+ Create or update the Device. When creating device, platform generates Device Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). Device credentials are also generated if not provided in the 'accessToken' request parameter. The newly created device id will be present in the response. Specify existing Device id to update the device. Referencing non-existing device Id will cause 'Not Found' error. Device name is unique in the scope of tenant. Use unique identifiers like MAC or IMEI for the device names and non-unique 'label' field for user-friendly visualization purposes.Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
2279
+ This method makes a synchronous HTTP request by default. To make an
2280
+ asynchronous HTTP request, please pass async_req=True
2281
+ >>> thread = api.save_device_using_post_with_http_info(async_req=True)
2282
+ >>> result = thread.get()
2283
+
2284
+ :param async_req bool
2285
+ :param Device body:
2286
+ :param str access_token: Optional value of the device credentials to be used during device creation. If omitted, access token will be auto-generated.
2287
+ :return: Device
2288
+ If the method is called asynchronously,
2289
+ returns the request thread.
2290
+ """
2291
+
2292
+ all_params = ['body', 'access_token'] # noqa: E501
2293
+ all_params.append('async_req')
2294
+ all_params.append('_return_http_data_only')
2295
+ all_params.append('_preload_content')
2296
+ all_params.append('_request_timeout')
2297
+
2298
+ params = locals()
2299
+ for key, val in six.iteritems(params['kwargs']):
2300
+ if key not in all_params:
2301
+ raise TypeError(
2302
+ "Got an unexpected keyword argument '%s'"
2303
+ " to method save_device_using_post" % key
2304
+ )
2305
+ params[key] = val
2306
+ del params['kwargs']
2307
+
2308
+ collection_formats = {}
2309
+
2310
+ path_params = {}
2311
+
2312
+ query_params = []
2313
+ if 'access_token' in params:
2314
+ query_params.append(('accessToken', params['access_token'])) # noqa: E501
2315
+
2316
+ header_params = {}
2317
+
2318
+ form_params = []
2319
+ local_var_files = {}
2320
+
2321
+ body_params = None
2322
+ if 'body' in params:
2323
+ body_params = params['body']
2324
+ # HTTP header `Accept`
2325
+ header_params['Accept'] = self.api_client.select_header_accept(
2326
+ ['application/json']) # noqa: E501
2327
+
2328
+ # HTTP header `Content-Type`
2329
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2330
+ ['application/json']) # noqa: E501
2331
+
2332
+ # Authentication setting
2333
+ auth_settings = ['X-Authorization'] # noqa: E501
2334
+
2335
+ return self.api_client.call_api(
2336
+ '/api/device{?accessToken}', 'POST',
2337
+ path_params,
2338
+ query_params,
2339
+ header_params,
2340
+ body=body_params,
2341
+ post_params=form_params,
2342
+ files=local_var_files,
2343
+ response_type='Device', # noqa: E501
2344
+ auth_settings=auth_settings,
2345
+ async_req=params.get('async_req'),
2346
+ _return_http_data_only=params.get('_return_http_data_only'),
2347
+ _preload_content=params.get('_preload_content', True),
2348
+ _request_timeout=params.get('_request_timeout'),
2349
+ collection_formats=collection_formats)
2350
+
2351
+ def save_device_with_credentials_using_post(self, **kwargs): # noqa: E501
2352
+ """Create Device (saveDevice) with credentials # noqa: E501
2353
+
2354
+ Create or update the Device. When creating device, platform generates Device Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). Requires to provide the Device Credentials object as well as an existing device profile ID or use \"default\". You may find the example of device with different type of credentials below: - Credentials type: <b>\"Access token\"</b> with <b>device profile ID</b> below: ```json { \"device\": { \"name\":\"Name_DeviceWithCredantial_AccessToken\", \"label\":\"Label_DeviceWithCredantial_AccessToken\", \"deviceProfileId\":{ \"id\":\"9d9588c0-06c9-11ee-b618-19be30fdeb60\", \"entityType\":\"DEVICE_PROFILE\" } }, \"credentials\": { \"credentialsType\": \"ACCESS_TOKEN\", \"credentialsId\": \"6hmxew8pmmzng4e3une2\" } } ``` - Credentials type: <b>\"Access token\"</b> with <b>device profile default</b> below: ```json { \"device\": { \"name\":\"Name_DeviceWithCredantial_AccessToken_Default\", \"label\":\"Label_DeviceWithCredantial_AccessToken_Default\", \"type\": \"default\" }, \"credentials\": { \"credentialsType\": \"ACCESS_TOKEN\", \"credentialsId\": \"6hmxew8pmmzng4e3une3\" } } ``` - Credentials type: <b>\"X509\"</b> with <b>device profile ID</b> below: Note: <b>credentialsId</b> - format <b>Sha3Hash</b>, <b>certificateValue</b> - format <b>PEM</b> (with \"--BEGIN CERTIFICATE----\" and -\"----END CERTIFICATE-\"). ```json { \"device\": { \"name\":\"Name_DeviceWithCredantial_X509_Certificate\", \"label\":\"Label_DeviceWithCredantial_X509_Certificate\", \"deviceProfileId\":{ \"id\":\"9d9588c0-06c9-11ee-b618-19be30fdeb60\", \"entityType\":\"DEVICE_PROFILE\" } }, \"credentials\": { \"credentialsType\": \"X509_CERTIFICATE\", \"credentialsId\": \"84f5911765abba1f96bf4165604e9e90338fc6214081a8e623b6ff9669aedb27\", \"credentialsValue\": \"-----BEGIN CERTIFICATE----- MIICMTCCAdegAwIBAgIUI9dBuwN6pTtK6uZ03rkiCwV4wEYwCgYIKoZIzj0EAwIwbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlQ2VydGlmaWNhdGVAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MB4XDTIzMDMyOTE0NTYxN1oXDTI0MDMyODE0NTYxN1owbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlQ2VydGlmaWNhdGVAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE9Zo791qKQiGNBm11r4ZGxh+w+ossZL3xc46ufq5QckQHP7zkD2XDAcmP5GvdkM1sBFN9AWaCkQfNnWmfERsOOKNTMFEwHQYDVR0OBBYEFFFc5uyCyglQoZiKhzXzMcQ3BKORMB8GA1UdIwQYMBaAFFFc5uyCyglQoZiKhzXzMcQ3BKORMA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwIDSAAwRQIhANbA9CuhoOifZMMmqkpuld+65CR+ItKdXeRAhLMZuccuAiB0FSQB34zMutXrZj1g8Gl5OkE7YryFHbei1z0SveHR8g== -----END CERTIFICATE-----\" } } ``` - Credentials type: <b>\"MQTT_BASIC\"</b> with <b>device profile ID</b> below: ```json { \"device\": { \"name\":\"Name_DeviceWithCredantial_MQTT_Basic\", \"label\":\"Label_DeviceWithCredantial_MQTT_Basic\", \"deviceProfileId\":{ \"id\":\"9d9588c0-06c9-11ee-b618-19be30fdeb60\", \"entityType\":\"DEVICE_PROFILE\" } }, \"credentials\": { \"credentialsType\": \"MQTT_BASIC\", \"credentialsValue\": \"{\\\"clientId\\\":\\\"5euh5nzm34bjjh1efmlt\\\",\\\"userName\\\":\\\"onasd1lgwasmjl7v2v7h\\\",\\\"password\\\":\\\"b9xtm4ny8kt9zewaga5o\\\"}\" } } ``` - You may find the example of <b>LwM2M</b> device and <b>RPK</b> credentials below: Note: LwM2M device - only existing device profile ID (Transport configuration -> Transport type: \"LWM2M\". ```json { \"device\": { \"name\":\"Name_LwRpk00000000\", \"label\":\"Label_LwRpk00000000\", \"deviceProfileId\":{ \"id\":\"a660bd50-10ef-11ee-8737-b5634e73c779\", \"entityType\":\"DEVICE_PROFILE\" } }, \"credentials\": { \"credentialsType\": \"LWM2M_CREDENTIALS\", \"credentialsId\": \"LwRpk00000000\", \"credentialsValue\": \"{\\\"client\\\":{ \\\"endpoint\\\":\\\"LwRpk00000000\\\", \\\"securityConfigClientMode\\\":\\\"RPK\\\", \\\"key\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\" }, \\\"bootstrap\\\":{ \\\"bootstrapServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}, \\\"lwm2mServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}} }\" } } ``` Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
2355
+ This method makes a synchronous HTTP request by default. To make an
2356
+ asynchronous HTTP request, please pass async_req=True
2357
+ >>> thread = api.save_device_with_credentials_using_post(async_req=True)
2358
+ >>> result = thread.get()
2359
+
2360
+ :param async_req bool
2361
+ :param SaveDeviceWithCredentialsRequest body:
2362
+ :return: Device
2363
+ If the method is called asynchronously,
2364
+ returns the request thread.
2365
+ """
2366
+ kwargs['_return_http_data_only'] = True
2367
+ if kwargs.get('async_req'):
2368
+ return self.save_device_with_credentials_using_post_with_http_info(**kwargs) # noqa: E501
2369
+ else:
2370
+ (data) = self.save_device_with_credentials_using_post_with_http_info(**kwargs) # noqa: E501
2371
+ return data
2372
+
2373
+ def save_device_with_credentials_using_post_with_http_info(self, **kwargs): # noqa: E501
2374
+ """Create Device (saveDevice) with credentials # noqa: E501
2375
+
2376
+ Create or update the Device. When creating device, platform generates Device Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). Requires to provide the Device Credentials object as well as an existing device profile ID or use \"default\". You may find the example of device with different type of credentials below: - Credentials type: <b>\"Access token\"</b> with <b>device profile ID</b> below: ```json { \"device\": { \"name\":\"Name_DeviceWithCredantial_AccessToken\", \"label\":\"Label_DeviceWithCredantial_AccessToken\", \"deviceProfileId\":{ \"id\":\"9d9588c0-06c9-11ee-b618-19be30fdeb60\", \"entityType\":\"DEVICE_PROFILE\" } }, \"credentials\": { \"credentialsType\": \"ACCESS_TOKEN\", \"credentialsId\": \"6hmxew8pmmzng4e3une2\" } } ``` - Credentials type: <b>\"Access token\"</b> with <b>device profile default</b> below: ```json { \"device\": { \"name\":\"Name_DeviceWithCredantial_AccessToken_Default\", \"label\":\"Label_DeviceWithCredantial_AccessToken_Default\", \"type\": \"default\" }, \"credentials\": { \"credentialsType\": \"ACCESS_TOKEN\", \"credentialsId\": \"6hmxew8pmmzng4e3une3\" } } ``` - Credentials type: <b>\"X509\"</b> with <b>device profile ID</b> below: Note: <b>credentialsId</b> - format <b>Sha3Hash</b>, <b>certificateValue</b> - format <b>PEM</b> (with \"--BEGIN CERTIFICATE----\" and -\"----END CERTIFICATE-\"). ```json { \"device\": { \"name\":\"Name_DeviceWithCredantial_X509_Certificate\", \"label\":\"Label_DeviceWithCredantial_X509_Certificate\", \"deviceProfileId\":{ \"id\":\"9d9588c0-06c9-11ee-b618-19be30fdeb60\", \"entityType\":\"DEVICE_PROFILE\" } }, \"credentials\": { \"credentialsType\": \"X509_CERTIFICATE\", \"credentialsId\": \"84f5911765abba1f96bf4165604e9e90338fc6214081a8e623b6ff9669aedb27\", \"credentialsValue\": \"-----BEGIN CERTIFICATE----- MIICMTCCAdegAwIBAgIUI9dBuwN6pTtK6uZ03rkiCwV4wEYwCgYIKoZIzj0EAwIwbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlQ2VydGlmaWNhdGVAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MB4XDTIzMDMyOTE0NTYxN1oXDTI0MDMyODE0NTYxN1owbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlQ2VydGlmaWNhdGVAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE9Zo791qKQiGNBm11r4ZGxh+w+ossZL3xc46ufq5QckQHP7zkD2XDAcmP5GvdkM1sBFN9AWaCkQfNnWmfERsOOKNTMFEwHQYDVR0OBBYEFFFc5uyCyglQoZiKhzXzMcQ3BKORMB8GA1UdIwQYMBaAFFFc5uyCyglQoZiKhzXzMcQ3BKORMA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwIDSAAwRQIhANbA9CuhoOifZMMmqkpuld+65CR+ItKdXeRAhLMZuccuAiB0FSQB34zMutXrZj1g8Gl5OkE7YryFHbei1z0SveHR8g== -----END CERTIFICATE-----\" } } ``` - Credentials type: <b>\"MQTT_BASIC\"</b> with <b>device profile ID</b> below: ```json { \"device\": { \"name\":\"Name_DeviceWithCredantial_MQTT_Basic\", \"label\":\"Label_DeviceWithCredantial_MQTT_Basic\", \"deviceProfileId\":{ \"id\":\"9d9588c0-06c9-11ee-b618-19be30fdeb60\", \"entityType\":\"DEVICE_PROFILE\" } }, \"credentials\": { \"credentialsType\": \"MQTT_BASIC\", \"credentialsValue\": \"{\\\"clientId\\\":\\\"5euh5nzm34bjjh1efmlt\\\",\\\"userName\\\":\\\"onasd1lgwasmjl7v2v7h\\\",\\\"password\\\":\\\"b9xtm4ny8kt9zewaga5o\\\"}\" } } ``` - You may find the example of <b>LwM2M</b> device and <b>RPK</b> credentials below: Note: LwM2M device - only existing device profile ID (Transport configuration -> Transport type: \"LWM2M\". ```json { \"device\": { \"name\":\"Name_LwRpk00000000\", \"label\":\"Label_LwRpk00000000\", \"deviceProfileId\":{ \"id\":\"a660bd50-10ef-11ee-8737-b5634e73c779\", \"entityType\":\"DEVICE_PROFILE\" } }, \"credentials\": { \"credentialsType\": \"LWM2M_CREDENTIALS\", \"credentialsId\": \"LwRpk00000000\", \"credentialsValue\": \"{\\\"client\\\":{ \\\"endpoint\\\":\\\"LwRpk00000000\\\", \\\"securityConfigClientMode\\\":\\\"RPK\\\", \\\"key\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\" }, \\\"bootstrap\\\":{ \\\"bootstrapServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}, \\\"lwm2mServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}} }\" } } ``` Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
2377
+ This method makes a synchronous HTTP request by default. To make an
2378
+ asynchronous HTTP request, please pass async_req=True
2379
+ >>> thread = api.save_device_with_credentials_using_post_with_http_info(async_req=True)
2380
+ >>> result = thread.get()
2381
+
2382
+ :param async_req bool
2383
+ :param SaveDeviceWithCredentialsRequest body:
2384
+ :return: Device
2385
+ If the method is called asynchronously,
2386
+ returns the request thread.
2387
+ """
2388
+
2389
+ all_params = ['body'] # noqa: E501
2390
+ all_params.append('async_req')
2391
+ all_params.append('_return_http_data_only')
2392
+ all_params.append('_preload_content')
2393
+ all_params.append('_request_timeout')
2394
+
2395
+ params = locals()
2396
+ for key, val in six.iteritems(params['kwargs']):
2397
+ if key not in all_params:
2398
+ raise TypeError(
2399
+ "Got an unexpected keyword argument '%s'"
2400
+ " to method save_device_with_credentials_using_post" % key
2401
+ )
2402
+ params[key] = val
2403
+ del params['kwargs']
2404
+
2405
+ collection_formats = {}
2406
+
2407
+ path_params = {}
2408
+
2409
+ query_params = []
2410
+
2411
+ header_params = {}
2412
+
2413
+ form_params = []
2414
+ local_var_files = {}
2415
+
2416
+ body_params = None
2417
+ if 'body' in params:
2418
+ body_params = params['body']
2419
+ # HTTP header `Accept`
2420
+ header_params['Accept'] = self.api_client.select_header_accept(
2421
+ ['application/json']) # noqa: E501
2422
+
2423
+ # HTTP header `Content-Type`
2424
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2425
+ ['application/json']) # noqa: E501
2426
+
2427
+ # Authentication setting
2428
+ auth_settings = ['X-Authorization'] # noqa: E501
2429
+
2430
+ return self.api_client.call_api(
2431
+ '/api/device-with-credentials', 'POST',
2432
+ path_params,
2433
+ query_params,
2434
+ header_params,
2435
+ body=body_params,
2436
+ post_params=form_params,
2437
+ files=local_var_files,
2438
+ response_type='Device', # noqa: E501
2439
+ auth_settings=auth_settings,
2440
+ async_req=params.get('async_req'),
2441
+ _return_http_data_only=params.get('_return_http_data_only'),
2442
+ _preload_content=params.get('_preload_content', True),
2443
+ _request_timeout=params.get('_request_timeout'),
2444
+ collection_formats=collection_formats)
2445
+
2446
+ def unassign_device_from_customer_using_delete(self, device_id, **kwargs): # noqa: E501
2447
+ """Unassign device from customer (unassignDeviceFromCustomer) # noqa: E501
2448
+
2449
+ Clears assignment of the device to customer. Customer will not be able to query device afterwards. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
2450
+ This method makes a synchronous HTTP request by default. To make an
2451
+ asynchronous HTTP request, please pass async_req=True
2452
+ >>> thread = api.unassign_device_from_customer_using_delete(device_id, async_req=True)
2453
+ >>> result = thread.get()
2454
+
2455
+ :param async_req bool
2456
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
2457
+ :return: Device
2458
+ If the method is called asynchronously,
2459
+ returns the request thread.
2460
+ """
2461
+ kwargs['_return_http_data_only'] = True
2462
+ if kwargs.get('async_req'):
2463
+ return self.unassign_device_from_customer_using_delete_with_http_info(device_id, **kwargs) # noqa: E501
2464
+ else:
2465
+ (data) = self.unassign_device_from_customer_using_delete_with_http_info(device_id, **kwargs) # noqa: E501
2466
+ return data
2467
+
2468
+ def unassign_device_from_customer_using_delete_with_http_info(self, device_id, **kwargs): # noqa: E501
2469
+ """Unassign device from customer (unassignDeviceFromCustomer) # noqa: E501
2470
+
2471
+ Clears assignment of the device to customer. Customer will not be able to query device afterwards. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
2472
+ This method makes a synchronous HTTP request by default. To make an
2473
+ asynchronous HTTP request, please pass async_req=True
2474
+ >>> thread = api.unassign_device_from_customer_using_delete_with_http_info(device_id, async_req=True)
2475
+ >>> result = thread.get()
2476
+
2477
+ :param async_req bool
2478
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
2479
+ :return: Device
2480
+ If the method is called asynchronously,
2481
+ returns the request thread.
2482
+ """
2483
+
2484
+ all_params = ['device_id'] # noqa: E501
2485
+ all_params.append('async_req')
2486
+ all_params.append('_return_http_data_only')
2487
+ all_params.append('_preload_content')
2488
+ all_params.append('_request_timeout')
2489
+
2490
+ params = locals()
2491
+ for key, val in six.iteritems(params['kwargs']):
2492
+ if key not in all_params:
2493
+ raise TypeError(
2494
+ "Got an unexpected keyword argument '%s'"
2495
+ " to method unassign_device_from_customer_using_delete" % key
2496
+ )
2497
+ params[key] = val
2498
+ del params['kwargs']
2499
+ # verify the required parameter 'device_id' is set
2500
+ if ('device_id' not in params or
2501
+ params['device_id'] is None):
2502
+ raise ValueError("Missing the required parameter `device_id` when calling `unassign_device_from_customer_using_delete`") # noqa: E501
2503
+
2504
+ collection_formats = {}
2505
+
2506
+ path_params = {}
2507
+ if 'device_id' in params:
2508
+ path_params['deviceId'] = params['device_id'] # noqa: E501
2509
+
2510
+ query_params = []
2511
+
2512
+ header_params = {}
2513
+
2514
+ form_params = []
2515
+ local_var_files = {}
2516
+
2517
+ body_params = None
2518
+ # HTTP header `Accept`
2519
+ header_params['Accept'] = self.api_client.select_header_accept(
2520
+ ['application/json']) # noqa: E501
2521
+
2522
+ # Authentication setting
2523
+ auth_settings = ['X-Authorization'] # noqa: E501
2524
+
2525
+ return self.api_client.call_api(
2526
+ '/api/customer/device/{deviceId}', 'DELETE',
2527
+ path_params,
2528
+ query_params,
2529
+ header_params,
2530
+ body=body_params,
2531
+ post_params=form_params,
2532
+ files=local_var_files,
2533
+ response_type='Device', # noqa: E501
2534
+ auth_settings=auth_settings,
2535
+ async_req=params.get('async_req'),
2536
+ _return_http_data_only=params.get('_return_http_data_only'),
2537
+ _preload_content=params.get('_preload_content', True),
2538
+ _request_timeout=params.get('_request_timeout'),
2539
+ collection_formats=collection_formats)
2540
+
2541
+ def unassign_device_from_edge_using_delete(self, edge_id, device_id, **kwargs): # noqa: E501
2542
+ """Unassign device from edge (unassignDeviceFromEdge) # noqa: E501
2543
+
2544
+ Clears assignment of the device to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove device (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once 'unassign' command will be delivered to edge service, it's going to remove device locally. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
2545
+ This method makes a synchronous HTTP request by default. To make an
2546
+ asynchronous HTTP request, please pass async_req=True
2547
+ >>> thread = api.unassign_device_from_edge_using_delete(edge_id, device_id, async_req=True)
2548
+ >>> result = thread.get()
2549
+
2550
+ :param async_req bool
2551
+ :param str edge_id: A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
2552
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
2553
+ :return: Device
2554
+ If the method is called asynchronously,
2555
+ returns the request thread.
2556
+ """
2557
+ kwargs['_return_http_data_only'] = True
2558
+ if kwargs.get('async_req'):
2559
+ return self.unassign_device_from_edge_using_delete_with_http_info(edge_id, device_id, **kwargs) # noqa: E501
2560
+ else:
2561
+ (data) = self.unassign_device_from_edge_using_delete_with_http_info(edge_id, device_id, **kwargs) # noqa: E501
2562
+ return data
2563
+
2564
+ def unassign_device_from_edge_using_delete_with_http_info(self, edge_id, device_id, **kwargs): # noqa: E501
2565
+ """Unassign device from edge (unassignDeviceFromEdge) # noqa: E501
2566
+
2567
+ Clears assignment of the device to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove device (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once 'unassign' command will be delivered to edge service, it's going to remove device locally. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
2568
+ This method makes a synchronous HTTP request by default. To make an
2569
+ asynchronous HTTP request, please pass async_req=True
2570
+ >>> thread = api.unassign_device_from_edge_using_delete_with_http_info(edge_id, device_id, async_req=True)
2571
+ >>> result = thread.get()
2572
+
2573
+ :param async_req bool
2574
+ :param str edge_id: A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
2575
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
2576
+ :return: Device
2577
+ If the method is called asynchronously,
2578
+ returns the request thread.
2579
+ """
2580
+
2581
+ all_params = ['edge_id', 'device_id'] # noqa: E501
2582
+ all_params.append('async_req')
2583
+ all_params.append('_return_http_data_only')
2584
+ all_params.append('_preload_content')
2585
+ all_params.append('_request_timeout')
2586
+
2587
+ params = locals()
2588
+ for key, val in six.iteritems(params['kwargs']):
2589
+ if key not in all_params:
2590
+ raise TypeError(
2591
+ "Got an unexpected keyword argument '%s'"
2592
+ " to method unassign_device_from_edge_using_delete" % key
2593
+ )
2594
+ params[key] = val
2595
+ del params['kwargs']
2596
+ # verify the required parameter 'edge_id' is set
2597
+ if ('edge_id' not in params or
2598
+ params['edge_id'] is None):
2599
+ raise ValueError("Missing the required parameter `edge_id` when calling `unassign_device_from_edge_using_delete`") # noqa: E501
2600
+ # verify the required parameter 'device_id' is set
2601
+ if ('device_id' not in params or
2602
+ params['device_id'] is None):
2603
+ raise ValueError("Missing the required parameter `device_id` when calling `unassign_device_from_edge_using_delete`") # noqa: E501
2604
+
2605
+ collection_formats = {}
2606
+
2607
+ path_params = {}
2608
+ if 'edge_id' in params:
2609
+ path_params['edgeId'] = params['edge_id'] # noqa: E501
2610
+ if 'device_id' in params:
2611
+ path_params['deviceId'] = params['device_id'] # noqa: E501
2612
+
2613
+ query_params = []
2614
+
2615
+ header_params = {}
2616
+
2617
+ form_params = []
2618
+ local_var_files = {}
2619
+
2620
+ body_params = None
2621
+ # HTTP header `Accept`
2622
+ header_params['Accept'] = self.api_client.select_header_accept(
2623
+ ['application/json']) # noqa: E501
2624
+
2625
+ # Authentication setting
2626
+ auth_settings = ['X-Authorization'] # noqa: E501
2627
+
2628
+ return self.api_client.call_api(
2629
+ '/api/edge/{edgeId}/device/{deviceId}', 'DELETE',
2630
+ path_params,
2631
+ query_params,
2632
+ header_params,
2633
+ body=body_params,
2634
+ post_params=form_params,
2635
+ files=local_var_files,
2636
+ response_type='Device', # noqa: E501
2637
+ auth_settings=auth_settings,
2638
+ async_req=params.get('async_req'),
2639
+ _return_http_data_only=params.get('_return_http_data_only'),
2640
+ _preload_content=params.get('_preload_content', True),
2641
+ _request_timeout=params.get('_request_timeout'),
2642
+ collection_formats=collection_formats)
2643
+
2644
+ def update_device_credentials_using_post(self, **kwargs): # noqa: E501
2645
+ """Update device credentials (updateDeviceCredentials) # noqa: E501
2646
+
2647
+ During device creation, platform generates random 'ACCESS_TOKEN' credentials. \" + Use this method to update the device credentials. First use 'getDeviceCredentialsByDeviceId' to get the credentials id and value. Then use current method to update the credentials type and value. It is not possible to create multiple device credentials for the same device. The structure of device credentials id and value is simple for the 'ACCESS_TOKEN' but is much more complex for the 'MQTT_BASIC' or 'LWM2M_CREDENTIALS'. You may find the example of device with different type of credentials below: - Credentials type: <b>\"Access token\"</b> with <b>device ID</b> and with <b>device ID</b> below: ```json { \"id\": { \"id\":\"c886a090-168d-11ee-87c9-6f157dbc816a\" }, \"deviceId\": { \"id\":\"c5fb3ac0-168d-11ee-87c9-6f157dbc816a\", \"entityType\":\"DEVICE\" }, \"credentialsType\": \"ACCESS_TOKEN\", \"credentialsId\": \"6hmxew8pmmzng4e3une4\" } ``` - Credentials type: <b>\"X509\"</b> with <b>device profile ID</b> below: Note: <b>credentialsId</b> - format <b>Sha3Hash</b>, <b>certificateValue</b> - format <b>PEM</b> (with \"--BEGIN CERTIFICATE----\" and -\"----END CERTIFICATE-\"). ```json { \"id\": { \"id\":\"309bd9c0-14f4-11ee-9fc9-d9b7463abb63\" }, \"deviceId\": { \"id\":\"3092b200-14f4-11ee-9fc9-d9b7463abb63\", \"entityType\":\"DEVICE\" }, \"credentialsType\": \"X509_CERTIFICATE\", \"credentialsId\": \"6b8adb49015500e51a527acd332b51684ab9b49b4ade03a9582a44c455e2e9b6\", \"credentialsValue\": \"-----BEGIN CERTIFICATE----- MIICMTCCAdegAwIBAgIUUEKxS9hTz4l+oLUMF0LV6TC/gCIwCgYIKoZIzj0EAwIwbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlUHJvZmlsZUNlcnRAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MB4XDTIzMDMyOTE0NTczNloXDTI0MDMyODE0NTczNlowbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlUHJvZmlsZUNlcnRAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECMlWO72krDoUL9FQjUmSCetkhaEGJUfQkdSfkLSNa0GyAEIMbfmzI4zITeapunu4rGet3EMyLydQzuQanBicp6NTMFEwHQYDVR0OBBYEFHpZ78tPnztNii4Da/yCw6mhEIL3MB8GA1UdIwQYMBaAFHpZ78tPnztNii4Da/yCw6mhEIL3MA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwIDSAAwRQIgJ7qyMFqNcwSYkH6o+UlQXzLWfwZbNjVk+aR7foAZNGsCIQDsd7v3WQIGHiArfZeDs1DLEDuV/2h6L+ZNoGNhEKL+1A== -----END CERTIFICATE-----\" } ``` - Credentials type: <b>\"MQTT_BASIC\"</b> with <b>device profile ID</b> below: ```json { \"id\": { \"id\":\"d877ffb0-14f5-11ee-9fc9-d9b7463abb63\" }, \"deviceId\": { \"id\":\"d875dcd0-14f5-11ee-9fc9-d9b7463abb63\", \"entityType\":\"DEVICE\" }, \"credentialsType\": \"MQTT_BASIC\", \"credentialsValue\": \"{\\\"clientId\\\":\\\"juy03yv4owqxcmqhqtvk\\\",\\\"userName\\\":\\\"ov19fxca0cyjn7lm7w7u\\\",\\\"password\\\":\\\"twy94he114dfi9usyk1o\\\"}\" } ``` - You may find the example of <b>LwM2M</b> device and <b>RPK</b> credentials below: Note: LwM2M device - only existing device profile ID (Transport configuration -> Transport type: \"LWM2M\". ```json { \"id\": { \"id\":\"e238d4d0-1689-11ee-98c6-1713c1be5a8e\" }, \"deviceId\": { \"id\":\"e232e160-1689-11ee-98c6-1713c1be5a8e\", \"entityType\":\"DEVICE\" }, \"credentialsType\": \"LWM2M_CREDENTIALS\", \"credentialsId\": \"LwRpk00000000\", \"credentialsValue\": \"{\\\"client\\\":{ \\\"endpoint\\\":\\\"LwRpk00000000\\\", \\\"securityConfigClientMode\\\":\\\"RPK\\\", \\\"key\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdvBZZ2vQRK9wgDhctj6B1c7bxR3Z0wYg1+YdoYFnVUKWb+rIfTTyYK9tmQJx5Vlb5fxdLnVv1RJOPiwsLIQbAA==\\\" }, \\\"bootstrap\\\":{ \\\"bootstrapServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}, \\\"lwm2mServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}} }\" } ``` Update to real value: - 'id' (this is id of Device Credentials -> \"Get Device Credentials (getDeviceCredentialsByDeviceId)\", - 'deviceId.id' (this is id of Device). Remove 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
2648
+ This method makes a synchronous HTTP request by default. To make an
2649
+ asynchronous HTTP request, please pass async_req=True
2650
+ >>> thread = api.update_device_credentials_using_post(async_req=True)
2651
+ >>> result = thread.get()
2652
+
2653
+ :param async_req bool
2654
+ :param DeviceCredentials body:
2655
+ :return: DeviceCredentials
2656
+ If the method is called asynchronously,
2657
+ returns the request thread.
2658
+ """
2659
+ kwargs['_return_http_data_only'] = True
2660
+ if kwargs.get('async_req'):
2661
+ return self.update_device_credentials_using_post_with_http_info(**kwargs) # noqa: E501
2662
+ else:
2663
+ (data) = self.update_device_credentials_using_post_with_http_info(**kwargs) # noqa: E501
2664
+ return data
2665
+
2666
+ def update_device_credentials_using_post_with_http_info(self, **kwargs): # noqa: E501
2667
+ """Update device credentials (updateDeviceCredentials) # noqa: E501
2668
+
2669
+ During device creation, platform generates random 'ACCESS_TOKEN' credentials. \" + Use this method to update the device credentials. First use 'getDeviceCredentialsByDeviceId' to get the credentials id and value. Then use current method to update the credentials type and value. It is not possible to create multiple device credentials for the same device. The structure of device credentials id and value is simple for the 'ACCESS_TOKEN' but is much more complex for the 'MQTT_BASIC' or 'LWM2M_CREDENTIALS'. You may find the example of device with different type of credentials below: - Credentials type: <b>\"Access token\"</b> with <b>device ID</b> and with <b>device ID</b> below: ```json { \"id\": { \"id\":\"c886a090-168d-11ee-87c9-6f157dbc816a\" }, \"deviceId\": { \"id\":\"c5fb3ac0-168d-11ee-87c9-6f157dbc816a\", \"entityType\":\"DEVICE\" }, \"credentialsType\": \"ACCESS_TOKEN\", \"credentialsId\": \"6hmxew8pmmzng4e3une4\" } ``` - Credentials type: <b>\"X509\"</b> with <b>device profile ID</b> below: Note: <b>credentialsId</b> - format <b>Sha3Hash</b>, <b>certificateValue</b> - format <b>PEM</b> (with \"--BEGIN CERTIFICATE----\" and -\"----END CERTIFICATE-\"). ```json { \"id\": { \"id\":\"309bd9c0-14f4-11ee-9fc9-d9b7463abb63\" }, \"deviceId\": { \"id\":\"3092b200-14f4-11ee-9fc9-d9b7463abb63\", \"entityType\":\"DEVICE\" }, \"credentialsType\": \"X509_CERTIFICATE\", \"credentialsId\": \"6b8adb49015500e51a527acd332b51684ab9b49b4ade03a9582a44c455e2e9b6\", \"credentialsValue\": \"-----BEGIN CERTIFICATE----- MIICMTCCAdegAwIBAgIUUEKxS9hTz4l+oLUMF0LV6TC/gCIwCgYIKoZIzj0EAwIwbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlUHJvZmlsZUNlcnRAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MB4XDTIzMDMyOTE0NTczNloXDTI0MDMyODE0NTczNlowbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlUHJvZmlsZUNlcnRAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECMlWO72krDoUL9FQjUmSCetkhaEGJUfQkdSfkLSNa0GyAEIMbfmzI4zITeapunu4rGet3EMyLydQzuQanBicp6NTMFEwHQYDVR0OBBYEFHpZ78tPnztNii4Da/yCw6mhEIL3MB8GA1UdIwQYMBaAFHpZ78tPnztNii4Da/yCw6mhEIL3MA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwIDSAAwRQIgJ7qyMFqNcwSYkH6o+UlQXzLWfwZbNjVk+aR7foAZNGsCIQDsd7v3WQIGHiArfZeDs1DLEDuV/2h6L+ZNoGNhEKL+1A== -----END CERTIFICATE-----\" } ``` - Credentials type: <b>\"MQTT_BASIC\"</b> with <b>device profile ID</b> below: ```json { \"id\": { \"id\":\"d877ffb0-14f5-11ee-9fc9-d9b7463abb63\" }, \"deviceId\": { \"id\":\"d875dcd0-14f5-11ee-9fc9-d9b7463abb63\", \"entityType\":\"DEVICE\" }, \"credentialsType\": \"MQTT_BASIC\", \"credentialsValue\": \"{\\\"clientId\\\":\\\"juy03yv4owqxcmqhqtvk\\\",\\\"userName\\\":\\\"ov19fxca0cyjn7lm7w7u\\\",\\\"password\\\":\\\"twy94he114dfi9usyk1o\\\"}\" } ``` - You may find the example of <b>LwM2M</b> device and <b>RPK</b> credentials below: Note: LwM2M device - only existing device profile ID (Transport configuration -> Transport type: \"LWM2M\". ```json { \"id\": { \"id\":\"e238d4d0-1689-11ee-98c6-1713c1be5a8e\" }, \"deviceId\": { \"id\":\"e232e160-1689-11ee-98c6-1713c1be5a8e\", \"entityType\":\"DEVICE\" }, \"credentialsType\": \"LWM2M_CREDENTIALS\", \"credentialsId\": \"LwRpk00000000\", \"credentialsValue\": \"{\\\"client\\\":{ \\\"endpoint\\\":\\\"LwRpk00000000\\\", \\\"securityConfigClientMode\\\":\\\"RPK\\\", \\\"key\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdvBZZ2vQRK9wgDhctj6B1c7bxR3Z0wYg1+YdoYFnVUKWb+rIfTTyYK9tmQJx5Vlb5fxdLnVv1RJOPiwsLIQbAA==\\\" }, \\\"bootstrap\\\":{ \\\"bootstrapServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}, \\\"lwm2mServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}} }\" } ``` Update to real value: - 'id' (this is id of Device Credentials -> \"Get Device Credentials (getDeviceCredentialsByDeviceId)\", - 'deviceId.id' (this is id of Device). Remove 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity. Available for users with 'TENANT_ADMIN' authority. # noqa: E501
2670
+ This method makes a synchronous HTTP request by default. To make an
2671
+ asynchronous HTTP request, please pass async_req=True
2672
+ >>> thread = api.update_device_credentials_using_post_with_http_info(async_req=True)
2673
+ >>> result = thread.get()
2674
+
2675
+ :param async_req bool
2676
+ :param DeviceCredentials body:
2677
+ :return: DeviceCredentials
2678
+ If the method is called asynchronously,
2679
+ returns the request thread.
2680
+ """
2681
+
2682
+ all_params = ['body'] # noqa: E501
2683
+ all_params.append('async_req')
2684
+ all_params.append('_return_http_data_only')
2685
+ all_params.append('_preload_content')
2686
+ all_params.append('_request_timeout')
2687
+
2688
+ params = locals()
2689
+ for key, val in six.iteritems(params['kwargs']):
2690
+ if key not in all_params:
2691
+ raise TypeError(
2692
+ "Got an unexpected keyword argument '%s'"
2693
+ " to method update_device_credentials_using_post" % key
2694
+ )
2695
+ params[key] = val
2696
+ del params['kwargs']
2697
+
2698
+ collection_formats = {}
2699
+
2700
+ path_params = {}
2701
+
2702
+ query_params = []
2703
+
2704
+ header_params = {}
2705
+
2706
+ form_params = []
2707
+ local_var_files = {}
2708
+
2709
+ body_params = None
2710
+ if 'body' in params:
2711
+ body_params = params['body']
2712
+ # HTTP header `Accept`
2713
+ header_params['Accept'] = self.api_client.select_header_accept(
2714
+ ['application/json']) # noqa: E501
2715
+
2716
+ # HTTP header `Content-Type`
2717
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2718
+ ['application/json']) # noqa: E501
2719
+
2720
+ # Authentication setting
2721
+ auth_settings = ['X-Authorization'] # noqa: E501
2722
+
2723
+ return self.api_client.call_api(
2724
+ '/api/device/credentials', 'POST',
2725
+ path_params,
2726
+ query_params,
2727
+ header_params,
2728
+ body=body_params,
2729
+ post_params=form_params,
2730
+ files=local_var_files,
2731
+ response_type='DeviceCredentials', # noqa: E501
2732
+ auth_settings=auth_settings,
2733
+ async_req=params.get('async_req'),
2734
+ _return_http_data_only=params.get('_return_http_data_only'),
2735
+ _preload_content=params.get('_preload_content', True),
2736
+ _request_timeout=params.get('_request_timeout'),
2737
+ collection_formats=collection_formats)