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,2468 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ThingsBoard REST API
5
+
6
+ ThingsBoard Professional Edition IoT platform REST API documentation. # noqa: E501
7
+
8
+ OpenAPI spec version: 3.9.0PE
9
+ Contact: info@thingsboard.io
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ # Copyright 2025. ThingsBoard
14
+ #
15
+ # Licensed under the Apache License, Version 2.0 (the "License");
16
+ # you may not use this file except in compliance with the License.
17
+ # You may obtain a copy of the License at
18
+ #
19
+ # http://www.apache.org/licenses/LICENSE-2.0
20
+ #
21
+ # Unless required by applicable law or agreed to in writing, software
22
+ # distributed under the License is distributed on an "AS IS" BASIS,
23
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
+ # See the License for the specific language governing permissions and
25
+ # limitations under the License.
26
+
27
+ from __future__ import absolute_import
28
+
29
+ import re # noqa: F401
30
+
31
+ # python 2 and python 3 compatibility library
32
+ import six
33
+
34
+ from tb_rest_client.api_client import ApiClient
35
+
36
+
37
+ class 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_tenant_using_post(self, tenant_id, device_id, **kwargs): # noqa: E501
50
+ """Assign device to tenant (assignDeviceToTenant) # noqa: E501
51
+
52
+ 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. Security check is performed to verify that the user has 'ASSIGN_TO_TENANT' permission for the entity (entities). # 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_tenant_using_post(tenant_id, device_id, async_req=True)
56
+ >>> result = thread.get()
57
+
58
+ :param async_req bool
59
+ :param str tenant_id: A string value representing the tenant 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_tenant_using_post_with_http_info(tenant_id, device_id, **kwargs) # noqa: E501
68
+ else:
69
+ (data) = self.assign_device_to_tenant_using_post_with_http_info(tenant_id, device_id, **kwargs) # noqa: E501
70
+ return data
71
+
72
+ def assign_device_to_tenant_using_post_with_http_info(self, tenant_id, device_id, **kwargs): # noqa: E501
73
+ """Assign device to tenant (assignDeviceToTenant) # noqa: E501
74
+
75
+ 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. Security check is performed to verify that the user has 'ASSIGN_TO_TENANT' permission for the entity (entities). # 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_tenant_using_post_with_http_info(tenant_id, device_id, async_req=True)
79
+ >>> result = thread.get()
80
+
81
+ :param async_req bool
82
+ :param str tenant_id: A string value representing the tenant 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 = ['tenant_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_tenant_using_post" % key
101
+ )
102
+ params[key] = val
103
+ del params['kwargs']
104
+ # verify the required parameter 'tenant_id' is set
105
+ if ('tenant_id' not in params or
106
+ params['tenant_id'] is None):
107
+ raise ValueError("Missing the required parameter `tenant_id` when calling `assign_device_to_tenant_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_tenant_using_post`") # noqa: E501
112
+
113
+ collection_formats = {}
114
+
115
+ path_params = {}
116
+ if 'tenant_id' in params:
117
+ path_params['tenantId'] = params['tenant_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/tenant/{tenantId}/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 claim_device_using_post1(self, device_name, **kwargs): # noqa: E501
153
+ """Claim device (claimDevice) # noqa: E501
154
+
155
+ 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. Security check is performed to verify that the user has 'CLAIM_DEVICES' permission for the entity (entities). # 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.claim_device_using_post1(device_name, async_req=True)
159
+ >>> result = thread.get()
160
+
161
+ :param async_req bool
162
+ :param str device_name: Unique name of the device which is going to be claimed (required)
163
+ :param ClaimRequest body:
164
+ :param str sub_customer_id: subCustomerId
165
+ :return: DeferredResultResponseEntity
166
+ If the method is called asynchronously,
167
+ returns the request thread.
168
+ """
169
+ kwargs['_return_http_data_only'] = True
170
+ if kwargs.get('async_req'):
171
+ return self.claim_device_using_post1_with_http_info(device_name, **kwargs) # noqa: E501
172
+ else:
173
+ (data) = self.claim_device_using_post1_with_http_info(device_name, **kwargs) # noqa: E501
174
+ return data
175
+
176
+ def claim_device_using_post1_with_http_info(self, device_name, **kwargs): # noqa: E501
177
+ """Claim device (claimDevice) # noqa: E501
178
+
179
+ 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. Security check is performed to verify that the user has 'CLAIM_DEVICES' permission for the entity (entities). # noqa: E501
180
+ This method makes a synchronous HTTP request by default. To make an
181
+ asynchronous HTTP request, please pass async_req=True
182
+ >>> thread = api.claim_device_using_post1_with_http_info(device_name, async_req=True)
183
+ >>> result = thread.get()
184
+
185
+ :param async_req bool
186
+ :param str device_name: Unique name of the device which is going to be claimed (required)
187
+ :param ClaimRequest body:
188
+ :param str sub_customer_id: subCustomerId
189
+ :return: DeferredResultResponseEntity
190
+ If the method is called asynchronously,
191
+ returns the request thread.
192
+ """
193
+
194
+ all_params = ['device_name', 'body', 'sub_customer_id'] # noqa: E501
195
+ all_params.append('async_req')
196
+ all_params.append('_return_http_data_only')
197
+ all_params.append('_preload_content')
198
+ all_params.append('_request_timeout')
199
+
200
+ params = locals()
201
+ for key, val in six.iteritems(params['kwargs']):
202
+ if key not in all_params:
203
+ raise TypeError(
204
+ "Got an unexpected keyword argument '%s'"
205
+ " to method claim_device_using_post1" % key
206
+ )
207
+ params[key] = val
208
+ del params['kwargs']
209
+ # verify the required parameter 'device_name' is set
210
+ if ('device_name' not in params or
211
+ params['device_name'] is None):
212
+ raise ValueError("Missing the required parameter `device_name` when calling `claim_device_using_post1`") # noqa: E501
213
+
214
+ collection_formats = {}
215
+
216
+ path_params = {}
217
+ if 'device_name' in params:
218
+ path_params['deviceName'] = params['device_name'] # noqa: E501
219
+
220
+ query_params = []
221
+ if 'sub_customer_id' in params:
222
+ query_params.append(('subCustomerId', params['sub_customer_id'])) # noqa: E501
223
+
224
+ header_params = {}
225
+
226
+ form_params = []
227
+ local_var_files = {}
228
+
229
+ body_params = None
230
+ if 'body' in params:
231
+ body_params = params['body']
232
+ # HTTP header `Accept`
233
+ header_params['Accept'] = self.api_client.select_header_accept(
234
+ ['application/json']) # noqa: E501
235
+
236
+ # HTTP header `Content-Type`
237
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
238
+ ['application/json']) # noqa: E501
239
+
240
+ # Authentication setting
241
+ auth_settings = ['X-Authorization'] # noqa: E501
242
+
243
+ return self.api_client.call_api(
244
+ '/api/customer/device/{deviceName}/claim{?subCustomerId}', 'POST',
245
+ path_params,
246
+ query_params,
247
+ header_params,
248
+ body=body_params,
249
+ post_params=form_params,
250
+ files=local_var_files,
251
+ response_type='DeferredResultResponseEntity', # noqa: E501
252
+ auth_settings=auth_settings,
253
+ async_req=params.get('async_req'),
254
+ _return_http_data_only=params.get('_return_http_data_only'),
255
+ _preload_content=params.get('_preload_content', True),
256
+ _request_timeout=params.get('_request_timeout'),
257
+ collection_formats=collection_formats)
258
+
259
+ def count_by_device_group_and_empty_ota_package_using_get(self, ota_package_type, ota_package_id, entity_group_id, **kwargs): # noqa: E501
260
+ """Count devices by device profile (countByDeviceProfileAndEmptyOtaPackage) # noqa: E501
261
+
262
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
263
+ This method makes a synchronous HTTP request by default. To make an
264
+ asynchronous HTTP request, please pass async_req=True
265
+ >>> thread = api.count_by_device_group_and_empty_ota_package_using_get(ota_package_type, ota_package_id, entity_group_id, async_req=True)
266
+ >>> result = thread.get()
267
+
268
+ :param async_req bool
269
+ :param str ota_package_type: OTA package type (required)
270
+ :param str ota_package_id: otaPackageId (required)
271
+ :param str entity_group_id: entityGroupId (required)
272
+ :return: int
273
+ If the method is called asynchronously,
274
+ returns the request thread.
275
+ """
276
+ kwargs['_return_http_data_only'] = True
277
+ if kwargs.get('async_req'):
278
+ return self.count_by_device_group_and_empty_ota_package_using_get_with_http_info(ota_package_type, ota_package_id, entity_group_id, **kwargs) # noqa: E501
279
+ else:
280
+ (data) = self.count_by_device_group_and_empty_ota_package_using_get_with_http_info(ota_package_type, ota_package_id, entity_group_id, **kwargs) # noqa: E501
281
+ return data
282
+
283
+ def count_by_device_group_and_empty_ota_package_using_get_with_http_info(self, ota_package_type, ota_package_id, entity_group_id, **kwargs): # noqa: E501
284
+ """Count devices by device profile (countByDeviceProfileAndEmptyOtaPackage) # noqa: E501
285
+
286
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
287
+ This method makes a synchronous HTTP request by default. To make an
288
+ asynchronous HTTP request, please pass async_req=True
289
+ >>> thread = api.count_by_device_group_and_empty_ota_package_using_get_with_http_info(ota_package_type, ota_package_id, entity_group_id, async_req=True)
290
+ >>> result = thread.get()
291
+
292
+ :param async_req bool
293
+ :param str ota_package_type: OTA package type (required)
294
+ :param str ota_package_id: otaPackageId (required)
295
+ :param str entity_group_id: entityGroupId (required)
296
+ :return: int
297
+ If the method is called asynchronously,
298
+ returns the request thread.
299
+ """
300
+
301
+ all_params = ['ota_package_type', 'ota_package_id', 'entity_group_id'] # noqa: E501
302
+ all_params.append('async_req')
303
+ all_params.append('_return_http_data_only')
304
+ all_params.append('_preload_content')
305
+ all_params.append('_request_timeout')
306
+
307
+ params = locals()
308
+ for key, val in six.iteritems(params['kwargs']):
309
+ if key not in all_params:
310
+ raise TypeError(
311
+ "Got an unexpected keyword argument '%s'"
312
+ " to method count_by_device_group_and_empty_ota_package_using_get" % key
313
+ )
314
+ params[key] = val
315
+ del params['kwargs']
316
+ # verify the required parameter 'ota_package_type' is set
317
+ if ('ota_package_type' not in params or
318
+ params['ota_package_type'] is None):
319
+ raise ValueError("Missing the required parameter `ota_package_type` when calling `count_by_device_group_and_empty_ota_package_using_get`") # noqa: E501
320
+ # verify the required parameter 'ota_package_id' is set
321
+ if ('ota_package_id' not in params or
322
+ params['ota_package_id'] is None):
323
+ raise ValueError("Missing the required parameter `ota_package_id` when calling `count_by_device_group_and_empty_ota_package_using_get`") # noqa: E501
324
+ # verify the required parameter 'entity_group_id' is set
325
+ if ('entity_group_id' not in params or
326
+ params['entity_group_id'] is None):
327
+ raise ValueError("Missing the required parameter `entity_group_id` when calling `count_by_device_group_and_empty_ota_package_using_get`") # noqa: E501
328
+
329
+ collection_formats = {}
330
+
331
+ path_params = {}
332
+ if 'ota_package_type' in params:
333
+ path_params['otaPackageType'] = params['ota_package_type'] # noqa: E501
334
+ if 'ota_package_id' in params:
335
+ path_params['otaPackageId'] = params['ota_package_id'] # noqa: E501
336
+ if 'entity_group_id' in params:
337
+ path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
338
+
339
+ query_params = []
340
+
341
+ header_params = {}
342
+
343
+ form_params = []
344
+ local_var_files = {}
345
+
346
+ body_params = None
347
+ # HTTP header `Accept`
348
+ header_params['Accept'] = self.api_client.select_header_accept(
349
+ ['application/json']) # noqa: E501
350
+
351
+ # Authentication setting
352
+ auth_settings = ['X-Authorization'] # noqa: E501
353
+
354
+ return self.api_client.call_api(
355
+ '/api/devices/count/{otaPackageType}/{otaPackageId}/{entityGroupId}', 'GET',
356
+ path_params,
357
+ query_params,
358
+ header_params,
359
+ body=body_params,
360
+ post_params=form_params,
361
+ files=local_var_files,
362
+ response_type='int', # noqa: E501
363
+ auth_settings=auth_settings,
364
+ async_req=params.get('async_req'),
365
+ _return_http_data_only=params.get('_return_http_data_only'),
366
+ _preload_content=params.get('_preload_content', True),
367
+ _request_timeout=params.get('_request_timeout'),
368
+ collection_formats=collection_formats)
369
+
370
+ def count_by_device_profile_and_empty_ota_package_using_get(self, ota_package_type, device_profile_id, **kwargs): # noqa: E501
371
+ """Count devices by device profile (countByDeviceProfileAndEmptyOtaPackage) # noqa: E501
372
+
373
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
374
+ This method makes a synchronous HTTP request by default. To make an
375
+ asynchronous HTTP request, please pass async_req=True
376
+ >>> thread = api.count_by_device_profile_and_empty_ota_package_using_get(ota_package_type, device_profile_id, async_req=True)
377
+ >>> result = thread.get()
378
+
379
+ :param async_req bool
380
+ :param str ota_package_type: OTA package type (required)
381
+ :param str device_profile_id: Device Profile Id. I.g. '784f394c-42b6-435a-983c-b7beff2784f9' (required)
382
+ :return: int
383
+ If the method is called asynchronously,
384
+ returns the request thread.
385
+ """
386
+ kwargs['_return_http_data_only'] = True
387
+ if kwargs.get('async_req'):
388
+ return self.count_by_device_profile_and_empty_ota_package_using_get_with_http_info(ota_package_type, device_profile_id, **kwargs) # noqa: E501
389
+ else:
390
+ (data) = self.count_by_device_profile_and_empty_ota_package_using_get_with_http_info(ota_package_type, device_profile_id, **kwargs) # noqa: E501
391
+ return data
392
+
393
+ def count_by_device_profile_and_empty_ota_package_using_get_with_http_info(self, ota_package_type, device_profile_id, **kwargs): # noqa: E501
394
+ """Count devices by device profile (countByDeviceProfileAndEmptyOtaPackage) # noqa: E501
395
+
396
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
397
+ This method makes a synchronous HTTP request by default. To make an
398
+ asynchronous HTTP request, please pass async_req=True
399
+ >>> thread = api.count_by_device_profile_and_empty_ota_package_using_get_with_http_info(ota_package_type, device_profile_id, async_req=True)
400
+ >>> result = thread.get()
401
+
402
+ :param async_req bool
403
+ :param str ota_package_type: OTA package type (required)
404
+ :param str device_profile_id: Device Profile Id. I.g. '784f394c-42b6-435a-983c-b7beff2784f9' (required)
405
+ :return: int
406
+ If the method is called asynchronously,
407
+ returns the request thread.
408
+ """
409
+
410
+ all_params = ['ota_package_type', 'device_profile_id'] # noqa: E501
411
+ all_params.append('async_req')
412
+ all_params.append('_return_http_data_only')
413
+ all_params.append('_preload_content')
414
+ all_params.append('_request_timeout')
415
+
416
+ params = locals()
417
+ for key, val in six.iteritems(params['kwargs']):
418
+ if key not in all_params:
419
+ raise TypeError(
420
+ "Got an unexpected keyword argument '%s'"
421
+ " to method count_by_device_profile_and_empty_ota_package_using_get" % key
422
+ )
423
+ params[key] = val
424
+ del params['kwargs']
425
+ # verify the required parameter 'ota_package_type' is set
426
+ if ('ota_package_type' not in params or
427
+ params['ota_package_type'] is None):
428
+ raise ValueError("Missing the required parameter `ota_package_type` when calling `count_by_device_profile_and_empty_ota_package_using_get`") # noqa: E501
429
+ # verify the required parameter 'device_profile_id' is set
430
+ if ('device_profile_id' not in params or
431
+ params['device_profile_id'] is None):
432
+ raise ValueError("Missing the required parameter `device_profile_id` when calling `count_by_device_profile_and_empty_ota_package_using_get`") # noqa: E501
433
+
434
+ collection_formats = {}
435
+
436
+ path_params = {}
437
+ if 'ota_package_type' in params:
438
+ path_params['otaPackageType'] = params['ota_package_type'] # noqa: E501
439
+ if 'device_profile_id' in params:
440
+ path_params['deviceProfileId'] = params['device_profile_id'] # noqa: E501
441
+
442
+ query_params = []
443
+
444
+ header_params = {}
445
+
446
+ form_params = []
447
+ local_var_files = {}
448
+
449
+ body_params = None
450
+ # HTTP header `Accept`
451
+ header_params['Accept'] = self.api_client.select_header_accept(
452
+ ['application/json']) # noqa: E501
453
+
454
+ # Authentication setting
455
+ auth_settings = ['X-Authorization'] # noqa: E501
456
+
457
+ return self.api_client.call_api(
458
+ '/api/devices/count/{otaPackageType}/{deviceProfileId}', 'GET',
459
+ path_params,
460
+ query_params,
461
+ header_params,
462
+ body=body_params,
463
+ post_params=form_params,
464
+ files=local_var_files,
465
+ response_type='int', # noqa: E501
466
+ auth_settings=auth_settings,
467
+ async_req=params.get('async_req'),
468
+ _return_http_data_only=params.get('_return_http_data_only'),
469
+ _preload_content=params.get('_preload_content', True),
470
+ _request_timeout=params.get('_request_timeout'),
471
+ collection_formats=collection_formats)
472
+
473
+ def delete_device_using_delete(self, device_id, **kwargs): # noqa: E501
474
+ """Delete device (deleteDevice) # noqa: E501
475
+
476
+ 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' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'DELETE' permission for the entity (entities). # noqa: E501
477
+ This method makes a synchronous HTTP request by default. To make an
478
+ asynchronous HTTP request, please pass async_req=True
479
+ >>> thread = api.delete_device_using_delete(device_id, async_req=True)
480
+ >>> result = thread.get()
481
+
482
+ :param async_req bool
483
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
484
+ :return: None
485
+ If the method is called asynchronously,
486
+ returns the request thread.
487
+ """
488
+ kwargs['_return_http_data_only'] = True
489
+ if kwargs.get('async_req'):
490
+ return self.delete_device_using_delete_with_http_info(device_id, **kwargs) # noqa: E501
491
+ else:
492
+ (data) = self.delete_device_using_delete_with_http_info(device_id, **kwargs) # noqa: E501
493
+ return data
494
+
495
+ def delete_device_using_delete_with_http_info(self, device_id, **kwargs): # noqa: E501
496
+ """Delete device (deleteDevice) # noqa: E501
497
+
498
+ 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' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'DELETE' permission for the entity (entities). # noqa: E501
499
+ This method makes a synchronous HTTP request by default. To make an
500
+ asynchronous HTTP request, please pass async_req=True
501
+ >>> thread = api.delete_device_using_delete_with_http_info(device_id, async_req=True)
502
+ >>> result = thread.get()
503
+
504
+ :param async_req bool
505
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
506
+ :return: None
507
+ If the method is called asynchronously,
508
+ returns the request thread.
509
+ """
510
+
511
+ all_params = ['device_id'] # noqa: E501
512
+ all_params.append('async_req')
513
+ all_params.append('_return_http_data_only')
514
+ all_params.append('_preload_content')
515
+ all_params.append('_request_timeout')
516
+
517
+ params = locals()
518
+ for key, val in six.iteritems(params['kwargs']):
519
+ if key not in all_params:
520
+ raise TypeError(
521
+ "Got an unexpected keyword argument '%s'"
522
+ " to method delete_device_using_delete" % key
523
+ )
524
+ params[key] = val
525
+ del params['kwargs']
526
+ # verify the required parameter 'device_id' is set
527
+ if ('device_id' not in params or
528
+ params['device_id'] is None):
529
+ raise ValueError("Missing the required parameter `device_id` when calling `delete_device_using_delete`") # noqa: E501
530
+
531
+ collection_formats = {}
532
+
533
+ path_params = {}
534
+ if 'device_id' in params:
535
+ path_params['deviceId'] = params['device_id'] # noqa: E501
536
+
537
+ query_params = []
538
+
539
+ header_params = {}
540
+
541
+ form_params = []
542
+ local_var_files = {}
543
+
544
+ body_params = None
545
+ # HTTP header `Accept`
546
+ header_params['Accept'] = self.api_client.select_header_accept(
547
+ ['application/json']) # noqa: E501
548
+
549
+ # Authentication setting
550
+ auth_settings = ['X-Authorization'] # noqa: E501
551
+
552
+ return self.api_client.call_api(
553
+ '/api/device/{deviceId}', 'DELETE',
554
+ path_params,
555
+ query_params,
556
+ header_params,
557
+ body=body_params,
558
+ post_params=form_params,
559
+ files=local_var_files,
560
+ response_type=None, # noqa: E501
561
+ auth_settings=auth_settings,
562
+ async_req=params.get('async_req'),
563
+ _return_http_data_only=params.get('_return_http_data_only'),
564
+ _preload_content=params.get('_preload_content', True),
565
+ _request_timeout=params.get('_request_timeout'),
566
+ collection_formats=collection_formats)
567
+
568
+ def find_by_query_using_post1(self, **kwargs): # noqa: E501
569
+ """Find related devices (findByQuery) # noqa: E501
570
+
571
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
572
+ This method makes a synchronous HTTP request by default. To make an
573
+ asynchronous HTTP request, please pass async_req=True
574
+ >>> thread = api.find_by_query_using_post1(async_req=True)
575
+ >>> result = thread.get()
576
+
577
+ :param async_req bool
578
+ :param DeviceSearchQuery body:
579
+ :return: list[Device]
580
+ If the method is called asynchronously,
581
+ returns the request thread.
582
+ """
583
+ kwargs['_return_http_data_only'] = True
584
+ if kwargs.get('async_req'):
585
+ return self.find_by_query_using_post1_with_http_info(**kwargs) # noqa: E501
586
+ else:
587
+ (data) = self.find_by_query_using_post1_with_http_info(**kwargs) # noqa: E501
588
+ return data
589
+
590
+ def find_by_query_using_post1_with_http_info(self, **kwargs): # noqa: E501
591
+ """Find related devices (findByQuery) # noqa: E501
592
+
593
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
594
+ This method makes a synchronous HTTP request by default. To make an
595
+ asynchronous HTTP request, please pass async_req=True
596
+ >>> thread = api.find_by_query_using_post1_with_http_info(async_req=True)
597
+ >>> result = thread.get()
598
+
599
+ :param async_req bool
600
+ :param DeviceSearchQuery body:
601
+ :return: list[Device]
602
+ If the method is called asynchronously,
603
+ returns the request thread.
604
+ """
605
+
606
+ all_params = ['body'] # noqa: E501
607
+ all_params.append('async_req')
608
+ all_params.append('_return_http_data_only')
609
+ all_params.append('_preload_content')
610
+ all_params.append('_request_timeout')
611
+
612
+ params = locals()
613
+ for key, val in six.iteritems(params['kwargs']):
614
+ if key not in all_params:
615
+ raise TypeError(
616
+ "Got an unexpected keyword argument '%s'"
617
+ " to method find_by_query_using_post1" % key
618
+ )
619
+ params[key] = val
620
+ del params['kwargs']
621
+
622
+ collection_formats = {}
623
+
624
+ path_params = {}
625
+
626
+ query_params = []
627
+
628
+ header_params = {}
629
+
630
+ form_params = []
631
+ local_var_files = {}
632
+
633
+ body_params = None
634
+ if 'body' in params:
635
+ body_params = params['body']
636
+ # HTTP header `Accept`
637
+ header_params['Accept'] = self.api_client.select_header_accept(
638
+ ['application/json']) # noqa: E501
639
+
640
+ # HTTP header `Content-Type`
641
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
642
+ ['application/json']) # noqa: E501
643
+
644
+ # Authentication setting
645
+ auth_settings = ['X-Authorization'] # noqa: E501
646
+
647
+ return self.api_client.call_api(
648
+ '/api/devices', 'POST',
649
+ path_params,
650
+ query_params,
651
+ header_params,
652
+ body=body_params,
653
+ post_params=form_params,
654
+ files=local_var_files,
655
+ response_type='list[Device]', # noqa: E501
656
+ auth_settings=auth_settings,
657
+ async_req=params.get('async_req'),
658
+ _return_http_data_only=params.get('_return_http_data_only'),
659
+ _preload_content=params.get('_preload_content', True),
660
+ _request_timeout=params.get('_request_timeout'),
661
+ collection_formats=collection_formats)
662
+
663
+ def get_all_device_infos_using_get(self, page_size, page, **kwargs): # noqa: E501
664
+ """Get All Device Infos for current user (getAllDeviceInfos) # noqa: E501
665
+
666
+ Returns a page of device info objects owned by the tenant or the customer of a current user. Device Info is an extension of the default Device object that contains information about the owner name. 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
667
+ This method makes a synchronous HTTP request by default. To make an
668
+ asynchronous HTTP request, please pass async_req=True
669
+ >>> thread = api.get_all_device_infos_using_get(page_size, page, async_req=True)
670
+ >>> result = thread.get()
671
+
672
+ :param async_req bool
673
+ :param int page_size: Maximum amount of entities in a one page (required)
674
+ :param int page: Sequence number of page starting from 0 (required)
675
+ :param bool include_customers: Include customer or sub-customer entities
676
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
677
+ :param bool active: A boolean value representing the device active flag.
678
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
679
+ :param str sort_property: Property of entity to sort by
680
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
681
+ :return: PageDataDeviceInfo
682
+ If the method is called asynchronously,
683
+ returns the request thread.
684
+ """
685
+ kwargs['_return_http_data_only'] = True
686
+ if kwargs.get('async_req'):
687
+ return self.get_all_device_infos_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
688
+ else:
689
+ (data) = self.get_all_device_infos_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
690
+ return data
691
+
692
+ def get_all_device_infos_using_get_with_http_info(self, page_size, page, **kwargs): # noqa: E501
693
+ """Get All Device Infos for current user (getAllDeviceInfos) # noqa: E501
694
+
695
+ Returns a page of device info objects owned by the tenant or the customer of a current user. Device Info is an extension of the default Device object that contains information about the owner name. 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
696
+ This method makes a synchronous HTTP request by default. To make an
697
+ asynchronous HTTP request, please pass async_req=True
698
+ >>> thread = api.get_all_device_infos_using_get_with_http_info(page_size, page, async_req=True)
699
+ >>> result = thread.get()
700
+
701
+ :param async_req bool
702
+ :param int page_size: Maximum amount of entities in a one page (required)
703
+ :param int page: Sequence number of page starting from 0 (required)
704
+ :param bool include_customers: Include customer or sub-customer entities
705
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
706
+ :param bool active: A boolean value representing the device active flag.
707
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
708
+ :param str sort_property: Property of entity to sort by
709
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
710
+ :return: PageDataDeviceInfo
711
+ If the method is called asynchronously,
712
+ returns the request thread.
713
+ """
714
+
715
+ all_params = ['page_size', 'page', 'include_customers', 'device_profile_id', 'active', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
716
+ all_params.append('async_req')
717
+ all_params.append('_return_http_data_only')
718
+ all_params.append('_preload_content')
719
+ all_params.append('_request_timeout')
720
+
721
+ params = locals()
722
+ for key, val in six.iteritems(params['kwargs']):
723
+ if key not in all_params:
724
+ raise TypeError(
725
+ "Got an unexpected keyword argument '%s'"
726
+ " to method get_all_device_infos_using_get" % key
727
+ )
728
+ params[key] = val
729
+ del params['kwargs']
730
+ # verify the required parameter 'page_size' is set
731
+ if ('page_size' not in params or
732
+ params['page_size'] is None):
733
+ raise ValueError("Missing the required parameter `page_size` when calling `get_all_device_infos_using_get`") # noqa: E501
734
+ # verify the required parameter 'page' is set
735
+ if ('page' not in params or
736
+ params['page'] is None):
737
+ raise ValueError("Missing the required parameter `page` when calling `get_all_device_infos_using_get`") # noqa: E501
738
+
739
+ collection_formats = {}
740
+
741
+ path_params = {}
742
+
743
+ query_params = []
744
+ if 'page_size' in params:
745
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
746
+ if 'page' in params:
747
+ query_params.append(('page', params['page'])) # noqa: E501
748
+ if 'include_customers' in params:
749
+ query_params.append(('includeCustomers', params['include_customers'])) # noqa: E501
750
+ if 'device_profile_id' in params:
751
+ query_params.append(('deviceProfileId', params['device_profile_id'])) # noqa: E501
752
+ if 'active' in params:
753
+ query_params.append(('active', params['active'])) # noqa: E501
754
+ if 'text_search' in params:
755
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
756
+ if 'sort_property' in params:
757
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
758
+ if 'sort_order' in params:
759
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
760
+
761
+ header_params = {}
762
+
763
+ form_params = []
764
+ local_var_files = {}
765
+
766
+ body_params = None
767
+ # HTTP header `Accept`
768
+ header_params['Accept'] = self.api_client.select_header_accept(
769
+ ['application/json']) # noqa: E501
770
+
771
+ # Authentication setting
772
+ auth_settings = ['X-Authorization'] # noqa: E501
773
+
774
+ return self.api_client.call_api(
775
+ '/api/deviceInfos/all{?active,deviceProfileId,includeCustomers,page,pageSize,sortOrder,sortProperty,textSearch}', 'GET',
776
+ path_params,
777
+ query_params,
778
+ header_params,
779
+ body=body_params,
780
+ post_params=form_params,
781
+ files=local_var_files,
782
+ response_type='PageDataDeviceInfo', # noqa: E501
783
+ auth_settings=auth_settings,
784
+ async_req=params.get('async_req'),
785
+ _return_http_data_only=params.get('_return_http_data_only'),
786
+ _preload_content=params.get('_preload_content', True),
787
+ _request_timeout=params.get('_request_timeout'),
788
+ collection_formats=collection_formats)
789
+
790
+ def get_customer_device_infos_using_get(self, customer_id, page_size, page, **kwargs): # noqa: E501
791
+ """Get Customer Device Infos (getCustomerDeviceInfos) # noqa: E501
792
+
793
+ Returns a page of device info objects owned by the specified customer. Device Info is an extension of the default Device object that contains information about the owner name. 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
794
+ This method makes a synchronous HTTP request by default. To make an
795
+ asynchronous HTTP request, please pass async_req=True
796
+ >>> thread = api.get_customer_device_infos_using_get(customer_id, page_size, page, async_req=True)
797
+ >>> result = thread.get()
798
+
799
+ :param async_req bool
800
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
801
+ :param int page_size: Maximum amount of entities in a one page (required)
802
+ :param int page: Sequence number of page starting from 0 (required)
803
+ :param bool include_customers: Include customer or sub-customer entities
804
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
805
+ :param bool active: A boolean value representing the device active flag.
806
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
807
+ :param str sort_property: Property of entity to sort by
808
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
809
+ :return: PageDataDeviceInfo
810
+ If the method is called asynchronously,
811
+ returns the request thread.
812
+ """
813
+ kwargs['_return_http_data_only'] = True
814
+ if kwargs.get('async_req'):
815
+ return self.get_customer_device_infos_using_get_with_http_info(customer_id, page_size, page, **kwargs) # noqa: E501
816
+ else:
817
+ (data) = self.get_customer_device_infos_using_get_with_http_info(customer_id, page_size, page, **kwargs) # noqa: E501
818
+ return data
819
+
820
+ def get_customer_device_infos_using_get_with_http_info(self, customer_id, page_size, page, **kwargs): # noqa: E501
821
+ """Get Customer Device Infos (getCustomerDeviceInfos) # noqa: E501
822
+
823
+ Returns a page of device info objects owned by the specified customer. Device Info is an extension of the default Device object that contains information about the owner name. 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
824
+ This method makes a synchronous HTTP request by default. To make an
825
+ asynchronous HTTP request, please pass async_req=True
826
+ >>> thread = api.get_customer_device_infos_using_get_with_http_info(customer_id, page_size, page, async_req=True)
827
+ >>> result = thread.get()
828
+
829
+ :param async_req bool
830
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
831
+ :param int page_size: Maximum amount of entities in a one page (required)
832
+ :param int page: Sequence number of page starting from 0 (required)
833
+ :param bool include_customers: Include customer or sub-customer entities
834
+ :param str device_profile_id: A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
835
+ :param bool active: A boolean value representing the device active flag.
836
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
837
+ :param str sort_property: Property of entity to sort by
838
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
839
+ :return: PageDataDeviceInfo
840
+ If the method is called asynchronously,
841
+ returns the request thread.
842
+ """
843
+
844
+ all_params = ['customer_id', 'page_size', 'page', 'include_customers', 'device_profile_id', 'active', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
845
+ all_params.append('async_req')
846
+ all_params.append('_return_http_data_only')
847
+ all_params.append('_preload_content')
848
+ all_params.append('_request_timeout')
849
+
850
+ params = locals()
851
+ for key, val in six.iteritems(params['kwargs']):
852
+ if key not in all_params:
853
+ raise TypeError(
854
+ "Got an unexpected keyword argument '%s'"
855
+ " to method get_customer_device_infos_using_get" % key
856
+ )
857
+ params[key] = val
858
+ del params['kwargs']
859
+ # verify the required parameter 'customer_id' is set
860
+ if ('customer_id' not in params or
861
+ params['customer_id'] is None):
862
+ raise ValueError("Missing the required parameter `customer_id` when calling `get_customer_device_infos_using_get`") # noqa: E501
863
+ # verify the required parameter 'page_size' is set
864
+ if ('page_size' not in params or
865
+ params['page_size'] is None):
866
+ raise ValueError("Missing the required parameter `page_size` when calling `get_customer_device_infos_using_get`") # noqa: E501
867
+ # verify the required parameter 'page' is set
868
+ if ('page' not in params or
869
+ params['page'] is None):
870
+ raise ValueError("Missing the required parameter `page` when calling `get_customer_device_infos_using_get`") # noqa: E501
871
+
872
+ collection_formats = {}
873
+
874
+ path_params = {}
875
+ if 'customer_id' in params:
876
+ path_params['customerId'] = params['customer_id'] # noqa: E501
877
+
878
+ query_params = []
879
+ if 'page_size' in params:
880
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
881
+ if 'page' in params:
882
+ query_params.append(('page', params['page'])) # noqa: E501
883
+ if 'include_customers' in params:
884
+ query_params.append(('includeCustomers', params['include_customers'])) # noqa: E501
885
+ if 'device_profile_id' in params:
886
+ query_params.append(('deviceProfileId', params['device_profile_id'])) # noqa: E501
887
+ if 'active' in params:
888
+ query_params.append(('active', params['active'])) # noqa: E501
889
+ if 'text_search' in params:
890
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
891
+ if 'sort_property' in params:
892
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
893
+ if 'sort_order' in params:
894
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
895
+
896
+ header_params = {}
897
+
898
+ form_params = []
899
+ local_var_files = {}
900
+
901
+ body_params = None
902
+ # HTTP header `Accept`
903
+ header_params['Accept'] = self.api_client.select_header_accept(
904
+ ['application/json']) # noqa: E501
905
+
906
+ # Authentication setting
907
+ auth_settings = ['X-Authorization'] # noqa: E501
908
+
909
+ return self.api_client.call_api(
910
+ '/api/customer/{customerId}/deviceInfos{?active,deviceProfileId,includeCustomers,page,pageSize,sortOrder,sortProperty,textSearch}', 'GET',
911
+ path_params,
912
+ query_params,
913
+ header_params,
914
+ body=body_params,
915
+ post_params=form_params,
916
+ files=local_var_files,
917
+ response_type='PageDataDeviceInfo', # noqa: E501
918
+ auth_settings=auth_settings,
919
+ async_req=params.get('async_req'),
920
+ _return_http_data_only=params.get('_return_http_data_only'),
921
+ _preload_content=params.get('_preload_content', True),
922
+ _request_timeout=params.get('_request_timeout'),
923
+ collection_formats=collection_formats)
924
+
925
+ def get_customer_devices_using_get(self, customer_id, page_size, page, **kwargs): # noqa: E501
926
+ """Get Customer Devices (getCustomerDevices) # noqa: E501
927
+
928
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
929
+ This method makes a synchronous HTTP request by default. To make an
930
+ asynchronous HTTP request, please pass async_req=True
931
+ >>> thread = api.get_customer_devices_using_get(customer_id, page_size, page, async_req=True)
932
+ >>> result = thread.get()
933
+
934
+ :param async_req bool
935
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
936
+ :param int page_size: Maximum amount of entities in a one page (required)
937
+ :param int page: Sequence number of page starting from 0 (required)
938
+ :param str type: Device type as the name of the device profile
939
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
940
+ :param str sort_property: Property of entity to sort by
941
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
942
+ :return: PageDataDevice
943
+ If the method is called asynchronously,
944
+ returns the request thread.
945
+ """
946
+ kwargs['_return_http_data_only'] = True
947
+ if kwargs.get('async_req'):
948
+ return self.get_customer_devices_using_get_with_http_info(customer_id, page_size, page, **kwargs) # noqa: E501
949
+ else:
950
+ (data) = self.get_customer_devices_using_get_with_http_info(customer_id, page_size, page, **kwargs) # noqa: E501
951
+ return data
952
+
953
+ def get_customer_devices_using_get_with_http_info(self, customer_id, page_size, page, **kwargs): # noqa: E501
954
+ """Get Customer Devices (getCustomerDevices) # noqa: E501
955
+
956
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
957
+ This method makes a synchronous HTTP request by default. To make an
958
+ asynchronous HTTP request, please pass async_req=True
959
+ >>> thread = api.get_customer_devices_using_get_with_http_info(customer_id, page_size, page, async_req=True)
960
+ >>> result = thread.get()
961
+
962
+ :param async_req bool
963
+ :param str customer_id: A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
964
+ :param int page_size: Maximum amount of entities in a one page (required)
965
+ :param int page: Sequence number of page starting from 0 (required)
966
+ :param str type: Device type as the name of the device profile
967
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
968
+ :param str sort_property: Property of entity to sort by
969
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
970
+ :return: PageDataDevice
971
+ If the method is called asynchronously,
972
+ returns the request thread.
973
+ """
974
+
975
+ all_params = ['customer_id', 'page_size', 'page', 'type', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
976
+ all_params.append('async_req')
977
+ all_params.append('_return_http_data_only')
978
+ all_params.append('_preload_content')
979
+ all_params.append('_request_timeout')
980
+
981
+ params = locals()
982
+ for key, val in six.iteritems(params['kwargs']):
983
+ if key not in all_params:
984
+ raise TypeError(
985
+ "Got an unexpected keyword argument '%s'"
986
+ " to method get_customer_devices_using_get" % key
987
+ )
988
+ params[key] = val
989
+ del params['kwargs']
990
+ # verify the required parameter 'customer_id' is set
991
+ if ('customer_id' not in params or
992
+ params['customer_id'] is None):
993
+ raise ValueError("Missing the required parameter `customer_id` when calling `get_customer_devices_using_get`") # noqa: E501
994
+ # verify the required parameter 'page_size' is set
995
+ if ('page_size' not in params or
996
+ params['page_size'] is None):
997
+ raise ValueError("Missing the required parameter `page_size` when calling `get_customer_devices_using_get`") # noqa: E501
998
+ # verify the required parameter 'page' is set
999
+ if ('page' not in params or
1000
+ params['page'] is None):
1001
+ raise ValueError("Missing the required parameter `page` when calling `get_customer_devices_using_get`") # noqa: E501
1002
+
1003
+ collection_formats = {}
1004
+
1005
+ path_params = {}
1006
+ if 'customer_id' in params:
1007
+ path_params['customerId'] = params['customer_id'] # noqa: E501
1008
+
1009
+ query_params = []
1010
+ if 'page_size' in params:
1011
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
1012
+ if 'page' in params:
1013
+ query_params.append(('page', params['page'])) # noqa: E501
1014
+ if 'type' in params:
1015
+ query_params.append(('type', params['type'])) # noqa: E501
1016
+ if 'text_search' in params:
1017
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
1018
+ if 'sort_property' in params:
1019
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
1020
+ if 'sort_order' in params:
1021
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
1022
+
1023
+ header_params = {}
1024
+
1025
+ form_params = []
1026
+ local_var_files = {}
1027
+
1028
+ body_params = None
1029
+ # HTTP header `Accept`
1030
+ header_params['Accept'] = self.api_client.select_header_accept(
1031
+ ['application/json']) # noqa: E501
1032
+
1033
+ # Authentication setting
1034
+ auth_settings = ['X-Authorization'] # noqa: E501
1035
+
1036
+ return self.api_client.call_api(
1037
+ '/api/customer/{customerId}/devices{?page,pageSize,sortOrder,sortProperty,textSearch,type}', 'GET',
1038
+ path_params,
1039
+ query_params,
1040
+ header_params,
1041
+ body=body_params,
1042
+ post_params=form_params,
1043
+ files=local_var_files,
1044
+ response_type='PageDataDevice', # noqa: E501
1045
+ auth_settings=auth_settings,
1046
+ async_req=params.get('async_req'),
1047
+ _return_http_data_only=params.get('_return_http_data_only'),
1048
+ _preload_content=params.get('_preload_content', True),
1049
+ _request_timeout=params.get('_request_timeout'),
1050
+ collection_formats=collection_formats)
1051
+
1052
+ def get_device_by_id_using_get(self, device_id, **kwargs): # noqa: E501
1053
+ """Get Device (getDeviceById) # noqa: E501
1054
+
1055
+ Fetch the Device object based on the provided Device Id. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1056
+ This method makes a synchronous HTTP request by default. To make an
1057
+ asynchronous HTTP request, please pass async_req=True
1058
+ >>> thread = api.get_device_by_id_using_get(device_id, async_req=True)
1059
+ >>> result = thread.get()
1060
+
1061
+ :param async_req bool
1062
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1063
+ :return: Device
1064
+ If the method is called asynchronously,
1065
+ returns the request thread.
1066
+ """
1067
+ kwargs['_return_http_data_only'] = True
1068
+ if kwargs.get('async_req'):
1069
+ return self.get_device_by_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1070
+ else:
1071
+ (data) = self.get_device_by_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1072
+ return data
1073
+
1074
+ def get_device_by_id_using_get_with_http_info(self, device_id, **kwargs): # noqa: E501
1075
+ """Get Device (getDeviceById) # noqa: E501
1076
+
1077
+ Fetch the Device object based on the provided Device Id. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1078
+ This method makes a synchronous HTTP request by default. To make an
1079
+ asynchronous HTTP request, please pass async_req=True
1080
+ >>> thread = api.get_device_by_id_using_get_with_http_info(device_id, async_req=True)
1081
+ >>> result = thread.get()
1082
+
1083
+ :param async_req bool
1084
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1085
+ :return: Device
1086
+ If the method is called asynchronously,
1087
+ returns the request thread.
1088
+ """
1089
+
1090
+ all_params = ['device_id'] # noqa: E501
1091
+ all_params.append('async_req')
1092
+ all_params.append('_return_http_data_only')
1093
+ all_params.append('_preload_content')
1094
+ all_params.append('_request_timeout')
1095
+
1096
+ params = locals()
1097
+ for key, val in six.iteritems(params['kwargs']):
1098
+ if key not in all_params:
1099
+ raise TypeError(
1100
+ "Got an unexpected keyword argument '%s'"
1101
+ " to method get_device_by_id_using_get" % key
1102
+ )
1103
+ params[key] = val
1104
+ del params['kwargs']
1105
+ # verify the required parameter 'device_id' is set
1106
+ if ('device_id' not in params or
1107
+ params['device_id'] is None):
1108
+ raise ValueError("Missing the required parameter `device_id` when calling `get_device_by_id_using_get`") # noqa: E501
1109
+
1110
+ collection_formats = {}
1111
+
1112
+ path_params = {}
1113
+ if 'device_id' in params:
1114
+ path_params['deviceId'] = params['device_id'] # noqa: E501
1115
+
1116
+ query_params = []
1117
+
1118
+ header_params = {}
1119
+
1120
+ form_params = []
1121
+ local_var_files = {}
1122
+
1123
+ body_params = None
1124
+ # HTTP header `Accept`
1125
+ header_params['Accept'] = self.api_client.select_header_accept(
1126
+ ['application/json']) # noqa: E501
1127
+
1128
+ # Authentication setting
1129
+ auth_settings = ['X-Authorization'] # noqa: E501
1130
+
1131
+ return self.api_client.call_api(
1132
+ '/api/device/{deviceId}', 'GET',
1133
+ path_params,
1134
+ query_params,
1135
+ header_params,
1136
+ body=body_params,
1137
+ post_params=form_params,
1138
+ files=local_var_files,
1139
+ response_type='Device', # noqa: E501
1140
+ auth_settings=auth_settings,
1141
+ async_req=params.get('async_req'),
1142
+ _return_http_data_only=params.get('_return_http_data_only'),
1143
+ _preload_content=params.get('_preload_content', True),
1144
+ _request_timeout=params.get('_request_timeout'),
1145
+ collection_formats=collection_formats)
1146
+
1147
+ def get_device_credentials_by_device_id_using_get(self, device_id, **kwargs): # noqa: E501
1148
+ """Get Device Credentials (getDeviceCredentialsByDeviceId) # noqa: E501
1149
+
1150
+ 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. Security check is performed to verify that the user has 'READ_CREDENTIALS' permission for the entity (entities). # noqa: E501
1151
+ This method makes a synchronous HTTP request by default. To make an
1152
+ asynchronous HTTP request, please pass async_req=True
1153
+ >>> thread = api.get_device_credentials_by_device_id_using_get(device_id, async_req=True)
1154
+ >>> result = thread.get()
1155
+
1156
+ :param async_req bool
1157
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1158
+ :return: DeviceCredentials
1159
+ If the method is called asynchronously,
1160
+ returns the request thread.
1161
+ """
1162
+ kwargs['_return_http_data_only'] = True
1163
+ if kwargs.get('async_req'):
1164
+ return self.get_device_credentials_by_device_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1165
+ else:
1166
+ (data) = self.get_device_credentials_by_device_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1167
+ return data
1168
+
1169
+ def get_device_credentials_by_device_id_using_get_with_http_info(self, device_id, **kwargs): # noqa: E501
1170
+ """Get Device Credentials (getDeviceCredentialsByDeviceId) # noqa: E501
1171
+
1172
+ 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. Security check is performed to verify that the user has 'READ_CREDENTIALS' permission for the entity (entities). # noqa: E501
1173
+ This method makes a synchronous HTTP request by default. To make an
1174
+ asynchronous HTTP request, please pass async_req=True
1175
+ >>> thread = api.get_device_credentials_by_device_id_using_get_with_http_info(device_id, async_req=True)
1176
+ >>> result = thread.get()
1177
+
1178
+ :param async_req bool
1179
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1180
+ :return: DeviceCredentials
1181
+ If the method is called asynchronously,
1182
+ returns the request thread.
1183
+ """
1184
+
1185
+ all_params = ['device_id'] # noqa: E501
1186
+ all_params.append('async_req')
1187
+ all_params.append('_return_http_data_only')
1188
+ all_params.append('_preload_content')
1189
+ all_params.append('_request_timeout')
1190
+
1191
+ params = locals()
1192
+ for key, val in six.iteritems(params['kwargs']):
1193
+ if key not in all_params:
1194
+ raise TypeError(
1195
+ "Got an unexpected keyword argument '%s'"
1196
+ " to method get_device_credentials_by_device_id_using_get" % key
1197
+ )
1198
+ params[key] = val
1199
+ del params['kwargs']
1200
+ # verify the required parameter 'device_id' is set
1201
+ if ('device_id' not in params or
1202
+ params['device_id'] is None):
1203
+ raise ValueError("Missing the required parameter `device_id` when calling `get_device_credentials_by_device_id_using_get`") # noqa: E501
1204
+
1205
+ collection_formats = {}
1206
+
1207
+ path_params = {}
1208
+ if 'device_id' in params:
1209
+ path_params['deviceId'] = params['device_id'] # noqa: E501
1210
+
1211
+ query_params = []
1212
+
1213
+ header_params = {}
1214
+
1215
+ form_params = []
1216
+ local_var_files = {}
1217
+
1218
+ body_params = None
1219
+ # HTTP header `Accept`
1220
+ header_params['Accept'] = self.api_client.select_header_accept(
1221
+ ['application/json']) # noqa: E501
1222
+
1223
+ # Authentication setting
1224
+ auth_settings = ['X-Authorization'] # noqa: E501
1225
+
1226
+ return self.api_client.call_api(
1227
+ '/api/device/{deviceId}/credentials', 'GET',
1228
+ path_params,
1229
+ query_params,
1230
+ header_params,
1231
+ body=body_params,
1232
+ post_params=form_params,
1233
+ files=local_var_files,
1234
+ response_type='DeviceCredentials', # noqa: E501
1235
+ auth_settings=auth_settings,
1236
+ async_req=params.get('async_req'),
1237
+ _return_http_data_only=params.get('_return_http_data_only'),
1238
+ _preload_content=params.get('_preload_content', True),
1239
+ _request_timeout=params.get('_request_timeout'),
1240
+ collection_formats=collection_formats)
1241
+
1242
+ def get_device_info_by_id_using_get(self, device_id, **kwargs): # noqa: E501
1243
+ """Get Device (getDeviceInfoById) # noqa: E501
1244
+
1245
+ Fetch the Device info object based on the provided Device Id. Device Info is an extension of the default Device object that contains information about the owner name. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1246
+ This method makes a synchronous HTTP request by default. To make an
1247
+ asynchronous HTTP request, please pass async_req=True
1248
+ >>> thread = api.get_device_info_by_id_using_get(device_id, async_req=True)
1249
+ >>> result = thread.get()
1250
+
1251
+ :param async_req bool
1252
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1253
+ :return: DeviceInfo
1254
+ If the method is called asynchronously,
1255
+ returns the request thread.
1256
+ """
1257
+ kwargs['_return_http_data_only'] = True
1258
+ if kwargs.get('async_req'):
1259
+ return self.get_device_info_by_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1260
+ else:
1261
+ (data) = self.get_device_info_by_id_using_get_with_http_info(device_id, **kwargs) # noqa: E501
1262
+ return data
1263
+
1264
+ def get_device_info_by_id_using_get_with_http_info(self, device_id, **kwargs): # noqa: E501
1265
+ """Get Device (getDeviceInfoById) # noqa: E501
1266
+
1267
+ Fetch the Device info object based on the provided Device Id. Device Info is an extension of the default Device object that contains information about the owner name. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1268
+ This method makes a synchronous HTTP request by default. To make an
1269
+ asynchronous HTTP request, please pass async_req=True
1270
+ >>> thread = api.get_device_info_by_id_using_get_with_http_info(device_id, async_req=True)
1271
+ >>> result = thread.get()
1272
+
1273
+ :param async_req bool
1274
+ :param str device_id: A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1275
+ :return: DeviceInfo
1276
+ If the method is called asynchronously,
1277
+ returns the request thread.
1278
+ """
1279
+
1280
+ all_params = ['device_id'] # noqa: E501
1281
+ all_params.append('async_req')
1282
+ all_params.append('_return_http_data_only')
1283
+ all_params.append('_preload_content')
1284
+ all_params.append('_request_timeout')
1285
+
1286
+ params = locals()
1287
+ for key, val in six.iteritems(params['kwargs']):
1288
+ if key not in all_params:
1289
+ raise TypeError(
1290
+ "Got an unexpected keyword argument '%s'"
1291
+ " to method get_device_info_by_id_using_get" % key
1292
+ )
1293
+ params[key] = val
1294
+ del params['kwargs']
1295
+ # verify the required parameter 'device_id' is set
1296
+ if ('device_id' not in params or
1297
+ params['device_id'] is None):
1298
+ raise ValueError("Missing the required parameter `device_id` when calling `get_device_info_by_id_using_get`") # noqa: E501
1299
+
1300
+ collection_formats = {}
1301
+
1302
+ path_params = {}
1303
+ if 'device_id' in params:
1304
+ path_params['deviceId'] = params['device_id'] # noqa: E501
1305
+
1306
+ query_params = []
1307
+
1308
+ header_params = {}
1309
+
1310
+ form_params = []
1311
+ local_var_files = {}
1312
+
1313
+ body_params = None
1314
+ # HTTP header `Accept`
1315
+ header_params['Accept'] = self.api_client.select_header_accept(
1316
+ ['application/json']) # noqa: E501
1317
+
1318
+ # Authentication setting
1319
+ auth_settings = ['X-Authorization'] # noqa: E501
1320
+
1321
+ return self.api_client.call_api(
1322
+ '/api/device/info/{deviceId}', 'GET',
1323
+ path_params,
1324
+ query_params,
1325
+ header_params,
1326
+ body=body_params,
1327
+ post_params=form_params,
1328
+ files=local_var_files,
1329
+ response_type='DeviceInfo', # noqa: E501
1330
+ auth_settings=auth_settings,
1331
+ async_req=params.get('async_req'),
1332
+ _return_http_data_only=params.get('_return_http_data_only'),
1333
+ _preload_content=params.get('_preload_content', True),
1334
+ _request_timeout=params.get('_request_timeout'),
1335
+ collection_formats=collection_formats)
1336
+
1337
+ def get_device_types_using_get(self, **kwargs): # noqa: E501
1338
+ """Get Device Types (getDeviceTypes) # noqa: E501
1339
+
1340
+ Deprecated. See 'getDeviceProfileNames' API from Device Profile Controller instead. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1341
+ This method makes a synchronous HTTP request by default. To make an
1342
+ asynchronous HTTP request, please pass async_req=True
1343
+ >>> thread = api.get_device_types_using_get(async_req=True)
1344
+ >>> result = thread.get()
1345
+
1346
+ :param async_req bool
1347
+ :return: list[EntitySubtype]
1348
+ If the method is called asynchronously,
1349
+ returns the request thread.
1350
+ """
1351
+ kwargs['_return_http_data_only'] = True
1352
+ if kwargs.get('async_req'):
1353
+ return self.get_device_types_using_get_with_http_info(**kwargs) # noqa: E501
1354
+ else:
1355
+ (data) = self.get_device_types_using_get_with_http_info(**kwargs) # noqa: E501
1356
+ return data
1357
+
1358
+ def get_device_types_using_get_with_http_info(self, **kwargs): # noqa: E501
1359
+ """Get Device Types (getDeviceTypes) # noqa: E501
1360
+
1361
+ Deprecated. See 'getDeviceProfileNames' API from Device Profile Controller instead. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. # noqa: E501
1362
+ This method makes a synchronous HTTP request by default. To make an
1363
+ asynchronous HTTP request, please pass async_req=True
1364
+ >>> thread = api.get_device_types_using_get_with_http_info(async_req=True)
1365
+ >>> result = thread.get()
1366
+
1367
+ :param async_req bool
1368
+ :return: list[EntitySubtype]
1369
+ If the method is called asynchronously,
1370
+ returns the request thread.
1371
+ """
1372
+
1373
+ all_params = [] # noqa: E501
1374
+ all_params.append('async_req')
1375
+ all_params.append('_return_http_data_only')
1376
+ all_params.append('_preload_content')
1377
+ all_params.append('_request_timeout')
1378
+
1379
+ params = locals()
1380
+ for key, val in six.iteritems(params['kwargs']):
1381
+ if key not in all_params:
1382
+ raise TypeError(
1383
+ "Got an unexpected keyword argument '%s'"
1384
+ " to method get_device_types_using_get" % key
1385
+ )
1386
+ params[key] = val
1387
+ del params['kwargs']
1388
+
1389
+ collection_formats = {}
1390
+
1391
+ path_params = {}
1392
+
1393
+ query_params = []
1394
+
1395
+ header_params = {}
1396
+
1397
+ form_params = []
1398
+ local_var_files = {}
1399
+
1400
+ body_params = None
1401
+ # HTTP header `Accept`
1402
+ header_params['Accept'] = self.api_client.select_header_accept(
1403
+ ['application/json']) # noqa: E501
1404
+
1405
+ # Authentication setting
1406
+ auth_settings = ['X-Authorization'] # noqa: E501
1407
+
1408
+ return self.api_client.call_api(
1409
+ '/api/device/types', 'GET',
1410
+ path_params,
1411
+ query_params,
1412
+ header_params,
1413
+ body=body_params,
1414
+ post_params=form_params,
1415
+ files=local_var_files,
1416
+ response_type='list[EntitySubtype]', # noqa: E501
1417
+ auth_settings=auth_settings,
1418
+ async_req=params.get('async_req'),
1419
+ _return_http_data_only=params.get('_return_http_data_only'),
1420
+ _preload_content=params.get('_preload_content', True),
1421
+ _request_timeout=params.get('_request_timeout'),
1422
+ collection_formats=collection_formats)
1423
+
1424
+ def get_devices_by_entity_group_id_using_get(self, entity_group_id, page_size, page, **kwargs): # noqa: E501
1425
+ """Get devices by Entity Group Id (getDevicesByEntityGroupId) # noqa: E501
1426
+
1427
+ Returns a page of Device objects that belongs to specified Entity Group Id. 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. Security check is performed to verify that the user has 'READ' permission for specified group. # noqa: E501
1428
+ This method makes a synchronous HTTP request by default. To make an
1429
+ asynchronous HTTP request, please pass async_req=True
1430
+ >>> thread = api.get_devices_by_entity_group_id_using_get(entity_group_id, page_size, page, async_req=True)
1431
+ >>> result = thread.get()
1432
+
1433
+ :param async_req bool
1434
+ :param str entity_group_id: A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1435
+ :param int page_size: Maximum amount of entities in a one page (required)
1436
+ :param int page: Sequence number of page starting from 0 (required)
1437
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1438
+ :param str sort_property: Property of entity to sort by
1439
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1440
+ :return: PageDataDevice
1441
+ If the method is called asynchronously,
1442
+ returns the request thread.
1443
+ """
1444
+ kwargs['_return_http_data_only'] = True
1445
+ if kwargs.get('async_req'):
1446
+ return self.get_devices_by_entity_group_id_using_get_with_http_info(entity_group_id, page_size, page, **kwargs) # noqa: E501
1447
+ else:
1448
+ (data) = self.get_devices_by_entity_group_id_using_get_with_http_info(entity_group_id, page_size, page, **kwargs) # noqa: E501
1449
+ return data
1450
+
1451
+ def get_devices_by_entity_group_id_using_get_with_http_info(self, entity_group_id, page_size, page, **kwargs): # noqa: E501
1452
+ """Get devices by Entity Group Id (getDevicesByEntityGroupId) # noqa: E501
1453
+
1454
+ Returns a page of Device objects that belongs to specified Entity Group Id. 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. Security check is performed to verify that the user has 'READ' permission for specified group. # noqa: E501
1455
+ This method makes a synchronous HTTP request by default. To make an
1456
+ asynchronous HTTP request, please pass async_req=True
1457
+ >>> thread = api.get_devices_by_entity_group_id_using_get_with_http_info(entity_group_id, page_size, page, async_req=True)
1458
+ >>> result = thread.get()
1459
+
1460
+ :param async_req bool
1461
+ :param str entity_group_id: A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
1462
+ :param int page_size: Maximum amount of entities in a one page (required)
1463
+ :param int page: Sequence number of page starting from 0 (required)
1464
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1465
+ :param str sort_property: Property of entity to sort by
1466
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1467
+ :return: PageDataDevice
1468
+ If the method is called asynchronously,
1469
+ returns the request thread.
1470
+ """
1471
+
1472
+ all_params = ['entity_group_id', 'page_size', 'page', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
1473
+ all_params.append('async_req')
1474
+ all_params.append('_return_http_data_only')
1475
+ all_params.append('_preload_content')
1476
+ all_params.append('_request_timeout')
1477
+
1478
+ params = locals()
1479
+ for key, val in six.iteritems(params['kwargs']):
1480
+ if key not in all_params:
1481
+ raise TypeError(
1482
+ "Got an unexpected keyword argument '%s'"
1483
+ " to method get_devices_by_entity_group_id_using_get" % key
1484
+ )
1485
+ params[key] = val
1486
+ del params['kwargs']
1487
+ # verify the required parameter 'entity_group_id' is set
1488
+ if ('entity_group_id' not in params or
1489
+ params['entity_group_id'] is None):
1490
+ raise ValueError("Missing the required parameter `entity_group_id` when calling `get_devices_by_entity_group_id_using_get`") # noqa: E501
1491
+ # verify the required parameter 'page_size' is set
1492
+ if ('page_size' not in params or
1493
+ params['page_size'] is None):
1494
+ raise ValueError("Missing the required parameter `page_size` when calling `get_devices_by_entity_group_id_using_get`") # noqa: E501
1495
+ # verify the required parameter 'page' is set
1496
+ if ('page' not in params or
1497
+ params['page'] is None):
1498
+ raise ValueError("Missing the required parameter `page` when calling `get_devices_by_entity_group_id_using_get`") # noqa: E501
1499
+
1500
+ collection_formats = {}
1501
+
1502
+ path_params = {}
1503
+ if 'entity_group_id' in params:
1504
+ path_params['entityGroupId'] = params['entity_group_id'] # noqa: E501
1505
+
1506
+ query_params = []
1507
+ if 'page_size' in params:
1508
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
1509
+ if 'page' in params:
1510
+ query_params.append(('page', params['page'])) # noqa: E501
1511
+ if 'text_search' in params:
1512
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
1513
+ if 'sort_property' in params:
1514
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
1515
+ if 'sort_order' in params:
1516
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
1517
+
1518
+ header_params = {}
1519
+
1520
+ form_params = []
1521
+ local_var_files = {}
1522
+
1523
+ body_params = None
1524
+ # HTTP header `Accept`
1525
+ header_params['Accept'] = self.api_client.select_header_accept(
1526
+ ['application/json']) # noqa: E501
1527
+
1528
+ # Authentication setting
1529
+ auth_settings = ['X-Authorization'] # noqa: E501
1530
+
1531
+ return self.api_client.call_api(
1532
+ '/api/entityGroup/{entityGroupId}/devices{?page,pageSize,sortOrder,sortProperty,textSearch}', 'GET',
1533
+ path_params,
1534
+ query_params,
1535
+ header_params,
1536
+ body=body_params,
1537
+ post_params=form_params,
1538
+ files=local_var_files,
1539
+ response_type='PageDataDevice', # noqa: E501
1540
+ auth_settings=auth_settings,
1541
+ async_req=params.get('async_req'),
1542
+ _return_http_data_only=params.get('_return_http_data_only'),
1543
+ _preload_content=params.get('_preload_content', True),
1544
+ _request_timeout=params.get('_request_timeout'),
1545
+ collection_formats=collection_formats)
1546
+
1547
+ def get_devices_by_ids_using_get(self, device_ids, **kwargs): # noqa: E501
1548
+ """Get Devices By Ids (getDevicesByIds) # noqa: E501
1549
+
1550
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1551
+ This method makes a synchronous HTTP request by default. To make an
1552
+ asynchronous HTTP request, please pass async_req=True
1553
+ >>> thread = api.get_devices_by_ids_using_get(device_ids, async_req=True)
1554
+ >>> result = thread.get()
1555
+
1556
+ :param async_req bool
1557
+ :param str device_ids: A list of devices ids, separated by comma ',' (required)
1558
+ :return: list[Device]
1559
+ If the method is called asynchronously,
1560
+ returns the request thread.
1561
+ """
1562
+ kwargs['_return_http_data_only'] = True
1563
+ if kwargs.get('async_req'):
1564
+ return self.get_devices_by_ids_using_get_with_http_info(device_ids, **kwargs) # noqa: E501
1565
+ else:
1566
+ (data) = self.get_devices_by_ids_using_get_with_http_info(device_ids, **kwargs) # noqa: E501
1567
+ return data
1568
+
1569
+ def get_devices_by_ids_using_get_with_http_info(self, device_ids, **kwargs): # noqa: E501
1570
+ """Get Devices By Ids (getDevicesByIds) # noqa: E501
1571
+
1572
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1573
+ This method makes a synchronous HTTP request by default. To make an
1574
+ asynchronous HTTP request, please pass async_req=True
1575
+ >>> thread = api.get_devices_by_ids_using_get_with_http_info(device_ids, async_req=True)
1576
+ >>> result = thread.get()
1577
+
1578
+ :param async_req bool
1579
+ :param str device_ids: A list of devices ids, separated by comma ',' (required)
1580
+ :return: list[Device]
1581
+ If the method is called asynchronously,
1582
+ returns the request thread.
1583
+ """
1584
+
1585
+ all_params = ['device_ids'] # noqa: E501
1586
+ all_params.append('async_req')
1587
+ all_params.append('_return_http_data_only')
1588
+ all_params.append('_preload_content')
1589
+ all_params.append('_request_timeout')
1590
+
1591
+ params = locals()
1592
+ for key, val in six.iteritems(params['kwargs']):
1593
+ if key not in all_params:
1594
+ raise TypeError(
1595
+ "Got an unexpected keyword argument '%s'"
1596
+ " to method get_devices_by_ids_using_get" % key
1597
+ )
1598
+ params[key] = val
1599
+ del params['kwargs']
1600
+ # verify the required parameter 'device_ids' is set
1601
+ if ('device_ids' not in params or
1602
+ params['device_ids'] is None):
1603
+ raise ValueError("Missing the required parameter `device_ids` when calling `get_devices_by_ids_using_get`") # noqa: E501
1604
+
1605
+ collection_formats = {}
1606
+
1607
+ path_params = {}
1608
+
1609
+ query_params = []
1610
+ if 'device_ids' in params:
1611
+ query_params.append(('deviceIds', params['device_ids'])) # noqa: E501
1612
+
1613
+ header_params = {}
1614
+
1615
+ form_params = []
1616
+ local_var_files = {}
1617
+
1618
+ body_params = None
1619
+ # HTTP header `Accept`
1620
+ header_params['Accept'] = self.api_client.select_header_accept(
1621
+ ['application/json']) # noqa: E501
1622
+
1623
+ # Authentication setting
1624
+ auth_settings = ['X-Authorization'] # noqa: E501
1625
+
1626
+ return self.api_client.call_api(
1627
+ '/api/devices{?deviceIds}', 'GET',
1628
+ path_params,
1629
+ query_params,
1630
+ header_params,
1631
+ body=body_params,
1632
+ post_params=form_params,
1633
+ files=local_var_files,
1634
+ response_type='list[Device]', # noqa: E501
1635
+ auth_settings=auth_settings,
1636
+ async_req=params.get('async_req'),
1637
+ _return_http_data_only=params.get('_return_http_data_only'),
1638
+ _preload_content=params.get('_preload_content', True),
1639
+ _request_timeout=params.get('_request_timeout'),
1640
+ collection_formats=collection_formats)
1641
+
1642
+ def get_tenant_device_using_get(self, device_name, **kwargs): # noqa: E501
1643
+ """Get Tenant Device (getTenantDevice) # noqa: E501
1644
+
1645
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1646
+ This method makes a synchronous HTTP request by default. To make an
1647
+ asynchronous HTTP request, please pass async_req=True
1648
+ >>> thread = api.get_tenant_device_using_get(device_name, async_req=True)
1649
+ >>> result = thread.get()
1650
+
1651
+ :param async_req bool
1652
+ :param str device_name: A string value representing the Device name. (required)
1653
+ :return: Device
1654
+ If the method is called asynchronously,
1655
+ returns the request thread.
1656
+ """
1657
+ kwargs['_return_http_data_only'] = True
1658
+ if kwargs.get('async_req'):
1659
+ return self.get_tenant_device_using_get_with_http_info(device_name, **kwargs) # noqa: E501
1660
+ else:
1661
+ (data) = self.get_tenant_device_using_get_with_http_info(device_name, **kwargs) # noqa: E501
1662
+ return data
1663
+
1664
+ def get_tenant_device_using_get_with_http_info(self, device_name, **kwargs): # noqa: E501
1665
+ """Get Tenant Device (getTenantDevice) # noqa: E501
1666
+
1667
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1668
+ This method makes a synchronous HTTP request by default. To make an
1669
+ asynchronous HTTP request, please pass async_req=True
1670
+ >>> thread = api.get_tenant_device_using_get_with_http_info(device_name, async_req=True)
1671
+ >>> result = thread.get()
1672
+
1673
+ :param async_req bool
1674
+ :param str device_name: A string value representing the Device name. (required)
1675
+ :return: Device
1676
+ If the method is called asynchronously,
1677
+ returns the request thread.
1678
+ """
1679
+
1680
+ all_params = ['device_name'] # noqa: E501
1681
+ all_params.append('async_req')
1682
+ all_params.append('_return_http_data_only')
1683
+ all_params.append('_preload_content')
1684
+ all_params.append('_request_timeout')
1685
+
1686
+ params = locals()
1687
+ for key, val in six.iteritems(params['kwargs']):
1688
+ if key not in all_params:
1689
+ raise TypeError(
1690
+ "Got an unexpected keyword argument '%s'"
1691
+ " to method get_tenant_device_using_get" % key
1692
+ )
1693
+ params[key] = val
1694
+ del params['kwargs']
1695
+ # verify the required parameter 'device_name' is set
1696
+ if ('device_name' not in params or
1697
+ params['device_name'] is None):
1698
+ raise ValueError("Missing the required parameter `device_name` when calling `get_tenant_device_using_get`") # noqa: E501
1699
+
1700
+ collection_formats = {}
1701
+
1702
+ path_params = {}
1703
+
1704
+ query_params = []
1705
+ if 'device_name' in params:
1706
+ query_params.append(('deviceName', params['device_name'])) # noqa: E501
1707
+
1708
+ header_params = {}
1709
+
1710
+ form_params = []
1711
+ local_var_files = {}
1712
+
1713
+ body_params = None
1714
+ # HTTP header `Accept`
1715
+ header_params['Accept'] = self.api_client.select_header_accept(
1716
+ ['application/json']) # noqa: E501
1717
+
1718
+ # Authentication setting
1719
+ auth_settings = ['X-Authorization'] # noqa: E501
1720
+
1721
+ return self.api_client.call_api(
1722
+ '/api/tenant/devices{?deviceName}', 'GET',
1723
+ path_params,
1724
+ query_params,
1725
+ header_params,
1726
+ body=body_params,
1727
+ post_params=form_params,
1728
+ files=local_var_files,
1729
+ response_type='Device', # noqa: E501
1730
+ auth_settings=auth_settings,
1731
+ async_req=params.get('async_req'),
1732
+ _return_http_data_only=params.get('_return_http_data_only'),
1733
+ _preload_content=params.get('_preload_content', True),
1734
+ _request_timeout=params.get('_request_timeout'),
1735
+ collection_formats=collection_formats)
1736
+
1737
+ def get_tenant_devices_using_get(self, page_size, page, **kwargs): # noqa: E501
1738
+ """Get Tenant Devices (getTenantDevices) # noqa: E501
1739
+
1740
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1741
+ This method makes a synchronous HTTP request by default. To make an
1742
+ asynchronous HTTP request, please pass async_req=True
1743
+ >>> thread = api.get_tenant_devices_using_get(page_size, page, async_req=True)
1744
+ >>> result = thread.get()
1745
+
1746
+ :param async_req bool
1747
+ :param int page_size: Maximum amount of entities in a one page (required)
1748
+ :param int page: Sequence number of page starting from 0 (required)
1749
+ :param str type: Device type as the name of the device profile
1750
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1751
+ :param str sort_property: Property of entity to sort by
1752
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1753
+ :return: PageDataDevice
1754
+ If the method is called asynchronously,
1755
+ returns the request thread.
1756
+ """
1757
+ kwargs['_return_http_data_only'] = True
1758
+ if kwargs.get('async_req'):
1759
+ return self.get_tenant_devices_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
1760
+ else:
1761
+ (data) = self.get_tenant_devices_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
1762
+ return data
1763
+
1764
+ def get_tenant_devices_using_get_with_http_info(self, page_size, page, **kwargs): # noqa: E501
1765
+ """Get Tenant Devices (getTenantDevices) # noqa: E501
1766
+
1767
+ 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1768
+ This method makes a synchronous HTTP request by default. To make an
1769
+ asynchronous HTTP request, please pass async_req=True
1770
+ >>> thread = api.get_tenant_devices_using_get_with_http_info(page_size, page, async_req=True)
1771
+ >>> result = thread.get()
1772
+
1773
+ :param async_req bool
1774
+ :param int page_size: Maximum amount of entities in a one page (required)
1775
+ :param int page: Sequence number of page starting from 0 (required)
1776
+ :param str type: Device type as the name of the device profile
1777
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1778
+ :param str sort_property: Property of entity to sort by
1779
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1780
+ :return: PageDataDevice
1781
+ If the method is called asynchronously,
1782
+ returns the request thread.
1783
+ """
1784
+
1785
+ all_params = ['page_size', 'page', 'type', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
1786
+ all_params.append('async_req')
1787
+ all_params.append('_return_http_data_only')
1788
+ all_params.append('_preload_content')
1789
+ all_params.append('_request_timeout')
1790
+
1791
+ params = locals()
1792
+ for key, val in six.iteritems(params['kwargs']):
1793
+ if key not in all_params:
1794
+ raise TypeError(
1795
+ "Got an unexpected keyword argument '%s'"
1796
+ " to method get_tenant_devices_using_get" % key
1797
+ )
1798
+ params[key] = val
1799
+ del params['kwargs']
1800
+ # verify the required parameter 'page_size' is set
1801
+ if ('page_size' not in params or
1802
+ params['page_size'] is None):
1803
+ raise ValueError("Missing the required parameter `page_size` when calling `get_tenant_devices_using_get`") # noqa: E501
1804
+ # verify the required parameter 'page' is set
1805
+ if ('page' not in params or
1806
+ params['page'] is None):
1807
+ raise ValueError("Missing the required parameter `page` when calling `get_tenant_devices_using_get`") # noqa: E501
1808
+
1809
+ collection_formats = {}
1810
+
1811
+ path_params = {}
1812
+
1813
+ query_params = []
1814
+ if 'page_size' in params:
1815
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
1816
+ if 'page' in params:
1817
+ query_params.append(('page', params['page'])) # noqa: E501
1818
+ if 'type' in params:
1819
+ query_params.append(('type', params['type'])) # noqa: E501
1820
+ if 'text_search' in params:
1821
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
1822
+ if 'sort_property' in params:
1823
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
1824
+ if 'sort_order' in params:
1825
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
1826
+
1827
+ header_params = {}
1828
+
1829
+ form_params = []
1830
+ local_var_files = {}
1831
+
1832
+ body_params = None
1833
+ # HTTP header `Accept`
1834
+ header_params['Accept'] = self.api_client.select_header_accept(
1835
+ ['application/json']) # noqa: E501
1836
+
1837
+ # Authentication setting
1838
+ auth_settings = ['X-Authorization'] # noqa: E501
1839
+
1840
+ return self.api_client.call_api(
1841
+ '/api/tenant/devices{?page,pageSize,sortOrder,sortProperty,textSearch,type}', 'GET',
1842
+ path_params,
1843
+ query_params,
1844
+ header_params,
1845
+ body=body_params,
1846
+ post_params=form_params,
1847
+ files=local_var_files,
1848
+ response_type='PageDataDevice', # noqa: E501
1849
+ auth_settings=auth_settings,
1850
+ async_req=params.get('async_req'),
1851
+ _return_http_data_only=params.get('_return_http_data_only'),
1852
+ _preload_content=params.get('_preload_content', True),
1853
+ _request_timeout=params.get('_request_timeout'),
1854
+ collection_formats=collection_formats)
1855
+
1856
+ def get_user_devices_using_get(self, page_size, page, **kwargs): # noqa: E501
1857
+ """Get Devices (getUserDevices) # noqa: E501
1858
+
1859
+ Returns a page of devices that are available for the current user. 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1860
+ This method makes a synchronous HTTP request by default. To make an
1861
+ asynchronous HTTP request, please pass async_req=True
1862
+ >>> thread = api.get_user_devices_using_get(page_size, page, async_req=True)
1863
+ >>> result = thread.get()
1864
+
1865
+ :param async_req bool
1866
+ :param int page_size: Maximum amount of entities in a one page (required)
1867
+ :param int page: Sequence number of page starting from 0 (required)
1868
+ :param str type: Device type as the name of the device profile
1869
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1870
+ :param str sort_property: Property of entity to sort by
1871
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1872
+ :return: PageDataDevice
1873
+ If the method is called asynchronously,
1874
+ returns the request thread.
1875
+ """
1876
+ kwargs['_return_http_data_only'] = True
1877
+ if kwargs.get('async_req'):
1878
+ return self.get_user_devices_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
1879
+ else:
1880
+ (data) = self.get_user_devices_using_get_with_http_info(page_size, page, **kwargs) # noqa: E501
1881
+ return data
1882
+
1883
+ def get_user_devices_using_get_with_http_info(self, page_size, page, **kwargs): # noqa: E501
1884
+ """Get Devices (getUserDevices) # noqa: E501
1885
+
1886
+ Returns a page of devices that are available for the current user. 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. Security check is performed to verify that the user has 'READ' permission for the entity (entities). # noqa: E501
1887
+ This method makes a synchronous HTTP request by default. To make an
1888
+ asynchronous HTTP request, please pass async_req=True
1889
+ >>> thread = api.get_user_devices_using_get_with_http_info(page_size, page, async_req=True)
1890
+ >>> result = thread.get()
1891
+
1892
+ :param async_req bool
1893
+ :param int page_size: Maximum amount of entities in a one page (required)
1894
+ :param int page: Sequence number of page starting from 0 (required)
1895
+ :param str type: Device type as the name of the device profile
1896
+ :param str text_search: The case insensitive 'substring' filter based on the device name.
1897
+ :param str sort_property: Property of entity to sort by
1898
+ :param str sort_order: Sort order. ASC (ASCENDING) or DESC (DESCENDING)
1899
+ :return: PageDataDevice
1900
+ If the method is called asynchronously,
1901
+ returns the request thread.
1902
+ """
1903
+
1904
+ all_params = ['page_size', 'page', 'type', 'text_search', 'sort_property', 'sort_order'] # noqa: E501
1905
+ all_params.append('async_req')
1906
+ all_params.append('_return_http_data_only')
1907
+ all_params.append('_preload_content')
1908
+ all_params.append('_request_timeout')
1909
+
1910
+ params = locals()
1911
+ for key, val in six.iteritems(params['kwargs']):
1912
+ if key not in all_params:
1913
+ raise TypeError(
1914
+ "Got an unexpected keyword argument '%s'"
1915
+ " to method get_user_devices_using_get" % key
1916
+ )
1917
+ params[key] = val
1918
+ del params['kwargs']
1919
+ # verify the required parameter 'page_size' is set
1920
+ if ('page_size' not in params or
1921
+ params['page_size'] is None):
1922
+ raise ValueError("Missing the required parameter `page_size` when calling `get_user_devices_using_get`") # noqa: E501
1923
+ # verify the required parameter 'page' is set
1924
+ if ('page' not in params or
1925
+ params['page'] is None):
1926
+ raise ValueError("Missing the required parameter `page` when calling `get_user_devices_using_get`") # noqa: E501
1927
+
1928
+ collection_formats = {}
1929
+
1930
+ path_params = {}
1931
+
1932
+ query_params = []
1933
+ if 'page_size' in params:
1934
+ query_params.append(('pageSize', params['page_size'])) # noqa: E501
1935
+ if 'page' in params:
1936
+ query_params.append(('page', params['page'])) # noqa: E501
1937
+ if 'type' in params:
1938
+ query_params.append(('type', params['type'])) # noqa: E501
1939
+ if 'text_search' in params:
1940
+ query_params.append(('textSearch', params['text_search'])) # noqa: E501
1941
+ if 'sort_property' in params:
1942
+ query_params.append(('sortProperty', params['sort_property'])) # noqa: E501
1943
+ if 'sort_order' in params:
1944
+ query_params.append(('sortOrder', params['sort_order'])) # noqa: E501
1945
+
1946
+ header_params = {}
1947
+
1948
+ form_params = []
1949
+ local_var_files = {}
1950
+
1951
+ body_params = None
1952
+ # HTTP header `Accept`
1953
+ header_params['Accept'] = self.api_client.select_header_accept(
1954
+ ['application/json']) # noqa: E501
1955
+
1956
+ # Authentication setting
1957
+ auth_settings = ['X-Authorization'] # noqa: E501
1958
+
1959
+ return self.api_client.call_api(
1960
+ '/api/user/devices{?page,pageSize,sortOrder,sortProperty,textSearch,type}', 'GET',
1961
+ path_params,
1962
+ query_params,
1963
+ header_params,
1964
+ body=body_params,
1965
+ post_params=form_params,
1966
+ files=local_var_files,
1967
+ response_type='PageDataDevice', # noqa: E501
1968
+ auth_settings=auth_settings,
1969
+ async_req=params.get('async_req'),
1970
+ _return_http_data_only=params.get('_return_http_data_only'),
1971
+ _preload_content=params.get('_preload_content', True),
1972
+ _request_timeout=params.get('_request_timeout'),
1973
+ collection_formats=collection_formats)
1974
+
1975
+ def process_devices_bulk_import_using_post(self, **kwargs): # noqa: E501
1976
+ """Import the bulk of devices (processDevicesBulkImport) # noqa: E501
1977
+
1978
+ There's an ability to import the bulk of devices using the only .csv file. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
1979
+ This method makes a synchronous HTTP request by default. To make an
1980
+ asynchronous HTTP request, please pass async_req=True
1981
+ >>> thread = api.process_devices_bulk_import_using_post(async_req=True)
1982
+ >>> result = thread.get()
1983
+
1984
+ :param async_req bool
1985
+ :param BulkImportRequest body:
1986
+ :return: BulkImportResultDevice
1987
+ If the method is called asynchronously,
1988
+ returns the request thread.
1989
+ """
1990
+ kwargs['_return_http_data_only'] = True
1991
+ if kwargs.get('async_req'):
1992
+ return self.process_devices_bulk_import_using_post_with_http_info(**kwargs) # noqa: E501
1993
+ else:
1994
+ (data) = self.process_devices_bulk_import_using_post_with_http_info(**kwargs) # noqa: E501
1995
+ return data
1996
+
1997
+ def process_devices_bulk_import_using_post_with_http_info(self, **kwargs): # noqa: E501
1998
+ """Import the bulk of devices (processDevicesBulkImport) # noqa: E501
1999
+
2000
+ There's an ability to import the bulk of devices using the only .csv file. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
2001
+ This method makes a synchronous HTTP request by default. To make an
2002
+ asynchronous HTTP request, please pass async_req=True
2003
+ >>> thread = api.process_devices_bulk_import_using_post_with_http_info(async_req=True)
2004
+ >>> result = thread.get()
2005
+
2006
+ :param async_req bool
2007
+ :param BulkImportRequest body:
2008
+ :return: BulkImportResultDevice
2009
+ If the method is called asynchronously,
2010
+ returns the request thread.
2011
+ """
2012
+
2013
+ all_params = ['body'] # noqa: E501
2014
+ all_params.append('async_req')
2015
+ all_params.append('_return_http_data_only')
2016
+ all_params.append('_preload_content')
2017
+ all_params.append('_request_timeout')
2018
+
2019
+ params = locals()
2020
+ for key, val in six.iteritems(params['kwargs']):
2021
+ if key not in all_params:
2022
+ raise TypeError(
2023
+ "Got an unexpected keyword argument '%s'"
2024
+ " to method process_devices_bulk_import_using_post" % key
2025
+ )
2026
+ params[key] = val
2027
+ del params['kwargs']
2028
+
2029
+ collection_formats = {}
2030
+
2031
+ path_params = {}
2032
+
2033
+ query_params = []
2034
+
2035
+ header_params = {}
2036
+
2037
+ form_params = []
2038
+ local_var_files = {}
2039
+
2040
+ body_params = None
2041
+ if 'body' in params:
2042
+ body_params = params['body']
2043
+ # HTTP header `Accept`
2044
+ header_params['Accept'] = self.api_client.select_header_accept(
2045
+ ['application/json']) # noqa: E501
2046
+
2047
+ # HTTP header `Content-Type`
2048
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2049
+ ['application/json']) # noqa: E501
2050
+
2051
+ # Authentication setting
2052
+ auth_settings = ['X-Authorization'] # noqa: E501
2053
+
2054
+ return self.api_client.call_api(
2055
+ '/api/device/bulk_import', 'POST',
2056
+ path_params,
2057
+ query_params,
2058
+ header_params,
2059
+ body=body_params,
2060
+ post_params=form_params,
2061
+ files=local_var_files,
2062
+ response_type='BulkImportResultDevice', # noqa: E501
2063
+ auth_settings=auth_settings,
2064
+ async_req=params.get('async_req'),
2065
+ _return_http_data_only=params.get('_return_http_data_only'),
2066
+ _preload_content=params.get('_preload_content', True),
2067
+ _request_timeout=params.get('_request_timeout'),
2068
+ collection_formats=collection_formats)
2069
+
2070
+ def re_claim_device_using_delete(self, device_name, **kwargs): # noqa: E501
2071
+ """Reclaim device (reClaimDevice) # noqa: E501
2072
+
2073
+ 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. Security check is performed to verify that the user has 'CLAIM_DEVICES' permission for the entity (entities). # noqa: E501
2074
+ This method makes a synchronous HTTP request by default. To make an
2075
+ asynchronous HTTP request, please pass async_req=True
2076
+ >>> thread = api.re_claim_device_using_delete(device_name, async_req=True)
2077
+ >>> result = thread.get()
2078
+
2079
+ :param async_req bool
2080
+ :param str device_name: Unique name of the device which is going to be reclaimed (required)
2081
+ :return: DeferredResultResponseEntity
2082
+ If the method is called asynchronously,
2083
+ returns the request thread.
2084
+ """
2085
+ kwargs['_return_http_data_only'] = True
2086
+ if kwargs.get('async_req'):
2087
+ return self.re_claim_device_using_delete_with_http_info(device_name, **kwargs) # noqa: E501
2088
+ else:
2089
+ (data) = self.re_claim_device_using_delete_with_http_info(device_name, **kwargs) # noqa: E501
2090
+ return data
2091
+
2092
+ def re_claim_device_using_delete_with_http_info(self, device_name, **kwargs): # noqa: E501
2093
+ """Reclaim device (reClaimDevice) # noqa: E501
2094
+
2095
+ 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. Security check is performed to verify that the user has 'CLAIM_DEVICES' permission for the entity (entities). # noqa: E501
2096
+ This method makes a synchronous HTTP request by default. To make an
2097
+ asynchronous HTTP request, please pass async_req=True
2098
+ >>> thread = api.re_claim_device_using_delete_with_http_info(device_name, async_req=True)
2099
+ >>> result = thread.get()
2100
+
2101
+ :param async_req bool
2102
+ :param str device_name: Unique name of the device which is going to be reclaimed (required)
2103
+ :return: DeferredResultResponseEntity
2104
+ If the method is called asynchronously,
2105
+ returns the request thread.
2106
+ """
2107
+
2108
+ all_params = ['device_name'] # noqa: E501
2109
+ all_params.append('async_req')
2110
+ all_params.append('_return_http_data_only')
2111
+ all_params.append('_preload_content')
2112
+ all_params.append('_request_timeout')
2113
+
2114
+ params = locals()
2115
+ for key, val in six.iteritems(params['kwargs']):
2116
+ if key not in all_params:
2117
+ raise TypeError(
2118
+ "Got an unexpected keyword argument '%s'"
2119
+ " to method re_claim_device_using_delete" % key
2120
+ )
2121
+ params[key] = val
2122
+ del params['kwargs']
2123
+ # verify the required parameter 'device_name' is set
2124
+ if ('device_name' not in params or
2125
+ params['device_name'] is None):
2126
+ raise ValueError("Missing the required parameter `device_name` when calling `re_claim_device_using_delete`") # noqa: E501
2127
+
2128
+ collection_formats = {}
2129
+
2130
+ path_params = {}
2131
+ if 'device_name' in params:
2132
+ path_params['deviceName'] = params['device_name'] # noqa: E501
2133
+
2134
+ query_params = []
2135
+
2136
+ header_params = {}
2137
+
2138
+ form_params = []
2139
+ local_var_files = {}
2140
+
2141
+ body_params = None
2142
+ # HTTP header `Accept`
2143
+ header_params['Accept'] = self.api_client.select_header_accept(
2144
+ ['application/json']) # noqa: E501
2145
+
2146
+ # Authentication setting
2147
+ auth_settings = ['X-Authorization'] # noqa: E501
2148
+
2149
+ return self.api_client.call_api(
2150
+ '/api/customer/device/{deviceName}/claim', 'DELETE',
2151
+ path_params,
2152
+ query_params,
2153
+ header_params,
2154
+ body=body_params,
2155
+ post_params=form_params,
2156
+ files=local_var_files,
2157
+ response_type='DeferredResultResponseEntity', # noqa: E501
2158
+ auth_settings=auth_settings,
2159
+ async_req=params.get('async_req'),
2160
+ _return_http_data_only=params.get('_return_http_data_only'),
2161
+ _preload_content=params.get('_preload_content', True),
2162
+ _request_timeout=params.get('_request_timeout'),
2163
+ collection_formats=collection_formats)
2164
+
2165
+ def save_device_using_post(self, **kwargs): # noqa: E501
2166
+ """Create Or Update Device (saveDevice) # noqa: E501
2167
+
2168
+ 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. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
2169
+ This method makes a synchronous HTTP request by default. To make an
2170
+ asynchronous HTTP request, please pass async_req=True
2171
+ >>> thread = api.save_device_using_post(async_req=True)
2172
+ >>> result = thread.get()
2173
+
2174
+ :param async_req bool
2175
+ :param Device body:
2176
+ :param str access_token: Optional value of the device credentials to be used during device creation. If omitted, access token will be auto-generated.
2177
+ :param str entity_group_id: entityGroupId
2178
+ :param str entity_group_ids: entityGroupIds
2179
+ :return: Device
2180
+ If the method is called asynchronously,
2181
+ returns the request thread.
2182
+ """
2183
+ kwargs['_return_http_data_only'] = True
2184
+ if kwargs.get('async_req'):
2185
+ return self.save_device_using_post_with_http_info(**kwargs) # noqa: E501
2186
+ else:
2187
+ (data) = self.save_device_using_post_with_http_info(**kwargs) # noqa: E501
2188
+ return data
2189
+
2190
+ def save_device_using_post_with_http_info(self, **kwargs): # noqa: E501
2191
+ """Create Or Update Device (saveDevice) # noqa: E501
2192
+
2193
+ 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. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
2194
+ This method makes a synchronous HTTP request by default. To make an
2195
+ asynchronous HTTP request, please pass async_req=True
2196
+ >>> thread = api.save_device_using_post_with_http_info(async_req=True)
2197
+ >>> result = thread.get()
2198
+
2199
+ :param async_req bool
2200
+ :param Device body:
2201
+ :param str access_token: Optional value of the device credentials to be used during device creation. If omitted, access token will be auto-generated.
2202
+ :param str entity_group_id: entityGroupId
2203
+ :param str entity_group_ids: entityGroupIds
2204
+ :return: Device
2205
+ If the method is called asynchronously,
2206
+ returns the request thread.
2207
+ """
2208
+
2209
+ all_params = ['body', 'access_token', 'entity_group_id', 'entity_group_ids'] # noqa: E501
2210
+ all_params.append('async_req')
2211
+ all_params.append('_return_http_data_only')
2212
+ all_params.append('_preload_content')
2213
+ all_params.append('_request_timeout')
2214
+
2215
+ params = locals()
2216
+ for key, val in six.iteritems(params['kwargs']):
2217
+ if key not in all_params:
2218
+ raise TypeError(
2219
+ "Got an unexpected keyword argument '%s'"
2220
+ " to method save_device_using_post" % key
2221
+ )
2222
+ params[key] = val
2223
+ del params['kwargs']
2224
+
2225
+ collection_formats = {}
2226
+
2227
+ path_params = {}
2228
+
2229
+ query_params = []
2230
+ if 'access_token' in params:
2231
+ query_params.append(('accessToken', params['access_token'])) # noqa: E501
2232
+ if 'entity_group_id' in params:
2233
+ query_params.append(('entityGroupId', params['entity_group_id'])) # noqa: E501
2234
+ if 'entity_group_ids' in params:
2235
+ query_params.append(('entityGroupIds', params['entity_group_ids'])) # noqa: E501
2236
+
2237
+ header_params = {}
2238
+
2239
+ form_params = []
2240
+ local_var_files = {}
2241
+
2242
+ body_params = None
2243
+ if 'body' in params:
2244
+ body_params = params['body']
2245
+ # HTTP header `Accept`
2246
+ header_params['Accept'] = self.api_client.select_header_accept(
2247
+ ['application/json']) # noqa: E501
2248
+
2249
+ # HTTP header `Content-Type`
2250
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2251
+ ['application/json']) # noqa: E501
2252
+
2253
+ # Authentication setting
2254
+ auth_settings = ['X-Authorization'] # noqa: E501
2255
+
2256
+ return self.api_client.call_api(
2257
+ '/api/device{?accessToken,entityGroupId,entityGroupIds}', 'POST',
2258
+ path_params,
2259
+ query_params,
2260
+ header_params,
2261
+ body=body_params,
2262
+ post_params=form_params,
2263
+ files=local_var_files,
2264
+ response_type='Device', # noqa: E501
2265
+ auth_settings=auth_settings,
2266
+ async_req=params.get('async_req'),
2267
+ _return_http_data_only=params.get('_return_http_data_only'),
2268
+ _preload_content=params.get('_preload_content', True),
2269
+ _request_timeout=params.get('_request_timeout'),
2270
+ collection_formats=collection_formats)
2271
+
2272
+ def save_device_with_credentials_using_post(self, **kwargs): # noqa: E501
2273
+ """Create Device (saveDevice) with credentials # noqa: E501
2274
+
2275
+ 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\":\"5636aba0-1022-11ee-9631-51fb57f69174\", \"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. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
2276
+ This method makes a synchronous HTTP request by default. To make an
2277
+ asynchronous HTTP request, please pass async_req=True
2278
+ >>> thread = api.save_device_with_credentials_using_post(async_req=True)
2279
+ >>> result = thread.get()
2280
+
2281
+ :param async_req bool
2282
+ :param SaveDeviceWithCredentialsRequest body:
2283
+ :param str entity_group_id: entityGroupId
2284
+ :param str entity_group_ids: entityGroupIds
2285
+ :return: Device
2286
+ If the method is called asynchronously,
2287
+ returns the request thread.
2288
+ """
2289
+ kwargs['_return_http_data_only'] = True
2290
+ if kwargs.get('async_req'):
2291
+ return self.save_device_with_credentials_using_post_with_http_info(**kwargs) # noqa: E501
2292
+ else:
2293
+ (data) = self.save_device_with_credentials_using_post_with_http_info(**kwargs) # noqa: E501
2294
+ return data
2295
+
2296
+ def save_device_with_credentials_using_post_with_http_info(self, **kwargs): # noqa: E501
2297
+ """Create Device (saveDevice) with credentials # noqa: E501
2298
+
2299
+ 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\":\"5636aba0-1022-11ee-9631-51fb57f69174\", \"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. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). # noqa: E501
2300
+ This method makes a synchronous HTTP request by default. To make an
2301
+ asynchronous HTTP request, please pass async_req=True
2302
+ >>> thread = api.save_device_with_credentials_using_post_with_http_info(async_req=True)
2303
+ >>> result = thread.get()
2304
+
2305
+ :param async_req bool
2306
+ :param SaveDeviceWithCredentialsRequest body:
2307
+ :param str entity_group_id: entityGroupId
2308
+ :param str entity_group_ids: entityGroupIds
2309
+ :return: Device
2310
+ If the method is called asynchronously,
2311
+ returns the request thread.
2312
+ """
2313
+
2314
+ all_params = ['body', 'entity_group_id', 'entity_group_ids'] # noqa: E501
2315
+ all_params.append('async_req')
2316
+ all_params.append('_return_http_data_only')
2317
+ all_params.append('_preload_content')
2318
+ all_params.append('_request_timeout')
2319
+
2320
+ params = locals()
2321
+ for key, val in six.iteritems(params['kwargs']):
2322
+ if key not in all_params:
2323
+ raise TypeError(
2324
+ "Got an unexpected keyword argument '%s'"
2325
+ " to method save_device_with_credentials_using_post" % key
2326
+ )
2327
+ params[key] = val
2328
+ del params['kwargs']
2329
+
2330
+ collection_formats = {}
2331
+
2332
+ path_params = {}
2333
+
2334
+ query_params = []
2335
+ if 'entity_group_id' in params:
2336
+ query_params.append(('entityGroupId', params['entity_group_id'])) # noqa: E501
2337
+ if 'entity_group_ids' in params:
2338
+ query_params.append(('entityGroupIds', params['entity_group_ids'])) # noqa: E501
2339
+
2340
+ header_params = {}
2341
+
2342
+ form_params = []
2343
+ local_var_files = {}
2344
+
2345
+ body_params = None
2346
+ if 'body' in params:
2347
+ body_params = params['body']
2348
+ # HTTP header `Accept`
2349
+ header_params['Accept'] = self.api_client.select_header_accept(
2350
+ ['application/json']) # noqa: E501
2351
+
2352
+ # HTTP header `Content-Type`
2353
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2354
+ ['application/json']) # noqa: E501
2355
+
2356
+ # Authentication setting
2357
+ auth_settings = ['X-Authorization'] # noqa: E501
2358
+
2359
+ return self.api_client.call_api(
2360
+ '/api/device-with-credentials{?entityGroupId,entityGroupIds}', 'POST',
2361
+ path_params,
2362
+ query_params,
2363
+ header_params,
2364
+ body=body_params,
2365
+ post_params=form_params,
2366
+ files=local_var_files,
2367
+ response_type='Device', # noqa: E501
2368
+ auth_settings=auth_settings,
2369
+ async_req=params.get('async_req'),
2370
+ _return_http_data_only=params.get('_return_http_data_only'),
2371
+ _preload_content=params.get('_preload_content', True),
2372
+ _request_timeout=params.get('_request_timeout'),
2373
+ collection_formats=collection_formats)
2374
+
2375
+ def update_device_credentials_using_post(self, **kwargs): # noqa: E501
2376
+ """Update device credentials (updateDeviceCredentials) # noqa: E501
2377
+
2378
+ 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
2379
+ This method makes a synchronous HTTP request by default. To make an
2380
+ asynchronous HTTP request, please pass async_req=True
2381
+ >>> thread = api.update_device_credentials_using_post(async_req=True)
2382
+ >>> result = thread.get()
2383
+
2384
+ :param async_req bool
2385
+ :param DeviceCredentials body:
2386
+ :return: DeviceCredentials
2387
+ If the method is called asynchronously,
2388
+ returns the request thread.
2389
+ """
2390
+ kwargs['_return_http_data_only'] = True
2391
+ if kwargs.get('async_req'):
2392
+ return self.update_device_credentials_using_post_with_http_info(**kwargs) # noqa: E501
2393
+ else:
2394
+ (data) = self.update_device_credentials_using_post_with_http_info(**kwargs) # noqa: E501
2395
+ return data
2396
+
2397
+ def update_device_credentials_using_post_with_http_info(self, **kwargs): # noqa: E501
2398
+ """Update device credentials (updateDeviceCredentials) # noqa: E501
2399
+
2400
+ 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
2401
+ This method makes a synchronous HTTP request by default. To make an
2402
+ asynchronous HTTP request, please pass async_req=True
2403
+ >>> thread = api.update_device_credentials_using_post_with_http_info(async_req=True)
2404
+ >>> result = thread.get()
2405
+
2406
+ :param async_req bool
2407
+ :param DeviceCredentials body:
2408
+ :return: DeviceCredentials
2409
+ If the method is called asynchronously,
2410
+ returns the request thread.
2411
+ """
2412
+
2413
+ all_params = ['body'] # noqa: E501
2414
+ all_params.append('async_req')
2415
+ all_params.append('_return_http_data_only')
2416
+ all_params.append('_preload_content')
2417
+ all_params.append('_request_timeout')
2418
+
2419
+ params = locals()
2420
+ for key, val in six.iteritems(params['kwargs']):
2421
+ if key not in all_params:
2422
+ raise TypeError(
2423
+ "Got an unexpected keyword argument '%s'"
2424
+ " to method update_device_credentials_using_post" % key
2425
+ )
2426
+ params[key] = val
2427
+ del params['kwargs']
2428
+
2429
+ collection_formats = {}
2430
+
2431
+ path_params = {}
2432
+
2433
+ query_params = []
2434
+
2435
+ header_params = {}
2436
+
2437
+ form_params = []
2438
+ local_var_files = {}
2439
+
2440
+ body_params = None
2441
+ if 'body' in params:
2442
+ body_params = params['body']
2443
+ # HTTP header `Accept`
2444
+ header_params['Accept'] = self.api_client.select_header_accept(
2445
+ ['application/json']) # noqa: E501
2446
+
2447
+ # HTTP header `Content-Type`
2448
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
2449
+ ['application/json']) # noqa: E501
2450
+
2451
+ # Authentication setting
2452
+ auth_settings = ['X-Authorization'] # noqa: E501
2453
+
2454
+ return self.api_client.call_api(
2455
+ '/api/device/credentials', 'POST',
2456
+ path_params,
2457
+ query_params,
2458
+ header_params,
2459
+ body=body_params,
2460
+ post_params=form_params,
2461
+ files=local_var_files,
2462
+ response_type='DeviceCredentials', # noqa: E501
2463
+ auth_settings=auth_settings,
2464
+ async_req=params.get('async_req'),
2465
+ _return_http_data_only=params.get('_return_http_data_only'),
2466
+ _preload_content=params.get('_preload_content', True),
2467
+ _request_timeout=params.get('_request_timeout'),
2468
+ collection_formats=collection_formats)