huaweicloudsdkiotanalytics 3.1.160__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 (273) hide show
  1. huaweicloudsdkiotanalytics/__init__.py +0 -0
  2. huaweicloudsdkiotanalytics/v1/__init__.py +269 -0
  3. huaweicloudsdkiotanalytics/v1/iotanalytics_async_client.py +4553 -0
  4. huaweicloudsdkiotanalytics/v1/iotanalytics_client.py +4550 -0
  5. huaweicloudsdkiotanalytics/v1/model/__init__.py +266 -0
  6. huaweicloudsdkiotanalytics/v1/model/add_dev_data_request.py +139 -0
  7. huaweicloudsdkiotanalytics/v1/model/add_dev_data_response.py +112 -0
  8. huaweicloudsdkiotanalytics/v1/model/add_pipeline_job_request.py +144 -0
  9. huaweicloudsdkiotanalytics/v1/model/add_pipeline_job_response.py +145 -0
  10. huaweicloudsdkiotanalytics/v1/model/aggregate_metric.py +170 -0
  11. huaweicloudsdkiotanalytics/v1/model/aggregate_metrics.py +253 -0
  12. huaweicloudsdkiotanalytics/v1/model/aggregate_metrics_request.py +283 -0
  13. huaweicloudsdkiotanalytics/v1/model/aggregate_model.py +220 -0
  14. huaweicloudsdkiotanalytics/v1/model/aggregate_response.py +219 -0
  15. huaweicloudsdkiotanalytics/v1/model/analysis_model_request.py +246 -0
  16. huaweicloudsdkiotanalytics/v1/model/analysis_model_response.py +275 -0
  17. huaweicloudsdkiotanalytics/v1/model/analysis_request.py +189 -0
  18. huaweicloudsdkiotanalytics/v1/model/analysis_response.py +277 -0
  19. huaweicloudsdkiotanalytics/v1/model/api_content_req.py +114 -0
  20. huaweicloudsdkiotanalytics/v1/model/api_content_rsp.py +144 -0
  21. huaweicloudsdkiotanalytics/v1/model/asset_add_request.py +258 -0
  22. huaweicloudsdkiotanalytics/v1/model/asset_mod_request.py +231 -0
  23. huaweicloudsdkiotanalytics/v1/model/asset_model_add_request.py +201 -0
  24. huaweicloudsdkiotanalytics/v1/model/asset_model_mod_request.py +173 -0
  25. huaweicloudsdkiotanalytics/v1/model/asset_model_response.py +289 -0
  26. huaweicloudsdkiotanalytics/v1/model/asset_property_last_value.py +173 -0
  27. huaweicloudsdkiotanalytics/v1/model/asset_response.py +521 -0
  28. huaweicloudsdkiotanalytics/v1/model/column.py +200 -0
  29. huaweicloudsdkiotanalytics/v1/model/computing_resource.py +347 -0
  30. huaweicloudsdkiotanalytics/v1/model/content_detail_req.py +361 -0
  31. huaweicloudsdkiotanalytics/v1/model/content_detail_rsp.py +361 -0
  32. huaweicloudsdkiotanalytics/v1/model/create_asset_model_request.py +111 -0
  33. huaweicloudsdkiotanalytics/v1/model/create_asset_model_response.py +290 -0
  34. huaweicloudsdkiotanalytics/v1/model/create_asset_new_request.py +111 -0
  35. huaweicloudsdkiotanalytics/v1/model/create_asset_new_response.py +522 -0
  36. huaweicloudsdkiotanalytics/v1/model/create_batch_job_request.py +111 -0
  37. huaweicloudsdkiotanalytics/v1/model/create_batch_job_response.py +369 -0
  38. huaweicloudsdkiotanalytics/v1/model/create_computing_resource_request.py +111 -0
  39. huaweicloudsdkiotanalytics/v1/model/create_computing_resource_request_body.py +229 -0
  40. huaweicloudsdkiotanalytics/v1/model/create_computing_resource_response.py +290 -0
  41. huaweicloudsdkiotanalytics/v1/model/create_datasource_req_dto.py +166 -0
  42. huaweicloudsdkiotanalytics/v1/model/create_datasource_request.py +111 -0
  43. huaweicloudsdkiotanalytics/v1/model/create_datasource_response.py +257 -0
  44. huaweicloudsdkiotanalytics/v1/model/create_group_request.py +111 -0
  45. huaweicloudsdkiotanalytics/v1/model/create_group_response.py +406 -0
  46. huaweicloudsdkiotanalytics/v1/model/create_run_request.py +139 -0
  47. huaweicloudsdkiotanalytics/v1/model/create_run_request_body.py +143 -0
  48. huaweicloudsdkiotanalytics/v1/model/create_run_response.py +228 -0
  49. huaweicloudsdkiotanalytics/v1/model/create_streaming_job_request.py +144 -0
  50. huaweicloudsdkiotanalytics/v1/model/create_streaming_job_response.py +145 -0
  51. huaweicloudsdkiotanalytics/v1/model/create_table_request.py +111 -0
  52. huaweicloudsdkiotanalytics/v1/model/create_table_request_body.py +489 -0
  53. huaweicloudsdkiotanalytics/v1/model/create_table_response.py +464 -0
  54. huaweicloudsdkiotanalytics/v1/model/data_schema.py +230 -0
  55. huaweicloudsdkiotanalytics/v1/model/data_store_dto.py +173 -0
  56. huaweicloudsdkiotanalytics/v1/model/datasource_rest_dto.py +256 -0
  57. huaweicloudsdkiotanalytics/v1/model/dcs_content_req.py +226 -0
  58. huaweicloudsdkiotanalytics/v1/model/dcs_content_rsp.py +260 -0
  59. huaweicloudsdkiotanalytics/v1/model/delete_asset_model_request.py +114 -0
  60. huaweicloudsdkiotanalytics/v1/model/delete_asset_model_response.py +85 -0
  61. huaweicloudsdkiotanalytics/v1/model/delete_asset_new_request.py +114 -0
  62. huaweicloudsdkiotanalytics/v1/model/delete_asset_new_response.py +85 -0
  63. huaweicloudsdkiotanalytics/v1/model/delete_batch_job_request.py +114 -0
  64. huaweicloudsdkiotanalytics/v1/model/delete_batch_job_response.py +116 -0
  65. huaweicloudsdkiotanalytics/v1/model/delete_computing_resource_request.py +114 -0
  66. huaweicloudsdkiotanalytics/v1/model/delete_computing_resource_response.py +116 -0
  67. huaweicloudsdkiotanalytics/v1/model/delete_data_store_request.py +114 -0
  68. huaweicloudsdkiotanalytics/v1/model/delete_data_store_response.py +85 -0
  69. huaweicloudsdkiotanalytics/v1/model/delete_datasource_request.py +114 -0
  70. huaweicloudsdkiotanalytics/v1/model/delete_datasource_response.py +116 -0
  71. huaweicloudsdkiotanalytics/v1/model/delete_group_request.py +114 -0
  72. huaweicloudsdkiotanalytics/v1/model/delete_group_response.py +85 -0
  73. huaweicloudsdkiotanalytics/v1/model/delete_pipeline_job_request.py +114 -0
  74. huaweicloudsdkiotanalytics/v1/model/delete_pipeline_job_response.py +112 -0
  75. huaweicloudsdkiotanalytics/v1/model/delete_run_request.py +142 -0
  76. huaweicloudsdkiotanalytics/v1/model/delete_run_response.py +116 -0
  77. huaweicloudsdkiotanalytics/v1/model/delete_streaming_job_by_id_request.py +114 -0
  78. huaweicloudsdkiotanalytics/v1/model/delete_streaming_job_by_id_response.py +112 -0
  79. huaweicloudsdkiotanalytics/v1/model/delete_table_request.py +114 -0
  80. huaweicloudsdkiotanalytics/v1/model/delete_table_response.py +145 -0
  81. huaweicloudsdkiotanalytics/v1/model/dis_content_req.py +198 -0
  82. huaweicloudsdkiotanalytics/v1/model/dis_content_rsp.py +202 -0
  83. huaweicloudsdkiotanalytics/v1/model/dt_aggregate_metrics.py +170 -0
  84. huaweicloudsdkiotanalytics/v1/model/dt_aggregate_request.py +140 -0
  85. huaweicloudsdkiotanalytics/v1/model/dt_schedule.py +114 -0
  86. huaweicloudsdkiotanalytics/v1/model/dt_stream_request.py +114 -0
  87. huaweicloudsdkiotanalytics/v1/model/dt_transform_metrics.py +170 -0
  88. huaweicloudsdkiotanalytics/v1/model/dt_transform_request.py +140 -0
  89. huaweicloudsdkiotanalytics/v1/model/edge_content_req.py +143 -0
  90. huaweicloudsdkiotanalytics/v1/model/edge_content_rsp.py +142 -0
  91. huaweicloudsdkiotanalytics/v1/model/edge_content_rule_req.py +142 -0
  92. huaweicloudsdkiotanalytics/v1/model/edge_content_rule_rsp.py +170 -0
  93. huaweicloudsdkiotanalytics/v1/model/export_dataset_request.py +142 -0
  94. huaweicloudsdkiotanalytics/v1/model/export_dataset_response.py +85 -0
  95. huaweicloudsdkiotanalytics/v1/model/expression.py +172 -0
  96. huaweicloudsdkiotanalytics/v1/model/formula.py +144 -0
  97. huaweicloudsdkiotanalytics/v1/model/function_graph_content_req.py +282 -0
  98. huaweicloudsdkiotanalytics/v1/model/function_graph_content_rsp.py +289 -0
  99. huaweicloudsdkiotanalytics/v1/model/get_data_store.py +318 -0
  100. huaweicloudsdkiotanalytics/v1/model/get_group.py +405 -0
  101. huaweicloudsdkiotanalytics/v1/model/get_history_request.py +195 -0
  102. huaweicloudsdkiotanalytics/v1/model/get_metrics_request.py +164 -0
  103. huaweicloudsdkiotanalytics/v1/model/get_metrics_value.py +164 -0
  104. huaweicloudsdkiotanalytics/v1/model/get_property_request.py +143 -0
  105. huaweicloudsdkiotanalytics/v1/model/history_values.py +144 -0
  106. huaweicloudsdkiotanalytics/v1/model/import_data_request.py +111 -0
  107. huaweicloudsdkiotanalytics/v1/model/import_data_request_body.py +401 -0
  108. huaweicloudsdkiotanalytics/v1/model/import_data_response.py +174 -0
  109. huaweicloudsdkiotanalytics/v1/model/input_model.py +138 -0
  110. huaweicloudsdkiotanalytics/v1/model/input_param.py +142 -0
  111. huaweicloudsdkiotanalytics/v1/model/input_request.py +138 -0
  112. huaweicloudsdkiotanalytics/v1/model/input_response.py +140 -0
  113. huaweicloudsdkiotanalytics/v1/model/iotda_content_req.py +142 -0
  114. huaweicloudsdkiotanalytics/v1/model/iotda_content_rsp.py +142 -0
  115. huaweicloudsdkiotanalytics/v1/model/iotda_content_rule_req.py +142 -0
  116. huaweicloudsdkiotanalytics/v1/model/iotda_content_rule_rsp.py +170 -0
  117. huaweicloudsdkiotanalytics/v1/model/iotda_rule_action.py +142 -0
  118. huaweicloudsdkiotanalytics/v1/model/job.py +366 -0
  119. huaweicloudsdkiotanalytics/v1/model/kafka_auth_info.py +139 -0
  120. huaweicloudsdkiotanalytics/v1/model/kafka_broker_info.py +142 -0
  121. huaweicloudsdkiotanalytics/v1/model/kafka_content_req.py +226 -0
  122. huaweicloudsdkiotanalytics/v1/model/kafka_content_rsp.py +227 -0
  123. huaweicloudsdkiotanalytics/v1/model/key_value.py +144 -0
  124. huaweicloudsdkiotanalytics/v1/model/last_asset_property_value_request.py +173 -0
  125. huaweicloudsdkiotanalytics/v1/model/list_asset_models_request.py +173 -0
  126. huaweicloudsdkiotanalytics/v1/model/list_asset_models_response.py +145 -0
  127. huaweicloudsdkiotanalytics/v1/model/list_assets_new_request.py +201 -0
  128. huaweicloudsdkiotanalytics/v1/model/list_assets_new_response.py +145 -0
  129. huaweicloudsdkiotanalytics/v1/model/list_batch_jobs_request.py +289 -0
  130. huaweicloudsdkiotanalytics/v1/model/list_batch_jobs_response.py +141 -0
  131. huaweicloudsdkiotanalytics/v1/model/list_computing_resources_request.py +173 -0
  132. huaweicloudsdkiotanalytics/v1/model/list_computing_resources_response.py +145 -0
  133. huaweicloudsdkiotanalytics/v1/model/list_data_stores_request.py +231 -0
  134. huaweicloudsdkiotanalytics/v1/model/list_data_stores_response.py +145 -0
  135. huaweicloudsdkiotanalytics/v1/model/list_groups_request.py +260 -0
  136. huaweicloudsdkiotanalytics/v1/model/list_groups_response.py +145 -0
  137. huaweicloudsdkiotanalytics/v1/model/list_history_request.py +139 -0
  138. huaweicloudsdkiotanalytics/v1/model/list_history_response.py +145 -0
  139. huaweicloudsdkiotanalytics/v1/model/list_metrics_request.py +139 -0
  140. huaweicloudsdkiotanalytics/v1/model/list_metrics_response.py +145 -0
  141. huaweicloudsdkiotanalytics/v1/model/list_pipeline_jobs_request.py +318 -0
  142. huaweicloudsdkiotanalytics/v1/model/list_pipeline_jobs_response.py +145 -0
  143. huaweicloudsdkiotanalytics/v1/model/list_runs_request.py +405 -0
  144. huaweicloudsdkiotanalytics/v1/model/list_runs_response.py +145 -0
  145. huaweicloudsdkiotanalytics/v1/model/list_tables_request.py +260 -0
  146. huaweicloudsdkiotanalytics/v1/model/list_tables_response.py +145 -0
  147. huaweicloudsdkiotanalytics/v1/model/list_tag_values_request.py +229 -0
  148. huaweicloudsdkiotanalytics/v1/model/list_tag_values_response.py +174 -0
  149. huaweicloudsdkiotanalytics/v1/model/metric.py +202 -0
  150. huaweicloudsdkiotanalytics/v1/model/metric_input.py +142 -0
  151. huaweicloudsdkiotanalytics/v1/model/metric_list.py +144 -0
  152. huaweicloudsdkiotanalytics/v1/model/metric_value.py +144 -0
  153. huaweicloudsdkiotanalytics/v1/model/model_arts_content_req.py +254 -0
  154. huaweicloudsdkiotanalytics/v1/model/model_arts_content_rsp.py +260 -0
  155. huaweicloudsdkiotanalytics/v1/model/model_property.py +202 -0
  156. huaweicloudsdkiotanalytics/v1/model/named_formula.py +142 -0
  157. huaweicloudsdkiotanalytics/v1/model/node_content_req.py +142 -0
  158. huaweicloudsdkiotanalytics/v1/model/node_content_rsp.py +144 -0
  159. huaweicloudsdkiotanalytics/v1/model/obs_content_req.py +170 -0
  160. huaweicloudsdkiotanalytics/v1/model/obs_content_rsp.py +173 -0
  161. huaweicloudsdkiotanalytics/v1/model/output_request.py +172 -0
  162. huaweicloudsdkiotanalytics/v1/model/output_response.py +230 -0
  163. huaweicloudsdkiotanalytics/v1/model/output_with_model.py +200 -0
  164. huaweicloudsdkiotanalytics/v1/model/pipeline_job_info_dto.py +463 -0
  165. huaweicloudsdkiotanalytics/v1/model/property_filter.py +170 -0
  166. huaweicloudsdkiotanalytics/v1/model/property_model_request.py +282 -0
  167. huaweicloudsdkiotanalytics/v1/model/property_model_response.py +311 -0
  168. huaweicloudsdkiotanalytics/v1/model/property_reference_model.py +200 -0
  169. huaweicloudsdkiotanalytics/v1/model/property_reference_req.py +115 -0
  170. huaweicloudsdkiotanalytics/v1/model/property_reference_response.py +229 -0
  171. huaweicloudsdkiotanalytics/v1/model/property_request.py +172 -0
  172. huaweicloudsdkiotanalytics/v1/model/property_response.py +340 -0
  173. huaweicloudsdkiotanalytics/v1/model/property_value.py +173 -0
  174. huaweicloudsdkiotanalytics/v1/model/publish_root_asset_request.py +114 -0
  175. huaweicloudsdkiotanalytics/v1/model/publish_root_asset_response.py +85 -0
  176. huaweicloudsdkiotanalytics/v1/model/raw_request.py +226 -0
  177. huaweicloudsdkiotanalytics/v1/model/raw_value.py +144 -0
  178. huaweicloudsdkiotanalytics/v1/model/run.py +366 -0
  179. huaweicloudsdkiotanalytics/v1/model/run_detail.py +168 -0
  180. huaweicloudsdkiotanalytics/v1/model/sasl_plain_auth_info.py +144 -0
  181. huaweicloudsdkiotanalytics/v1/model/schedule.py +342 -0
  182. huaweicloudsdkiotanalytics/v1/model/show_all_data_source_request.py +202 -0
  183. huaweicloudsdkiotanalytics/v1/model/show_all_data_source_response.py +145 -0
  184. huaweicloudsdkiotanalytics/v1/model/show_asset_model_request.py +114 -0
  185. huaweicloudsdkiotanalytics/v1/model/show_asset_model_response.py +290 -0
  186. huaweicloudsdkiotanalytics/v1/model/show_asset_new_request.py +142 -0
  187. huaweicloudsdkiotanalytics/v1/model/show_asset_new_response.py +522 -0
  188. huaweicloudsdkiotanalytics/v1/model/show_batch_job_request.py +114 -0
  189. huaweicloudsdkiotanalytics/v1/model/show_batch_job_response.py +369 -0
  190. huaweicloudsdkiotanalytics/v1/model/show_data_source_request.py +114 -0
  191. huaweicloudsdkiotanalytics/v1/model/show_data_source_response.py +257 -0
  192. huaweicloudsdkiotanalytics/v1/model/show_dataset_request.py +200 -0
  193. huaweicloudsdkiotanalytics/v1/model/show_dataset_response.py +199 -0
  194. huaweicloudsdkiotanalytics/v1/model/show_job_by_id_request.py +114 -0
  195. huaweicloudsdkiotanalytics/v1/model/show_job_by_id_response.py +141 -0
  196. huaweicloudsdkiotanalytics/v1/model/show_jobs_request.py +202 -0
  197. huaweicloudsdkiotanalytics/v1/model/show_jobs_response.py +145 -0
  198. huaweicloudsdkiotanalytics/v1/model/show_last_property_value_request.py +139 -0
  199. huaweicloudsdkiotanalytics/v1/model/show_last_property_value_response.py +116 -0
  200. huaweicloudsdkiotanalytics/v1/model/show_metric_value_request.py +139 -0
  201. huaweicloudsdkiotanalytics/v1/model/show_metric_value_response.py +145 -0
  202. huaweicloudsdkiotanalytics/v1/model/show_pipeline_job_request.py +114 -0
  203. huaweicloudsdkiotanalytics/v1/model/show_pipeline_job_response.py +141 -0
  204. huaweicloudsdkiotanalytics/v1/model/show_property_raw_value_request.py +139 -0
  205. huaweicloudsdkiotanalytics/v1/model/show_property_raw_value_response.py +145 -0
  206. huaweicloudsdkiotanalytics/v1/model/show_property_values_request.py +139 -0
  207. huaweicloudsdkiotanalytics/v1/model/show_property_values_response.py +116 -0
  208. huaweicloudsdkiotanalytics/v1/model/show_run_request.py +171 -0
  209. huaweicloudsdkiotanalytics/v1/model/show_run_response.py +290 -0
  210. huaweicloudsdkiotanalytics/v1/model/show_table_preview_request.py +114 -0
  211. huaweicloudsdkiotanalytics/v1/model/show_table_preview_response.py +145 -0
  212. huaweicloudsdkiotanalytics/v1/model/show_table_schema_request.py +114 -0
  213. huaweicloudsdkiotanalytics/v1/model/show_table_schema_response.py +373 -0
  214. huaweicloudsdkiotanalytics/v1/model/smn_content_req.py +170 -0
  215. huaweicloudsdkiotanalytics/v1/model/smn_content_rsp.py +173 -0
  216. huaweicloudsdkiotanalytics/v1/model/sql_job.py +114 -0
  217. huaweicloudsdkiotanalytics/v1/model/sql_job_query_dataset.py +172 -0
  218. huaweicloudsdkiotanalytics/v1/model/sql_job_run.py +114 -0
  219. huaweicloudsdkiotanalytics/v1/model/sql_job_run_detail.py +434 -0
  220. huaweicloudsdkiotanalytics/v1/model/sql_job_run_response_body.py +201 -0
  221. huaweicloudsdkiotanalytics/v1/model/start_job_request.py +201 -0
  222. huaweicloudsdkiotanalytics/v1/model/start_job_response.py +116 -0
  223. huaweicloudsdkiotanalytics/v1/model/start_pipeline_job_request.py +201 -0
  224. huaweicloudsdkiotanalytics/v1/model/start_pipeline_job_response.py +116 -0
  225. huaweicloudsdkiotanalytics/v1/model/stop_job_request.py +143 -0
  226. huaweicloudsdkiotanalytics/v1/model/stop_job_response.py +116 -0
  227. huaweicloudsdkiotanalytics/v1/model/stop_pipeline_job_request.py +143 -0
  228. huaweicloudsdkiotanalytics/v1/model/stop_pipeline_job_response.py +116 -0
  229. huaweicloudsdkiotanalytics/v1/model/storage_group.py +202 -0
  230. huaweicloudsdkiotanalytics/v1/model/stream_model.py +170 -0
  231. huaweicloudsdkiotanalytics/v1/model/stream_output.py +142 -0
  232. huaweicloudsdkiotanalytics/v1/model/stream_response.py +173 -0
  233. huaweicloudsdkiotanalytics/v1/model/streaming_job_info_dto.py +405 -0
  234. huaweicloudsdkiotanalytics/v1/model/table.py +463 -0
  235. huaweicloudsdkiotanalytics/v1/model/tag.py +144 -0
  236. huaweicloudsdkiotanalytics/v1/model/tag_info_dto.py +173 -0
  237. huaweicloudsdkiotanalytics/v1/model/time_span.py +142 -0
  238. huaweicloudsdkiotanalytics/v1/model/time_span_dt.py +144 -0
  239. huaweicloudsdkiotanalytics/v1/model/transform_metric.py +170 -0
  240. huaweicloudsdkiotanalytics/v1/model/transform_metrics.py +195 -0
  241. huaweicloudsdkiotanalytics/v1/model/transform_metrics_request.py +226 -0
  242. huaweicloudsdkiotanalytics/v1/model/transform_model.py +196 -0
  243. huaweicloudsdkiotanalytics/v1/model/transform_response.py +194 -0
  244. huaweicloudsdkiotanalytics/v1/model/update_asset_model_request.py +139 -0
  245. huaweicloudsdkiotanalytics/v1/model/update_asset_model_response.py +290 -0
  246. huaweicloudsdkiotanalytics/v1/model/update_asset_new_request.py +139 -0
  247. huaweicloudsdkiotanalytics/v1/model/update_asset_new_response.py +522 -0
  248. huaweicloudsdkiotanalytics/v1/model/update_batch_job_request.py +139 -0
  249. huaweicloudsdkiotanalytics/v1/model/update_batch_job_response.py +369 -0
  250. huaweicloudsdkiotanalytics/v1/model/update_data_source_request.py +139 -0
  251. huaweicloudsdkiotanalytics/v1/model/update_data_source_response.py +257 -0
  252. huaweicloudsdkiotanalytics/v1/model/update_data_store.py +202 -0
  253. huaweicloudsdkiotanalytics/v1/model/update_data_store_request.py +139 -0
  254. huaweicloudsdkiotanalytics/v1/model/update_data_store_response.py +319 -0
  255. huaweicloudsdkiotanalytics/v1/model/update_datasource_req_dto.py +167 -0
  256. huaweicloudsdkiotanalytics/v1/model/update_group_request.py +139 -0
  257. huaweicloudsdkiotanalytics/v1/model/update_group_response.py +406 -0
  258. huaweicloudsdkiotanalytics/v1/model/update_pipeline_job_request.py +172 -0
  259. huaweicloudsdkiotanalytics/v1/model/update_pipeline_job_response.py +203 -0
  260. huaweicloudsdkiotanalytics/v1/model/update_streaming_job_request.py +172 -0
  261. huaweicloudsdkiotanalytics/v1/model/update_streaming_job_response.py +203 -0
  262. huaweicloudsdkiotanalytics/v1/model/validate_sql_request.py +111 -0
  263. huaweicloudsdkiotanalytics/v1/model/validate_sql_request_body.py +115 -0
  264. huaweicloudsdkiotanalytics/v1/model/validate_sql_response.py +116 -0
  265. huaweicloudsdkiotanalytics/v1/model/vpcep_info.py +198 -0
  266. huaweicloudsdkiotanalytics/v1/model/vpcep_info_rsp.py +227 -0
  267. huaweicloudsdkiotanalytics/v1/region/__init__.py +0 -0
  268. huaweicloudsdkiotanalytics/v1/region/iotanalytics_region.py +31 -0
  269. huaweicloudsdkiotanalytics-3.1.160.dist-info/LICENSE +13 -0
  270. huaweicloudsdkiotanalytics-3.1.160.dist-info/METADATA +26 -0
  271. huaweicloudsdkiotanalytics-3.1.160.dist-info/RECORD +273 -0
  272. huaweicloudsdkiotanalytics-3.1.160.dist-info/WHEEL +5 -0
  273. huaweicloudsdkiotanalytics-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,4553 @@
1
+ # coding: utf-8
2
+
3
+ from __future__ import absolute_import
4
+
5
+ import importlib
6
+ import warnings
7
+
8
+ from huaweicloudsdkcore.client import Client, ClientBuilder
9
+ from huaweicloudsdkcore.utils import http_utils
10
+ from huaweicloudsdkcore.sdk_stream_request import SdkStreamRequest
11
+
12
+ try:
13
+ from huaweicloudsdkcore.invoker.invoker import AsyncInvoker
14
+ except ImportError as e:
15
+ warnings.warn(str(e) + ", please check if you are using the same versions of 'huaweicloudsdkcore' and 'huaweicloudsdkiotanalytics'")
16
+
17
+
18
+ class IoTAnalyticsAsyncClient(Client):
19
+ def __init__(self):
20
+ super(IoTAnalyticsAsyncClient, self).__init__()
21
+ self.model_package = importlib.import_module("huaweicloudsdkiotanalytics.v1.model")
22
+
23
+ @classmethod
24
+ def new_builder(cls, clazz=None):
25
+ if not clazz:
26
+ client_builder = ClientBuilder(cls)
27
+ else:
28
+ if clazz.__name__ != "IoTAnalyticsAsyncClient":
29
+ raise TypeError("client type error, support client type is IoTAnalyticsAsyncClient")
30
+ client_builder = ClientBuilder(clazz)
31
+
32
+
33
+
34
+ return client_builder
35
+
36
+ def create_asset_model_async(self, request):
37
+ r"""创建资产模型
38
+
39
+ 创建资产模型
40
+
41
+ Please refer to HUAWEI cloud API Explorer for details.
42
+
43
+
44
+ :param request: Request instance for CreateAssetModel
45
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.CreateAssetModelRequest`
46
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.CreateAssetModelResponse`
47
+ """
48
+ http_info = self._create_asset_model_http_info(request)
49
+ return self._call_api(**http_info)
50
+
51
+ def create_asset_model_async_invoker(self, request):
52
+ http_info = self._create_asset_model_http_info(request)
53
+ return AsyncInvoker(self, http_info)
54
+
55
+ def _create_asset_model_http_info(self, request):
56
+ http_info = {
57
+ "method": "POST",
58
+ "resource_path": "/v1/{project_id}/asset-models",
59
+ "request_type": request.__class__.__name__,
60
+ "response_type": "CreateAssetModelResponse"
61
+ }
62
+
63
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
64
+
65
+ cname = None
66
+
67
+ collection_formats = {}
68
+
69
+ path_params = {}
70
+
71
+ query_params = []
72
+
73
+ header_params = {}
74
+
75
+ form_params = {}
76
+
77
+ body = None
78
+ if 'body' in local_var_params:
79
+ body = local_var_params['body']
80
+ if isinstance(request, SdkStreamRequest):
81
+ body = request.get_file_stream()
82
+
83
+ response_headers = []
84
+
85
+ header_params['Content-Type'] = http_utils.select_header_content_type(
86
+ ['application/json'])
87
+
88
+ auth_settings = []
89
+
90
+ http_info["cname"] = cname
91
+ http_info["collection_formats"] = collection_formats
92
+ http_info["path_params"] = path_params
93
+ http_info["query_params"] = query_params
94
+ http_info["header_params"] = header_params
95
+ http_info["post_params"] = form_params
96
+ http_info["body"] = body
97
+ http_info["response_headers"] = response_headers
98
+
99
+ return http_info
100
+
101
+ def delete_asset_model_async(self, request):
102
+ r"""删除资产模型
103
+
104
+ 删除资产模型
105
+
106
+ Please refer to HUAWEI cloud API Explorer for details.
107
+
108
+
109
+ :param request: Request instance for DeleteAssetModel
110
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteAssetModelRequest`
111
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteAssetModelResponse`
112
+ """
113
+ http_info = self._delete_asset_model_http_info(request)
114
+ return self._call_api(**http_info)
115
+
116
+ def delete_asset_model_async_invoker(self, request):
117
+ http_info = self._delete_asset_model_http_info(request)
118
+ return AsyncInvoker(self, http_info)
119
+
120
+ def _delete_asset_model_http_info(self, request):
121
+ http_info = {
122
+ "method": "DELETE",
123
+ "resource_path": "/v1/{project_id}/asset-models/{model_id}",
124
+ "request_type": request.__class__.__name__,
125
+ "response_type": "DeleteAssetModelResponse"
126
+ }
127
+
128
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
129
+
130
+ cname = None
131
+
132
+ collection_formats = {}
133
+
134
+ path_params = {}
135
+ if 'model_id' in local_var_params:
136
+ path_params['model_id'] = local_var_params['model_id']
137
+
138
+ query_params = []
139
+
140
+ header_params = {}
141
+
142
+ form_params = {}
143
+
144
+ body = None
145
+ if isinstance(request, SdkStreamRequest):
146
+ body = request.get_file_stream()
147
+
148
+ response_headers = []
149
+
150
+ header_params['Content-Type'] = http_utils.select_header_content_type(
151
+ ['application/json'])
152
+
153
+ auth_settings = []
154
+
155
+ http_info["cname"] = cname
156
+ http_info["collection_formats"] = collection_formats
157
+ http_info["path_params"] = path_params
158
+ http_info["query_params"] = query_params
159
+ http_info["header_params"] = header_params
160
+ http_info["post_params"] = form_params
161
+ http_info["body"] = body
162
+ http_info["response_headers"] = response_headers
163
+
164
+ return http_info
165
+
166
+ def list_asset_models_async(self, request):
167
+ r"""获取资产模型列表
168
+
169
+ 获取资产模型列表
170
+
171
+ Please refer to HUAWEI cloud API Explorer for details.
172
+
173
+
174
+ :param request: Request instance for ListAssetModels
175
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListAssetModelsRequest`
176
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListAssetModelsResponse`
177
+ """
178
+ http_info = self._list_asset_models_http_info(request)
179
+ return self._call_api(**http_info)
180
+
181
+ def list_asset_models_async_invoker(self, request):
182
+ http_info = self._list_asset_models_http_info(request)
183
+ return AsyncInvoker(self, http_info)
184
+
185
+ def _list_asset_models_http_info(self, request):
186
+ http_info = {
187
+ "method": "GET",
188
+ "resource_path": "/v1/{project_id}/asset-models",
189
+ "request_type": request.__class__.__name__,
190
+ "response_type": "ListAssetModelsResponse"
191
+ }
192
+
193
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
194
+
195
+ cname = None
196
+
197
+ collection_formats = {}
198
+
199
+ path_params = {}
200
+
201
+ query_params = []
202
+ if 'filter' in local_var_params:
203
+ query_params.append(('filter', local_var_params['filter']))
204
+ if 'limit' in local_var_params:
205
+ query_params.append(('limit', local_var_params['limit']))
206
+ if 'offset' in local_var_params:
207
+ query_params.append(('offset', local_var_params['offset']))
208
+
209
+ header_params = {}
210
+
211
+ form_params = {}
212
+
213
+ body = None
214
+ if isinstance(request, SdkStreamRequest):
215
+ body = request.get_file_stream()
216
+
217
+ response_headers = []
218
+
219
+ header_params['Content-Type'] = http_utils.select_header_content_type(
220
+ ['application/json'])
221
+
222
+ auth_settings = []
223
+
224
+ http_info["cname"] = cname
225
+ http_info["collection_formats"] = collection_formats
226
+ http_info["path_params"] = path_params
227
+ http_info["query_params"] = query_params
228
+ http_info["header_params"] = header_params
229
+ http_info["post_params"] = form_params
230
+ http_info["body"] = body
231
+ http_info["response_headers"] = response_headers
232
+
233
+ return http_info
234
+
235
+ def show_asset_model_async(self, request):
236
+ r"""获取资产模型详情
237
+
238
+ 获取资产模型详情
239
+
240
+ Please refer to HUAWEI cloud API Explorer for details.
241
+
242
+
243
+ :param request: Request instance for ShowAssetModel
244
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowAssetModelRequest`
245
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowAssetModelResponse`
246
+ """
247
+ http_info = self._show_asset_model_http_info(request)
248
+ return self._call_api(**http_info)
249
+
250
+ def show_asset_model_async_invoker(self, request):
251
+ http_info = self._show_asset_model_http_info(request)
252
+ return AsyncInvoker(self, http_info)
253
+
254
+ def _show_asset_model_http_info(self, request):
255
+ http_info = {
256
+ "method": "GET",
257
+ "resource_path": "/v1/{project_id}/asset-models/{model_id}",
258
+ "request_type": request.__class__.__name__,
259
+ "response_type": "ShowAssetModelResponse"
260
+ }
261
+
262
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
263
+
264
+ cname = None
265
+
266
+ collection_formats = {}
267
+
268
+ path_params = {}
269
+ if 'model_id' in local_var_params:
270
+ path_params['model_id'] = local_var_params['model_id']
271
+
272
+ query_params = []
273
+
274
+ header_params = {}
275
+
276
+ form_params = {}
277
+
278
+ body = None
279
+ if isinstance(request, SdkStreamRequest):
280
+ body = request.get_file_stream()
281
+
282
+ response_headers = []
283
+
284
+ header_params['Content-Type'] = http_utils.select_header_content_type(
285
+ ['application/json'])
286
+
287
+ auth_settings = []
288
+
289
+ http_info["cname"] = cname
290
+ http_info["collection_formats"] = collection_formats
291
+ http_info["path_params"] = path_params
292
+ http_info["query_params"] = query_params
293
+ http_info["header_params"] = header_params
294
+ http_info["post_params"] = form_params
295
+ http_info["body"] = body
296
+ http_info["response_headers"] = response_headers
297
+
298
+ return http_info
299
+
300
+ def update_asset_model_async(self, request):
301
+ r"""修改资产模型
302
+
303
+ 修改资产模型
304
+
305
+ Please refer to HUAWEI cloud API Explorer for details.
306
+
307
+
308
+ :param request: Request instance for UpdateAssetModel
309
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.UpdateAssetModelRequest`
310
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.UpdateAssetModelResponse`
311
+ """
312
+ http_info = self._update_asset_model_http_info(request)
313
+ return self._call_api(**http_info)
314
+
315
+ def update_asset_model_async_invoker(self, request):
316
+ http_info = self._update_asset_model_http_info(request)
317
+ return AsyncInvoker(self, http_info)
318
+
319
+ def _update_asset_model_http_info(self, request):
320
+ http_info = {
321
+ "method": "PUT",
322
+ "resource_path": "/v1/{project_id}/asset-models/{model_id}",
323
+ "request_type": request.__class__.__name__,
324
+ "response_type": "UpdateAssetModelResponse"
325
+ }
326
+
327
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
328
+
329
+ cname = None
330
+
331
+ collection_formats = {}
332
+
333
+ path_params = {}
334
+ if 'model_id' in local_var_params:
335
+ path_params['model_id'] = local_var_params['model_id']
336
+
337
+ query_params = []
338
+
339
+ header_params = {}
340
+
341
+ form_params = {}
342
+
343
+ body = None
344
+ if 'body' in local_var_params:
345
+ body = local_var_params['body']
346
+ if isinstance(request, SdkStreamRequest):
347
+ body = request.get_file_stream()
348
+
349
+ response_headers = []
350
+
351
+ header_params['Content-Type'] = http_utils.select_header_content_type(
352
+ ['application/json'])
353
+
354
+ auth_settings = []
355
+
356
+ http_info["cname"] = cname
357
+ http_info["collection_formats"] = collection_formats
358
+ http_info["path_params"] = path_params
359
+ http_info["query_params"] = query_params
360
+ http_info["header_params"] = header_params
361
+ http_info["post_params"] = form_params
362
+ http_info["body"] = body
363
+ http_info["response_headers"] = response_headers
364
+
365
+ return http_info
366
+
367
+ def create_asset_new_async(self, request):
368
+ r"""创建资产
369
+
370
+ 创建资产
371
+
372
+ Please refer to HUAWEI cloud API Explorer for details.
373
+
374
+
375
+ :param request: Request instance for CreateAssetNew
376
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.CreateAssetNewRequest`
377
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.CreateAssetNewResponse`
378
+ """
379
+ http_info = self._create_asset_new_http_info(request)
380
+ return self._call_api(**http_info)
381
+
382
+ def create_asset_new_async_invoker(self, request):
383
+ http_info = self._create_asset_new_http_info(request)
384
+ return AsyncInvoker(self, http_info)
385
+
386
+ def _create_asset_new_http_info(self, request):
387
+ http_info = {
388
+ "method": "POST",
389
+ "resource_path": "/v1/{project_id}/assets",
390
+ "request_type": request.__class__.__name__,
391
+ "response_type": "CreateAssetNewResponse"
392
+ }
393
+
394
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
395
+
396
+ cname = None
397
+
398
+ collection_formats = {}
399
+
400
+ path_params = {}
401
+
402
+ query_params = []
403
+
404
+ header_params = {}
405
+
406
+ form_params = {}
407
+
408
+ body = None
409
+ if 'body' in local_var_params:
410
+ body = local_var_params['body']
411
+ if isinstance(request, SdkStreamRequest):
412
+ body = request.get_file_stream()
413
+
414
+ response_headers = []
415
+
416
+ header_params['Content-Type'] = http_utils.select_header_content_type(
417
+ ['application/json'])
418
+
419
+ auth_settings = []
420
+
421
+ http_info["cname"] = cname
422
+ http_info["collection_formats"] = collection_formats
423
+ http_info["path_params"] = path_params
424
+ http_info["query_params"] = query_params
425
+ http_info["header_params"] = header_params
426
+ http_info["post_params"] = form_params
427
+ http_info["body"] = body
428
+ http_info["response_headers"] = response_headers
429
+
430
+ return http_info
431
+
432
+ def delete_asset_new_async(self, request):
433
+ r"""删除资产
434
+
435
+ 删除资产
436
+
437
+ Please refer to HUAWEI cloud API Explorer for details.
438
+
439
+
440
+ :param request: Request instance for DeleteAssetNew
441
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteAssetNewRequest`
442
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteAssetNewResponse`
443
+ """
444
+ http_info = self._delete_asset_new_http_info(request)
445
+ return self._call_api(**http_info)
446
+
447
+ def delete_asset_new_async_invoker(self, request):
448
+ http_info = self._delete_asset_new_http_info(request)
449
+ return AsyncInvoker(self, http_info)
450
+
451
+ def _delete_asset_new_http_info(self, request):
452
+ http_info = {
453
+ "method": "DELETE",
454
+ "resource_path": "/v1/{project_id}/assets/{asset_id}",
455
+ "request_type": request.__class__.__name__,
456
+ "response_type": "DeleteAssetNewResponse"
457
+ }
458
+
459
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
460
+
461
+ cname = None
462
+
463
+ collection_formats = {}
464
+
465
+ path_params = {}
466
+ if 'asset_id' in local_var_params:
467
+ path_params['asset_id'] = local_var_params['asset_id']
468
+
469
+ query_params = []
470
+
471
+ header_params = {}
472
+
473
+ form_params = {}
474
+
475
+ body = None
476
+ if isinstance(request, SdkStreamRequest):
477
+ body = request.get_file_stream()
478
+
479
+ response_headers = []
480
+
481
+ header_params['Content-Type'] = http_utils.select_header_content_type(
482
+ ['application/json'])
483
+
484
+ auth_settings = []
485
+
486
+ http_info["cname"] = cname
487
+ http_info["collection_formats"] = collection_formats
488
+ http_info["path_params"] = path_params
489
+ http_info["query_params"] = query_params
490
+ http_info["header_params"] = header_params
491
+ http_info["post_params"] = form_params
492
+ http_info["body"] = body
493
+ http_info["response_headers"] = response_headers
494
+
495
+ return http_info
496
+
497
+ def list_assets_new_async(self, request):
498
+ r"""获取资产列表
499
+
500
+ 获取资产列表
501
+
502
+ Please refer to HUAWEI cloud API Explorer for details.
503
+
504
+
505
+ :param request: Request instance for ListAssetsNew
506
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListAssetsNewRequest`
507
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListAssetsNewResponse`
508
+ """
509
+ http_info = self._list_assets_new_http_info(request)
510
+ return self._call_api(**http_info)
511
+
512
+ def list_assets_new_async_invoker(self, request):
513
+ http_info = self._list_assets_new_http_info(request)
514
+ return AsyncInvoker(self, http_info)
515
+
516
+ def _list_assets_new_http_info(self, request):
517
+ http_info = {
518
+ "method": "GET",
519
+ "resource_path": "/v1/{project_id}/assets",
520
+ "request_type": request.__class__.__name__,
521
+ "response_type": "ListAssetsNewResponse"
522
+ }
523
+
524
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
525
+
526
+ cname = None
527
+
528
+ collection_formats = {}
529
+
530
+ path_params = {}
531
+
532
+ query_params = []
533
+ if 'limit' in local_var_params:
534
+ query_params.append(('limit', local_var_params['limit']))
535
+ if 'offset' in local_var_params:
536
+ query_params.append(('offset', local_var_params['offset']))
537
+ if 'filter' in local_var_params:
538
+ query_params.append(('filter', local_var_params['filter']))
539
+ if 'type' in local_var_params:
540
+ query_params.append(('type', local_var_params['type']))
541
+
542
+ header_params = {}
543
+
544
+ form_params = {}
545
+
546
+ body = None
547
+ if isinstance(request, SdkStreamRequest):
548
+ body = request.get_file_stream()
549
+
550
+ response_headers = []
551
+
552
+ header_params['Content-Type'] = http_utils.select_header_content_type(
553
+ ['application/json'])
554
+
555
+ auth_settings = []
556
+
557
+ http_info["cname"] = cname
558
+ http_info["collection_formats"] = collection_formats
559
+ http_info["path_params"] = path_params
560
+ http_info["query_params"] = query_params
561
+ http_info["header_params"] = header_params
562
+ http_info["post_params"] = form_params
563
+ http_info["body"] = body
564
+ http_info["response_headers"] = response_headers
565
+
566
+ return http_info
567
+
568
+ def publish_root_asset_async(self, request):
569
+ r"""发布资产
570
+
571
+ 发布资产
572
+
573
+ Please refer to HUAWEI cloud API Explorer for details.
574
+
575
+
576
+ :param request: Request instance for PublishRootAsset
577
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.PublishRootAssetRequest`
578
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.PublishRootAssetResponse`
579
+ """
580
+ http_info = self._publish_root_asset_http_info(request)
581
+ return self._call_api(**http_info)
582
+
583
+ def publish_root_asset_async_invoker(self, request):
584
+ http_info = self._publish_root_asset_http_info(request)
585
+ return AsyncInvoker(self, http_info)
586
+
587
+ def _publish_root_asset_http_info(self, request):
588
+ http_info = {
589
+ "method": "POST",
590
+ "resource_path": "/v1/{project_id}/assets/{root_asset_id}/publish",
591
+ "request_type": request.__class__.__name__,
592
+ "response_type": "PublishRootAssetResponse"
593
+ }
594
+
595
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
596
+
597
+ cname = None
598
+
599
+ collection_formats = {}
600
+
601
+ path_params = {}
602
+ if 'root_asset_id' in local_var_params:
603
+ path_params['root_asset_id'] = local_var_params['root_asset_id']
604
+
605
+ query_params = []
606
+
607
+ header_params = {}
608
+
609
+ form_params = {}
610
+
611
+ body = None
612
+ if isinstance(request, SdkStreamRequest):
613
+ body = request.get_file_stream()
614
+
615
+ response_headers = []
616
+
617
+ header_params['Content-Type'] = http_utils.select_header_content_type(
618
+ ['application/json'])
619
+
620
+ auth_settings = []
621
+
622
+ http_info["cname"] = cname
623
+ http_info["collection_formats"] = collection_formats
624
+ http_info["path_params"] = path_params
625
+ http_info["query_params"] = query_params
626
+ http_info["header_params"] = header_params
627
+ http_info["post_params"] = form_params
628
+ http_info["body"] = body
629
+ http_info["response_headers"] = response_headers
630
+
631
+ return http_info
632
+
633
+ def show_asset_new_async(self, request):
634
+ r"""获取资产详情
635
+
636
+ 获取资产详情
637
+
638
+ Please refer to HUAWEI cloud API Explorer for details.
639
+
640
+
641
+ :param request: Request instance for ShowAssetNew
642
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowAssetNewRequest`
643
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowAssetNewResponse`
644
+ """
645
+ http_info = self._show_asset_new_http_info(request)
646
+ return self._call_api(**http_info)
647
+
648
+ def show_asset_new_async_invoker(self, request):
649
+ http_info = self._show_asset_new_http_info(request)
650
+ return AsyncInvoker(self, http_info)
651
+
652
+ def _show_asset_new_http_info(self, request):
653
+ http_info = {
654
+ "method": "GET",
655
+ "resource_path": "/v1/{project_id}/assets/{asset_id}",
656
+ "request_type": request.__class__.__name__,
657
+ "response_type": "ShowAssetNewResponse"
658
+ }
659
+
660
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
661
+
662
+ cname = None
663
+
664
+ collection_formats = {}
665
+
666
+ path_params = {}
667
+ if 'asset_id' in local_var_params:
668
+ path_params['asset_id'] = local_var_params['asset_id']
669
+
670
+ query_params = []
671
+ if 'type' in local_var_params:
672
+ query_params.append(('type', local_var_params['type']))
673
+
674
+ header_params = {}
675
+
676
+ form_params = {}
677
+
678
+ body = None
679
+ if isinstance(request, SdkStreamRequest):
680
+ body = request.get_file_stream()
681
+
682
+ response_headers = []
683
+
684
+ header_params['Content-Type'] = http_utils.select_header_content_type(
685
+ ['application/json'])
686
+
687
+ auth_settings = []
688
+
689
+ http_info["cname"] = cname
690
+ http_info["collection_formats"] = collection_formats
691
+ http_info["path_params"] = path_params
692
+ http_info["query_params"] = query_params
693
+ http_info["header_params"] = header_params
694
+ http_info["post_params"] = form_params
695
+ http_info["body"] = body
696
+ http_info["response_headers"] = response_headers
697
+
698
+ return http_info
699
+
700
+ def update_asset_new_async(self, request):
701
+ r"""修改资产
702
+
703
+ 修改资产
704
+
705
+ Please refer to HUAWEI cloud API Explorer for details.
706
+
707
+
708
+ :param request: Request instance for UpdateAssetNew
709
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.UpdateAssetNewRequest`
710
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.UpdateAssetNewResponse`
711
+ """
712
+ http_info = self._update_asset_new_http_info(request)
713
+ return self._call_api(**http_info)
714
+
715
+ def update_asset_new_async_invoker(self, request):
716
+ http_info = self._update_asset_new_http_info(request)
717
+ return AsyncInvoker(self, http_info)
718
+
719
+ def _update_asset_new_http_info(self, request):
720
+ http_info = {
721
+ "method": "PUT",
722
+ "resource_path": "/v1/{project_id}/assets/{asset_id}",
723
+ "request_type": request.__class__.__name__,
724
+ "response_type": "UpdateAssetNewResponse"
725
+ }
726
+
727
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
728
+
729
+ cname = None
730
+
731
+ collection_formats = {}
732
+
733
+ path_params = {}
734
+ if 'asset_id' in local_var_params:
735
+ path_params['asset_id'] = local_var_params['asset_id']
736
+
737
+ query_params = []
738
+
739
+ header_params = {}
740
+
741
+ form_params = {}
742
+
743
+ body = None
744
+ if 'body' in local_var_params:
745
+ body = local_var_params['body']
746
+ if isinstance(request, SdkStreamRequest):
747
+ body = request.get_file_stream()
748
+
749
+ response_headers = []
750
+
751
+ header_params['Content-Type'] = http_utils.select_header_content_type(
752
+ ['application/json'])
753
+
754
+ auth_settings = []
755
+
756
+ http_info["cname"] = cname
757
+ http_info["collection_formats"] = collection_formats
758
+ http_info["path_params"] = path_params
759
+ http_info["query_params"] = query_params
760
+ http_info["header_params"] = header_params
761
+ http_info["post_params"] = form_params
762
+ http_info["body"] = body
763
+ http_info["response_headers"] = response_headers
764
+
765
+ return http_info
766
+
767
+ def show_last_property_value_async(self, request):
768
+ r"""获取资产属性最新值
769
+
770
+ 获取资产属性最新值
771
+
772
+ Please refer to HUAWEI cloud API Explorer for details.
773
+
774
+
775
+ :param request: Request instance for ShowLastPropertyValue
776
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowLastPropertyValueRequest`
777
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowLastPropertyValueResponse`
778
+ """
779
+ http_info = self._show_last_property_value_http_info(request)
780
+ return self._call_api(**http_info)
781
+
782
+ def show_last_property_value_async_invoker(self, request):
783
+ http_info = self._show_last_property_value_http_info(request)
784
+ return AsyncInvoker(self, http_info)
785
+
786
+ def _show_last_property_value_http_info(self, request):
787
+ http_info = {
788
+ "method": "POST",
789
+ "resource_path": "/v1/{project_id}/assets/{asset_id}/property-values/query-last",
790
+ "request_type": request.__class__.__name__,
791
+ "response_type": "ShowLastPropertyValueResponse"
792
+ }
793
+
794
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
795
+
796
+ cname = None
797
+
798
+ collection_formats = {}
799
+
800
+ path_params = {}
801
+ if 'asset_id' in local_var_params:
802
+ path_params['asset_id'] = local_var_params['asset_id']
803
+
804
+ query_params = []
805
+
806
+ header_params = {}
807
+
808
+ form_params = {}
809
+
810
+ body = None
811
+ if 'body' in local_var_params:
812
+ body = local_var_params['body']
813
+ if isinstance(request, SdkStreamRequest):
814
+ body = request.get_file_stream()
815
+
816
+ response_headers = []
817
+
818
+ header_params['Content-Type'] = http_utils.select_header_content_type(
819
+ ['application/json'])
820
+
821
+ auth_settings = []
822
+
823
+ http_info["cname"] = cname
824
+ http_info["collection_formats"] = collection_formats
825
+ http_info["path_params"] = path_params
826
+ http_info["query_params"] = query_params
827
+ http_info["header_params"] = header_params
828
+ http_info["post_params"] = form_params
829
+ http_info["body"] = body
830
+ http_info["response_headers"] = response_headers
831
+
832
+ return http_info
833
+
834
+ def show_metric_value_async(self, request):
835
+ r"""获取资产属性聚合值
836
+
837
+ 获取资产属性聚合值
838
+
839
+ Please refer to HUAWEI cloud API Explorer for details.
840
+
841
+
842
+ :param request: Request instance for ShowMetricValue
843
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowMetricValueRequest`
844
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowMetricValueResponse`
845
+ """
846
+ http_info = self._show_metric_value_http_info(request)
847
+ return self._call_api(**http_info)
848
+
849
+ def show_metric_value_async_invoker(self, request):
850
+ http_info = self._show_metric_value_http_info(request)
851
+ return AsyncInvoker(self, http_info)
852
+
853
+ def _show_metric_value_http_info(self, request):
854
+ http_info = {
855
+ "method": "POST",
856
+ "resource_path": "/v1/{project_id}/assets/{asset_id}/metrics/query",
857
+ "request_type": request.__class__.__name__,
858
+ "response_type": "ShowMetricValueResponse"
859
+ }
860
+
861
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
862
+
863
+ cname = None
864
+
865
+ collection_formats = {}
866
+
867
+ path_params = {}
868
+ if 'asset_id' in local_var_params:
869
+ path_params['asset_id'] = local_var_params['asset_id']
870
+
871
+ query_params = []
872
+
873
+ header_params = {}
874
+
875
+ form_params = {}
876
+
877
+ body = None
878
+ if 'body' in local_var_params:
879
+ body = local_var_params['body']
880
+ if isinstance(request, SdkStreamRequest):
881
+ body = request.get_file_stream()
882
+
883
+ response_headers = []
884
+
885
+ header_params['Content-Type'] = http_utils.select_header_content_type(
886
+ ['application/json'])
887
+
888
+ auth_settings = []
889
+
890
+ http_info["cname"] = cname
891
+ http_info["collection_formats"] = collection_formats
892
+ http_info["path_params"] = path_params
893
+ http_info["query_params"] = query_params
894
+ http_info["header_params"] = header_params
895
+ http_info["post_params"] = form_params
896
+ http_info["body"] = body
897
+ http_info["response_headers"] = response_headers
898
+
899
+ return http_info
900
+
901
+ def show_property_raw_value_async(self, request):
902
+ r"""获取资产属性历史值
903
+
904
+ 获取资产属性历史值
905
+
906
+ Please refer to HUAWEI cloud API Explorer for details.
907
+
908
+
909
+ :param request: Request instance for ShowPropertyRawValue
910
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowPropertyRawValueRequest`
911
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowPropertyRawValueResponse`
912
+ """
913
+ http_info = self._show_property_raw_value_http_info(request)
914
+ return self._call_api(**http_info)
915
+
916
+ def show_property_raw_value_async_invoker(self, request):
917
+ http_info = self._show_property_raw_value_http_info(request)
918
+ return AsyncInvoker(self, http_info)
919
+
920
+ def _show_property_raw_value_http_info(self, request):
921
+ http_info = {
922
+ "method": "POST",
923
+ "resource_path": "/v1/{project_id}/assets/{asset_id}/property-values/query",
924
+ "request_type": request.__class__.__name__,
925
+ "response_type": "ShowPropertyRawValueResponse"
926
+ }
927
+
928
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
929
+
930
+ cname = None
931
+
932
+ collection_formats = {}
933
+
934
+ path_params = {}
935
+ if 'asset_id' in local_var_params:
936
+ path_params['asset_id'] = local_var_params['asset_id']
937
+
938
+ query_params = []
939
+
940
+ header_params = {}
941
+
942
+ form_params = {}
943
+
944
+ body = None
945
+ if 'body' in local_var_params:
946
+ body = local_var_params['body']
947
+ if isinstance(request, SdkStreamRequest):
948
+ body = request.get_file_stream()
949
+
950
+ response_headers = []
951
+
952
+ header_params['Content-Type'] = http_utils.select_header_content_type(
953
+ ['application/json'])
954
+
955
+ auth_settings = []
956
+
957
+ http_info["cname"] = cname
958
+ http_info["collection_formats"] = collection_formats
959
+ http_info["path_params"] = path_params
960
+ http_info["query_params"] = query_params
961
+ http_info["header_params"] = header_params
962
+ http_info["post_params"] = form_params
963
+ http_info["body"] = body
964
+ http_info["response_headers"] = response_headers
965
+
966
+ return http_info
967
+
968
+ def create_datasource_async(self, request):
969
+ r"""创建数据源
970
+
971
+ 创建数据源
972
+
973
+ Please refer to HUAWEI cloud API Explorer for details.
974
+
975
+
976
+ :param request: Request instance for CreateDatasource
977
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.CreateDatasourceRequest`
978
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.CreateDatasourceResponse`
979
+ """
980
+ http_info = self._create_datasource_http_info(request)
981
+ return self._call_api(**http_info)
982
+
983
+ def create_datasource_async_invoker(self, request):
984
+ http_info = self._create_datasource_http_info(request)
985
+ return AsyncInvoker(self, http_info)
986
+
987
+ def _create_datasource_http_info(self, request):
988
+ http_info = {
989
+ "method": "POST",
990
+ "resource_path": "/v1/{project_id}/datasources",
991
+ "request_type": request.__class__.__name__,
992
+ "response_type": "CreateDatasourceResponse"
993
+ }
994
+
995
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
996
+
997
+ cname = None
998
+
999
+ collection_formats = {}
1000
+
1001
+ path_params = {}
1002
+
1003
+ query_params = []
1004
+
1005
+ header_params = {}
1006
+
1007
+ form_params = {}
1008
+
1009
+ body = None
1010
+ if 'body' in local_var_params:
1011
+ body = local_var_params['body']
1012
+ if isinstance(request, SdkStreamRequest):
1013
+ body = request.get_file_stream()
1014
+
1015
+ response_headers = []
1016
+
1017
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1018
+ ['application/json'])
1019
+
1020
+ auth_settings = []
1021
+
1022
+ http_info["cname"] = cname
1023
+ http_info["collection_formats"] = collection_formats
1024
+ http_info["path_params"] = path_params
1025
+ http_info["query_params"] = query_params
1026
+ http_info["header_params"] = header_params
1027
+ http_info["post_params"] = form_params
1028
+ http_info["body"] = body
1029
+ http_info["response_headers"] = response_headers
1030
+
1031
+ return http_info
1032
+
1033
+ def delete_datasource_async(self, request):
1034
+ r"""删除数据源
1035
+
1036
+ 删除数据源
1037
+
1038
+ Please refer to HUAWEI cloud API Explorer for details.
1039
+
1040
+
1041
+ :param request: Request instance for DeleteDatasource
1042
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteDatasourceRequest`
1043
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteDatasourceResponse`
1044
+ """
1045
+ http_info = self._delete_datasource_http_info(request)
1046
+ return self._call_api(**http_info)
1047
+
1048
+ def delete_datasource_async_invoker(self, request):
1049
+ http_info = self._delete_datasource_http_info(request)
1050
+ return AsyncInvoker(self, http_info)
1051
+
1052
+ def _delete_datasource_http_info(self, request):
1053
+ http_info = {
1054
+ "method": "DELETE",
1055
+ "resource_path": "/v1/{project_id}/datasources/{datasource_id}",
1056
+ "request_type": request.__class__.__name__,
1057
+ "response_type": "DeleteDatasourceResponse"
1058
+ }
1059
+
1060
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1061
+
1062
+ cname = None
1063
+
1064
+ collection_formats = {}
1065
+
1066
+ path_params = {}
1067
+ if 'datasource_id' in local_var_params:
1068
+ path_params['datasource_id'] = local_var_params['datasource_id']
1069
+
1070
+ query_params = []
1071
+
1072
+ header_params = {}
1073
+
1074
+ form_params = {}
1075
+
1076
+ body = None
1077
+ if isinstance(request, SdkStreamRequest):
1078
+ body = request.get_file_stream()
1079
+
1080
+ response_headers = []
1081
+
1082
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1083
+ ['application/json'])
1084
+
1085
+ auth_settings = []
1086
+
1087
+ http_info["cname"] = cname
1088
+ http_info["collection_formats"] = collection_formats
1089
+ http_info["path_params"] = path_params
1090
+ http_info["query_params"] = query_params
1091
+ http_info["header_params"] = header_params
1092
+ http_info["post_params"] = form_params
1093
+ http_info["body"] = body
1094
+ http_info["response_headers"] = response_headers
1095
+
1096
+ return http_info
1097
+
1098
+ def show_all_data_source_async(self, request):
1099
+ r"""查询数据源列表
1100
+
1101
+ 查询数据源列表
1102
+
1103
+ Please refer to HUAWEI cloud API Explorer for details.
1104
+
1105
+
1106
+ :param request: Request instance for ShowAllDataSource
1107
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowAllDataSourceRequest`
1108
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowAllDataSourceResponse`
1109
+ """
1110
+ http_info = self._show_all_data_source_http_info(request)
1111
+ return self._call_api(**http_info)
1112
+
1113
+ def show_all_data_source_async_invoker(self, request):
1114
+ http_info = self._show_all_data_source_http_info(request)
1115
+ return AsyncInvoker(self, http_info)
1116
+
1117
+ def _show_all_data_source_http_info(self, request):
1118
+ http_info = {
1119
+ "method": "GET",
1120
+ "resource_path": "/v1/{project_id}/datasources",
1121
+ "request_type": request.__class__.__name__,
1122
+ "response_type": "ShowAllDataSourceResponse"
1123
+ }
1124
+
1125
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1126
+
1127
+ cname = None
1128
+
1129
+ collection_formats = {}
1130
+
1131
+ path_params = {}
1132
+
1133
+ query_params = []
1134
+ if 'name' in local_var_params:
1135
+ query_params.append(('name', local_var_params['name']))
1136
+ if 'type' in local_var_params:
1137
+ query_params.append(('type', local_var_params['type']))
1138
+ if 'limit' in local_var_params:
1139
+ query_params.append(('limit', local_var_params['limit']))
1140
+ if 'offset' in local_var_params:
1141
+ query_params.append(('offset', local_var_params['offset']))
1142
+
1143
+ header_params = {}
1144
+
1145
+ form_params = {}
1146
+
1147
+ body = None
1148
+ if isinstance(request, SdkStreamRequest):
1149
+ body = request.get_file_stream()
1150
+
1151
+ response_headers = []
1152
+
1153
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1154
+ ['application/json'])
1155
+
1156
+ auth_settings = []
1157
+
1158
+ http_info["cname"] = cname
1159
+ http_info["collection_formats"] = collection_formats
1160
+ http_info["path_params"] = path_params
1161
+ http_info["query_params"] = query_params
1162
+ http_info["header_params"] = header_params
1163
+ http_info["post_params"] = form_params
1164
+ http_info["body"] = body
1165
+ http_info["response_headers"] = response_headers
1166
+
1167
+ return http_info
1168
+
1169
+ def show_data_source_async(self, request):
1170
+ r"""查询数据源详情
1171
+
1172
+ 查询数据源详情
1173
+
1174
+ Please refer to HUAWEI cloud API Explorer for details.
1175
+
1176
+
1177
+ :param request: Request instance for ShowDataSource
1178
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowDataSourceRequest`
1179
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowDataSourceResponse`
1180
+ """
1181
+ http_info = self._show_data_source_http_info(request)
1182
+ return self._call_api(**http_info)
1183
+
1184
+ def show_data_source_async_invoker(self, request):
1185
+ http_info = self._show_data_source_http_info(request)
1186
+ return AsyncInvoker(self, http_info)
1187
+
1188
+ def _show_data_source_http_info(self, request):
1189
+ http_info = {
1190
+ "method": "GET",
1191
+ "resource_path": "/v1/{project_id}/datasources/{datasource_id}",
1192
+ "request_type": request.__class__.__name__,
1193
+ "response_type": "ShowDataSourceResponse"
1194
+ }
1195
+
1196
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1197
+
1198
+ cname = None
1199
+
1200
+ collection_formats = {}
1201
+
1202
+ path_params = {}
1203
+ if 'datasource_id' in local_var_params:
1204
+ path_params['datasource_id'] = local_var_params['datasource_id']
1205
+
1206
+ query_params = []
1207
+
1208
+ header_params = {}
1209
+
1210
+ form_params = {}
1211
+
1212
+ body = None
1213
+ if isinstance(request, SdkStreamRequest):
1214
+ body = request.get_file_stream()
1215
+
1216
+ response_headers = []
1217
+
1218
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1219
+ ['application/json'])
1220
+
1221
+ auth_settings = []
1222
+
1223
+ http_info["cname"] = cname
1224
+ http_info["collection_formats"] = collection_formats
1225
+ http_info["path_params"] = path_params
1226
+ http_info["query_params"] = query_params
1227
+ http_info["header_params"] = header_params
1228
+ http_info["post_params"] = form_params
1229
+ http_info["body"] = body
1230
+ http_info["response_headers"] = response_headers
1231
+
1232
+ return http_info
1233
+
1234
+ def update_data_source_async(self, request):
1235
+ r"""修改数据源
1236
+
1237
+ 修改数据源
1238
+
1239
+ Please refer to HUAWEI cloud API Explorer for details.
1240
+
1241
+
1242
+ :param request: Request instance for UpdateDataSource
1243
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.UpdateDataSourceRequest`
1244
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.UpdateDataSourceResponse`
1245
+ """
1246
+ http_info = self._update_data_source_http_info(request)
1247
+ return self._call_api(**http_info)
1248
+
1249
+ def update_data_source_async_invoker(self, request):
1250
+ http_info = self._update_data_source_http_info(request)
1251
+ return AsyncInvoker(self, http_info)
1252
+
1253
+ def _update_data_source_http_info(self, request):
1254
+ http_info = {
1255
+ "method": "PUT",
1256
+ "resource_path": "/v1/{project_id}/datasources/{datasource_id}",
1257
+ "request_type": request.__class__.__name__,
1258
+ "response_type": "UpdateDataSourceResponse"
1259
+ }
1260
+
1261
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1262
+
1263
+ cname = None
1264
+
1265
+ collection_formats = {}
1266
+
1267
+ path_params = {}
1268
+ if 'datasource_id' in local_var_params:
1269
+ path_params['datasource_id'] = local_var_params['datasource_id']
1270
+
1271
+ query_params = []
1272
+
1273
+ header_params = {}
1274
+
1275
+ form_params = {}
1276
+
1277
+ body = None
1278
+ if 'body' in local_var_params:
1279
+ body = local_var_params['body']
1280
+ if isinstance(request, SdkStreamRequest):
1281
+ body = request.get_file_stream()
1282
+
1283
+ response_headers = []
1284
+
1285
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1286
+ ['application/json'])
1287
+
1288
+ auth_settings = []
1289
+
1290
+ http_info["cname"] = cname
1291
+ http_info["collection_formats"] = collection_formats
1292
+ http_info["path_params"] = path_params
1293
+ http_info["query_params"] = query_params
1294
+ http_info["header_params"] = header_params
1295
+ http_info["post_params"] = form_params
1296
+ http_info["body"] = body
1297
+ http_info["response_headers"] = response_headers
1298
+
1299
+ return http_info
1300
+
1301
+ def create_group_async(self, request):
1302
+ r"""创建存储组
1303
+
1304
+ 创建存储组
1305
+
1306
+ Please refer to HUAWEI cloud API Explorer for details.
1307
+
1308
+
1309
+ :param request: Request instance for CreateGroup
1310
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.CreateGroupRequest`
1311
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.CreateGroupResponse`
1312
+ """
1313
+ http_info = self._create_group_http_info(request)
1314
+ return self._call_api(**http_info)
1315
+
1316
+ def create_group_async_invoker(self, request):
1317
+ http_info = self._create_group_http_info(request)
1318
+ return AsyncInvoker(self, http_info)
1319
+
1320
+ def _create_group_http_info(self, request):
1321
+ http_info = {
1322
+ "method": "POST",
1323
+ "resource_path": "/v1/{project_id}/data-store-groups",
1324
+ "request_type": request.__class__.__name__,
1325
+ "response_type": "CreateGroupResponse"
1326
+ }
1327
+
1328
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1329
+
1330
+ cname = None
1331
+
1332
+ collection_formats = {}
1333
+
1334
+ path_params = {}
1335
+
1336
+ query_params = []
1337
+
1338
+ header_params = {}
1339
+
1340
+ form_params = {}
1341
+
1342
+ body = None
1343
+ if 'body' in local_var_params:
1344
+ body = local_var_params['body']
1345
+ if isinstance(request, SdkStreamRequest):
1346
+ body = request.get_file_stream()
1347
+
1348
+ response_headers = []
1349
+
1350
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1351
+ ['application/json'])
1352
+
1353
+ auth_settings = []
1354
+
1355
+ http_info["cname"] = cname
1356
+ http_info["collection_formats"] = collection_formats
1357
+ http_info["path_params"] = path_params
1358
+ http_info["query_params"] = query_params
1359
+ http_info["header_params"] = header_params
1360
+ http_info["post_params"] = form_params
1361
+ http_info["body"] = body
1362
+ http_info["response_headers"] = response_headers
1363
+
1364
+ return http_info
1365
+
1366
+ def delete_group_async(self, request):
1367
+ r"""删除存储组
1368
+
1369
+ 删除存储组
1370
+
1371
+ Please refer to HUAWEI cloud API Explorer for details.
1372
+
1373
+
1374
+ :param request: Request instance for DeleteGroup
1375
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteGroupRequest`
1376
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteGroupResponse`
1377
+ """
1378
+ http_info = self._delete_group_http_info(request)
1379
+ return self._call_api(**http_info)
1380
+
1381
+ def delete_group_async_invoker(self, request):
1382
+ http_info = self._delete_group_http_info(request)
1383
+ return AsyncInvoker(self, http_info)
1384
+
1385
+ def _delete_group_http_info(self, request):
1386
+ http_info = {
1387
+ "method": "DELETE",
1388
+ "resource_path": "/v1/{project_id}/data-store-groups/{group_id}",
1389
+ "request_type": request.__class__.__name__,
1390
+ "response_type": "DeleteGroupResponse"
1391
+ }
1392
+
1393
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1394
+
1395
+ cname = None
1396
+
1397
+ collection_formats = {}
1398
+
1399
+ path_params = {}
1400
+ if 'group_id' in local_var_params:
1401
+ path_params['group_id'] = local_var_params['group_id']
1402
+
1403
+ query_params = []
1404
+
1405
+ header_params = {}
1406
+
1407
+ form_params = {}
1408
+
1409
+ body = None
1410
+ if isinstance(request, SdkStreamRequest):
1411
+ body = request.get_file_stream()
1412
+
1413
+ response_headers = []
1414
+
1415
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1416
+ ['application/json'])
1417
+
1418
+ auth_settings = []
1419
+
1420
+ http_info["cname"] = cname
1421
+ http_info["collection_formats"] = collection_formats
1422
+ http_info["path_params"] = path_params
1423
+ http_info["query_params"] = query_params
1424
+ http_info["header_params"] = header_params
1425
+ http_info["post_params"] = form_params
1426
+ http_info["body"] = body
1427
+ http_info["response_headers"] = response_headers
1428
+
1429
+ return http_info
1430
+
1431
+ def list_groups_async(self, request):
1432
+ r"""查询存储组列表
1433
+
1434
+ 查询存储组列表
1435
+
1436
+ Please refer to HUAWEI cloud API Explorer for details.
1437
+
1438
+
1439
+ :param request: Request instance for ListGroups
1440
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListGroupsRequest`
1441
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListGroupsResponse`
1442
+ """
1443
+ http_info = self._list_groups_http_info(request)
1444
+ return self._call_api(**http_info)
1445
+
1446
+ def list_groups_async_invoker(self, request):
1447
+ http_info = self._list_groups_http_info(request)
1448
+ return AsyncInvoker(self, http_info)
1449
+
1450
+ def _list_groups_http_info(self, request):
1451
+ http_info = {
1452
+ "method": "GET",
1453
+ "resource_path": "/v1/{project_id}/data-store-groups",
1454
+ "request_type": request.__class__.__name__,
1455
+ "response_type": "ListGroupsResponse"
1456
+ }
1457
+
1458
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1459
+
1460
+ cname = None
1461
+
1462
+ collection_formats = {}
1463
+
1464
+ path_params = {}
1465
+
1466
+ query_params = []
1467
+ if 'unit' in local_var_params:
1468
+ query_params.append(('unit', local_var_params['unit']))
1469
+ if 'type' in local_var_params:
1470
+ query_params.append(('type', local_var_params['type']))
1471
+ if 'group_id' in local_var_params:
1472
+ query_params.append(('group_id', local_var_params['group_id']))
1473
+ if 'name' in local_var_params:
1474
+ query_params.append(('name', local_var_params['name']))
1475
+ if 'offset' in local_var_params:
1476
+ query_params.append(('offset', local_var_params['offset']))
1477
+ if 'limit' in local_var_params:
1478
+ query_params.append(('limit', local_var_params['limit']))
1479
+
1480
+ header_params = {}
1481
+
1482
+ form_params = {}
1483
+
1484
+ body = None
1485
+ if isinstance(request, SdkStreamRequest):
1486
+ body = request.get_file_stream()
1487
+
1488
+ response_headers = []
1489
+
1490
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1491
+ ['application/json'])
1492
+
1493
+ auth_settings = []
1494
+
1495
+ http_info["cname"] = cname
1496
+ http_info["collection_formats"] = collection_formats
1497
+ http_info["path_params"] = path_params
1498
+ http_info["query_params"] = query_params
1499
+ http_info["header_params"] = header_params
1500
+ http_info["post_params"] = form_params
1501
+ http_info["body"] = body
1502
+ http_info["response_headers"] = response_headers
1503
+
1504
+ return http_info
1505
+
1506
+ def update_group_async(self, request):
1507
+ r"""更新存储组
1508
+
1509
+ 更新存储组
1510
+
1511
+ Please refer to HUAWEI cloud API Explorer for details.
1512
+
1513
+
1514
+ :param request: Request instance for UpdateGroup
1515
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.UpdateGroupRequest`
1516
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.UpdateGroupResponse`
1517
+ """
1518
+ http_info = self._update_group_http_info(request)
1519
+ return self._call_api(**http_info)
1520
+
1521
+ def update_group_async_invoker(self, request):
1522
+ http_info = self._update_group_http_info(request)
1523
+ return AsyncInvoker(self, http_info)
1524
+
1525
+ def _update_group_http_info(self, request):
1526
+ http_info = {
1527
+ "method": "PUT",
1528
+ "resource_path": "/v1/{project_id}/data-store-groups/{group_id}",
1529
+ "request_type": request.__class__.__name__,
1530
+ "response_type": "UpdateGroupResponse"
1531
+ }
1532
+
1533
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1534
+
1535
+ cname = None
1536
+
1537
+ collection_formats = {}
1538
+
1539
+ path_params = {}
1540
+ if 'group_id' in local_var_params:
1541
+ path_params['group_id'] = local_var_params['group_id']
1542
+
1543
+ query_params = []
1544
+
1545
+ header_params = {}
1546
+
1547
+ form_params = {}
1548
+
1549
+ body = None
1550
+ if 'body' in local_var_params:
1551
+ body = local_var_params['body']
1552
+ if isinstance(request, SdkStreamRequest):
1553
+ body = request.get_file_stream()
1554
+
1555
+ response_headers = []
1556
+
1557
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1558
+ ['application/json'])
1559
+
1560
+ auth_settings = []
1561
+
1562
+ http_info["cname"] = cname
1563
+ http_info["collection_formats"] = collection_formats
1564
+ http_info["path_params"] = path_params
1565
+ http_info["query_params"] = query_params
1566
+ http_info["header_params"] = header_params
1567
+ http_info["post_params"] = form_params
1568
+ http_info["body"] = body
1569
+ http_info["response_headers"] = response_headers
1570
+
1571
+ return http_info
1572
+
1573
+ def delete_data_store_async(self, request):
1574
+ r"""删除存储
1575
+
1576
+ 删除存储
1577
+
1578
+ Please refer to HUAWEI cloud API Explorer for details.
1579
+
1580
+
1581
+ :param request: Request instance for DeleteDataStore
1582
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteDataStoreRequest`
1583
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteDataStoreResponse`
1584
+ """
1585
+ http_info = self._delete_data_store_http_info(request)
1586
+ return self._call_api(**http_info)
1587
+
1588
+ def delete_data_store_async_invoker(self, request):
1589
+ http_info = self._delete_data_store_http_info(request)
1590
+ return AsyncInvoker(self, http_info)
1591
+
1592
+ def _delete_data_store_http_info(self, request):
1593
+ http_info = {
1594
+ "method": "DELETE",
1595
+ "resource_path": "/v1/{project_id}/data-stores/{data_store_id}",
1596
+ "request_type": request.__class__.__name__,
1597
+ "response_type": "DeleteDataStoreResponse"
1598
+ }
1599
+
1600
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1601
+
1602
+ cname = None
1603
+
1604
+ collection_formats = {}
1605
+
1606
+ path_params = {}
1607
+ if 'data_store_id' in local_var_params:
1608
+ path_params['data_store_id'] = local_var_params['data_store_id']
1609
+
1610
+ query_params = []
1611
+
1612
+ header_params = {}
1613
+
1614
+ form_params = {}
1615
+
1616
+ body = None
1617
+ if isinstance(request, SdkStreamRequest):
1618
+ body = request.get_file_stream()
1619
+
1620
+ response_headers = []
1621
+
1622
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1623
+ ['application/json'])
1624
+
1625
+ auth_settings = []
1626
+
1627
+ http_info["cname"] = cname
1628
+ http_info["collection_formats"] = collection_formats
1629
+ http_info["path_params"] = path_params
1630
+ http_info["query_params"] = query_params
1631
+ http_info["header_params"] = header_params
1632
+ http_info["post_params"] = form_params
1633
+ http_info["body"] = body
1634
+ http_info["response_headers"] = response_headers
1635
+
1636
+ return http_info
1637
+
1638
+ def list_data_stores_async(self, request):
1639
+ r"""查询存储列表
1640
+
1641
+ 查询存储列表
1642
+
1643
+ Please refer to HUAWEI cloud API Explorer for details.
1644
+
1645
+
1646
+ :param request: Request instance for ListDataStores
1647
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListDataStoresRequest`
1648
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListDataStoresResponse`
1649
+ """
1650
+ http_info = self._list_data_stores_http_info(request)
1651
+ return self._call_api(**http_info)
1652
+
1653
+ def list_data_stores_async_invoker(self, request):
1654
+ http_info = self._list_data_stores_http_info(request)
1655
+ return AsyncInvoker(self, http_info)
1656
+
1657
+ def _list_data_stores_http_info(self, request):
1658
+ http_info = {
1659
+ "method": "GET",
1660
+ "resource_path": "/v1/{project_id}/data-stores",
1661
+ "request_type": request.__class__.__name__,
1662
+ "response_type": "ListDataStoresResponse"
1663
+ }
1664
+
1665
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1666
+
1667
+ cname = None
1668
+
1669
+ collection_formats = {}
1670
+
1671
+ path_params = {}
1672
+
1673
+ query_params = []
1674
+ if 'group_id' in local_var_params:
1675
+ query_params.append(('group_id', local_var_params['group_id']))
1676
+ if 'data_store_id' in local_var_params:
1677
+ query_params.append(('data_store_id', local_var_params['data_store_id']))
1678
+ if 'name' in local_var_params:
1679
+ query_params.append(('name', local_var_params['name']))
1680
+ if 'offset' in local_var_params:
1681
+ query_params.append(('offset', local_var_params['offset']))
1682
+ if 'limit' in local_var_params:
1683
+ query_params.append(('limit', local_var_params['limit']))
1684
+
1685
+ header_params = {}
1686
+
1687
+ form_params = {}
1688
+
1689
+ body = None
1690
+ if isinstance(request, SdkStreamRequest):
1691
+ body = request.get_file_stream()
1692
+
1693
+ response_headers = []
1694
+
1695
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1696
+ ['application/json'])
1697
+
1698
+ auth_settings = []
1699
+
1700
+ http_info["cname"] = cname
1701
+ http_info["collection_formats"] = collection_formats
1702
+ http_info["path_params"] = path_params
1703
+ http_info["query_params"] = query_params
1704
+ http_info["header_params"] = header_params
1705
+ http_info["post_params"] = form_params
1706
+ http_info["body"] = body
1707
+ http_info["response_headers"] = response_headers
1708
+
1709
+ return http_info
1710
+
1711
+ def update_data_store_async(self, request):
1712
+ r"""更新存储
1713
+
1714
+ 更新存储
1715
+
1716
+ Please refer to HUAWEI cloud API Explorer for details.
1717
+
1718
+
1719
+ :param request: Request instance for UpdateDataStore
1720
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.UpdateDataStoreRequest`
1721
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.UpdateDataStoreResponse`
1722
+ """
1723
+ http_info = self._update_data_store_http_info(request)
1724
+ return self._call_api(**http_info)
1725
+
1726
+ def update_data_store_async_invoker(self, request):
1727
+ http_info = self._update_data_store_http_info(request)
1728
+ return AsyncInvoker(self, http_info)
1729
+
1730
+ def _update_data_store_http_info(self, request):
1731
+ http_info = {
1732
+ "method": "PUT",
1733
+ "resource_path": "/v1/{project_id}/data-stores/{data_store_id}",
1734
+ "request_type": request.__class__.__name__,
1735
+ "response_type": "UpdateDataStoreResponse"
1736
+ }
1737
+
1738
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1739
+
1740
+ cname = None
1741
+
1742
+ collection_formats = {}
1743
+
1744
+ path_params = {}
1745
+ if 'data_store_id' in local_var_params:
1746
+ path_params['data_store_id'] = local_var_params['data_store_id']
1747
+
1748
+ query_params = []
1749
+
1750
+ header_params = {}
1751
+
1752
+ form_params = {}
1753
+
1754
+ body = None
1755
+ if 'body' in local_var_params:
1756
+ body = local_var_params['body']
1757
+ if isinstance(request, SdkStreamRequest):
1758
+ body = request.get_file_stream()
1759
+
1760
+ response_headers = []
1761
+
1762
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1763
+ ['application/json'])
1764
+
1765
+ auth_settings = []
1766
+
1767
+ http_info["cname"] = cname
1768
+ http_info["collection_formats"] = collection_formats
1769
+ http_info["path_params"] = path_params
1770
+ http_info["query_params"] = query_params
1771
+ http_info["header_params"] = header_params
1772
+ http_info["post_params"] = form_params
1773
+ http_info["body"] = body
1774
+ http_info["response_headers"] = response_headers
1775
+
1776
+ return http_info
1777
+
1778
+ def list_history_async(self, request):
1779
+ r"""根据标签查询设备历史值
1780
+
1781
+ 根据标签查询设备历史值
1782
+
1783
+ Please refer to HUAWEI cloud API Explorer for details.
1784
+
1785
+
1786
+ :param request: Request instance for ListHistory
1787
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListHistoryRequest`
1788
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListHistoryResponse`
1789
+ """
1790
+ http_info = self._list_history_http_info(request)
1791
+ return self._call_api(**http_info)
1792
+
1793
+ def list_history_async_invoker(self, request):
1794
+ http_info = self._list_history_http_info(request)
1795
+ return AsyncInvoker(self, http_info)
1796
+
1797
+ def _list_history_http_info(self, request):
1798
+ http_info = {
1799
+ "method": "POST",
1800
+ "resource_path": "/v1/{project_id}/data-stores/{data_store_id}/property-values/query",
1801
+ "request_type": request.__class__.__name__,
1802
+ "response_type": "ListHistoryResponse"
1803
+ }
1804
+
1805
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1806
+
1807
+ cname = None
1808
+
1809
+ collection_formats = {}
1810
+
1811
+ path_params = {}
1812
+ if 'data_store_id' in local_var_params:
1813
+ path_params['data_store_id'] = local_var_params['data_store_id']
1814
+
1815
+ query_params = []
1816
+
1817
+ header_params = {}
1818
+
1819
+ form_params = {}
1820
+
1821
+ body = None
1822
+ if 'body' in local_var_params:
1823
+ body = local_var_params['body']
1824
+ if isinstance(request, SdkStreamRequest):
1825
+ body = request.get_file_stream()
1826
+
1827
+ response_headers = []
1828
+
1829
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1830
+ ['application/json'])
1831
+
1832
+ auth_settings = []
1833
+
1834
+ http_info["cname"] = cname
1835
+ http_info["collection_formats"] = collection_formats
1836
+ http_info["path_params"] = path_params
1837
+ http_info["query_params"] = query_params
1838
+ http_info["header_params"] = header_params
1839
+ http_info["post_params"] = form_params
1840
+ http_info["body"] = body
1841
+ http_info["response_headers"] = response_headers
1842
+
1843
+ return http_info
1844
+
1845
+ def list_metrics_async(self, request):
1846
+ r"""根据标签聚合、查询指标数据
1847
+
1848
+ 根据标签聚合、查询数据
1849
+
1850
+ Please refer to HUAWEI cloud API Explorer for details.
1851
+
1852
+
1853
+ :param request: Request instance for ListMetrics
1854
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListMetricsRequest`
1855
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListMetricsResponse`
1856
+ """
1857
+ http_info = self._list_metrics_http_info(request)
1858
+ return self._call_api(**http_info)
1859
+
1860
+ def list_metrics_async_invoker(self, request):
1861
+ http_info = self._list_metrics_http_info(request)
1862
+ return AsyncInvoker(self, http_info)
1863
+
1864
+ def _list_metrics_http_info(self, request):
1865
+ http_info = {
1866
+ "method": "POST",
1867
+ "resource_path": "/v1/{project_id}/data-stores/{data_store_id}/metrics/query",
1868
+ "request_type": request.__class__.__name__,
1869
+ "response_type": "ListMetricsResponse"
1870
+ }
1871
+
1872
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1873
+
1874
+ cname = None
1875
+
1876
+ collection_formats = {}
1877
+
1878
+ path_params = {}
1879
+ if 'data_store_id' in local_var_params:
1880
+ path_params['data_store_id'] = local_var_params['data_store_id']
1881
+
1882
+ query_params = []
1883
+
1884
+ header_params = {}
1885
+
1886
+ form_params = {}
1887
+
1888
+ body = None
1889
+ if 'body' in local_var_params:
1890
+ body = local_var_params['body']
1891
+ if isinstance(request, SdkStreamRequest):
1892
+ body = request.get_file_stream()
1893
+
1894
+ response_headers = []
1895
+
1896
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1897
+ ['application/json'])
1898
+
1899
+ auth_settings = []
1900
+
1901
+ http_info["cname"] = cname
1902
+ http_info["collection_formats"] = collection_formats
1903
+ http_info["path_params"] = path_params
1904
+ http_info["query_params"] = query_params
1905
+ http_info["header_params"] = header_params
1906
+ http_info["post_params"] = form_params
1907
+ http_info["body"] = body
1908
+ http_info["response_headers"] = response_headers
1909
+
1910
+ return http_info
1911
+
1912
+ def show_property_values_async(self, request):
1913
+ r"""查询设备属性最新状态值
1914
+
1915
+ 查询设备属性最新状态值
1916
+
1917
+ Please refer to HUAWEI cloud API Explorer for details.
1918
+
1919
+
1920
+ :param request: Request instance for ShowPropertyValues
1921
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowPropertyValuesRequest`
1922
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowPropertyValuesResponse`
1923
+ """
1924
+ http_info = self._show_property_values_http_info(request)
1925
+ return self._call_api(**http_info)
1926
+
1927
+ def show_property_values_async_invoker(self, request):
1928
+ http_info = self._show_property_values_http_info(request)
1929
+ return AsyncInvoker(self, http_info)
1930
+
1931
+ def _show_property_values_http_info(self, request):
1932
+ http_info = {
1933
+ "method": "POST",
1934
+ "resource_path": "/v1/{project_id}/data-stores/{data_store_id}/property-values/query-last",
1935
+ "request_type": request.__class__.__name__,
1936
+ "response_type": "ShowPropertyValuesResponse"
1937
+ }
1938
+
1939
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1940
+
1941
+ cname = None
1942
+
1943
+ collection_formats = {}
1944
+
1945
+ path_params = {}
1946
+ if 'data_store_id' in local_var_params:
1947
+ path_params['data_store_id'] = local_var_params['data_store_id']
1948
+
1949
+ query_params = []
1950
+
1951
+ header_params = {}
1952
+
1953
+ form_params = {}
1954
+
1955
+ body = None
1956
+ if 'body' in local_var_params:
1957
+ body = local_var_params['body']
1958
+ if isinstance(request, SdkStreamRequest):
1959
+ body = request.get_file_stream()
1960
+
1961
+ response_headers = []
1962
+
1963
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1964
+ ['application/json'])
1965
+
1966
+ auth_settings = []
1967
+
1968
+ http_info["cname"] = cname
1969
+ http_info["collection_formats"] = collection_formats
1970
+ http_info["path_params"] = path_params
1971
+ http_info["query_params"] = query_params
1972
+ http_info["header_params"] = header_params
1973
+ http_info["post_params"] = form_params
1974
+ http_info["body"] = body
1975
+ http_info["response_headers"] = response_headers
1976
+
1977
+ return http_info
1978
+
1979
+ def list_tag_values_async(self, request):
1980
+ r"""查询标签的值列表
1981
+
1982
+ 查询标签的值列表
1983
+
1984
+ Please refer to HUAWEI cloud API Explorer for details.
1985
+
1986
+
1987
+ :param request: Request instance for ListTagValues
1988
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListTagValuesRequest`
1989
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListTagValuesResponse`
1990
+ """
1991
+ http_info = self._list_tag_values_http_info(request)
1992
+ return self._call_api(**http_info)
1993
+
1994
+ def list_tag_values_async_invoker(self, request):
1995
+ http_info = self._list_tag_values_http_info(request)
1996
+ return AsyncInvoker(self, http_info)
1997
+
1998
+ def _list_tag_values_http_info(self, request):
1999
+ http_info = {
2000
+ "method": "GET",
2001
+ "resource_path": "/v1/{project_id}/data-stores/{data_store_id}/tags/{tag_name}",
2002
+ "request_type": request.__class__.__name__,
2003
+ "response_type": "ListTagValuesResponse"
2004
+ }
2005
+
2006
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2007
+
2008
+ cname = None
2009
+
2010
+ collection_formats = {}
2011
+
2012
+ path_params = {}
2013
+ if 'data_store_id' in local_var_params:
2014
+ path_params['data_store_id'] = local_var_params['data_store_id']
2015
+ if 'tag_name' in local_var_params:
2016
+ path_params['tag_name'] = local_var_params['tag_name']
2017
+
2018
+ query_params = []
2019
+ if 'filters' in local_var_params:
2020
+ query_params.append(('filters', local_var_params['filters']))
2021
+ if 'offset' in local_var_params:
2022
+ query_params.append(('offset', local_var_params['offset']))
2023
+ if 'limit' in local_var_params:
2024
+ query_params.append(('limit', local_var_params['limit']))
2025
+
2026
+ header_params = {}
2027
+
2028
+ form_params = {}
2029
+
2030
+ body = None
2031
+ if isinstance(request, SdkStreamRequest):
2032
+ body = request.get_file_stream()
2033
+
2034
+ response_headers = []
2035
+
2036
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2037
+ ['application/json'])
2038
+
2039
+ auth_settings = []
2040
+
2041
+ http_info["cname"] = cname
2042
+ http_info["collection_formats"] = collection_formats
2043
+ http_info["path_params"] = path_params
2044
+ http_info["query_params"] = query_params
2045
+ http_info["header_params"] = header_params
2046
+ http_info["post_params"] = form_params
2047
+ http_info["body"] = body
2048
+ http_info["response_headers"] = response_headers
2049
+
2050
+ return http_info
2051
+
2052
+ def add_dev_data_async(self, request):
2053
+ r"""通过API数据源上报设备数据
2054
+
2055
+ 通过API数据源上报设备数据
2056
+
2057
+ Please refer to HUAWEI cloud API Explorer for details.
2058
+
2059
+
2060
+ :param request: Request instance for AddDevData
2061
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.AddDevDataRequest`
2062
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.AddDevDataResponse`
2063
+ """
2064
+ http_info = self._add_dev_data_http_info(request)
2065
+ return self._call_api(**http_info)
2066
+
2067
+ def add_dev_data_async_invoker(self, request):
2068
+ http_info = self._add_dev_data_http_info(request)
2069
+ return AsyncInvoker(self, http_info)
2070
+
2071
+ def _add_dev_data_http_info(self, request):
2072
+ http_info = {
2073
+ "method": "POST",
2074
+ "resource_path": "/v1/{project_id}/datasources/{datasource_id}/dev-data",
2075
+ "request_type": request.__class__.__name__,
2076
+ "response_type": "AddDevDataResponse"
2077
+ }
2078
+
2079
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2080
+
2081
+ cname = None
2082
+
2083
+ collection_formats = {}
2084
+
2085
+ path_params = {}
2086
+ if 'datasource_id' in local_var_params:
2087
+ path_params['datasource_id'] = local_var_params['datasource_id']
2088
+
2089
+ query_params = []
2090
+
2091
+ header_params = {}
2092
+
2093
+ form_params = {}
2094
+
2095
+ body = None
2096
+ if 'body' in local_var_params:
2097
+ body = local_var_params['body']
2098
+ if isinstance(request, SdkStreamRequest):
2099
+ body = request.get_file_stream()
2100
+
2101
+ response_headers = []
2102
+
2103
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2104
+ ['application/json'])
2105
+
2106
+ auth_settings = []
2107
+
2108
+ http_info["cname"] = cname
2109
+ http_info["collection_formats"] = collection_formats
2110
+ http_info["path_params"] = path_params
2111
+ http_info["query_params"] = query_params
2112
+ http_info["header_params"] = header_params
2113
+ http_info["post_params"] = form_params
2114
+ http_info["body"] = body
2115
+ http_info["response_headers"] = response_headers
2116
+
2117
+ return http_info
2118
+
2119
+ def add_pipeline_job_async(self, request):
2120
+ r"""新建管道作业
2121
+
2122
+ 新建管道作业时,需要在URL中指定是更新哪一个作业,将在body中附带完整的作业信息。(作业中各算子的详细配置请参考算子配置章节。) check参数表示是否需要对作业配置进行检查,若为false,则不检查,将作业保存为草稿;若为true,则对作业配置进行检查。当检查不通过时,将作业状态修改为草稿;检查通过时,将作业状态修改为就绪,并返回成功。
2123
+
2124
+ Please refer to HUAWEI cloud API Explorer for details.
2125
+
2126
+
2127
+ :param request: Request instance for AddPipelineJob
2128
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.AddPipelineJobRequest`
2129
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.AddPipelineJobResponse`
2130
+ """
2131
+ http_info = self._add_pipeline_job_http_info(request)
2132
+ return self._call_api(**http_info)
2133
+
2134
+ def add_pipeline_job_async_invoker(self, request):
2135
+ http_info = self._add_pipeline_job_http_info(request)
2136
+ return AsyncInvoker(self, http_info)
2137
+
2138
+ def _add_pipeline_job_http_info(self, request):
2139
+ http_info = {
2140
+ "method": "POST",
2141
+ "resource_path": "/v1/{project_id}/pipelines",
2142
+ "request_type": request.__class__.__name__,
2143
+ "response_type": "AddPipelineJobResponse"
2144
+ }
2145
+
2146
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2147
+
2148
+ cname = None
2149
+
2150
+ collection_formats = {}
2151
+
2152
+ path_params = {}
2153
+
2154
+ query_params = []
2155
+ if 'check' in local_var_params:
2156
+ query_params.append(('check', local_var_params['check']))
2157
+
2158
+ header_params = {}
2159
+
2160
+ form_params = {}
2161
+
2162
+ body = None
2163
+ if 'body' in local_var_params:
2164
+ body = local_var_params['body']
2165
+ if isinstance(request, SdkStreamRequest):
2166
+ body = request.get_file_stream()
2167
+
2168
+ response_headers = []
2169
+
2170
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2171
+ ['application/json'])
2172
+
2173
+ auth_settings = []
2174
+
2175
+ http_info["cname"] = cname
2176
+ http_info["collection_formats"] = collection_formats
2177
+ http_info["path_params"] = path_params
2178
+ http_info["query_params"] = query_params
2179
+ http_info["header_params"] = header_params
2180
+ http_info["post_params"] = form_params
2181
+ http_info["body"] = body
2182
+ http_info["response_headers"] = response_headers
2183
+
2184
+ return http_info
2185
+
2186
+ def delete_pipeline_job_async(self, request):
2187
+ r"""删除管道作业
2188
+
2189
+ 删除用户指定的管道作业
2190
+
2191
+ Please refer to HUAWEI cloud API Explorer for details.
2192
+
2193
+
2194
+ :param request: Request instance for DeletePipelineJob
2195
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeletePipelineJobRequest`
2196
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeletePipelineJobResponse`
2197
+ """
2198
+ http_info = self._delete_pipeline_job_http_info(request)
2199
+ return self._call_api(**http_info)
2200
+
2201
+ def delete_pipeline_job_async_invoker(self, request):
2202
+ http_info = self._delete_pipeline_job_http_info(request)
2203
+ return AsyncInvoker(self, http_info)
2204
+
2205
+ def _delete_pipeline_job_http_info(self, request):
2206
+ http_info = {
2207
+ "method": "DELETE",
2208
+ "resource_path": "/v1/{project_id}/pipelines/{pipeline_id}",
2209
+ "request_type": request.__class__.__name__,
2210
+ "response_type": "DeletePipelineJobResponse"
2211
+ }
2212
+
2213
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2214
+
2215
+ cname = None
2216
+
2217
+ collection_formats = {}
2218
+
2219
+ path_params = {}
2220
+ if 'pipeline_id' in local_var_params:
2221
+ path_params['pipeline_id'] = local_var_params['pipeline_id']
2222
+
2223
+ query_params = []
2224
+
2225
+ header_params = {}
2226
+
2227
+ form_params = {}
2228
+
2229
+ body = None
2230
+ if isinstance(request, SdkStreamRequest):
2231
+ body = request.get_file_stream()
2232
+
2233
+ response_headers = []
2234
+
2235
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2236
+ ['application/json'])
2237
+
2238
+ auth_settings = []
2239
+
2240
+ http_info["cname"] = cname
2241
+ http_info["collection_formats"] = collection_formats
2242
+ http_info["path_params"] = path_params
2243
+ http_info["query_params"] = query_params
2244
+ http_info["header_params"] = header_params
2245
+ http_info["post_params"] = form_params
2246
+ http_info["body"] = body
2247
+ http_info["response_headers"] = response_headers
2248
+
2249
+ return http_info
2250
+
2251
+ def list_pipeline_jobs_async(self, request):
2252
+ r"""获取管道作业列表
2253
+
2254
+ 获取用户下的所有管道作业,支持分页。
2255
+
2256
+ Please refer to HUAWEI cloud API Explorer for details.
2257
+
2258
+
2259
+ :param request: Request instance for ListPipelineJobs
2260
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListPipelineJobsRequest`
2261
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListPipelineJobsResponse`
2262
+ """
2263
+ http_info = self._list_pipeline_jobs_http_info(request)
2264
+ return self._call_api(**http_info)
2265
+
2266
+ def list_pipeline_jobs_async_invoker(self, request):
2267
+ http_info = self._list_pipeline_jobs_http_info(request)
2268
+ return AsyncInvoker(self, http_info)
2269
+
2270
+ def _list_pipeline_jobs_http_info(self, request):
2271
+ http_info = {
2272
+ "method": "GET",
2273
+ "resource_path": "/v1/{project_id}/pipelines",
2274
+ "request_type": request.__class__.__name__,
2275
+ "response_type": "ListPipelineJobsResponse"
2276
+ }
2277
+
2278
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2279
+
2280
+ cname = None
2281
+
2282
+ collection_formats = {}
2283
+
2284
+ path_params = {}
2285
+
2286
+ query_params = []
2287
+ if 'data_store_id' in local_var_params:
2288
+ query_params.append(('data_store_id', local_var_params['data_store_id']))
2289
+ if 'data_store_group_id' in local_var_params:
2290
+ query_params.append(('data_store_group_id', local_var_params['data_store_group_id']))
2291
+ if 'data_source_id' in local_var_params:
2292
+ query_params.append(('data_source_id', local_var_params['data_source_id']))
2293
+ if 'pipeline_name' in local_var_params:
2294
+ query_params.append(('pipeline_name', local_var_params['pipeline_name']))
2295
+ if 'operator_class_name' in local_var_params:
2296
+ query_params.append(('operator_class_name', local_var_params['operator_class_name']))
2297
+ if 'offset' in local_var_params:
2298
+ query_params.append(('offset', local_var_params['offset']))
2299
+ if 'limit' in local_var_params:
2300
+ query_params.append(('limit', local_var_params['limit']))
2301
+ if 'sync_status' in local_var_params:
2302
+ query_params.append(('sync_status', local_var_params['sync_status']))
2303
+
2304
+ header_params = {}
2305
+
2306
+ form_params = {}
2307
+
2308
+ body = None
2309
+ if isinstance(request, SdkStreamRequest):
2310
+ body = request.get_file_stream()
2311
+
2312
+ response_headers = []
2313
+
2314
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2315
+ ['application/json'])
2316
+
2317
+ auth_settings = []
2318
+
2319
+ http_info["cname"] = cname
2320
+ http_info["collection_formats"] = collection_formats
2321
+ http_info["path_params"] = path_params
2322
+ http_info["query_params"] = query_params
2323
+ http_info["header_params"] = header_params
2324
+ http_info["post_params"] = form_params
2325
+ http_info["body"] = body
2326
+ http_info["response_headers"] = response_headers
2327
+
2328
+ return http_info
2329
+
2330
+ def show_pipeline_job_async(self, request):
2331
+ r"""获取管道作业详情
2332
+
2333
+ 获取指定管道作业的详情
2334
+
2335
+ Please refer to HUAWEI cloud API Explorer for details.
2336
+
2337
+
2338
+ :param request: Request instance for ShowPipelineJob
2339
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowPipelineJobRequest`
2340
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowPipelineJobResponse`
2341
+ """
2342
+ http_info = self._show_pipeline_job_http_info(request)
2343
+ return self._call_api(**http_info)
2344
+
2345
+ def show_pipeline_job_async_invoker(self, request):
2346
+ http_info = self._show_pipeline_job_http_info(request)
2347
+ return AsyncInvoker(self, http_info)
2348
+
2349
+ def _show_pipeline_job_http_info(self, request):
2350
+ http_info = {
2351
+ "method": "GET",
2352
+ "resource_path": "/v1/{project_id}/pipelines/{pipeline_id}",
2353
+ "request_type": request.__class__.__name__,
2354
+ "response_type": "ShowPipelineJobResponse"
2355
+ }
2356
+
2357
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2358
+
2359
+ cname = None
2360
+
2361
+ collection_formats = {}
2362
+
2363
+ path_params = {}
2364
+ if 'pipeline_id' in local_var_params:
2365
+ path_params['pipeline_id'] = local_var_params['pipeline_id']
2366
+
2367
+ query_params = []
2368
+
2369
+ header_params = {}
2370
+
2371
+ form_params = {}
2372
+
2373
+ body = None
2374
+ if isinstance(request, SdkStreamRequest):
2375
+ body = request.get_file_stream()
2376
+
2377
+ response_headers = []
2378
+
2379
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2380
+ ['application/json'])
2381
+
2382
+ auth_settings = []
2383
+
2384
+ http_info["cname"] = cname
2385
+ http_info["collection_formats"] = collection_formats
2386
+ http_info["path_params"] = path_params
2387
+ http_info["query_params"] = query_params
2388
+ http_info["header_params"] = header_params
2389
+ http_info["post_params"] = form_params
2390
+ http_info["body"] = body
2391
+ http_info["response_headers"] = response_headers
2392
+
2393
+ return http_info
2394
+
2395
+ def start_pipeline_job_async(self, request):
2396
+ r"""启动管道作业
2397
+
2398
+ 提交管道作业到运行环境,实时接收数据源的数据并按用户定义的数据清洗逻辑对数据进行处理。
2399
+
2400
+ Please refer to HUAWEI cloud API Explorer for details.
2401
+
2402
+
2403
+ :param request: Request instance for StartPipelineJob
2404
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.StartPipelineJobRequest`
2405
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.StartPipelineJobResponse`
2406
+ """
2407
+ http_info = self._start_pipeline_job_http_info(request)
2408
+ return self._call_api(**http_info)
2409
+
2410
+ def start_pipeline_job_async_invoker(self, request):
2411
+ http_info = self._start_pipeline_job_http_info(request)
2412
+ return AsyncInvoker(self, http_info)
2413
+
2414
+ def _start_pipeline_job_http_info(self, request):
2415
+ http_info = {
2416
+ "method": "POST",
2417
+ "resource_path": "/v1/{project_id}/pipelines/{pipeline_id}/start",
2418
+ "request_type": request.__class__.__name__,
2419
+ "response_type": "StartPipelineJobResponse"
2420
+ }
2421
+
2422
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2423
+
2424
+ cname = None
2425
+
2426
+ collection_formats = {}
2427
+
2428
+ path_params = {}
2429
+ if 'pipeline_id' in local_var_params:
2430
+ path_params['pipeline_id'] = local_var_params['pipeline_id']
2431
+
2432
+ query_params = []
2433
+ if 'parallel' in local_var_params:
2434
+ query_params.append(('parallel', local_var_params['parallel']))
2435
+ if 'rtu' in local_var_params:
2436
+ query_params.append(('rtu', local_var_params['rtu']))
2437
+ if 'resume_savepoint' in local_var_params:
2438
+ query_params.append(('resume_savepoint', local_var_params['resume_savepoint']))
2439
+
2440
+ header_params = {}
2441
+
2442
+ form_params = {}
2443
+
2444
+ body = None
2445
+ if isinstance(request, SdkStreamRequest):
2446
+ body = request.get_file_stream()
2447
+
2448
+ response_headers = []
2449
+
2450
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2451
+ ['application/json'])
2452
+
2453
+ auth_settings = []
2454
+
2455
+ http_info["cname"] = cname
2456
+ http_info["collection_formats"] = collection_formats
2457
+ http_info["path_params"] = path_params
2458
+ http_info["query_params"] = query_params
2459
+ http_info["header_params"] = header_params
2460
+ http_info["post_params"] = form_params
2461
+ http_info["body"] = body
2462
+ http_info["response_headers"] = response_headers
2463
+
2464
+ return http_info
2465
+
2466
+ def stop_pipeline_job_async(self, request):
2467
+ r"""停止管道作业
2468
+
2469
+ 停止一个正在运行中的管道作业
2470
+
2471
+ Please refer to HUAWEI cloud API Explorer for details.
2472
+
2473
+
2474
+ :param request: Request instance for StopPipelineJob
2475
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.StopPipelineJobRequest`
2476
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.StopPipelineJobResponse`
2477
+ """
2478
+ http_info = self._stop_pipeline_job_http_info(request)
2479
+ return self._call_api(**http_info)
2480
+
2481
+ def stop_pipeline_job_async_invoker(self, request):
2482
+ http_info = self._stop_pipeline_job_http_info(request)
2483
+ return AsyncInvoker(self, http_info)
2484
+
2485
+ def _stop_pipeline_job_http_info(self, request):
2486
+ http_info = {
2487
+ "method": "POST",
2488
+ "resource_path": "/v1/{project_id}/pipelines/{pipeline_id}/stop",
2489
+ "request_type": request.__class__.__name__,
2490
+ "response_type": "StopPipelineJobResponse"
2491
+ }
2492
+
2493
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2494
+
2495
+ cname = None
2496
+
2497
+ collection_formats = {}
2498
+
2499
+ path_params = {}
2500
+ if 'pipeline_id' in local_var_params:
2501
+ path_params['pipeline_id'] = local_var_params['pipeline_id']
2502
+
2503
+ query_params = []
2504
+ if 'trigger_savepoint' in local_var_params:
2505
+ query_params.append(('trigger_savepoint', local_var_params['trigger_savepoint']))
2506
+
2507
+ header_params = {}
2508
+
2509
+ form_params = {}
2510
+
2511
+ body = None
2512
+ if isinstance(request, SdkStreamRequest):
2513
+ body = request.get_file_stream()
2514
+
2515
+ response_headers = []
2516
+
2517
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2518
+ ['application/json'])
2519
+
2520
+ auth_settings = []
2521
+
2522
+ http_info["cname"] = cname
2523
+ http_info["collection_formats"] = collection_formats
2524
+ http_info["path_params"] = path_params
2525
+ http_info["query_params"] = query_params
2526
+ http_info["header_params"] = header_params
2527
+ http_info["post_params"] = form_params
2528
+ http_info["body"] = body
2529
+ http_info["response_headers"] = response_headers
2530
+
2531
+ return http_info
2532
+
2533
+ def update_pipeline_job_async(self, request):
2534
+ r"""更新管道作业
2535
+
2536
+ 更新管道作业时,需要在URL中指定是更新哪一个作业,将在body中附带完整的作业信息。(管道作业详细配置,每个作业可选择不同的算子进行组合,各算子的使用方法详见:数据管道算子配置指南。) check参数表示是否需要对作业配置进行检查,若为false,则不检查,将作业保存为草稿;若为true,则对作业配置进行检查。当检查不通过时,将作业状态修改为草稿;检查通过时,将作业状态修改为就绪,并返回成功。
2537
+
2538
+ Please refer to HUAWEI cloud API Explorer for details.
2539
+
2540
+
2541
+ :param request: Request instance for UpdatePipelineJob
2542
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.UpdatePipelineJobRequest`
2543
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.UpdatePipelineJobResponse`
2544
+ """
2545
+ http_info = self._update_pipeline_job_http_info(request)
2546
+ return self._call_api(**http_info)
2547
+
2548
+ def update_pipeline_job_async_invoker(self, request):
2549
+ http_info = self._update_pipeline_job_http_info(request)
2550
+ return AsyncInvoker(self, http_info)
2551
+
2552
+ def _update_pipeline_job_http_info(self, request):
2553
+ http_info = {
2554
+ "method": "PUT",
2555
+ "resource_path": "/v1/{project_id}/pipelines/{pipeline_id}",
2556
+ "request_type": request.__class__.__name__,
2557
+ "response_type": "UpdatePipelineJobResponse"
2558
+ }
2559
+
2560
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2561
+
2562
+ cname = None
2563
+
2564
+ collection_formats = {}
2565
+
2566
+ path_params = {}
2567
+ if 'pipeline_id' in local_var_params:
2568
+ path_params['pipeline_id'] = local_var_params['pipeline_id']
2569
+
2570
+ query_params = []
2571
+ if 'check' in local_var_params:
2572
+ query_params.append(('check', local_var_params['check']))
2573
+
2574
+ header_params = {}
2575
+
2576
+ form_params = {}
2577
+
2578
+ body = None
2579
+ if 'body' in local_var_params:
2580
+ body = local_var_params['body']
2581
+ if isinstance(request, SdkStreamRequest):
2582
+ body = request.get_file_stream()
2583
+
2584
+ response_headers = []
2585
+
2586
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2587
+ ['application/json'])
2588
+
2589
+ auth_settings = []
2590
+
2591
+ http_info["cname"] = cname
2592
+ http_info["collection_formats"] = collection_formats
2593
+ http_info["path_params"] = path_params
2594
+ http_info["query_params"] = query_params
2595
+ http_info["header_params"] = header_params
2596
+ http_info["post_params"] = form_params
2597
+ http_info["body"] = body
2598
+ http_info["response_headers"] = response_headers
2599
+
2600
+ return http_info
2601
+
2602
+ def create_streaming_job_async(self, request):
2603
+ r"""新建实时作业
2604
+
2605
+ 除名称和描述外,可先不提供作业的详细配置信息。 check参数表示是否需要对作业配置进行检查,若为false,则不检查,将作业保存为草稿;若为true,则对作业配置进行检查,无论检查是否通过,都将作业及配置信息保存为草稿,当检查不通过时,返回失败及错误信息,检查通过时,将作业状态修改为就绪,并返回成功。
2606
+
2607
+ Please refer to HUAWEI cloud API Explorer for details.
2608
+
2609
+
2610
+ :param request: Request instance for CreateStreamingJob
2611
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.CreateStreamingJobRequest`
2612
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.CreateStreamingJobResponse`
2613
+ """
2614
+ http_info = self._create_streaming_job_http_info(request)
2615
+ return self._call_api(**http_info)
2616
+
2617
+ def create_streaming_job_async_invoker(self, request):
2618
+ http_info = self._create_streaming_job_http_info(request)
2619
+ return AsyncInvoker(self, http_info)
2620
+
2621
+ def _create_streaming_job_http_info(self, request):
2622
+ http_info = {
2623
+ "method": "POST",
2624
+ "resource_path": "/v1/{project_id}/streaming/jobs",
2625
+ "request_type": request.__class__.__name__,
2626
+ "response_type": "CreateStreamingJobResponse"
2627
+ }
2628
+
2629
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2630
+
2631
+ cname = None
2632
+
2633
+ collection_formats = {}
2634
+
2635
+ path_params = {}
2636
+
2637
+ query_params = []
2638
+ if 'check' in local_var_params:
2639
+ query_params.append(('check', local_var_params['check']))
2640
+
2641
+ header_params = {}
2642
+
2643
+ form_params = {}
2644
+
2645
+ body = None
2646
+ if 'body' in local_var_params:
2647
+ body = local_var_params['body']
2648
+ if isinstance(request, SdkStreamRequest):
2649
+ body = request.get_file_stream()
2650
+
2651
+ response_headers = []
2652
+
2653
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2654
+ ['application/json'])
2655
+
2656
+ auth_settings = []
2657
+
2658
+ http_info["cname"] = cname
2659
+ http_info["collection_formats"] = collection_formats
2660
+ http_info["path_params"] = path_params
2661
+ http_info["query_params"] = query_params
2662
+ http_info["header_params"] = header_params
2663
+ http_info["post_params"] = form_params
2664
+ http_info["body"] = body
2665
+ http_info["response_headers"] = response_headers
2666
+
2667
+ return http_info
2668
+
2669
+ def delete_streaming_job_by_id_async(self, request):
2670
+ r"""删除实时作业
2671
+
2672
+ 删除用户指定的作业
2673
+
2674
+ Please refer to HUAWEI cloud API Explorer for details.
2675
+
2676
+
2677
+ :param request: Request instance for DeleteStreamingJobById
2678
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteStreamingJobByIdRequest`
2679
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteStreamingJobByIdResponse`
2680
+ """
2681
+ http_info = self._delete_streaming_job_by_id_http_info(request)
2682
+ return self._call_api(**http_info)
2683
+
2684
+ def delete_streaming_job_by_id_async_invoker(self, request):
2685
+ http_info = self._delete_streaming_job_by_id_http_info(request)
2686
+ return AsyncInvoker(self, http_info)
2687
+
2688
+ def _delete_streaming_job_by_id_http_info(self, request):
2689
+ http_info = {
2690
+ "method": "DELETE",
2691
+ "resource_path": "/v1/{project_id}/streaming/jobs/{job_id}",
2692
+ "request_type": request.__class__.__name__,
2693
+ "response_type": "DeleteStreamingJobByIdResponse"
2694
+ }
2695
+
2696
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2697
+
2698
+ cname = None
2699
+
2700
+ collection_formats = {}
2701
+
2702
+ path_params = {}
2703
+ if 'job_id' in local_var_params:
2704
+ path_params['job_id'] = local_var_params['job_id']
2705
+
2706
+ query_params = []
2707
+
2708
+ header_params = {}
2709
+
2710
+ form_params = {}
2711
+
2712
+ body = None
2713
+ if isinstance(request, SdkStreamRequest):
2714
+ body = request.get_file_stream()
2715
+
2716
+ response_headers = []
2717
+
2718
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2719
+ ['application/json'])
2720
+
2721
+ auth_settings = []
2722
+
2723
+ http_info["cname"] = cname
2724
+ http_info["collection_formats"] = collection_formats
2725
+ http_info["path_params"] = path_params
2726
+ http_info["query_params"] = query_params
2727
+ http_info["header_params"] = header_params
2728
+ http_info["post_params"] = form_params
2729
+ http_info["body"] = body
2730
+ http_info["response_headers"] = response_headers
2731
+
2732
+ return http_info
2733
+
2734
+ def show_job_by_id_async(self, request):
2735
+ r"""获取实时作业详情
2736
+
2737
+ 获取指定作业的详情
2738
+
2739
+ Please refer to HUAWEI cloud API Explorer for details.
2740
+
2741
+
2742
+ :param request: Request instance for ShowJobById
2743
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowJobByIdRequest`
2744
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowJobByIdResponse`
2745
+ """
2746
+ http_info = self._show_job_by_id_http_info(request)
2747
+ return self._call_api(**http_info)
2748
+
2749
+ def show_job_by_id_async_invoker(self, request):
2750
+ http_info = self._show_job_by_id_http_info(request)
2751
+ return AsyncInvoker(self, http_info)
2752
+
2753
+ def _show_job_by_id_http_info(self, request):
2754
+ http_info = {
2755
+ "method": "GET",
2756
+ "resource_path": "/v1/{project_id}/streaming/jobs/{job_id}",
2757
+ "request_type": request.__class__.__name__,
2758
+ "response_type": "ShowJobByIdResponse"
2759
+ }
2760
+
2761
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2762
+
2763
+ cname = None
2764
+
2765
+ collection_formats = {}
2766
+
2767
+ path_params = {}
2768
+ if 'job_id' in local_var_params:
2769
+ path_params['job_id'] = local_var_params['job_id']
2770
+
2771
+ query_params = []
2772
+
2773
+ header_params = {}
2774
+
2775
+ form_params = {}
2776
+
2777
+ body = None
2778
+ if isinstance(request, SdkStreamRequest):
2779
+ body = request.get_file_stream()
2780
+
2781
+ response_headers = []
2782
+
2783
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2784
+ ['application/json'])
2785
+
2786
+ auth_settings = []
2787
+
2788
+ http_info["cname"] = cname
2789
+ http_info["collection_formats"] = collection_formats
2790
+ http_info["path_params"] = path_params
2791
+ http_info["query_params"] = query_params
2792
+ http_info["header_params"] = header_params
2793
+ http_info["post_params"] = form_params
2794
+ http_info["body"] = body
2795
+ http_info["response_headers"] = response_headers
2796
+
2797
+ return http_info
2798
+
2799
+ def show_jobs_async(self, request):
2800
+ r"""获取实时作业列表
2801
+
2802
+ 获取用户下的所有实时分析作业,支持分页。
2803
+
2804
+ Please refer to HUAWEI cloud API Explorer for details.
2805
+
2806
+
2807
+ :param request: Request instance for ShowJobs
2808
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowJobsRequest`
2809
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowJobsResponse`
2810
+ """
2811
+ http_info = self._show_jobs_http_info(request)
2812
+ return self._call_api(**http_info)
2813
+
2814
+ def show_jobs_async_invoker(self, request):
2815
+ http_info = self._show_jobs_http_info(request)
2816
+ return AsyncInvoker(self, http_info)
2817
+
2818
+ def _show_jobs_http_info(self, request):
2819
+ http_info = {
2820
+ "method": "GET",
2821
+ "resource_path": "/v1/{project_id}/streaming/jobs",
2822
+ "request_type": request.__class__.__name__,
2823
+ "response_type": "ShowJobsResponse"
2824
+ }
2825
+
2826
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2827
+
2828
+ cname = None
2829
+
2830
+ collection_formats = {}
2831
+
2832
+ path_params = {}
2833
+
2834
+ query_params = []
2835
+ if 'job_input_type' in local_var_params:
2836
+ query_params.append(('job_input_type', local_var_params['job_input_type']))
2837
+ if 'offset' in local_var_params:
2838
+ query_params.append(('offset', local_var_params['offset']))
2839
+ if 'limit' in local_var_params:
2840
+ query_params.append(('limit', local_var_params['limit']))
2841
+ if 'sync_status' in local_var_params:
2842
+ query_params.append(('sync_status', local_var_params['sync_status']))
2843
+
2844
+ header_params = {}
2845
+
2846
+ form_params = {}
2847
+
2848
+ body = None
2849
+ if isinstance(request, SdkStreamRequest):
2850
+ body = request.get_file_stream()
2851
+
2852
+ response_headers = []
2853
+
2854
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2855
+ ['application/json'])
2856
+
2857
+ auth_settings = []
2858
+
2859
+ http_info["cname"] = cname
2860
+ http_info["collection_formats"] = collection_formats
2861
+ http_info["path_params"] = path_params
2862
+ http_info["query_params"] = query_params
2863
+ http_info["header_params"] = header_params
2864
+ http_info["post_params"] = form_params
2865
+ http_info["body"] = body
2866
+ http_info["response_headers"] = response_headers
2867
+
2868
+ return http_info
2869
+
2870
+ def update_streaming_job_async(self, request):
2871
+ r"""更新实时作业
2872
+
2873
+ 更新作业时,需要在URL中指定是更新哪一个作业,将在body中附带完整的作业信息。 check参数表示是否需要对作业配置进行检查,若为false,则不检查,将作业保存为草稿;若为true,则对作业配置进行检查,无论检查是否通过,都将作业及配置信息保存为草稿,当检查不通过时,返回失败及错误信息,检查通过时,将作业状态修改为就绪,并返回成功。
2874
+
2875
+ Please refer to HUAWEI cloud API Explorer for details.
2876
+
2877
+
2878
+ :param request: Request instance for UpdateStreamingJob
2879
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.UpdateStreamingJobRequest`
2880
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.UpdateStreamingJobResponse`
2881
+ """
2882
+ http_info = self._update_streaming_job_http_info(request)
2883
+ return self._call_api(**http_info)
2884
+
2885
+ def update_streaming_job_async_invoker(self, request):
2886
+ http_info = self._update_streaming_job_http_info(request)
2887
+ return AsyncInvoker(self, http_info)
2888
+
2889
+ def _update_streaming_job_http_info(self, request):
2890
+ http_info = {
2891
+ "method": "PUT",
2892
+ "resource_path": "/v1/{project_id}/streaming/jobs/{job_id}",
2893
+ "request_type": request.__class__.__name__,
2894
+ "response_type": "UpdateStreamingJobResponse"
2895
+ }
2896
+
2897
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2898
+
2899
+ cname = None
2900
+
2901
+ collection_formats = {}
2902
+
2903
+ path_params = {}
2904
+ if 'job_id' in local_var_params:
2905
+ path_params['job_id'] = local_var_params['job_id']
2906
+
2907
+ query_params = []
2908
+ if 'check' in local_var_params:
2909
+ query_params.append(('check', local_var_params['check']))
2910
+
2911
+ header_params = {}
2912
+
2913
+ form_params = {}
2914
+
2915
+ body = None
2916
+ if 'body' in local_var_params:
2917
+ body = local_var_params['body']
2918
+ if isinstance(request, SdkStreamRequest):
2919
+ body = request.get_file_stream()
2920
+
2921
+ response_headers = []
2922
+
2923
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2924
+ ['application/json'])
2925
+
2926
+ auth_settings = []
2927
+
2928
+ http_info["cname"] = cname
2929
+ http_info["collection_formats"] = collection_formats
2930
+ http_info["path_params"] = path_params
2931
+ http_info["query_params"] = query_params
2932
+ http_info["header_params"] = header_params
2933
+ http_info["post_params"] = form_params
2934
+ http_info["body"] = body
2935
+ http_info["response_headers"] = response_headers
2936
+
2937
+ return http_info
2938
+
2939
+ def start_job_async(self, request):
2940
+ r"""启动实时作业
2941
+
2942
+ 提交作业到运行环境,实时接收数据并按用户定义的业务逻辑对数据进行处理。
2943
+
2944
+ Please refer to HUAWEI cloud API Explorer for details.
2945
+
2946
+
2947
+ :param request: Request instance for StartJob
2948
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.StartJobRequest`
2949
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.StartJobResponse`
2950
+ """
2951
+ http_info = self._start_job_http_info(request)
2952
+ return self._call_api(**http_info)
2953
+
2954
+ def start_job_async_invoker(self, request):
2955
+ http_info = self._start_job_http_info(request)
2956
+ return AsyncInvoker(self, http_info)
2957
+
2958
+ def _start_job_http_info(self, request):
2959
+ http_info = {
2960
+ "method": "POST",
2961
+ "resource_path": "/v1/{project_id}/streaming/jobs/{job_id}/start",
2962
+ "request_type": request.__class__.__name__,
2963
+ "response_type": "StartJobResponse"
2964
+ }
2965
+
2966
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2967
+
2968
+ cname = None
2969
+
2970
+ collection_formats = {}
2971
+
2972
+ path_params = {}
2973
+ if 'job_id' in local_var_params:
2974
+ path_params['job_id'] = local_var_params['job_id']
2975
+
2976
+ query_params = []
2977
+ if 'parallel' in local_var_params:
2978
+ query_params.append(('parallel', local_var_params['parallel']))
2979
+ if 'rtu' in local_var_params:
2980
+ query_params.append(('rtu', local_var_params['rtu']))
2981
+ if 'resume_savepoint' in local_var_params:
2982
+ query_params.append(('resume_savepoint', local_var_params['resume_savepoint']))
2983
+
2984
+ header_params = {}
2985
+
2986
+ form_params = {}
2987
+
2988
+ body = None
2989
+ if isinstance(request, SdkStreamRequest):
2990
+ body = request.get_file_stream()
2991
+
2992
+ response_headers = []
2993
+
2994
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2995
+ ['application/json'])
2996
+
2997
+ auth_settings = []
2998
+
2999
+ http_info["cname"] = cname
3000
+ http_info["collection_formats"] = collection_formats
3001
+ http_info["path_params"] = path_params
3002
+ http_info["query_params"] = query_params
3003
+ http_info["header_params"] = header_params
3004
+ http_info["post_params"] = form_params
3005
+ http_info["body"] = body
3006
+ http_info["response_headers"] = response_headers
3007
+
3008
+ return http_info
3009
+
3010
+ def stop_job_async(self, request):
3011
+ r"""停止实时作业
3012
+
3013
+ 停止一个正在运行中的作业
3014
+
3015
+ Please refer to HUAWEI cloud API Explorer for details.
3016
+
3017
+
3018
+ :param request: Request instance for StopJob
3019
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.StopJobRequest`
3020
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.StopJobResponse`
3021
+ """
3022
+ http_info = self._stop_job_http_info(request)
3023
+ return self._call_api(**http_info)
3024
+
3025
+ def stop_job_async_invoker(self, request):
3026
+ http_info = self._stop_job_http_info(request)
3027
+ return AsyncInvoker(self, http_info)
3028
+
3029
+ def _stop_job_http_info(self, request):
3030
+ http_info = {
3031
+ "method": "POST",
3032
+ "resource_path": "/v1/{project_id}/streaming/jobs/{job_id}/stop",
3033
+ "request_type": request.__class__.__name__,
3034
+ "response_type": "StopJobResponse"
3035
+ }
3036
+
3037
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3038
+
3039
+ cname = None
3040
+
3041
+ collection_formats = {}
3042
+
3043
+ path_params = {}
3044
+ if 'job_id' in local_var_params:
3045
+ path_params['job_id'] = local_var_params['job_id']
3046
+
3047
+ query_params = []
3048
+ if 'trigger_savepoint' in local_var_params:
3049
+ query_params.append(('trigger_savepoint', local_var_params['trigger_savepoint']))
3050
+
3051
+ header_params = {}
3052
+
3053
+ form_params = {}
3054
+
3055
+ body = None
3056
+ if isinstance(request, SdkStreamRequest):
3057
+ body = request.get_file_stream()
3058
+
3059
+ response_headers = []
3060
+
3061
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3062
+ ['application/json'])
3063
+
3064
+ auth_settings = []
3065
+
3066
+ http_info["cname"] = cname
3067
+ http_info["collection_formats"] = collection_formats
3068
+ http_info["path_params"] = path_params
3069
+ http_info["query_params"] = query_params
3070
+ http_info["header_params"] = header_params
3071
+ http_info["post_params"] = form_params
3072
+ http_info["body"] = body
3073
+ http_info["response_headers"] = response_headers
3074
+
3075
+ return http_info
3076
+
3077
+ def create_computing_resource_async(self, request):
3078
+ r"""创建批计算资源
3079
+
3080
+ 创建批计算资源。
3081
+
3082
+ Please refer to HUAWEI cloud API Explorer for details.
3083
+
3084
+
3085
+ :param request: Request instance for CreateComputingResource
3086
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.CreateComputingResourceRequest`
3087
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.CreateComputingResourceResponse`
3088
+ """
3089
+ http_info = self._create_computing_resource_http_info(request)
3090
+ return self._call_api(**http_info)
3091
+
3092
+ def create_computing_resource_async_invoker(self, request):
3093
+ http_info = self._create_computing_resource_http_info(request)
3094
+ return AsyncInvoker(self, http_info)
3095
+
3096
+ def _create_computing_resource_http_info(self, request):
3097
+ http_info = {
3098
+ "method": "POST",
3099
+ "resource_path": "/v1/{project_id}/batch-computing-resources",
3100
+ "request_type": request.__class__.__name__,
3101
+ "response_type": "CreateComputingResourceResponse"
3102
+ }
3103
+
3104
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3105
+
3106
+ cname = None
3107
+
3108
+ collection_formats = {}
3109
+
3110
+ path_params = {}
3111
+
3112
+ query_params = []
3113
+
3114
+ header_params = {}
3115
+
3116
+ form_params = {}
3117
+
3118
+ body = None
3119
+ if 'body' in local_var_params:
3120
+ body = local_var_params['body']
3121
+ if isinstance(request, SdkStreamRequest):
3122
+ body = request.get_file_stream()
3123
+
3124
+ response_headers = []
3125
+
3126
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3127
+ ['application/json'])
3128
+
3129
+ auth_settings = []
3130
+
3131
+ http_info["cname"] = cname
3132
+ http_info["collection_formats"] = collection_formats
3133
+ http_info["path_params"] = path_params
3134
+ http_info["query_params"] = query_params
3135
+ http_info["header_params"] = header_params
3136
+ http_info["post_params"] = form_params
3137
+ http_info["body"] = body
3138
+ http_info["response_headers"] = response_headers
3139
+
3140
+ return http_info
3141
+
3142
+ def delete_computing_resource_async(self, request):
3143
+ r"""删除批计算资源
3144
+
3145
+ 删除批计算资源。
3146
+
3147
+ Please refer to HUAWEI cloud API Explorer for details.
3148
+
3149
+
3150
+ :param request: Request instance for DeleteComputingResource
3151
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteComputingResourceRequest`
3152
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteComputingResourceResponse`
3153
+ """
3154
+ http_info = self._delete_computing_resource_http_info(request)
3155
+ return self._call_api(**http_info)
3156
+
3157
+ def delete_computing_resource_async_invoker(self, request):
3158
+ http_info = self._delete_computing_resource_http_info(request)
3159
+ return AsyncInvoker(self, http_info)
3160
+
3161
+ def _delete_computing_resource_http_info(self, request):
3162
+ http_info = {
3163
+ "method": "DELETE",
3164
+ "resource_path": "/v1/{project_id}/batch-computing-resources/{computing_resource_id}",
3165
+ "request_type": request.__class__.__name__,
3166
+ "response_type": "DeleteComputingResourceResponse"
3167
+ }
3168
+
3169
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3170
+
3171
+ cname = None
3172
+
3173
+ collection_formats = {}
3174
+
3175
+ path_params = {}
3176
+ if 'computing_resource_id' in local_var_params:
3177
+ path_params['computing_resource_id'] = local_var_params['computing_resource_id']
3178
+
3179
+ query_params = []
3180
+
3181
+ header_params = {}
3182
+
3183
+ form_params = {}
3184
+
3185
+ body = None
3186
+ if isinstance(request, SdkStreamRequest):
3187
+ body = request.get_file_stream()
3188
+
3189
+ response_headers = []
3190
+
3191
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3192
+ ['application/json'])
3193
+
3194
+ auth_settings = []
3195
+
3196
+ http_info["cname"] = cname
3197
+ http_info["collection_formats"] = collection_formats
3198
+ http_info["path_params"] = path_params
3199
+ http_info["query_params"] = query_params
3200
+ http_info["header_params"] = header_params
3201
+ http_info["post_params"] = form_params
3202
+ http_info["body"] = body
3203
+ http_info["response_headers"] = response_headers
3204
+
3205
+ return http_info
3206
+
3207
+ def list_computing_resources_async(self, request):
3208
+ r"""查询批计算资源列表
3209
+
3210
+ 查询批计算资源列表。
3211
+
3212
+ Please refer to HUAWEI cloud API Explorer for details.
3213
+
3214
+
3215
+ :param request: Request instance for ListComputingResources
3216
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListComputingResourcesRequest`
3217
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListComputingResourcesResponse`
3218
+ """
3219
+ http_info = self._list_computing_resources_http_info(request)
3220
+ return self._call_api(**http_info)
3221
+
3222
+ def list_computing_resources_async_invoker(self, request):
3223
+ http_info = self._list_computing_resources_http_info(request)
3224
+ return AsyncInvoker(self, http_info)
3225
+
3226
+ def _list_computing_resources_http_info(self, request):
3227
+ http_info = {
3228
+ "method": "GET",
3229
+ "resource_path": "/v1/{project_id}/batch-computing-resources",
3230
+ "request_type": request.__class__.__name__,
3231
+ "response_type": "ListComputingResourcesResponse"
3232
+ }
3233
+
3234
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3235
+
3236
+ cname = None
3237
+
3238
+ collection_formats = {}
3239
+
3240
+ path_params = {}
3241
+
3242
+ query_params = []
3243
+ if 'computing_resource_name' in local_var_params:
3244
+ query_params.append(('computing_resource_name', local_var_params['computing_resource_name']))
3245
+ if 'offset' in local_var_params:
3246
+ query_params.append(('offset', local_var_params['offset']))
3247
+ if 'limit' in local_var_params:
3248
+ query_params.append(('limit', local_var_params['limit']))
3249
+
3250
+ header_params = {}
3251
+
3252
+ form_params = {}
3253
+
3254
+ body = None
3255
+ if isinstance(request, SdkStreamRequest):
3256
+ body = request.get_file_stream()
3257
+
3258
+ response_headers = []
3259
+
3260
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3261
+ ['application/json'])
3262
+
3263
+ auth_settings = []
3264
+
3265
+ http_info["cname"] = cname
3266
+ http_info["collection_formats"] = collection_formats
3267
+ http_info["path_params"] = path_params
3268
+ http_info["query_params"] = query_params
3269
+ http_info["header_params"] = header_params
3270
+ http_info["post_params"] = form_params
3271
+ http_info["body"] = body
3272
+ http_info["response_headers"] = response_headers
3273
+
3274
+ return http_info
3275
+
3276
+ def export_dataset_async(self, request):
3277
+ r"""下载离线作业结果
3278
+
3279
+ 将SQL语句的查询结果下载到本地,只支持下载“QUERY”类型作业的查询结果。
3280
+
3281
+ Please refer to HUAWEI cloud API Explorer for details.
3282
+
3283
+
3284
+ :param request: Request instance for ExportDataset
3285
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ExportDatasetRequest`
3286
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ExportDatasetResponse`
3287
+ """
3288
+ http_info = self._export_dataset_http_info(request)
3289
+ return self._call_api(**http_info)
3290
+
3291
+ def export_dataset_async_invoker(self, request):
3292
+ http_info = self._export_dataset_http_info(request)
3293
+ return AsyncInvoker(self, http_info)
3294
+
3295
+ def _export_dataset_http_info(self, request):
3296
+ http_info = {
3297
+ "method": "POST",
3298
+ "resource_path": "/v1/{project_id}/batch/jobs/{job_id}/runs/{run_id}/export-dataset",
3299
+ "request_type": request.__class__.__name__,
3300
+ "response_type": "ExportDatasetResponse"
3301
+ }
3302
+
3303
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3304
+
3305
+ cname = None
3306
+
3307
+ collection_formats = {}
3308
+
3309
+ path_params = {}
3310
+ if 'job_id' in local_var_params:
3311
+ path_params['job_id'] = local_var_params['job_id']
3312
+ if 'run_id' in local_var_params:
3313
+ path_params['run_id'] = local_var_params['run_id']
3314
+
3315
+ query_params = []
3316
+
3317
+ header_params = {}
3318
+
3319
+ form_params = {}
3320
+
3321
+ body = None
3322
+ if isinstance(request, SdkStreamRequest):
3323
+ body = request.get_file_stream()
3324
+
3325
+ response_headers = []
3326
+
3327
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3328
+ ['application/json'])
3329
+
3330
+ auth_settings = []
3331
+
3332
+ http_info["cname"] = cname
3333
+ http_info["collection_formats"] = collection_formats
3334
+ http_info["path_params"] = path_params
3335
+ http_info["query_params"] = query_params
3336
+ http_info["header_params"] = header_params
3337
+ http_info["post_params"] = form_params
3338
+ http_info["body"] = body
3339
+ http_info["response_headers"] = response_headers
3340
+
3341
+ return http_info
3342
+
3343
+ def import_data_async(self, request):
3344
+ r"""执行导入数据离线作业
3345
+
3346
+ 将数据从文件导入OBS表。
3347
+
3348
+ Please refer to HUAWEI cloud API Explorer for details.
3349
+
3350
+
3351
+ :param request: Request instance for ImportData
3352
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ImportDataRequest`
3353
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ImportDataResponse`
3354
+ """
3355
+ http_info = self._import_data_http_info(request)
3356
+ return self._call_api(**http_info)
3357
+
3358
+ def import_data_async_invoker(self, request):
3359
+ http_info = self._import_data_http_info(request)
3360
+ return AsyncInvoker(self, http_info)
3361
+
3362
+ def _import_data_http_info(self, request):
3363
+ http_info = {
3364
+ "method": "POST",
3365
+ "resource_path": "/v1/{project_id}/batch/jobs/import/runs",
3366
+ "request_type": request.__class__.__name__,
3367
+ "response_type": "ImportDataResponse"
3368
+ }
3369
+
3370
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3371
+
3372
+ cname = None
3373
+
3374
+ collection_formats = {}
3375
+
3376
+ path_params = {}
3377
+
3378
+ query_params = []
3379
+
3380
+ header_params = {}
3381
+
3382
+ form_params = {}
3383
+
3384
+ body = None
3385
+ if 'body' in local_var_params:
3386
+ body = local_var_params['body']
3387
+ if isinstance(request, SdkStreamRequest):
3388
+ body = request.get_file_stream()
3389
+
3390
+ response_headers = []
3391
+
3392
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3393
+ ['application/json'])
3394
+
3395
+ auth_settings = []
3396
+
3397
+ http_info["cname"] = cname
3398
+ http_info["collection_formats"] = collection_formats
3399
+ http_info["path_params"] = path_params
3400
+ http_info["query_params"] = query_params
3401
+ http_info["header_params"] = header_params
3402
+ http_info["post_params"] = form_params
3403
+ http_info["body"] = body
3404
+ http_info["response_headers"] = response_headers
3405
+
3406
+ return http_info
3407
+
3408
+ def show_dataset_async(self, request):
3409
+ r"""查询离线作业结果
3410
+
3411
+ 在执行SQL查询语句的作业完成后,查看该作业执行的结果。目前仅支持查看“QUERY”类型作业的执行结果。该API只能查看前1000条的结果记录,若要查看全部的结果记录,需要先导出查询结果再进行查看。
3412
+
3413
+ Please refer to HUAWEI cloud API Explorer for details.
3414
+
3415
+
3416
+ :param request: Request instance for ShowDataset
3417
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowDatasetRequest`
3418
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowDatasetResponse`
3419
+ """
3420
+ http_info = self._show_dataset_http_info(request)
3421
+ return self._call_api(**http_info)
3422
+
3423
+ def show_dataset_async_invoker(self, request):
3424
+ http_info = self._show_dataset_http_info(request)
3425
+ return AsyncInvoker(self, http_info)
3426
+
3427
+ def _show_dataset_http_info(self, request):
3428
+ http_info = {
3429
+ "method": "POST",
3430
+ "resource_path": "/v1/{project_id}/batch/jobs/{job_id}/runs/{run_id}/query-dataset",
3431
+ "request_type": request.__class__.__name__,
3432
+ "response_type": "ShowDatasetResponse"
3433
+ }
3434
+
3435
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3436
+
3437
+ cname = None
3438
+
3439
+ collection_formats = {}
3440
+
3441
+ path_params = {}
3442
+ if 'job_id' in local_var_params:
3443
+ path_params['job_id'] = local_var_params['job_id']
3444
+ if 'run_id' in local_var_params:
3445
+ path_params['run_id'] = local_var_params['run_id']
3446
+
3447
+ query_params = []
3448
+ if 'offset' in local_var_params:
3449
+ query_params.append(('offset', local_var_params['offset']))
3450
+ if 'limit' in local_var_params:
3451
+ query_params.append(('limit', local_var_params['limit']))
3452
+
3453
+ header_params = {}
3454
+
3455
+ form_params = {}
3456
+
3457
+ body = None
3458
+ if isinstance(request, SdkStreamRequest):
3459
+ body = request.get_file_stream()
3460
+
3461
+ response_headers = []
3462
+
3463
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3464
+ ['application/json'])
3465
+
3466
+ auth_settings = []
3467
+
3468
+ http_info["cname"] = cname
3469
+ http_info["collection_formats"] = collection_formats
3470
+ http_info["path_params"] = path_params
3471
+ http_info["query_params"] = query_params
3472
+ http_info["header_params"] = header_params
3473
+ http_info["post_params"] = form_params
3474
+ http_info["body"] = body
3475
+ http_info["response_headers"] = response_headers
3476
+
3477
+ return http_info
3478
+
3479
+ def validate_sql_async(self, request):
3480
+ r"""检查离线作业SQL语法
3481
+
3482
+ 检查离线作业SQL语法。
3483
+
3484
+ Please refer to HUAWEI cloud API Explorer for details.
3485
+
3486
+
3487
+ :param request: Request instance for ValidateSql
3488
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ValidateSqlRequest`
3489
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ValidateSqlResponse`
3490
+ """
3491
+ http_info = self._validate_sql_http_info(request)
3492
+ return self._call_api(**http_info)
3493
+
3494
+ def validate_sql_async_invoker(self, request):
3495
+ http_info = self._validate_sql_http_info(request)
3496
+ return AsyncInvoker(self, http_info)
3497
+
3498
+ def _validate_sql_http_info(self, request):
3499
+ http_info = {
3500
+ "method": "POST",
3501
+ "resource_path": "/v1/{project_id}/batch/validate-sql",
3502
+ "request_type": request.__class__.__name__,
3503
+ "response_type": "ValidateSqlResponse"
3504
+ }
3505
+
3506
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3507
+
3508
+ cname = None
3509
+
3510
+ collection_formats = {}
3511
+
3512
+ path_params = {}
3513
+
3514
+ query_params = []
3515
+
3516
+ header_params = {}
3517
+
3518
+ form_params = {}
3519
+
3520
+ body = None
3521
+ if 'body' in local_var_params:
3522
+ body = local_var_params['body']
3523
+ if isinstance(request, SdkStreamRequest):
3524
+ body = request.get_file_stream()
3525
+
3526
+ response_headers = []
3527
+
3528
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3529
+ ['application/json'])
3530
+
3531
+ auth_settings = []
3532
+
3533
+ http_info["cname"] = cname
3534
+ http_info["collection_formats"] = collection_formats
3535
+ http_info["path_params"] = path_params
3536
+ http_info["query_params"] = query_params
3537
+ http_info["header_params"] = header_params
3538
+ http_info["post_params"] = form_params
3539
+ http_info["body"] = body
3540
+ http_info["response_headers"] = response_headers
3541
+
3542
+ return http_info
3543
+
3544
+ def create_batch_job_async(self, request):
3545
+ r"""创建离线作业
3546
+
3547
+ 创建离线作业。
3548
+
3549
+ Please refer to HUAWEI cloud API Explorer for details.
3550
+
3551
+
3552
+ :param request: Request instance for CreateBatchJob
3553
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.CreateBatchJobRequest`
3554
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.CreateBatchJobResponse`
3555
+ """
3556
+ http_info = self._create_batch_job_http_info(request)
3557
+ return self._call_api(**http_info)
3558
+
3559
+ def create_batch_job_async_invoker(self, request):
3560
+ http_info = self._create_batch_job_http_info(request)
3561
+ return AsyncInvoker(self, http_info)
3562
+
3563
+ def _create_batch_job_http_info(self, request):
3564
+ http_info = {
3565
+ "method": "POST",
3566
+ "resource_path": "/v1/{project_id}/batch/jobs",
3567
+ "request_type": request.__class__.__name__,
3568
+ "response_type": "CreateBatchJobResponse"
3569
+ }
3570
+
3571
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3572
+
3573
+ cname = None
3574
+
3575
+ collection_formats = {}
3576
+
3577
+ path_params = {}
3578
+
3579
+ query_params = []
3580
+
3581
+ header_params = {}
3582
+
3583
+ form_params = {}
3584
+
3585
+ body = None
3586
+ if 'body' in local_var_params:
3587
+ body = local_var_params['body']
3588
+ if isinstance(request, SdkStreamRequest):
3589
+ body = request.get_file_stream()
3590
+
3591
+ response_headers = []
3592
+
3593
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3594
+ ['application/json'])
3595
+
3596
+ auth_settings = []
3597
+
3598
+ http_info["cname"] = cname
3599
+ http_info["collection_formats"] = collection_formats
3600
+ http_info["path_params"] = path_params
3601
+ http_info["query_params"] = query_params
3602
+ http_info["header_params"] = header_params
3603
+ http_info["post_params"] = form_params
3604
+ http_info["body"] = body
3605
+ http_info["response_headers"] = response_headers
3606
+
3607
+ return http_info
3608
+
3609
+ def delete_batch_job_async(self, request):
3610
+ r"""删除离线作业
3611
+
3612
+ 删除离线作业。
3613
+
3614
+ Please refer to HUAWEI cloud API Explorer for details.
3615
+
3616
+
3617
+ :param request: Request instance for DeleteBatchJob
3618
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteBatchJobRequest`
3619
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteBatchJobResponse`
3620
+ """
3621
+ http_info = self._delete_batch_job_http_info(request)
3622
+ return self._call_api(**http_info)
3623
+
3624
+ def delete_batch_job_async_invoker(self, request):
3625
+ http_info = self._delete_batch_job_http_info(request)
3626
+ return AsyncInvoker(self, http_info)
3627
+
3628
+ def _delete_batch_job_http_info(self, request):
3629
+ http_info = {
3630
+ "method": "DELETE",
3631
+ "resource_path": "/v1/{project_id}/batch/jobs/{job_id}",
3632
+ "request_type": request.__class__.__name__,
3633
+ "response_type": "DeleteBatchJobResponse"
3634
+ }
3635
+
3636
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3637
+
3638
+ cname = None
3639
+
3640
+ collection_formats = {}
3641
+
3642
+ path_params = {}
3643
+ if 'job_id' in local_var_params:
3644
+ path_params['job_id'] = local_var_params['job_id']
3645
+
3646
+ query_params = []
3647
+
3648
+ header_params = {}
3649
+
3650
+ form_params = {}
3651
+
3652
+ body = None
3653
+ if isinstance(request, SdkStreamRequest):
3654
+ body = request.get_file_stream()
3655
+
3656
+ response_headers = []
3657
+
3658
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3659
+ ['application/json'])
3660
+
3661
+ auth_settings = []
3662
+
3663
+ http_info["cname"] = cname
3664
+ http_info["collection_formats"] = collection_formats
3665
+ http_info["path_params"] = path_params
3666
+ http_info["query_params"] = query_params
3667
+ http_info["header_params"] = header_params
3668
+ http_info["post_params"] = form_params
3669
+ http_info["body"] = body
3670
+ http_info["response_headers"] = response_headers
3671
+
3672
+ return http_info
3673
+
3674
+ def list_batch_jobs_async(self, request):
3675
+ r"""查询离线作业列表
3676
+
3677
+ 查询离线作业列表。
3678
+
3679
+ Please refer to HUAWEI cloud API Explorer for details.
3680
+
3681
+
3682
+ :param request: Request instance for ListBatchJobs
3683
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListBatchJobsRequest`
3684
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListBatchJobsResponse`
3685
+ """
3686
+ http_info = self._list_batch_jobs_http_info(request)
3687
+ return self._call_api(**http_info)
3688
+
3689
+ def list_batch_jobs_async_invoker(self, request):
3690
+ http_info = self._list_batch_jobs_http_info(request)
3691
+ return AsyncInvoker(self, http_info)
3692
+
3693
+ def _list_batch_jobs_http_info(self, request):
3694
+ http_info = {
3695
+ "method": "GET",
3696
+ "resource_path": "/v1/{project_id}/batch/jobs",
3697
+ "request_type": request.__class__.__name__,
3698
+ "response_type": "ListBatchJobsResponse"
3699
+ }
3700
+
3701
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3702
+
3703
+ cname = None
3704
+
3705
+ collection_formats = {}
3706
+
3707
+ path_params = {}
3708
+
3709
+ query_params = []
3710
+ if 'offset' in local_var_params:
3711
+ query_params.append(('offset', local_var_params['offset']))
3712
+ if 'limit' in local_var_params:
3713
+ query_params.append(('limit', local_var_params['limit']))
3714
+ if 'has_schedule' in local_var_params:
3715
+ query_params.append(('has_schedule', local_var_params['has_schedule']))
3716
+ if 'job_name' in local_var_params:
3717
+ query_params.append(('job_name', local_var_params['job_name']))
3718
+ if 'schedule_status' in local_var_params:
3719
+ query_params.append(('schedule_status', local_var_params['schedule_status']))
3720
+ if 'order_by' in local_var_params:
3721
+ query_params.append(('order_by', local_var_params['order_by']))
3722
+ if 'order' in local_var_params:
3723
+ query_params.append(('order', local_var_params['order']))
3724
+
3725
+ header_params = {}
3726
+
3727
+ form_params = {}
3728
+
3729
+ body = None
3730
+ if isinstance(request, SdkStreamRequest):
3731
+ body = request.get_file_stream()
3732
+
3733
+ response_headers = []
3734
+
3735
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3736
+ ['application/json'])
3737
+
3738
+ auth_settings = []
3739
+
3740
+ http_info["cname"] = cname
3741
+ http_info["collection_formats"] = collection_formats
3742
+ http_info["path_params"] = path_params
3743
+ http_info["query_params"] = query_params
3744
+ http_info["header_params"] = header_params
3745
+ http_info["post_params"] = form_params
3746
+ http_info["body"] = body
3747
+ http_info["response_headers"] = response_headers
3748
+
3749
+ return http_info
3750
+
3751
+ def show_batch_job_async(self, request):
3752
+ r"""查询离线作业详情
3753
+
3754
+ 查询离线作业详情。
3755
+
3756
+ Please refer to HUAWEI cloud API Explorer for details.
3757
+
3758
+
3759
+ :param request: Request instance for ShowBatchJob
3760
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowBatchJobRequest`
3761
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowBatchJobResponse`
3762
+ """
3763
+ http_info = self._show_batch_job_http_info(request)
3764
+ return self._call_api(**http_info)
3765
+
3766
+ def show_batch_job_async_invoker(self, request):
3767
+ http_info = self._show_batch_job_http_info(request)
3768
+ return AsyncInvoker(self, http_info)
3769
+
3770
+ def _show_batch_job_http_info(self, request):
3771
+ http_info = {
3772
+ "method": "GET",
3773
+ "resource_path": "/v1/{project_id}/batch/jobs/{job_id}",
3774
+ "request_type": request.__class__.__name__,
3775
+ "response_type": "ShowBatchJobResponse"
3776
+ }
3777
+
3778
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3779
+
3780
+ cname = None
3781
+
3782
+ collection_formats = {}
3783
+
3784
+ path_params = {}
3785
+ if 'job_id' in local_var_params:
3786
+ path_params['job_id'] = local_var_params['job_id']
3787
+
3788
+ query_params = []
3789
+
3790
+ header_params = {}
3791
+
3792
+ form_params = {}
3793
+
3794
+ body = None
3795
+ if isinstance(request, SdkStreamRequest):
3796
+ body = request.get_file_stream()
3797
+
3798
+ response_headers = []
3799
+
3800
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3801
+ ['application/json'])
3802
+
3803
+ auth_settings = []
3804
+
3805
+ http_info["cname"] = cname
3806
+ http_info["collection_formats"] = collection_formats
3807
+ http_info["path_params"] = path_params
3808
+ http_info["query_params"] = query_params
3809
+ http_info["header_params"] = header_params
3810
+ http_info["post_params"] = form_params
3811
+ http_info["body"] = body
3812
+ http_info["response_headers"] = response_headers
3813
+
3814
+ return http_info
3815
+
3816
+ def update_batch_job_async(self, request):
3817
+ r"""修改离线作业
3818
+
3819
+ 修改离线作业。
3820
+
3821
+ Please refer to HUAWEI cloud API Explorer for details.
3822
+
3823
+
3824
+ :param request: Request instance for UpdateBatchJob
3825
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.UpdateBatchJobRequest`
3826
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.UpdateBatchJobResponse`
3827
+ """
3828
+ http_info = self._update_batch_job_http_info(request)
3829
+ return self._call_api(**http_info)
3830
+
3831
+ def update_batch_job_async_invoker(self, request):
3832
+ http_info = self._update_batch_job_http_info(request)
3833
+ return AsyncInvoker(self, http_info)
3834
+
3835
+ def _update_batch_job_http_info(self, request):
3836
+ http_info = {
3837
+ "method": "PUT",
3838
+ "resource_path": "/v1/{project_id}/batch/jobs/{job_id}",
3839
+ "request_type": request.__class__.__name__,
3840
+ "response_type": "UpdateBatchJobResponse"
3841
+ }
3842
+
3843
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3844
+
3845
+ cname = None
3846
+
3847
+ collection_formats = {}
3848
+
3849
+ path_params = {}
3850
+ if 'job_id' in local_var_params:
3851
+ path_params['job_id'] = local_var_params['job_id']
3852
+
3853
+ query_params = []
3854
+
3855
+ header_params = {}
3856
+
3857
+ form_params = {}
3858
+
3859
+ body = None
3860
+ if 'body' in local_var_params:
3861
+ body = local_var_params['body']
3862
+ if isinstance(request, SdkStreamRequest):
3863
+ body = request.get_file_stream()
3864
+
3865
+ response_headers = []
3866
+
3867
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3868
+ ['application/json'])
3869
+
3870
+ auth_settings = []
3871
+
3872
+ http_info["cname"] = cname
3873
+ http_info["collection_formats"] = collection_formats
3874
+ http_info["path_params"] = path_params
3875
+ http_info["query_params"] = query_params
3876
+ http_info["header_params"] = header_params
3877
+ http_info["post_params"] = form_params
3878
+ http_info["body"] = body
3879
+ http_info["response_headers"] = response_headers
3880
+
3881
+ return http_info
3882
+
3883
+ def create_run_async(self, request):
3884
+ r"""执行离线作业
3885
+
3886
+ 执行离线作业。
3887
+
3888
+ Please refer to HUAWEI cloud API Explorer for details.
3889
+
3890
+
3891
+ :param request: Request instance for CreateRun
3892
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.CreateRunRequest`
3893
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.CreateRunResponse`
3894
+ """
3895
+ http_info = self._create_run_http_info(request)
3896
+ return self._call_api(**http_info)
3897
+
3898
+ def create_run_async_invoker(self, request):
3899
+ http_info = self._create_run_http_info(request)
3900
+ return AsyncInvoker(self, http_info)
3901
+
3902
+ def _create_run_http_info(self, request):
3903
+ http_info = {
3904
+ "method": "POST",
3905
+ "resource_path": "/v1/{project_id}/batch/jobs/{job_id}/runs",
3906
+ "request_type": request.__class__.__name__,
3907
+ "response_type": "CreateRunResponse"
3908
+ }
3909
+
3910
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3911
+
3912
+ cname = None
3913
+
3914
+ collection_formats = {}
3915
+
3916
+ path_params = {}
3917
+ if 'job_id' in local_var_params:
3918
+ path_params['job_id'] = local_var_params['job_id']
3919
+
3920
+ query_params = []
3921
+
3922
+ header_params = {}
3923
+
3924
+ form_params = {}
3925
+
3926
+ body = None
3927
+ if 'body' in local_var_params:
3928
+ body = local_var_params['body']
3929
+ if isinstance(request, SdkStreamRequest):
3930
+ body = request.get_file_stream()
3931
+
3932
+ response_headers = []
3933
+
3934
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3935
+ ['application/json'])
3936
+
3937
+ auth_settings = []
3938
+
3939
+ http_info["cname"] = cname
3940
+ http_info["collection_formats"] = collection_formats
3941
+ http_info["path_params"] = path_params
3942
+ http_info["query_params"] = query_params
3943
+ http_info["header_params"] = header_params
3944
+ http_info["post_params"] = form_params
3945
+ http_info["body"] = body
3946
+ http_info["response_headers"] = response_headers
3947
+
3948
+ return http_info
3949
+
3950
+ def delete_run_async(self, request):
3951
+ r"""停止离线作业
3952
+
3953
+ 停止提交中或运行中的离线作业,若作业已经执行结束或失败则无法停止。
3954
+
3955
+ Please refer to HUAWEI cloud API Explorer for details.
3956
+
3957
+
3958
+ :param request: Request instance for DeleteRun
3959
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteRunRequest`
3960
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteRunResponse`
3961
+ """
3962
+ http_info = self._delete_run_http_info(request)
3963
+ return self._call_api(**http_info)
3964
+
3965
+ def delete_run_async_invoker(self, request):
3966
+ http_info = self._delete_run_http_info(request)
3967
+ return AsyncInvoker(self, http_info)
3968
+
3969
+ def _delete_run_http_info(self, request):
3970
+ http_info = {
3971
+ "method": "DELETE",
3972
+ "resource_path": "/v1/{project_id}/batch/jobs/{job_id}/runs/{run_id}",
3973
+ "request_type": request.__class__.__name__,
3974
+ "response_type": "DeleteRunResponse"
3975
+ }
3976
+
3977
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3978
+
3979
+ cname = None
3980
+
3981
+ collection_formats = {}
3982
+
3983
+ path_params = {}
3984
+ if 'job_id' in local_var_params:
3985
+ path_params['job_id'] = local_var_params['job_id']
3986
+ if 'run_id' in local_var_params:
3987
+ path_params['run_id'] = local_var_params['run_id']
3988
+
3989
+ query_params = []
3990
+
3991
+ header_params = {}
3992
+
3993
+ form_params = {}
3994
+
3995
+ body = None
3996
+ if isinstance(request, SdkStreamRequest):
3997
+ body = request.get_file_stream()
3998
+
3999
+ response_headers = []
4000
+
4001
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4002
+ ['application/json'])
4003
+
4004
+ auth_settings = []
4005
+
4006
+ http_info["cname"] = cname
4007
+ http_info["collection_formats"] = collection_formats
4008
+ http_info["path_params"] = path_params
4009
+ http_info["query_params"] = query_params
4010
+ http_info["header_params"] = header_params
4011
+ http_info["post_params"] = form_params
4012
+ http_info["body"] = body
4013
+ http_info["response_headers"] = response_headers
4014
+
4015
+ return http_info
4016
+
4017
+ def list_runs_async(self, request):
4018
+ r"""查询离线作业运行列表
4019
+
4020
+ 查询离线作业运行列表。
4021
+
4022
+ Please refer to HUAWEI cloud API Explorer for details.
4023
+
4024
+
4025
+ :param request: Request instance for ListRuns
4026
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListRunsRequest`
4027
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListRunsResponse`
4028
+ """
4029
+ http_info = self._list_runs_http_info(request)
4030
+ return self._call_api(**http_info)
4031
+
4032
+ def list_runs_async_invoker(self, request):
4033
+ http_info = self._list_runs_http_info(request)
4034
+ return AsyncInvoker(self, http_info)
4035
+
4036
+ def _list_runs_http_info(self, request):
4037
+ http_info = {
4038
+ "method": "GET",
4039
+ "resource_path": "/v1/{project_id}/batch/jobs/runs",
4040
+ "request_type": request.__class__.__name__,
4041
+ "response_type": "ListRunsResponse"
4042
+ }
4043
+
4044
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4045
+
4046
+ cname = None
4047
+
4048
+ collection_formats = {}
4049
+
4050
+ path_params = {}
4051
+
4052
+ query_params = []
4053
+ if 'offset' in local_var_params:
4054
+ query_params.append(('offset', local_var_params['offset']))
4055
+ if 'limit' in local_var_params:
4056
+ query_params.append(('limit', local_var_params['limit']))
4057
+ if 'start_time' in local_var_params:
4058
+ query_params.append(('start_time', local_var_params['start_time']))
4059
+ if 'end_time' in local_var_params:
4060
+ query_params.append(('end_time', local_var_params['end_time']))
4061
+ if 'sql_pattern' in local_var_params:
4062
+ query_params.append(('sql_pattern', local_var_params['sql_pattern']))
4063
+ if 'sql_type' in local_var_params:
4064
+ query_params.append(('sql_type', local_var_params['sql_type']))
4065
+ if 'job_type' in local_var_params:
4066
+ query_params.append(('job_type', local_var_params['job_type']))
4067
+ if 'status' in local_var_params:
4068
+ query_params.append(('status', local_var_params['status']))
4069
+ if 'order_by' in local_var_params:
4070
+ query_params.append(('order_by', local_var_params['order_by']))
4071
+ if 'order' in local_var_params:
4072
+ query_params.append(('order', local_var_params['order']))
4073
+ if 'job_name' in local_var_params:
4074
+ query_params.append(('job_name', local_var_params['job_name']))
4075
+
4076
+ header_params = {}
4077
+
4078
+ form_params = {}
4079
+
4080
+ body = None
4081
+ if isinstance(request, SdkStreamRequest):
4082
+ body = request.get_file_stream()
4083
+
4084
+ response_headers = []
4085
+
4086
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4087
+ ['application/json'])
4088
+
4089
+ auth_settings = []
4090
+
4091
+ http_info["cname"] = cname
4092
+ http_info["collection_formats"] = collection_formats
4093
+ http_info["path_params"] = path_params
4094
+ http_info["query_params"] = query_params
4095
+ http_info["header_params"] = header_params
4096
+ http_info["post_params"] = form_params
4097
+ http_info["body"] = body
4098
+ http_info["response_headers"] = response_headers
4099
+
4100
+ return http_info
4101
+
4102
+ def show_run_async(self, request):
4103
+ r"""查询离线作业运行详情
4104
+
4105
+ 查询离线作业运行详情。
4106
+
4107
+ Please refer to HUAWEI cloud API Explorer for details.
4108
+
4109
+
4110
+ :param request: Request instance for ShowRun
4111
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowRunRequest`
4112
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowRunResponse`
4113
+ """
4114
+ http_info = self._show_run_http_info(request)
4115
+ return self._call_api(**http_info)
4116
+
4117
+ def show_run_async_invoker(self, request):
4118
+ http_info = self._show_run_http_info(request)
4119
+ return AsyncInvoker(self, http_info)
4120
+
4121
+ def _show_run_http_info(self, request):
4122
+ http_info = {
4123
+ "method": "GET",
4124
+ "resource_path": "/v1/{project_id}/batch/jobs/{job_id}/runs/{run_id}",
4125
+ "request_type": request.__class__.__name__,
4126
+ "response_type": "ShowRunResponse"
4127
+ }
4128
+
4129
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4130
+
4131
+ cname = None
4132
+
4133
+ collection_formats = {}
4134
+
4135
+ path_params = {}
4136
+ if 'job_id' in local_var_params:
4137
+ path_params['job_id'] = local_var_params['job_id']
4138
+ if 'run_id' in local_var_params:
4139
+ path_params['run_id'] = local_var_params['run_id']
4140
+
4141
+ query_params = []
4142
+ if 'with_details' in local_var_params:
4143
+ query_params.append(('with_details', local_var_params['with_details']))
4144
+
4145
+ header_params = {}
4146
+
4147
+ form_params = {}
4148
+
4149
+ body = None
4150
+ if isinstance(request, SdkStreamRequest):
4151
+ body = request.get_file_stream()
4152
+
4153
+ response_headers = []
4154
+
4155
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4156
+ ['application/json'])
4157
+
4158
+ auth_settings = []
4159
+
4160
+ http_info["cname"] = cname
4161
+ http_info["collection_formats"] = collection_formats
4162
+ http_info["path_params"] = path_params
4163
+ http_info["query_params"] = query_params
4164
+ http_info["header_params"] = header_params
4165
+ http_info["post_params"] = form_params
4166
+ http_info["body"] = body
4167
+ http_info["response_headers"] = response_headers
4168
+
4169
+ return http_info
4170
+
4171
+ def create_table_async(self, request):
4172
+ r"""创建离线数据表
4173
+
4174
+ 创建离线数据表。
4175
+
4176
+ Please refer to HUAWEI cloud API Explorer for details.
4177
+
4178
+
4179
+ :param request: Request instance for CreateTable
4180
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.CreateTableRequest`
4181
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.CreateTableResponse`
4182
+ """
4183
+ http_info = self._create_table_http_info(request)
4184
+ return self._call_api(**http_info)
4185
+
4186
+ def create_table_async_invoker(self, request):
4187
+ http_info = self._create_table_http_info(request)
4188
+ return AsyncInvoker(self, http_info)
4189
+
4190
+ def _create_table_http_info(self, request):
4191
+ http_info = {
4192
+ "method": "POST",
4193
+ "resource_path": "/v1/{project_id}/tables",
4194
+ "request_type": request.__class__.__name__,
4195
+ "response_type": "CreateTableResponse"
4196
+ }
4197
+
4198
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4199
+
4200
+ cname = None
4201
+
4202
+ collection_formats = {}
4203
+
4204
+ path_params = {}
4205
+
4206
+ query_params = []
4207
+
4208
+ header_params = {}
4209
+
4210
+ form_params = {}
4211
+
4212
+ body = None
4213
+ if 'body' in local_var_params:
4214
+ body = local_var_params['body']
4215
+ if isinstance(request, SdkStreamRequest):
4216
+ body = request.get_file_stream()
4217
+
4218
+ response_headers = []
4219
+
4220
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4221
+ ['application/json'])
4222
+
4223
+ auth_settings = []
4224
+
4225
+ http_info["cname"] = cname
4226
+ http_info["collection_formats"] = collection_formats
4227
+ http_info["path_params"] = path_params
4228
+ http_info["query_params"] = query_params
4229
+ http_info["header_params"] = header_params
4230
+ http_info["post_params"] = form_params
4231
+ http_info["body"] = body
4232
+ http_info["response_headers"] = response_headers
4233
+
4234
+ return http_info
4235
+
4236
+ def delete_table_async(self, request):
4237
+ r"""删除离线数据表
4238
+
4239
+ 删除离线数据表。
4240
+
4241
+ Please refer to HUAWEI cloud API Explorer for details.
4242
+
4243
+
4244
+ :param request: Request instance for DeleteTable
4245
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.DeleteTableRequest`
4246
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.DeleteTableResponse`
4247
+ """
4248
+ http_info = self._delete_table_http_info(request)
4249
+ return self._call_api(**http_info)
4250
+
4251
+ def delete_table_async_invoker(self, request):
4252
+ http_info = self._delete_table_http_info(request)
4253
+ return AsyncInvoker(self, http_info)
4254
+
4255
+ def _delete_table_http_info(self, request):
4256
+ http_info = {
4257
+ "method": "DELETE",
4258
+ "resource_path": "/v1/{project_id}/tables/{table_id}",
4259
+ "request_type": request.__class__.__name__,
4260
+ "response_type": "DeleteTableResponse"
4261
+ }
4262
+
4263
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4264
+
4265
+ cname = None
4266
+
4267
+ collection_formats = {}
4268
+
4269
+ path_params = {}
4270
+ if 'table_id' in local_var_params:
4271
+ path_params['table_id'] = local_var_params['table_id']
4272
+
4273
+ query_params = []
4274
+
4275
+ header_params = {}
4276
+
4277
+ form_params = {}
4278
+
4279
+ body = None
4280
+ if isinstance(request, SdkStreamRequest):
4281
+ body = request.get_file_stream()
4282
+
4283
+ response_headers = []
4284
+
4285
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4286
+ ['application/json'])
4287
+
4288
+ auth_settings = []
4289
+
4290
+ http_info["cname"] = cname
4291
+ http_info["collection_formats"] = collection_formats
4292
+ http_info["path_params"] = path_params
4293
+ http_info["query_params"] = query_params
4294
+ http_info["header_params"] = header_params
4295
+ http_info["post_params"] = form_params
4296
+ http_info["body"] = body
4297
+ http_info["response_headers"] = response_headers
4298
+
4299
+ return http_info
4300
+
4301
+ def list_tables_async(self, request):
4302
+ r"""查询离线数据表列表
4303
+
4304
+ 查询离线数据表列表。
4305
+
4306
+ Please refer to HUAWEI cloud API Explorer for details.
4307
+
4308
+
4309
+ :param request: Request instance for ListTables
4310
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ListTablesRequest`
4311
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ListTablesResponse`
4312
+ """
4313
+ http_info = self._list_tables_http_info(request)
4314
+ return self._call_api(**http_info)
4315
+
4316
+ def list_tables_async_invoker(self, request):
4317
+ http_info = self._list_tables_http_info(request)
4318
+ return AsyncInvoker(self, http_info)
4319
+
4320
+ def _list_tables_http_info(self, request):
4321
+ http_info = {
4322
+ "method": "GET",
4323
+ "resource_path": "/v1/{project_id}/tables",
4324
+ "request_type": request.__class__.__name__,
4325
+ "response_type": "ListTablesResponse"
4326
+ }
4327
+
4328
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4329
+
4330
+ cname = None
4331
+
4332
+ collection_formats = {}
4333
+
4334
+ path_params = {}
4335
+
4336
+ query_params = []
4337
+ if 'keyword' in local_var_params:
4338
+ query_params.append(('keyword', local_var_params['keyword']))
4339
+ if 'tag' in local_var_params:
4340
+ query_params.append(('tag', local_var_params['tag']))
4341
+ if 'offset' in local_var_params:
4342
+ query_params.append(('offset', local_var_params['offset']))
4343
+ if 'limit' in local_var_params:
4344
+ query_params.append(('limit', local_var_params['limit']))
4345
+ if 'order_by' in local_var_params:
4346
+ query_params.append(('order_by', local_var_params['order_by']))
4347
+ if 'order' in local_var_params:
4348
+ query_params.append(('order', local_var_params['order']))
4349
+
4350
+ header_params = {}
4351
+
4352
+ form_params = {}
4353
+
4354
+ body = None
4355
+ if isinstance(request, SdkStreamRequest):
4356
+ body = request.get_file_stream()
4357
+
4358
+ response_headers = []
4359
+
4360
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4361
+ ['application/json'])
4362
+
4363
+ auth_settings = []
4364
+
4365
+ http_info["cname"] = cname
4366
+ http_info["collection_formats"] = collection_formats
4367
+ http_info["path_params"] = path_params
4368
+ http_info["query_params"] = query_params
4369
+ http_info["header_params"] = header_params
4370
+ http_info["post_params"] = form_params
4371
+ http_info["body"] = body
4372
+ http_info["response_headers"] = response_headers
4373
+
4374
+ return http_info
4375
+
4376
+ def show_table_preview_async(self, request):
4377
+ r"""预览离线数据表内容
4378
+
4379
+ 预览离线数据表内容。
4380
+
4381
+ Please refer to HUAWEI cloud API Explorer for details.
4382
+
4383
+
4384
+ :param request: Request instance for ShowTablePreview
4385
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowTablePreviewRequest`
4386
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowTablePreviewResponse`
4387
+ """
4388
+ http_info = self._show_table_preview_http_info(request)
4389
+ return self._call_api(**http_info)
4390
+
4391
+ def show_table_preview_async_invoker(self, request):
4392
+ http_info = self._show_table_preview_http_info(request)
4393
+ return AsyncInvoker(self, http_info)
4394
+
4395
+ def _show_table_preview_http_info(self, request):
4396
+ http_info = {
4397
+ "method": "GET",
4398
+ "resource_path": "/v1/{project_id}/tables/{table_id}/preview",
4399
+ "request_type": request.__class__.__name__,
4400
+ "response_type": "ShowTablePreviewResponse"
4401
+ }
4402
+
4403
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4404
+
4405
+ cname = None
4406
+
4407
+ collection_formats = {}
4408
+
4409
+ path_params = {}
4410
+ if 'table_id' in local_var_params:
4411
+ path_params['table_id'] = local_var_params['table_id']
4412
+
4413
+ query_params = []
4414
+
4415
+ header_params = {}
4416
+
4417
+ form_params = {}
4418
+
4419
+ body = None
4420
+ if isinstance(request, SdkStreamRequest):
4421
+ body = request.get_file_stream()
4422
+
4423
+ response_headers = []
4424
+
4425
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4426
+ ['application/json'])
4427
+
4428
+ auth_settings = []
4429
+
4430
+ http_info["cname"] = cname
4431
+ http_info["collection_formats"] = collection_formats
4432
+ http_info["path_params"] = path_params
4433
+ http_info["query_params"] = query_params
4434
+ http_info["header_params"] = header_params
4435
+ http_info["post_params"] = form_params
4436
+ http_info["body"] = body
4437
+ http_info["response_headers"] = response_headers
4438
+
4439
+ return http_info
4440
+
4441
+ def show_table_schema_async(self, request):
4442
+ r"""查询离线数据表结构
4443
+
4444
+ 查询离线数据表结构。
4445
+
4446
+ Please refer to HUAWEI cloud API Explorer for details.
4447
+
4448
+
4449
+ :param request: Request instance for ShowTableSchema
4450
+ :type request: :class:`huaweicloudsdkiotanalytics.v1.ShowTableSchemaRequest`
4451
+ :rtype: :class:`huaweicloudsdkiotanalytics.v1.ShowTableSchemaResponse`
4452
+ """
4453
+ http_info = self._show_table_schema_http_info(request)
4454
+ return self._call_api(**http_info)
4455
+
4456
+ def show_table_schema_async_invoker(self, request):
4457
+ http_info = self._show_table_schema_http_info(request)
4458
+ return AsyncInvoker(self, http_info)
4459
+
4460
+ def _show_table_schema_http_info(self, request):
4461
+ http_info = {
4462
+ "method": "GET",
4463
+ "resource_path": "/v1/{project_id}/tables/{table_id}/schema",
4464
+ "request_type": request.__class__.__name__,
4465
+ "response_type": "ShowTableSchemaResponse"
4466
+ }
4467
+
4468
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
4469
+
4470
+ cname = None
4471
+
4472
+ collection_formats = {}
4473
+
4474
+ path_params = {}
4475
+ if 'table_id' in local_var_params:
4476
+ path_params['table_id'] = local_var_params['table_id']
4477
+
4478
+ query_params = []
4479
+
4480
+ header_params = {}
4481
+
4482
+ form_params = {}
4483
+
4484
+ body = None
4485
+ if isinstance(request, SdkStreamRequest):
4486
+ body = request.get_file_stream()
4487
+
4488
+ response_headers = []
4489
+
4490
+ header_params['Content-Type'] = http_utils.select_header_content_type(
4491
+ ['application/json'])
4492
+
4493
+ auth_settings = []
4494
+
4495
+ http_info["cname"] = cname
4496
+ http_info["collection_formats"] = collection_formats
4497
+ http_info["path_params"] = path_params
4498
+ http_info["query_params"] = query_params
4499
+ http_info["header_params"] = header_params
4500
+ http_info["post_params"] = form_params
4501
+ http_info["body"] = body
4502
+ http_info["response_headers"] = response_headers
4503
+
4504
+ return http_info
4505
+
4506
+ def _call_api(self, **kwargs):
4507
+ try:
4508
+ kwargs["async_request"] = True
4509
+ return self.do_http_request(**kwargs)
4510
+ except TypeError:
4511
+ import inspect
4512
+ params = inspect.signature(self.do_http_request).parameters
4513
+ http_info = {param_name: kwargs.get(param_name) for param_name in params if param_name in kwargs}
4514
+ return self.do_http_request(**http_info)
4515
+
4516
+ def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, body=None,
4517
+ post_params=None, cname=None, response_type=None, response_headers=None, auth_settings=None,
4518
+ collection_formats=None, request_type=None):
4519
+ """Makes the HTTP request and returns deserialized data.
4520
+
4521
+ :param resource_path: Path to method endpoint.
4522
+ :param method: Method to call.
4523
+ :param path_params: Path parameters in the url.
4524
+ :param query_params: Query parameters in the url.
4525
+ :param header_params: Header parameters to be
4526
+ placed in the request header.
4527
+ :param body: Request body.
4528
+ :param post_params: Request post form parameters,
4529
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
4530
+ :param cname: Used for obs endpoint.
4531
+ :param auth_settings: Auth Settings names for the request.
4532
+ :param response_type: Response data type.
4533
+ :param response_headers: Header should be added to response data.
4534
+ :param collection_formats: dict of collection formats for path, query,
4535
+ header, and post parameters.
4536
+ :param request_type: Request data type.
4537
+ :return:
4538
+ Return the response directly.
4539
+ """
4540
+ return self.do_http_request(
4541
+ method=method,
4542
+ resource_path=resource_path,
4543
+ path_params=path_params,
4544
+ query_params=query_params,
4545
+ header_params=header_params,
4546
+ body=body,
4547
+ post_params=post_params,
4548
+ cname=cname,
4549
+ response_type=response_type,
4550
+ response_headers=response_headers,
4551
+ collection_formats=collection_formats,
4552
+ request_type=request_type,
4553
+ async_request=True)