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,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ValidateSqlRequestBody:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'sql': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'sql': 'sql'
25
+ }
26
+
27
+ def __init__(self, sql=None):
28
+ r"""ValidateSqlRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param sql: 待执行的SQL语句。
33
+ :type sql: str
34
+ """
35
+
36
+
37
+
38
+ self._sql = None
39
+ self.discriminator = None
40
+
41
+ if sql is not None:
42
+ self.sql = sql
43
+
44
+ @property
45
+ def sql(self):
46
+ r"""Gets the sql of this ValidateSqlRequestBody.
47
+
48
+ 待执行的SQL语句。
49
+
50
+ :return: The sql of this ValidateSqlRequestBody.
51
+ :rtype: str
52
+ """
53
+ return self._sql
54
+
55
+ @sql.setter
56
+ def sql(self, sql):
57
+ r"""Sets the sql of this ValidateSqlRequestBody.
58
+
59
+ 待执行的SQL语句。
60
+
61
+ :param sql: The sql of this ValidateSqlRequestBody.
62
+ :type sql: str
63
+ """
64
+ self._sql = sql
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, ValidateSqlRequestBody):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ValidateSqlResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'valid': 'bool'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'valid': 'valid'
26
+ }
27
+
28
+ def __init__(self, valid=None):
29
+ r"""ValidateSqlResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param valid: SQL是否通过语法校验
34
+ :type valid: bool
35
+ """
36
+
37
+ super(ValidateSqlResponse, self).__init__()
38
+
39
+ self._valid = None
40
+ self.discriminator = None
41
+
42
+ if valid is not None:
43
+ self.valid = valid
44
+
45
+ @property
46
+ def valid(self):
47
+ r"""Gets the valid of this ValidateSqlResponse.
48
+
49
+ SQL是否通过语法校验
50
+
51
+ :return: The valid of this ValidateSqlResponse.
52
+ :rtype: bool
53
+ """
54
+ return self._valid
55
+
56
+ @valid.setter
57
+ def valid(self, valid):
58
+ r"""Sets the valid of this ValidateSqlResponse.
59
+
60
+ SQL是否通过语法校验
61
+
62
+ :param valid: The valid of this ValidateSqlResponse.
63
+ :type valid: bool
64
+ """
65
+ self._valid = valid
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, ValidateSqlResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -0,0 +1,198 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class VpcepInfo:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'kafka_broker_ip': 'str',
21
+ 'vpcep_service_id': 'str',
22
+ 'vpcep_service_name': 'str',
23
+ 'vpcep_client_port': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'kafka_broker_ip': 'kafka_broker_ip',
28
+ 'vpcep_service_id': 'vpcep_service_id',
29
+ 'vpcep_service_name': 'vpcep_service_name',
30
+ 'vpcep_client_port': 'vpcep_client_port'
31
+ }
32
+
33
+ def __init__(self, kafka_broker_ip=None, vpcep_service_id=None, vpcep_service_name=None, vpcep_client_port=None):
34
+ r"""VpcepInfo
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param kafka_broker_ip: Kafka的Broker ip
39
+ :type kafka_broker_ip: str
40
+ :param vpcep_service_id: Kafka的VPCEP的service id
41
+ :type vpcep_service_id: str
42
+ :param vpcep_service_name: Kafka的VPCEP的service name
43
+ :type vpcep_service_name: str
44
+ :param vpcep_client_port: Kafka的VPCEP的client port
45
+ :type vpcep_client_port: int
46
+ """
47
+
48
+
49
+
50
+ self._kafka_broker_ip = None
51
+ self._vpcep_service_id = None
52
+ self._vpcep_service_name = None
53
+ self._vpcep_client_port = None
54
+ self.discriminator = None
55
+
56
+ self.kafka_broker_ip = kafka_broker_ip
57
+ self.vpcep_service_id = vpcep_service_id
58
+ self.vpcep_service_name = vpcep_service_name
59
+ self.vpcep_client_port = vpcep_client_port
60
+
61
+ @property
62
+ def kafka_broker_ip(self):
63
+ r"""Gets the kafka_broker_ip of this VpcepInfo.
64
+
65
+ Kafka的Broker ip
66
+
67
+ :return: The kafka_broker_ip of this VpcepInfo.
68
+ :rtype: str
69
+ """
70
+ return self._kafka_broker_ip
71
+
72
+ @kafka_broker_ip.setter
73
+ def kafka_broker_ip(self, kafka_broker_ip):
74
+ r"""Sets the kafka_broker_ip of this VpcepInfo.
75
+
76
+ Kafka的Broker ip
77
+
78
+ :param kafka_broker_ip: The kafka_broker_ip of this VpcepInfo.
79
+ :type kafka_broker_ip: str
80
+ """
81
+ self._kafka_broker_ip = kafka_broker_ip
82
+
83
+ @property
84
+ def vpcep_service_id(self):
85
+ r"""Gets the vpcep_service_id of this VpcepInfo.
86
+
87
+ Kafka的VPCEP的service id
88
+
89
+ :return: The vpcep_service_id of this VpcepInfo.
90
+ :rtype: str
91
+ """
92
+ return self._vpcep_service_id
93
+
94
+ @vpcep_service_id.setter
95
+ def vpcep_service_id(self, vpcep_service_id):
96
+ r"""Sets the vpcep_service_id of this VpcepInfo.
97
+
98
+ Kafka的VPCEP的service id
99
+
100
+ :param vpcep_service_id: The vpcep_service_id of this VpcepInfo.
101
+ :type vpcep_service_id: str
102
+ """
103
+ self._vpcep_service_id = vpcep_service_id
104
+
105
+ @property
106
+ def vpcep_service_name(self):
107
+ r"""Gets the vpcep_service_name of this VpcepInfo.
108
+
109
+ Kafka的VPCEP的service name
110
+
111
+ :return: The vpcep_service_name of this VpcepInfo.
112
+ :rtype: str
113
+ """
114
+ return self._vpcep_service_name
115
+
116
+ @vpcep_service_name.setter
117
+ def vpcep_service_name(self, vpcep_service_name):
118
+ r"""Sets the vpcep_service_name of this VpcepInfo.
119
+
120
+ Kafka的VPCEP的service name
121
+
122
+ :param vpcep_service_name: The vpcep_service_name of this VpcepInfo.
123
+ :type vpcep_service_name: str
124
+ """
125
+ self._vpcep_service_name = vpcep_service_name
126
+
127
+ @property
128
+ def vpcep_client_port(self):
129
+ r"""Gets the vpcep_client_port of this VpcepInfo.
130
+
131
+ Kafka的VPCEP的client port
132
+
133
+ :return: The vpcep_client_port of this VpcepInfo.
134
+ :rtype: int
135
+ """
136
+ return self._vpcep_client_port
137
+
138
+ @vpcep_client_port.setter
139
+ def vpcep_client_port(self, vpcep_client_port):
140
+ r"""Sets the vpcep_client_port of this VpcepInfo.
141
+
142
+ Kafka的VPCEP的client port
143
+
144
+ :param vpcep_client_port: The vpcep_client_port of this VpcepInfo.
145
+ :type vpcep_client_port: int
146
+ """
147
+ self._vpcep_client_port = vpcep_client_port
148
+
149
+ def to_dict(self):
150
+ """Returns the model properties as a dict"""
151
+ result = {}
152
+
153
+ for attr, _ in six.iteritems(self.openapi_types):
154
+ value = getattr(self, attr)
155
+ if isinstance(value, list):
156
+ result[attr] = list(map(
157
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
158
+ value
159
+ ))
160
+ elif hasattr(value, "to_dict"):
161
+ result[attr] = value.to_dict()
162
+ elif isinstance(value, dict):
163
+ result[attr] = dict(map(
164
+ lambda item: (item[0], item[1].to_dict())
165
+ if hasattr(item[1], "to_dict") else item,
166
+ value.items()
167
+ ))
168
+ else:
169
+ if attr in self.sensitive_list:
170
+ result[attr] = "****"
171
+ else:
172
+ result[attr] = value
173
+
174
+ return result
175
+
176
+ def to_str(self):
177
+ """Returns the string representation of the model"""
178
+ import simplejson as json
179
+ if six.PY2:
180
+ import sys
181
+ reload(sys)
182
+ sys.setdefaultencoding("utf-8")
183
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
184
+
185
+ def __repr__(self):
186
+ """For `print`"""
187
+ return self.to_str()
188
+
189
+ def __eq__(self, other):
190
+ """Returns true if both objects are equal"""
191
+ if not isinstance(other, VpcepInfo):
192
+ return False
193
+
194
+ return self.__dict__ == other.__dict__
195
+
196
+ def __ne__(self, other):
197
+ """Returns true if both objects are not equal"""
198
+ return not self == other
@@ -0,0 +1,227 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class VpcepInfoRsp:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'vpcep_service_id': 'str',
21
+ 'vpcep_service_name': 'str',
22
+ 'vpcep_client_ip': 'str',
23
+ 'vpcep_client_port': 'int',
24
+ 'kafka_broker_ip': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'vpcep_service_id': 'vpcep_service_id',
29
+ 'vpcep_service_name': 'vpcep_service_name',
30
+ 'vpcep_client_ip': 'vpcep_client_ip',
31
+ 'vpcep_client_port': 'vpcep_client_port',
32
+ 'kafka_broker_ip': 'kafka_broker_ip'
33
+ }
34
+
35
+ def __init__(self, vpcep_service_id=None, vpcep_service_name=None, vpcep_client_ip=None, vpcep_client_port=None, kafka_broker_ip=None):
36
+ r"""VpcepInfoRsp
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param vpcep_service_id: Kafka的VPCEP的service id
41
+ :type vpcep_service_id: str
42
+ :param vpcep_service_name: Kafka的VPCEP的service name
43
+ :type vpcep_service_name: str
44
+ :param vpcep_client_ip: Kafka的VPCEP的client ip
45
+ :type vpcep_client_ip: str
46
+ :param vpcep_client_port: Kafka的VPCEP的client port
47
+ :type vpcep_client_port: int
48
+ :param kafka_broker_ip: Kafka的Broker ip
49
+ :type kafka_broker_ip: str
50
+ """
51
+
52
+
53
+
54
+ self._vpcep_service_id = None
55
+ self._vpcep_service_name = None
56
+ self._vpcep_client_ip = None
57
+ self._vpcep_client_port = None
58
+ self._kafka_broker_ip = None
59
+ self.discriminator = None
60
+
61
+ self.vpcep_service_id = vpcep_service_id
62
+ self.vpcep_service_name = vpcep_service_name
63
+ if vpcep_client_ip is not None:
64
+ self.vpcep_client_ip = vpcep_client_ip
65
+ self.vpcep_client_port = vpcep_client_port
66
+ self.kafka_broker_ip = kafka_broker_ip
67
+
68
+ @property
69
+ def vpcep_service_id(self):
70
+ r"""Gets the vpcep_service_id of this VpcepInfoRsp.
71
+
72
+ Kafka的VPCEP的service id
73
+
74
+ :return: The vpcep_service_id of this VpcepInfoRsp.
75
+ :rtype: str
76
+ """
77
+ return self._vpcep_service_id
78
+
79
+ @vpcep_service_id.setter
80
+ def vpcep_service_id(self, vpcep_service_id):
81
+ r"""Sets the vpcep_service_id of this VpcepInfoRsp.
82
+
83
+ Kafka的VPCEP的service id
84
+
85
+ :param vpcep_service_id: The vpcep_service_id of this VpcepInfoRsp.
86
+ :type vpcep_service_id: str
87
+ """
88
+ self._vpcep_service_id = vpcep_service_id
89
+
90
+ @property
91
+ def vpcep_service_name(self):
92
+ r"""Gets the vpcep_service_name of this VpcepInfoRsp.
93
+
94
+ Kafka的VPCEP的service name
95
+
96
+ :return: The vpcep_service_name of this VpcepInfoRsp.
97
+ :rtype: str
98
+ """
99
+ return self._vpcep_service_name
100
+
101
+ @vpcep_service_name.setter
102
+ def vpcep_service_name(self, vpcep_service_name):
103
+ r"""Sets the vpcep_service_name of this VpcepInfoRsp.
104
+
105
+ Kafka的VPCEP的service name
106
+
107
+ :param vpcep_service_name: The vpcep_service_name of this VpcepInfoRsp.
108
+ :type vpcep_service_name: str
109
+ """
110
+ self._vpcep_service_name = vpcep_service_name
111
+
112
+ @property
113
+ def vpcep_client_ip(self):
114
+ r"""Gets the vpcep_client_ip of this VpcepInfoRsp.
115
+
116
+ Kafka的VPCEP的client ip
117
+
118
+ :return: The vpcep_client_ip of this VpcepInfoRsp.
119
+ :rtype: str
120
+ """
121
+ return self._vpcep_client_ip
122
+
123
+ @vpcep_client_ip.setter
124
+ def vpcep_client_ip(self, vpcep_client_ip):
125
+ r"""Sets the vpcep_client_ip of this VpcepInfoRsp.
126
+
127
+ Kafka的VPCEP的client ip
128
+
129
+ :param vpcep_client_ip: The vpcep_client_ip of this VpcepInfoRsp.
130
+ :type vpcep_client_ip: str
131
+ """
132
+ self._vpcep_client_ip = vpcep_client_ip
133
+
134
+ @property
135
+ def vpcep_client_port(self):
136
+ r"""Gets the vpcep_client_port of this VpcepInfoRsp.
137
+
138
+ Kafka的VPCEP的client port
139
+
140
+ :return: The vpcep_client_port of this VpcepInfoRsp.
141
+ :rtype: int
142
+ """
143
+ return self._vpcep_client_port
144
+
145
+ @vpcep_client_port.setter
146
+ def vpcep_client_port(self, vpcep_client_port):
147
+ r"""Sets the vpcep_client_port of this VpcepInfoRsp.
148
+
149
+ Kafka的VPCEP的client port
150
+
151
+ :param vpcep_client_port: The vpcep_client_port of this VpcepInfoRsp.
152
+ :type vpcep_client_port: int
153
+ """
154
+ self._vpcep_client_port = vpcep_client_port
155
+
156
+ @property
157
+ def kafka_broker_ip(self):
158
+ r"""Gets the kafka_broker_ip of this VpcepInfoRsp.
159
+
160
+ Kafka的Broker ip
161
+
162
+ :return: The kafka_broker_ip of this VpcepInfoRsp.
163
+ :rtype: str
164
+ """
165
+ return self._kafka_broker_ip
166
+
167
+ @kafka_broker_ip.setter
168
+ def kafka_broker_ip(self, kafka_broker_ip):
169
+ r"""Sets the kafka_broker_ip of this VpcepInfoRsp.
170
+
171
+ Kafka的Broker ip
172
+
173
+ :param kafka_broker_ip: The kafka_broker_ip of this VpcepInfoRsp.
174
+ :type kafka_broker_ip: str
175
+ """
176
+ self._kafka_broker_ip = kafka_broker_ip
177
+
178
+ def to_dict(self):
179
+ """Returns the model properties as a dict"""
180
+ result = {}
181
+
182
+ for attr, _ in six.iteritems(self.openapi_types):
183
+ value = getattr(self, attr)
184
+ if isinstance(value, list):
185
+ result[attr] = list(map(
186
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
187
+ value
188
+ ))
189
+ elif hasattr(value, "to_dict"):
190
+ result[attr] = value.to_dict()
191
+ elif isinstance(value, dict):
192
+ result[attr] = dict(map(
193
+ lambda item: (item[0], item[1].to_dict())
194
+ if hasattr(item[1], "to_dict") else item,
195
+ value.items()
196
+ ))
197
+ else:
198
+ if attr in self.sensitive_list:
199
+ result[attr] = "****"
200
+ else:
201
+ result[attr] = value
202
+
203
+ return result
204
+
205
+ def to_str(self):
206
+ """Returns the string representation of the model"""
207
+ import simplejson as json
208
+ if six.PY2:
209
+ import sys
210
+ reload(sys)
211
+ sys.setdefaultencoding("utf-8")
212
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
213
+
214
+ def __repr__(self):
215
+ """For `print`"""
216
+ return self.to_str()
217
+
218
+ def __eq__(self, other):
219
+ """Returns true if both objects are equal"""
220
+ if not isinstance(other, VpcepInfoRsp):
221
+ return False
222
+
223
+ return self.__dict__ == other.__dict__
224
+
225
+ def __ne__(self, other):
226
+ """Returns true if both objects are not equal"""
227
+ return not self == other
File without changes
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.region.region import Region
4
+ from huaweicloudsdkcore.region.provider import RegionProviderChain
5
+
6
+ class IoTAnalyticsRegion:
7
+ _PROVIDER = RegionProviderChain.get_default_region_provider_chain("IOTANALYTICS")
8
+
9
+ CN_NORTH_4 = Region("cn-north-4",
10
+ "https://iota.cn-north-4.myhuaweicloud.com")
11
+
12
+ static_fields = {
13
+ "cn-north-4": CN_NORTH_4,
14
+ }
15
+
16
+ @classmethod
17
+ def value_of(cls, region_id, static_fields=None):
18
+ if not region_id:
19
+ raise KeyError("Unexpected empty parameter: region_id")
20
+
21
+ fields = static_fields or cls.static_fields
22
+
23
+ region = cls._PROVIDER.get_region(region_id)
24
+ if region:
25
+ return region
26
+
27
+ if region_id in fields:
28
+ return fields.get(region_id)
29
+
30
+ raise KeyError("region_id '%s' is not in the following supported regions of service 'IoTAnalytics': [%s]" % (
31
+ region_id, ", ".join(sorted(fields.keys()))))
@@ -0,0 +1,13 @@
1
+ Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.