tccli 3.0.1083.1__py2.py3-none-any.whl → 3.0.1085.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/aiart/v20221229/QueryTextToImageProJob.md +30 -0
  3. tccli/examples/aiart/v20221229/SubmitTextToImageProJob.md +22 -0
  4. tccli/examples/billing/v20180709/DescribeCostDetail.md +36 -33
  5. tccli/examples/billing/v20180709/DescribeCostSummaryByProject.md +25 -80
  6. tccli/examples/billing/v20180709/DescribeCostSummaryByRegion.md +23 -14
  7. tccli/examples/billing/v20180709/DescribeCostSummaryByResource.md +53 -27
  8. tccli/examples/ccc/v20200210/CreateCompanyApply.md +36 -0
  9. tccli/examples/ccc/v20200210/DescribeCompanyList.md +33 -0
  10. tccli/examples/ccc/v20200210/ModifyCompanyApply.md +36 -0
  11. tccli/examples/cdb/v20170320/CreateCloneInstance.md +5 -5
  12. tccli/examples/ckafka/v20190819/CreateInstancePost.md +9 -6
  13. tccli/examples/ckafka/v20190819/CreatePrometheus.md +29 -0
  14. tccli/examples/ckafka/v20190819/DescribeGroupInfo.md +2 -2
  15. tccli/examples/ckafka/v20190819/DescribePrometheus.md +25 -0
  16. tccli/examples/ckafka/v20190819/ModifyAclRule.md +1 -1
  17. tccli/examples/cynosdb/v20190107/RollbackToNewCluster.md +62 -0
  18. tccli/examples/dlc/v20210125/QueryTaskCostDetail.md +20 -0
  19. tccli/examples/ess/v20201111/CreateFlowApprovers.md +34 -0
  20. tccli/examples/ess/v20201111/CreateFlowGroupByFiles.md +168 -0
  21. tccli/examples/ess/v20201111/CreateFlowGroupByTemplates.md +98 -0
  22. tccli/examples/ess/v20201111/CreateSchemeUrl.md +31 -3
  23. tccli/examples/essbasic/v20210526/ChannelCreateFlowApprovers.md +41 -0
  24. tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByFiles.md +171 -0
  25. tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByTemplates.md +92 -0
  26. tccli/examples/essbasic/v20210526/ChannelCreateReleaseFlow.md +1 -1
  27. tccli/examples/essbasic/v20210526/CreateSignUrls.md +52 -0
  28. tccli/examples/faceid/v20180301/GetFaceIdResult.md +4 -4
  29. tccli/examples/faceid/v20180301/GetFaceIdRiskInfo.md +26 -0
  30. tccli/examples/faceid/v20180301/GetFaceidRiskInfoToken.md +22 -0
  31. tccli/examples/iotexplorer/v20190423/BindCloudStorageUser.md +22 -0
  32. tccli/examples/iotexplorer/v20190423/CreateIotVideoCloudStorage.md +22 -0
  33. tccli/examples/iotexplorer/v20190423/DeleteCloudStorageEvent.md +26 -0
  34. tccli/examples/iotexplorer/v20190423/DescribeCloudStorage.md +27 -0
  35. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageDate.md +24 -0
  36. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageEvents.md +87 -0
  37. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageMultiThumbnail.md +28 -0
  38. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageOrder.md +25 -0
  39. tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeDetails.md +21 -0
  40. tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeStats.md +44 -0
  41. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageStreamData.md +24 -0
  42. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnail.md +24 -0
  43. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnailList.md +28 -0
  44. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageTime.md +43 -0
  45. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageUsers.md +29 -0
  46. tccli/examples/iotexplorer/v20190423/DescribeDevicePackages.md +37 -0
  47. tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTask.md +21 -0
  48. tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTasks.md +39 -0
  49. tccli/examples/iotexplorer/v20190423/GenerateSignedVideoURL.md +22 -0
  50. tccli/examples/iotexplorer/v20190423/InheritCloudStorageUser.md +23 -0
  51. tccli/examples/iotexplorer/v20190423/ResetCloudStorage.md +21 -0
  52. tccli/examples/iotexplorer/v20190423/ResetCloudStorageEvent.md +22 -0
  53. tccli/examples/iotexplorer/v20190423/TransferCloudStorage.md +22 -0
  54. tccli/examples/live/v20180801/CreateLiveTimeShiftTemplate.md +8 -8
  55. tccli/examples/monitor/v20180724/CreateExporterIntegration.md +626 -2
  56. tccli/examples/ocr/v20181119/ReconstructDocument.md +2263 -0
  57. tccli/examples/pts/v20210728/CreateEnvironment.md +18 -0
  58. tccli/examples/pts/v20210728/DeleteEnvironments.md +18 -0
  59. tccli/examples/pts/v20210728/DescribeEnvironments.md +18 -0
  60. tccli/examples/pts/v20210728/UpdateEnvironment.md +18 -0
  61. tccli/examples/ssl/v20191205/UploadCertificate.md +48 -3
  62. tccli/examples/tag/v20180813/DescribeProjects.md +1 -1
  63. tccli/examples/tione/v20211111/CreateModelService.md +3 -1
  64. tccli/examples/tione/v20211111/ModifyModelService.md +62 -228
  65. tccli/examples/wedata/v20210820/BatchCreateIntegrationTaskAlarms.md +11 -11
  66. tccli/examples/wedata/v20210820/BatchForceSuccessIntegrationTaskInstances.md +2 -2
  67. tccli/examples/wedata/v20210820/BatchKillIntegrationTaskInstances.md +2 -2
  68. tccli/examples/wedata/v20210820/BatchMakeUpIntegrationTasks.md +2 -2
  69. tccli/examples/wedata/v20210820/BatchRerunIntegrationTaskInstances.md +5 -2
  70. tccli/examples/wedata/v20210820/CheckDuplicateRuleName.md +5 -5
  71. tccli/examples/wedata/v20210820/CheckDuplicateTemplateName.md +4 -4
  72. tccli/examples/wedata/v20210820/CheckIntegrationNodeNameExists.md +4 -4
  73. tccli/examples/wedata/v20210820/CheckIntegrationTaskNameExists.md +4 -4
  74. tccli/examples/wedata/v20210820/CheckTaskNameExist.md +3 -3
  75. tccli/examples/wedata/v20210820/CommitExportTask.md +4 -4
  76. tccli/examples/wedata/v20210820/CreateInLongAgent.md +6 -6
  77. tccli/examples/wedata/v20210820/CreateOrUpdateResource.md +2 -1
  78. tccli/examples/wedata/v20210820/CreateRuleTemplate.md +1 -1
  79. tccli/examples/wedata/v20210820/CreateTaskAlarmRegular.md +11 -11
  80. tccli/examples/wedata/v20210820/DeleteInLongAgent.md +3 -3
  81. tccli/examples/wedata/v20210820/DeleteIntegrationNode.md +2 -2
  82. tccli/examples/wedata/v20210820/DeleteOfflineTask.md +4 -4
  83. tccli/examples/wedata/v20210820/DeleteRule.md +1 -1
  84. tccli/examples/wedata/v20210820/DeleteRuleTemplate.md +1 -1
  85. tccli/examples/wedata/v20210820/DescribeClusterNamespaceList.md +6 -6
  86. tccli/examples/wedata/v20210820/DescribeDataBases.md +12 -8
  87. tccli/examples/wedata/v20210820/DescribeDataCheckStat.md +5 -5
  88. tccli/examples/wedata/v20210820/DescribeDataObjects.md +6 -3
  89. tccli/examples/wedata/v20210820/DescribeExecStrategy.md +20 -16
  90. tccli/examples/wedata/v20210820/DescribeInLongAgentTaskList.md +6 -6
  91. tccli/examples/wedata/v20210820/DescribeInLongAgentVpcList.md +3 -3
  92. tccli/examples/wedata/v20210820/DescribeInstances.md +6 -6
  93. tccli/examples/wedata/v20210820/DescribeIntegrationNode.md +61 -43
  94. tccli/examples/wedata/v20210820/DescribeIntegrationStatistics.md +13 -13
  95. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsAgentStatus.md +6 -6
  96. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsInstanceTrend.md +8 -10
  97. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsRecordsTrend.md +1 -1
  98. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatus.md +5 -5
  99. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatusTrend.md +8 -10
  100. tccli/examples/wedata/v20210820/DescribeMonitorsByPage.md +7 -7
  101. tccli/examples/wedata/v20210820/DescribeOfflineTaskToken.md +3 -3
  102. tccli/examples/wedata/v20210820/DescribeProdTasks.md +6 -5
  103. tccli/examples/wedata/v20210820/DescribeRealTimeTaskInstanceNodeInfo.md +9 -9
  104. tccli/examples/wedata/v20210820/DescribeRealTimeTaskSpeed.md +32 -26
  105. tccli/examples/wedata/v20210820/DescribeRule.md +118 -23
  106. tccli/examples/wedata/v20210820/DescribeRuleDataSources.md +11 -8
  107. tccli/examples/wedata/v20210820/DescribeRuleDimStat.md +3 -3
  108. tccli/examples/wedata/v20210820/DescribeRuleExecDetail.md +48 -41
  109. tccli/examples/wedata/v20210820/DescribeRuleExecExportResult.md +15 -10
  110. tccli/examples/wedata/v20210820/DescribeRuleExecLog.md +2 -2
  111. tccli/examples/wedata/v20210820/DescribeRuleExecResults.md +72 -4
  112. tccli/examples/wedata/v20210820/DescribeRuleExecResultsByPage.md +38 -33
  113. tccli/examples/wedata/v20210820/DescribeRuleExecStat.md +14 -14
  114. tccli/examples/wedata/v20210820/DescribeRuleGroup.md +50 -23
  115. tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPage.md +87 -14
  116. tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPageWithoutAuth.md +81 -12
  117. tccli/examples/wedata/v20210820/DescribeRuleGroupSubscription.md +12 -6
  118. tccli/examples/wedata/v20210820/DescribeRuleGroupTable.md +35 -27
  119. tccli/examples/wedata/v20210820/DescribeRuleGroupsByPage.md +51 -21
  120. tccli/examples/wedata/v20210820/DescribeRuleHistoryByPage.md +9 -9
  121. tccli/examples/wedata/v20210820/DescribeRuleTablesByPage.md +52 -35
  122. tccli/examples/wedata/v20210820/DescribeRuleTemplate.md +33 -16
  123. tccli/examples/wedata/v20210820/DescribeRuleTemplates.md +8 -8
  124. tccli/examples/wedata/v20210820/DescribeRuleTemplatesByPage.md +13 -13
  125. tccli/examples/wedata/v20210820/DescribeRulesByPage.md +123 -28
  126. tccli/examples/wedata/v20210820/DescribeStandardRuleDetailInfoList.md +3 -3
  127. tccli/examples/wedata/v20210820/DescribeTableInfoList.md +9 -2
  128. tccli/examples/wedata/v20210820/DescribeTaskInstance.md +35 -35
  129. tccli/examples/wedata/v20210820/DescribeTaskInstanceReportDetail.md +28 -26
  130. tccli/examples/wedata/v20210820/DescribeTaskLockStatus.md +7 -7
  131. tccli/examples/wedata/v20210820/DescribeTaskReport.md +6 -6
  132. tccli/examples/wedata/v20210820/DescribeTaskReportDetailList.md +17 -17
  133. tccli/examples/wedata/v20210820/DescribeTopTableStat.md +9 -9
  134. tccli/examples/wedata/v20210820/DescribeTrendStat.md +2 -2
  135. tccli/examples/wedata/v20210820/DryRunDIOfflineTask.md +10 -9
  136. tccli/examples/wedata/v20210820/GetIntegrationNodeColumnSchema.md +13 -11
  137. tccli/examples/wedata/v20210820/GetOfflineDIInstanceList.md +26 -26
  138. tccli/examples/wedata/v20210820/LockIntegrationTask.md +4 -4
  139. tccli/examples/wedata/v20210820/ModifyIntegrationNode.md +42 -41
  140. tccli/examples/wedata/v20210820/ModifyIntegrationTask.md +110 -58
  141. tccli/examples/wedata/v20210820/ModifyMonitorStatus.md +4 -4
  142. tccli/examples/wedata/v20210820/ModifyRule.md +24 -24
  143. tccli/examples/wedata/v20210820/ModifyRuleGroupSubscription.md +11 -13
  144. tccli/examples/wedata/v20210820/ModifyTaskAlarmRegular.md +45 -16
  145. tccli/examples/wedata/v20210820/ModifyTaskInfo.md +79 -29
  146. tccli/examples/wedata/v20210820/ModifyTaskName.md +5 -5
  147. tccli/examples/wedata/v20210820/RestartInLongAgent.md +3 -3
  148. tccli/examples/wedata/v20210820/RobAndLockIntegrationTask.md +7 -7
  149. tccli/examples/wedata/v20210820/StopIntegrationTask.md +4 -4
  150. tccli/examples/wedata/v20210820/TaskLog.md +5 -15
  151. tccli/examples/wedata/v20210820/UnlockIntegrationTask.md +4 -4
  152. tccli/examples/wedata/v20210820/UpdateInLongAgent.md +5 -5
  153. tccli/services/aiart/aiart_client.py +106 -0
  154. tccli/services/aiart/v20221229/api.json +174 -0
  155. tccli/services/aiart/v20221229/examples.json +16 -0
  156. tccli/services/asr/v20190614/api.json +4 -4
  157. tccli/services/bi/v20220105/api.json +27 -0
  158. tccli/services/billing/v20180709/api.json +365 -130
  159. tccli/services/billing/v20180709/examples.json +4 -4
  160. tccli/services/ccc/ccc_client.py +159 -0
  161. tccli/services/ccc/v20200210/api.json +442 -0
  162. tccli/services/ccc/v20200210/examples.json +24 -0
  163. tccli/services/cdb/v20170320/api.json +78 -24
  164. tccli/services/cdb/v20170320/examples.json +2 -2
  165. tccli/services/cdwpg/v20201230/api.json +9 -0
  166. tccli/services/ckafka/ckafka_client.py +106 -0
  167. tccli/services/ckafka/v20190819/api.json +211 -32
  168. tccli/services/ckafka/v20190819/examples.json +19 -3
  169. tccli/services/clb/v20180317/api.json +2 -2
  170. tccli/services/cloudstudio/v20230508/api.json +40 -4
  171. tccli/services/cls/v20201016/api.json +30 -30
  172. tccli/services/csip/v20221121/api.json +76 -76
  173. tccli/services/cwp/v20180228/api.json +124 -8
  174. tccli/services/cynosdb/cynosdb_client.py +53 -0
  175. tccli/services/cynosdb/v20190107/api.json +255 -0
  176. tccli/services/cynosdb/v20190107/examples.json +8 -0
  177. tccli/services/dlc/dlc_client.py +53 -0
  178. tccli/services/dlc/v20210125/api.json +103 -4
  179. tccli/services/dlc/v20210125/examples.json +8 -0
  180. tccli/services/dsgc/v20190723/api.json +20 -0
  181. tccli/services/dts/v20211206/api.json +56 -2
  182. tccli/services/es/v20180416/api.json +127 -24
  183. tccli/services/ess/v20201111/api.json +143 -31
  184. tccli/services/ess/v20201111/examples.json +26 -2
  185. tccli/services/essbasic/v20210526/api.json +134 -13
  186. tccli/services/essbasic/v20210526/examples.json +25 -1
  187. tccli/services/faceid/faceid_client.py +136 -30
  188. tccli/services/faceid/v20180301/api.json +167 -10
  189. tccli/services/faceid/v20180301/examples.json +17 -1
  190. tccli/services/iotexplorer/iotexplorer_client.py +1453 -234
  191. tccli/services/iotexplorer/v20190423/api.json +2179 -117
  192. tccli/services/iotexplorer/v20190423/examples.json +184 -0
  193. tccli/services/lcic/v20220817/api.json +62 -4
  194. tccli/services/live/v20180801/api.json +1 -1
  195. tccli/services/live/v20180801/examples.json +2 -2
  196. tccli/services/monitor/v20180724/examples.json +111 -3
  197. tccli/services/mps/v20190612/api.json +53 -27
  198. tccli/services/ms/v20180408/api.json +14 -14
  199. tccli/services/oceanus/v20190422/api.json +1 -1
  200. tccli/services/ocr/ocr_client.py +53 -0
  201. tccli/services/ocr/v20181119/api.json +276 -0
  202. tccli/services/ocr/v20181119/examples.json +8 -0
  203. tccli/services/pts/pts_client.py +212 -0
  204. tccli/services/pts/v20210728/api.json +96 -0
  205. tccli/services/pts/v20210728/examples.json +32 -0
  206. tccli/services/ssl/v20191205/examples.json +9 -3
  207. tccli/services/tag/v20180813/examples.json +1 -1
  208. tccli/services/tione/v20211111/api.json +77 -3
  209. tccli/services/tione/v20211111/examples.json +2 -2
  210. tccli/services/tms/v20201229/api.json +1 -1
  211. tccli/services/trtc/v20190722/api.json +1 -1
  212. tccli/services/tts/v20190823/api.json +10 -1
  213. tccli/services/vod/v20180717/api.json +6 -6
  214. tccli/services/wedata/v20210820/api.json +650 -200
  215. tccli/services/wedata/v20210820/examples.json +154 -148
  216. {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/METADATA +2 -2
  217. {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/RECORD +220 -181
  218. {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/WHEEL +0 -0
  219. {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/entry_points.txt +0 -0
  220. {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/license_files/LICENSE +0 -0
@@ -121,7 +121,7 @@ def doModifyStudioProduct(args, parsed_globals):
121
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
122
 
123
123
 
124
- def doDescribeDevice(args, parsed_globals):
124
+ def doDescribeDevicePackages(args, parsed_globals):
125
125
  g_param = parse_global_arg(parsed_globals)
126
126
 
127
127
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -150,11 +150,11 @@ def doDescribeDevice(args, parsed_globals):
150
150
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
151
151
  client._sdkVersion += ("_CLI_" + __version__)
152
152
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
- model = models.DescribeDeviceRequest()
153
+ model = models.DescribeDevicePackagesRequest()
154
154
  model.from_json_string(json.dumps(args))
155
155
  start_time = time.time()
156
156
  while True:
157
- rsp = client.DescribeDevice(model)
157
+ rsp = client.DescribeDevicePackages(model)
158
158
  result = rsp.to_json_string()
159
159
  try:
160
160
  json_obj = json.loads(result)
@@ -173,7 +173,7 @@ def doDescribeDevice(args, parsed_globals):
173
173
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
174
 
175
175
 
176
- def doDescribeTopicPolicy(args, parsed_globals):
176
+ def doDescribeDevice(args, parsed_globals):
177
177
  g_param = parse_global_arg(parsed_globals)
178
178
 
179
179
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -202,11 +202,11 @@ def doDescribeTopicPolicy(args, parsed_globals):
202
202
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
203
203
  client._sdkVersion += ("_CLI_" + __version__)
204
204
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
- model = models.DescribeTopicPolicyRequest()
205
+ model = models.DescribeDeviceRequest()
206
206
  model.from_json_string(json.dumps(args))
207
207
  start_time = time.time()
208
208
  while True:
209
- rsp = client.DescribeTopicPolicy(model)
209
+ rsp = client.DescribeDevice(model)
210
210
  result = rsp.to_json_string()
211
211
  try:
212
212
  json_obj = json.loads(result)
@@ -225,7 +225,7 @@ def doDescribeTopicPolicy(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
- def doGetProjectList(args, parsed_globals):
228
+ def doDescribeTopicPolicy(args, parsed_globals):
229
229
  g_param = parse_global_arg(parsed_globals)
230
230
 
231
231
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -254,11 +254,11 @@ def doGetProjectList(args, parsed_globals):
254
254
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
255
255
  client._sdkVersion += ("_CLI_" + __version__)
256
256
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
- model = models.GetProjectListRequest()
257
+ model = models.DescribeTopicPolicyRequest()
258
258
  model.from_json_string(json.dumps(args))
259
259
  start_time = time.time()
260
260
  while True:
261
- rsp = client.GetProjectList(model)
261
+ rsp = client.DescribeTopicPolicy(model)
262
262
  result = rsp.to_json_string()
263
263
  try:
264
264
  json_obj = json.loads(result)
@@ -277,7 +277,7 @@ def doGetProjectList(args, parsed_globals):
277
277
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
278
 
279
279
 
280
- def doCallDeviceActionSync(args, parsed_globals):
280
+ def doGetProjectList(args, parsed_globals):
281
281
  g_param = parse_global_arg(parsed_globals)
282
282
 
283
283
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -306,11 +306,11 @@ def doCallDeviceActionSync(args, parsed_globals):
306
306
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
307
307
  client._sdkVersion += ("_CLI_" + __version__)
308
308
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
309
- model = models.CallDeviceActionSyncRequest()
309
+ model = models.GetProjectListRequest()
310
310
  model.from_json_string(json.dumps(args))
311
311
  start_time = time.time()
312
312
  while True:
313
- rsp = client.CallDeviceActionSync(model)
313
+ rsp = client.GetProjectList(model)
314
314
  result = rsp.to_json_string()
315
315
  try:
316
316
  json_obj = json.loads(result)
@@ -329,7 +329,7 @@ def doCallDeviceActionSync(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
- def doDescribeGatewayBindDevices(args, parsed_globals):
332
+ def doCallDeviceActionSync(args, parsed_globals):
333
333
  g_param = parse_global_arg(parsed_globals)
334
334
 
335
335
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -358,11 +358,11 @@ def doDescribeGatewayBindDevices(args, parsed_globals):
358
358
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
359
359
  client._sdkVersion += ("_CLI_" + __version__)
360
360
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
- model = models.DescribeGatewayBindDevicesRequest()
361
+ model = models.CallDeviceActionSyncRequest()
362
362
  model.from_json_string(json.dumps(args))
363
363
  start_time = time.time()
364
364
  while True:
365
- rsp = client.DescribeGatewayBindDevices(model)
365
+ rsp = client.CallDeviceActionSync(model)
366
366
  result = rsp.to_json_string()
367
367
  try:
368
368
  json_obj = json.loads(result)
@@ -381,7 +381,7 @@ def doDescribeGatewayBindDevices(args, parsed_globals):
381
381
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
382
 
383
383
 
384
- def doDeleteStudioProduct(args, parsed_globals):
384
+ def doDescribeGatewayBindDevices(args, parsed_globals):
385
385
  g_param = parse_global_arg(parsed_globals)
386
386
 
387
387
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -410,11 +410,11 @@ def doDeleteStudioProduct(args, parsed_globals):
410
410
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
411
411
  client._sdkVersion += ("_CLI_" + __version__)
412
412
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
413
- model = models.DeleteStudioProductRequest()
413
+ model = models.DescribeGatewayBindDevicesRequest()
414
414
  model.from_json_string(json.dumps(args))
415
415
  start_time = time.time()
416
416
  while True:
417
- rsp = client.DeleteStudioProduct(model)
417
+ rsp = client.DescribeGatewayBindDevices(model)
418
418
  result = rsp.to_json_string()
419
419
  try:
420
420
  json_obj = json.loads(result)
@@ -433,7 +433,7 @@ def doDeleteStudioProduct(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
- def doDescribeDeviceLocationSolve(args, parsed_globals):
436
+ def doDeleteStudioProduct(args, parsed_globals):
437
437
  g_param = parse_global_arg(parsed_globals)
438
438
 
439
439
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -462,11 +462,11 @@ def doDescribeDeviceLocationSolve(args, parsed_globals):
462
462
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
463
463
  client._sdkVersion += ("_CLI_" + __version__)
464
464
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
- model = models.DescribeDeviceLocationSolveRequest()
465
+ model = models.DeleteStudioProductRequest()
466
466
  model.from_json_string(json.dumps(args))
467
467
  start_time = time.time()
468
468
  while True:
469
- rsp = client.DescribeDeviceLocationSolve(model)
469
+ rsp = client.DeleteStudioProduct(model)
470
470
  result = rsp.to_json_string()
471
471
  try:
472
472
  json_obj = json.loads(result)
@@ -485,7 +485,7 @@ def doDescribeDeviceLocationSolve(args, parsed_globals):
485
485
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
486
 
487
487
 
488
- def doDescribeDeviceBindGateway(args, parsed_globals):
488
+ def doDescribeDeviceLocationSolve(args, parsed_globals):
489
489
  g_param = parse_global_arg(parsed_globals)
490
490
 
491
491
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -514,11 +514,11 @@ def doDescribeDeviceBindGateway(args, parsed_globals):
514
514
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
515
515
  client._sdkVersion += ("_CLI_" + __version__)
516
516
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
517
- model = models.DescribeDeviceBindGatewayRequest()
517
+ model = models.DescribeDeviceLocationSolveRequest()
518
518
  model.from_json_string(json.dumps(args))
519
519
  start_time = time.time()
520
520
  while True:
521
- rsp = client.DescribeDeviceBindGateway(model)
521
+ rsp = client.DescribeDeviceLocationSolve(model)
522
522
  result = rsp.to_json_string()
523
523
  try:
524
524
  json_obj = json.loads(result)
@@ -537,7 +537,7 @@ def doDescribeDeviceBindGateway(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
- def doGetDeviceLocationHistory(args, parsed_globals):
540
+ def doGenerateSignedVideoURL(args, parsed_globals):
541
541
  g_param = parse_global_arg(parsed_globals)
542
542
 
543
543
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -566,11 +566,11 @@ def doGetDeviceLocationHistory(args, parsed_globals):
566
566
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
567
567
  client._sdkVersion += ("_CLI_" + __version__)
568
568
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
- model = models.GetDeviceLocationHistoryRequest()
569
+ model = models.GenerateSignedVideoURLRequest()
570
570
  model.from_json_string(json.dumps(args))
571
571
  start_time = time.time()
572
572
  while True:
573
- rsp = client.GetDeviceLocationHistory(model)
573
+ rsp = client.GenerateSignedVideoURL(model)
574
574
  result = rsp.to_json_string()
575
575
  try:
576
576
  json_obj = json.loads(result)
@@ -589,7 +589,7 @@ def doGetDeviceLocationHistory(args, parsed_globals):
589
589
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
590
 
591
591
 
592
- def doPublishMessage(args, parsed_globals):
592
+ def doDescribeDeviceBindGateway(args, parsed_globals):
593
593
  g_param = parse_global_arg(parsed_globals)
594
594
 
595
595
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -618,11 +618,11 @@ def doPublishMessage(args, parsed_globals):
618
618
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
619
619
  client._sdkVersion += ("_CLI_" + __version__)
620
620
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
621
- model = models.PublishMessageRequest()
621
+ model = models.DescribeDeviceBindGatewayRequest()
622
622
  model.from_json_string(json.dumps(args))
623
623
  start_time = time.time()
624
624
  while True:
625
- rsp = client.PublishMessage(model)
625
+ rsp = client.DescribeDeviceBindGateway(model)
626
626
  result = rsp.to_json_string()
627
627
  try:
628
628
  json_obj = json.loads(result)
@@ -641,7 +641,7 @@ def doPublishMessage(args, parsed_globals):
641
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
642
 
643
643
 
644
- def doDeleteDevice(args, parsed_globals):
644
+ def doGetDeviceLocationHistory(args, parsed_globals):
645
645
  g_param = parse_global_arg(parsed_globals)
646
646
 
647
647
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -670,11 +670,11 @@ def doDeleteDevice(args, parsed_globals):
670
670
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
671
671
  client._sdkVersion += ("_CLI_" + __version__)
672
672
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
- model = models.DeleteDeviceRequest()
673
+ model = models.GetDeviceLocationHistoryRequest()
674
674
  model.from_json_string(json.dumps(args))
675
675
  start_time = time.time()
676
676
  while True:
677
- rsp = client.DeleteDevice(model)
677
+ rsp = client.GetDeviceLocationHistory(model)
678
678
  result = rsp.to_json_string()
679
679
  try:
680
680
  json_obj = json.loads(result)
@@ -693,7 +693,7 @@ def doDeleteDevice(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
- def doGetLoRaGatewayList(args, parsed_globals):
696
+ def doListEventHistory(args, parsed_globals):
697
697
  g_param = parse_global_arg(parsed_globals)
698
698
 
699
699
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -722,11 +722,11 @@ def doGetLoRaGatewayList(args, parsed_globals):
722
722
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
723
723
  client._sdkVersion += ("_CLI_" + __version__)
724
724
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
- model = models.GetLoRaGatewayListRequest()
725
+ model = models.ListEventHistoryRequest()
726
726
  model.from_json_string(json.dumps(args))
727
727
  start_time = time.time()
728
728
  while True:
729
- rsp = client.GetLoRaGatewayList(model)
729
+ rsp = client.ListEventHistory(model)
730
730
  result = rsp.to_json_string()
731
731
  try:
732
732
  json_obj = json.loads(result)
@@ -745,7 +745,7 @@ def doGetLoRaGatewayList(args, parsed_globals):
745
745
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
746
 
747
747
 
748
- def doReleaseStudioProduct(args, parsed_globals):
748
+ def doDeleteDevice(args, parsed_globals):
749
749
  g_param = parse_global_arg(parsed_globals)
750
750
 
751
751
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -774,11 +774,11 @@ def doReleaseStudioProduct(args, parsed_globals):
774
774
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
775
775
  client._sdkVersion += ("_CLI_" + __version__)
776
776
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
777
- model = models.ReleaseStudioProductRequest()
777
+ model = models.DeleteDeviceRequest()
778
778
  model.from_json_string(json.dumps(args))
779
779
  start_time = time.time()
780
780
  while True:
781
- rsp = client.ReleaseStudioProduct(model)
781
+ rsp = client.DeleteDevice(model)
782
782
  result = rsp.to_json_string()
783
783
  try:
784
784
  json_obj = json.loads(result)
@@ -797,7 +797,7 @@ def doReleaseStudioProduct(args, parsed_globals):
797
797
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
798
798
 
799
799
 
800
- def doModifyFenceBind(args, parsed_globals):
800
+ def doGetLoRaGatewayList(args, parsed_globals):
801
801
  g_param = parse_global_arg(parsed_globals)
802
802
 
803
803
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -826,11 +826,11 @@ def doModifyFenceBind(args, parsed_globals):
826
826
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
827
827
  client._sdkVersion += ("_CLI_" + __version__)
828
828
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
829
- model = models.ModifyFenceBindRequest()
829
+ model = models.GetLoRaGatewayListRequest()
830
830
  model.from_json_string(json.dumps(args))
831
831
  start_time = time.time()
832
832
  while True:
833
- rsp = client.ModifyFenceBind(model)
833
+ rsp = client.GetLoRaGatewayList(model)
834
834
  result = rsp.to_json_string()
835
835
  try:
836
836
  json_obj = json.loads(result)
@@ -849,7 +849,7 @@ def doModifyFenceBind(args, parsed_globals):
849
849
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
850
 
851
851
 
852
- def doDeletePositionSpace(args, parsed_globals):
852
+ def doReleaseStudioProduct(args, parsed_globals):
853
853
  g_param = parse_global_arg(parsed_globals)
854
854
 
855
855
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -878,11 +878,11 @@ def doDeletePositionSpace(args, parsed_globals):
878
878
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
879
879
  client._sdkVersion += ("_CLI_" + __version__)
880
880
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
881
- model = models.DeletePositionSpaceRequest()
881
+ model = models.ReleaseStudioProductRequest()
882
882
  model.from_json_string(json.dumps(args))
883
883
  start_time = time.time()
884
884
  while True:
885
- rsp = client.DeletePositionSpace(model)
885
+ rsp = client.ReleaseStudioProduct(model)
886
886
  result = rsp.to_json_string()
887
887
  try:
888
888
  json_obj = json.loads(result)
@@ -901,7 +901,7 @@ def doDeletePositionSpace(args, parsed_globals):
901
901
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
902
 
903
903
 
904
- def doDescribeBindedProducts(args, parsed_globals):
904
+ def doDescribeCloudStorageThumbnailList(args, parsed_globals):
905
905
  g_param = parse_global_arg(parsed_globals)
906
906
 
907
907
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -930,11 +930,11 @@ def doDescribeBindedProducts(args, parsed_globals):
930
930
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
931
931
  client._sdkVersion += ("_CLI_" + __version__)
932
932
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
933
- model = models.DescribeBindedProductsRequest()
933
+ model = models.DescribeCloudStorageThumbnailListRequest()
934
934
  model.from_json_string(json.dumps(args))
935
935
  start_time = time.time()
936
936
  while True:
937
- rsp = client.DescribeBindedProducts(model)
937
+ rsp = client.DescribeCloudStorageThumbnailList(model)
938
938
  result = rsp.to_json_string()
939
939
  try:
940
940
  json_obj = json.loads(result)
@@ -953,7 +953,7 @@ def doDescribeBindedProducts(args, parsed_globals):
953
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
954
 
955
955
 
956
- def doModifyLoRaGateway(args, parsed_globals):
956
+ def doModifyFenceBind(args, parsed_globals):
957
957
  g_param = parse_global_arg(parsed_globals)
958
958
 
959
959
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -982,11 +982,11 @@ def doModifyLoRaGateway(args, parsed_globals):
982
982
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
983
983
  client._sdkVersion += ("_CLI_" + __version__)
984
984
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
985
- model = models.ModifyLoRaGatewayRequest()
985
+ model = models.ModifyFenceBindRequest()
986
986
  model.from_json_string(json.dumps(args))
987
987
  start_time = time.time()
988
988
  while True:
989
- rsp = client.ModifyLoRaGateway(model)
989
+ rsp = client.ModifyFenceBind(model)
990
990
  result = rsp.to_json_string()
991
991
  try:
992
992
  json_obj = json.loads(result)
@@ -1005,7 +1005,7 @@ def doModifyLoRaGateway(args, parsed_globals):
1005
1005
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
1006
 
1007
1007
 
1008
- def doControlDeviceData(args, parsed_globals):
1008
+ def doDescribePackageConsumeTasks(args, parsed_globals):
1009
1009
  g_param = parse_global_arg(parsed_globals)
1010
1010
 
1011
1011
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1034,11 +1034,11 @@ def doControlDeviceData(args, parsed_globals):
1034
1034
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1035
1035
  client._sdkVersion += ("_CLI_" + __version__)
1036
1036
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1037
- model = models.ControlDeviceDataRequest()
1037
+ model = models.DescribePackageConsumeTasksRequest()
1038
1038
  model.from_json_string(json.dumps(args))
1039
1039
  start_time = time.time()
1040
1040
  while True:
1041
- rsp = client.ControlDeviceData(model)
1041
+ rsp = client.DescribePackageConsumeTasks(model)
1042
1042
  result = rsp.to_json_string()
1043
1043
  try:
1044
1044
  json_obj = json.loads(result)
@@ -1057,7 +1057,7 @@ def doControlDeviceData(args, parsed_globals):
1057
1057
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
1058
 
1059
1059
 
1060
- def doDeleteTopicRule(args, parsed_globals):
1060
+ def doDescribeCloudStoragePackageConsumeStats(args, parsed_globals):
1061
1061
  g_param = parse_global_arg(parsed_globals)
1062
1062
 
1063
1063
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1086,11 +1086,11 @@ def doDeleteTopicRule(args, parsed_globals):
1086
1086
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1087
1087
  client._sdkVersion += ("_CLI_" + __version__)
1088
1088
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1089
- model = models.DeleteTopicRuleRequest()
1089
+ model = models.DescribeCloudStoragePackageConsumeStatsRequest()
1090
1090
  model.from_json_string(json.dumps(args))
1091
1091
  start_time = time.time()
1092
1092
  while True:
1093
- rsp = client.DeleteTopicRule(model)
1093
+ rsp = client.DescribeCloudStoragePackageConsumeStats(model)
1094
1094
  result = rsp.to_json_string()
1095
1095
  try:
1096
1096
  json_obj = json.loads(result)
@@ -1109,7 +1109,7 @@ def doDeleteTopicRule(args, parsed_globals):
1109
1109
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1110
1110
 
1111
1111
 
1112
- def doPublishRRPCMessage(args, parsed_globals):
1112
+ def doDeletePositionSpace(args, parsed_globals):
1113
1113
  g_param = parse_global_arg(parsed_globals)
1114
1114
 
1115
1115
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1138,11 +1138,11 @@ def doPublishRRPCMessage(args, parsed_globals):
1138
1138
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1139
1139
  client._sdkVersion += ("_CLI_" + __version__)
1140
1140
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1141
- model = models.PublishRRPCMessageRequest()
1141
+ model = models.DeletePositionSpaceRequest()
1142
1142
  model.from_json_string(json.dumps(args))
1143
1143
  start_time = time.time()
1144
1144
  while True:
1145
- rsp = client.PublishRRPCMessage(model)
1145
+ rsp = client.DeletePositionSpace(model)
1146
1146
  result = rsp.to_json_string()
1147
1147
  try:
1148
1148
  json_obj = json.loads(result)
@@ -1161,7 +1161,7 @@ def doPublishRRPCMessage(args, parsed_globals):
1161
1161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1162
1162
 
1163
1163
 
1164
- def doSearchPositionSpace(args, parsed_globals):
1164
+ def doDescribeBindedProducts(args, parsed_globals):
1165
1165
  g_param = parse_global_arg(parsed_globals)
1166
1166
 
1167
1167
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1190,11 +1190,11 @@ def doSearchPositionSpace(args, parsed_globals):
1190
1190
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1191
1191
  client._sdkVersion += ("_CLI_" + __version__)
1192
1192
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1193
- model = models.SearchPositionSpaceRequest()
1193
+ model = models.DescribeBindedProductsRequest()
1194
1194
  model.from_json_string(json.dumps(args))
1195
1195
  start_time = time.time()
1196
1196
  while True:
1197
- rsp = client.SearchPositionSpace(model)
1197
+ rsp = client.DescribeBindedProducts(model)
1198
1198
  result = rsp.to_json_string()
1199
1199
  try:
1200
1200
  json_obj = json.loads(result)
@@ -1213,7 +1213,7 @@ def doSearchPositionSpace(args, parsed_globals):
1213
1213
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
1214
 
1215
1215
 
1216
- def doDeleteLoRaGateway(args, parsed_globals):
1216
+ def doModifyLoRaGateway(args, parsed_globals):
1217
1217
  g_param = parse_global_arg(parsed_globals)
1218
1218
 
1219
1219
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1242,11 +1242,11 @@ def doDeleteLoRaGateway(args, parsed_globals):
1242
1242
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1243
1243
  client._sdkVersion += ("_CLI_" + __version__)
1244
1244
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1245
- model = models.DeleteLoRaGatewayRequest()
1245
+ model = models.ModifyLoRaGatewayRequest()
1246
1246
  model.from_json_string(json.dumps(args))
1247
1247
  start_time = time.time()
1248
1248
  while True:
1249
- rsp = client.DeleteLoRaGateway(model)
1249
+ rsp = client.ModifyLoRaGateway(model)
1250
1250
  result = rsp.to_json_string()
1251
1251
  try:
1252
1252
  json_obj = json.loads(result)
@@ -1265,7 +1265,7 @@ def doDeleteLoRaGateway(args, parsed_globals):
1265
1265
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
1266
 
1267
1267
 
1268
- def doCreateStudioProduct(args, parsed_globals):
1268
+ def doControlDeviceData(args, parsed_globals):
1269
1269
  g_param = parse_global_arg(parsed_globals)
1270
1270
 
1271
1271
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1294,11 +1294,11 @@ def doCreateStudioProduct(args, parsed_globals):
1294
1294
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1295
1295
  client._sdkVersion += ("_CLI_" + __version__)
1296
1296
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1297
- model = models.CreateStudioProductRequest()
1297
+ model = models.ControlDeviceDataRequest()
1298
1298
  model.from_json_string(json.dumps(args))
1299
1299
  start_time = time.time()
1300
1300
  while True:
1301
- rsp = client.CreateStudioProduct(model)
1301
+ rsp = client.ControlDeviceData(model)
1302
1302
  result = rsp.to_json_string()
1303
1303
  try:
1304
1304
  json_obj = json.loads(result)
@@ -1317,7 +1317,7 @@ def doCreateStudioProduct(args, parsed_globals):
1317
1317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
1318
 
1319
1319
 
1320
- def doEnableTopicRule(args, parsed_globals):
1320
+ def doCreateIotVideoCloudStorage(args, parsed_globals):
1321
1321
  g_param = parse_global_arg(parsed_globals)
1322
1322
 
1323
1323
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1346,11 +1346,11 @@ def doEnableTopicRule(args, parsed_globals):
1346
1346
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1347
1347
  client._sdkVersion += ("_CLI_" + __version__)
1348
1348
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1349
- model = models.EnableTopicRuleRequest()
1349
+ model = models.CreateIotVideoCloudStorageRequest()
1350
1350
  model.from_json_string(json.dumps(args))
1351
1351
  start_time = time.time()
1352
1352
  while True:
1353
- rsp = client.EnableTopicRule(model)
1353
+ rsp = client.CreateIotVideoCloudStorage(model)
1354
1354
  result = rsp.to_json_string()
1355
1355
  try:
1356
1356
  json_obj = json.loads(result)
@@ -1369,7 +1369,7 @@ def doEnableTopicRule(args, parsed_globals):
1369
1369
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
1370
 
1371
1371
 
1372
- def doDescribeGatewaySubDeviceList(args, parsed_globals):
1372
+ def doDeleteTopicRule(args, parsed_globals):
1373
1373
  g_param = parse_global_arg(parsed_globals)
1374
1374
 
1375
1375
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1398,11 +1398,11 @@ def doDescribeGatewaySubDeviceList(args, parsed_globals):
1398
1398
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1399
1399
  client._sdkVersion += ("_CLI_" + __version__)
1400
1400
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
- model = models.DescribeGatewaySubDeviceListRequest()
1401
+ model = models.DeleteTopicRuleRequest()
1402
1402
  model.from_json_string(json.dumps(args))
1403
1403
  start_time = time.time()
1404
1404
  while True:
1405
- rsp = client.DescribeGatewaySubDeviceList(model)
1405
+ rsp = client.DeleteTopicRule(model)
1406
1406
  result = rsp.to_json_string()
1407
1407
  try:
1408
1408
  json_obj = json.loads(result)
@@ -1421,7 +1421,7 @@ def doDescribeGatewaySubDeviceList(args, parsed_globals):
1421
1421
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
1422
 
1423
1423
 
1424
- def doSearchStudioProduct(args, parsed_globals):
1424
+ def doPublishRRPCMessage(args, parsed_globals):
1425
1425
  g_param = parse_global_arg(parsed_globals)
1426
1426
 
1427
1427
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1450,11 +1450,11 @@ def doSearchStudioProduct(args, parsed_globals):
1450
1450
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1451
1451
  client._sdkVersion += ("_CLI_" + __version__)
1452
1452
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1453
- model = models.SearchStudioProductRequest()
1453
+ model = models.PublishRRPCMessageRequest()
1454
1454
  model.from_json_string(json.dumps(args))
1455
1455
  start_time = time.time()
1456
1456
  while True:
1457
- rsp = client.SearchStudioProduct(model)
1457
+ rsp = client.PublishRRPCMessage(model)
1458
1458
  result = rsp.to_json_string()
1459
1459
  try:
1460
1460
  json_obj = json.loads(result)
@@ -1473,7 +1473,7 @@ def doSearchStudioProduct(args, parsed_globals):
1473
1473
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1474
1474
 
1475
1475
 
1476
- def doModifyTopicRule(args, parsed_globals):
1476
+ def doDescribeFenceBindList(args, parsed_globals):
1477
1477
  g_param = parse_global_arg(parsed_globals)
1478
1478
 
1479
1479
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1502,11 +1502,11 @@ def doModifyTopicRule(args, parsed_globals):
1502
1502
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1503
1503
  client._sdkVersion += ("_CLI_" + __version__)
1504
1504
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1505
- model = models.ModifyTopicRuleRequest()
1505
+ model = models.DescribeFenceBindListRequest()
1506
1506
  model.from_json_string(json.dumps(args))
1507
1507
  start_time = time.time()
1508
1508
  while True:
1509
- rsp = client.ModifyTopicRule(model)
1509
+ rsp = client.DescribeFenceBindList(model)
1510
1510
  result = rsp.to_json_string()
1511
1511
  try:
1512
1512
  json_obj = json.loads(result)
@@ -1525,7 +1525,7 @@ def doModifyTopicRule(args, parsed_globals):
1525
1525
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
1526
 
1527
1527
 
1528
- def doListFirmwares(args, parsed_globals):
1528
+ def doDeleteLoRaGateway(args, parsed_globals):
1529
1529
  g_param = parse_global_arg(parsed_globals)
1530
1530
 
1531
1531
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1554,11 +1554,11 @@ def doListFirmwares(args, parsed_globals):
1554
1554
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1555
1555
  client._sdkVersion += ("_CLI_" + __version__)
1556
1556
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1557
- model = models.ListFirmwaresRequest()
1557
+ model = models.DeleteLoRaGatewayRequest()
1558
1558
  model.from_json_string(json.dumps(args))
1559
1559
  start_time = time.time()
1560
1560
  while True:
1561
- rsp = client.ListFirmwares(model)
1561
+ rsp = client.DeleteLoRaGateway(model)
1562
1562
  result = rsp.to_json_string()
1563
1563
  try:
1564
1564
  json_obj = json.loads(result)
@@ -1577,7 +1577,7 @@ def doListFirmwares(args, parsed_globals):
1577
1577
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1578
1578
 
1579
1579
 
1580
- def doCreateDevice(args, parsed_globals):
1580
+ def doCreateStudioProduct(args, parsed_globals):
1581
1581
  g_param = parse_global_arg(parsed_globals)
1582
1582
 
1583
1583
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1606,11 +1606,11 @@ def doCreateDevice(args, parsed_globals):
1606
1606
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1607
1607
  client._sdkVersion += ("_CLI_" + __version__)
1608
1608
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1609
- model = models.CreateDeviceRequest()
1609
+ model = models.CreateStudioProductRequest()
1610
1610
  model.from_json_string(json.dumps(args))
1611
1611
  start_time = time.time()
1612
1612
  while True:
1613
- rsp = client.CreateDevice(model)
1613
+ rsp = client.CreateStudioProduct(model)
1614
1614
  result = rsp.to_json_string()
1615
1615
  try:
1616
1616
  json_obj = json.loads(result)
@@ -1629,7 +1629,7 @@ def doCreateDevice(args, parsed_globals):
1629
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1630
 
1631
1631
 
1632
- def doDeleteFenceBind(args, parsed_globals):
1632
+ def doDescribeCloudStorageDate(args, parsed_globals):
1633
1633
  g_param = parse_global_arg(parsed_globals)
1634
1634
 
1635
1635
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1658,11 +1658,11 @@ def doDeleteFenceBind(args, parsed_globals):
1658
1658
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1659
1659
  client._sdkVersion += ("_CLI_" + __version__)
1660
1660
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
- model = models.DeleteFenceBindRequest()
1661
+ model = models.DescribeCloudStorageDateRequest()
1662
1662
  model.from_json_string(json.dumps(args))
1663
1663
  start_time = time.time()
1664
1664
  while True:
1665
- rsp = client.DeleteFenceBind(model)
1665
+ rsp = client.DescribeCloudStorageDate(model)
1666
1666
  result = rsp.to_json_string()
1667
1667
  try:
1668
1668
  json_obj = json.loads(result)
@@ -1681,7 +1681,7 @@ def doDeleteFenceBind(args, parsed_globals):
1681
1681
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1682
 
1683
1683
 
1684
- def doDescribeFenceEventList(args, parsed_globals):
1684
+ def doEnableTopicRule(args, parsed_globals):
1685
1685
  g_param = parse_global_arg(parsed_globals)
1686
1686
 
1687
1687
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1710,11 +1710,11 @@ def doDescribeFenceEventList(args, parsed_globals):
1710
1710
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1711
1711
  client._sdkVersion += ("_CLI_" + __version__)
1712
1712
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1713
- model = models.DescribeFenceEventListRequest()
1713
+ model = models.EnableTopicRuleRequest()
1714
1714
  model.from_json_string(json.dumps(args))
1715
1715
  start_time = time.time()
1716
1716
  while True:
1717
- rsp = client.DescribeFenceEventList(model)
1717
+ rsp = client.EnableTopicRule(model)
1718
1718
  result = rsp.to_json_string()
1719
1719
  try:
1720
1720
  json_obj = json.loads(result)
@@ -1733,7 +1733,7 @@ def doDescribeFenceEventList(args, parsed_globals):
1733
1733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
1734
 
1735
1735
 
1736
- def doDescribeFirmwareTask(args, parsed_globals):
1736
+ def doDescribeGatewaySubDeviceList(args, parsed_globals):
1737
1737
  g_param = parse_global_arg(parsed_globals)
1738
1738
 
1739
1739
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1762,11 +1762,11 @@ def doDescribeFirmwareTask(args, parsed_globals):
1762
1762
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1763
1763
  client._sdkVersion += ("_CLI_" + __version__)
1764
1764
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
- model = models.DescribeFirmwareTaskRequest()
1765
+ model = models.DescribeGatewaySubDeviceListRequest()
1766
1766
  model.from_json_string(json.dumps(args))
1767
1767
  start_time = time.time()
1768
1768
  while True:
1769
- rsp = client.DescribeFirmwareTask(model)
1769
+ rsp = client.DescribeGatewaySubDeviceList(model)
1770
1770
  result = rsp.to_json_string()
1771
1771
  try:
1772
1772
  json_obj = json.loads(result)
@@ -1785,7 +1785,7 @@ def doDescribeFirmwareTask(args, parsed_globals):
1785
1785
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
1786
 
1787
1787
 
1788
- def doGetPositionSpaceList(args, parsed_globals):
1788
+ def doDescribeCloudStorageUsers(args, parsed_globals):
1789
1789
  g_param = parse_global_arg(parsed_globals)
1790
1790
 
1791
1791
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1814,11 +1814,11 @@ def doGetPositionSpaceList(args, parsed_globals):
1814
1814
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1815
1815
  client._sdkVersion += ("_CLI_" + __version__)
1816
1816
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1817
- model = models.GetPositionSpaceListRequest()
1817
+ model = models.DescribeCloudStorageUsersRequest()
1818
1818
  model.from_json_string(json.dumps(args))
1819
1819
  start_time = time.time()
1820
1820
  while True:
1821
- rsp = client.GetPositionSpaceList(model)
1821
+ rsp = client.DescribeCloudStorageUsers(model)
1822
1822
  result = rsp.to_json_string()
1823
1823
  try:
1824
1824
  json_obj = json.loads(result)
@@ -1837,7 +1837,7 @@ def doGetPositionSpaceList(args, parsed_globals):
1837
1837
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1838
1838
 
1839
1839
 
1840
- def doDescribeLoRaFrequency(args, parsed_globals):
1840
+ def doTransferCloudStorage(args, parsed_globals):
1841
1841
  g_param = parse_global_arg(parsed_globals)
1842
1842
 
1843
1843
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1866,11 +1866,11 @@ def doDescribeLoRaFrequency(args, parsed_globals):
1866
1866
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1867
1867
  client._sdkVersion += ("_CLI_" + __version__)
1868
1868
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1869
- model = models.DescribeLoRaFrequencyRequest()
1869
+ model = models.TransferCloudStorageRequest()
1870
1870
  model.from_json_string(json.dumps(args))
1871
1871
  start_time = time.time()
1872
1872
  while True:
1873
- rsp = client.DescribeLoRaFrequency(model)
1873
+ rsp = client.TransferCloudStorage(model)
1874
1874
  result = rsp.to_json_string()
1875
1875
  try:
1876
1876
  json_obj = json.loads(result)
@@ -1889,7 +1889,7 @@ def doDescribeLoRaFrequency(args, parsed_globals):
1889
1889
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1890
1890
 
1891
1891
 
1892
- def doModifyPositionSpace(args, parsed_globals):
1892
+ def doSearchStudioProduct(args, parsed_globals):
1893
1893
  g_param = parse_global_arg(parsed_globals)
1894
1894
 
1895
1895
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1918,11 +1918,11 @@ def doModifyPositionSpace(args, parsed_globals):
1918
1918
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1919
1919
  client._sdkVersion += ("_CLI_" + __version__)
1920
1920
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1921
- model = models.ModifyPositionSpaceRequest()
1921
+ model = models.SearchStudioProductRequest()
1922
1922
  model.from_json_string(json.dumps(args))
1923
1923
  start_time = time.time()
1924
1924
  while True:
1925
- rsp = client.ModifyPositionSpace(model)
1925
+ rsp = client.SearchStudioProduct(model)
1926
1926
  result = rsp.to_json_string()
1927
1927
  try:
1928
1928
  json_obj = json.loads(result)
@@ -1941,7 +1941,7 @@ def doModifyPositionSpace(args, parsed_globals):
1941
1941
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
1942
 
1943
1943
 
1944
- def doGetTopicRuleList(args, parsed_globals):
1944
+ def doModifyTopicRule(args, parsed_globals):
1945
1945
  g_param = parse_global_arg(parsed_globals)
1946
1946
 
1947
1947
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1970,11 +1970,11 @@ def doGetTopicRuleList(args, parsed_globals):
1970
1970
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
1971
1971
  client._sdkVersion += ("_CLI_" + __version__)
1972
1972
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
- model = models.GetTopicRuleListRequest()
1973
+ model = models.ModifyTopicRuleRequest()
1974
1974
  model.from_json_string(json.dumps(args))
1975
1975
  start_time = time.time()
1976
1976
  while True:
1977
- rsp = client.GetTopicRuleList(model)
1977
+ rsp = client.ModifyTopicRule(model)
1978
1978
  result = rsp.to_json_string()
1979
1979
  try:
1980
1980
  json_obj = json.loads(result)
@@ -1993,7 +1993,7 @@ def doGetTopicRuleList(args, parsed_globals):
1993
1993
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
1994
 
1995
1995
 
1996
- def doCreateProject(args, parsed_globals):
1996
+ def doInheritCloudStorageUser(args, parsed_globals):
1997
1997
  g_param = parse_global_arg(parsed_globals)
1998
1998
 
1999
1999
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2022,11 +2022,11 @@ def doCreateProject(args, parsed_globals):
2022
2022
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2023
2023
  client._sdkVersion += ("_CLI_" + __version__)
2024
2024
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2025
- model = models.CreateProjectRequest()
2025
+ model = models.InheritCloudStorageUserRequest()
2026
2026
  model.from_json_string(json.dumps(args))
2027
2027
  start_time = time.time()
2028
2028
  while True:
2029
- rsp = client.CreateProject(model)
2029
+ rsp = client.InheritCloudStorageUser(model)
2030
2030
  result = rsp.to_json_string()
2031
2031
  try:
2032
2032
  json_obj = json.loads(result)
@@ -2045,7 +2045,7 @@ def doCreateProject(args, parsed_globals):
2045
2045
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
2046
 
2047
2047
 
2048
- def doCallDeviceActionAsync(args, parsed_globals):
2048
+ def doListFirmwares(args, parsed_globals):
2049
2049
  g_param = parse_global_arg(parsed_globals)
2050
2050
 
2051
2051
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2074,11 +2074,11 @@ def doCallDeviceActionAsync(args, parsed_globals):
2074
2074
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2075
2075
  client._sdkVersion += ("_CLI_" + __version__)
2076
2076
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2077
- model = models.CallDeviceActionAsyncRequest()
2077
+ model = models.ListFirmwaresRequest()
2078
2078
  model.from_json_string(json.dumps(args))
2079
2079
  start_time = time.time()
2080
2080
  while True:
2081
- rsp = client.CallDeviceActionAsync(model)
2081
+ rsp = client.ListFirmwares(model)
2082
2082
  result = rsp.to_json_string()
2083
2083
  try:
2084
2084
  json_obj = json.loads(result)
@@ -2097,7 +2097,7 @@ def doCallDeviceActionAsync(args, parsed_globals):
2097
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2098
2098
 
2099
2099
 
2100
- def doGetDeviceSumStatistics(args, parsed_globals):
2100
+ def doCreateDevice(args, parsed_globals):
2101
2101
  g_param = parse_global_arg(parsed_globals)
2102
2102
 
2103
2103
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2126,11 +2126,11 @@ def doGetDeviceSumStatistics(args, parsed_globals):
2126
2126
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2127
2127
  client._sdkVersion += ("_CLI_" + __version__)
2128
2128
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2129
- model = models.GetDeviceSumStatisticsRequest()
2129
+ model = models.CreateDeviceRequest()
2130
2130
  model.from_json_string(json.dumps(args))
2131
2131
  start_time = time.time()
2132
2132
  while True:
2133
- rsp = client.GetDeviceSumStatistics(model)
2133
+ rsp = client.CreateDevice(model)
2134
2134
  result = rsp.to_json_string()
2135
2135
  try:
2136
2136
  json_obj = json.loads(result)
@@ -2149,7 +2149,7 @@ def doGetDeviceSumStatistics(args, parsed_globals):
2149
2149
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2150
2150
 
2151
2151
 
2152
- def doDeleteProject(args, parsed_globals):
2152
+ def doDeleteFenceBind(args, parsed_globals):
2153
2153
  g_param = parse_global_arg(parsed_globals)
2154
2154
 
2155
2155
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2178,11 +2178,11 @@ def doDeleteProject(args, parsed_globals):
2178
2178
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2179
2179
  client._sdkVersion += ("_CLI_" + __version__)
2180
2180
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2181
- model = models.DeleteProjectRequest()
2181
+ model = models.DeleteFenceBindRequest()
2182
2182
  model.from_json_string(json.dumps(args))
2183
2183
  start_time = time.time()
2184
2184
  while True:
2185
- rsp = client.DeleteProject(model)
2185
+ rsp = client.DeleteFenceBind(model)
2186
2186
  result = rsp.to_json_string()
2187
2187
  try:
2188
2188
  json_obj = json.loads(result)
@@ -2201,7 +2201,7 @@ def doDeleteProject(args, parsed_globals):
2201
2201
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2202
2202
 
2203
2203
 
2204
- def doDescribeTopicRule(args, parsed_globals):
2204
+ def doDescribeFenceEventList(args, parsed_globals):
2205
2205
  g_param = parse_global_arg(parsed_globals)
2206
2206
 
2207
2207
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2230,11 +2230,11 @@ def doDescribeTopicRule(args, parsed_globals):
2230
2230
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2231
2231
  client._sdkVersion += ("_CLI_" + __version__)
2232
2232
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2233
- model = models.DescribeTopicRuleRequest()
2233
+ model = models.DescribeFenceEventListRequest()
2234
2234
  model.from_json_string(json.dumps(args))
2235
2235
  start_time = time.time()
2236
2236
  while True:
2237
- rsp = client.DescribeTopicRule(model)
2237
+ rsp = client.DescribeFenceEventList(model)
2238
2238
  result = rsp.to_json_string()
2239
2239
  try:
2240
2240
  json_obj = json.loads(result)
@@ -2253,7 +2253,7 @@ def doDescribeTopicRule(args, parsed_globals):
2253
2253
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
2254
 
2255
2255
 
2256
- def doPublishBroadcastMessage(args, parsed_globals):
2256
+ def doDescribeFirmwareTask(args, parsed_globals):
2257
2257
  g_param = parse_global_arg(parsed_globals)
2258
2258
 
2259
2259
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2282,11 +2282,11 @@ def doPublishBroadcastMessage(args, parsed_globals):
2282
2282
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2283
2283
  client._sdkVersion += ("_CLI_" + __version__)
2284
2284
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2285
- model = models.PublishBroadcastMessageRequest()
2285
+ model = models.DescribeFirmwareTaskRequest()
2286
2286
  model.from_json_string(json.dumps(args))
2287
2287
  start_time = time.time()
2288
2288
  while True:
2289
- rsp = client.PublishBroadcastMessage(model)
2289
+ rsp = client.DescribeFirmwareTask(model)
2290
2290
  result = rsp.to_json_string()
2291
2291
  try:
2292
2292
  json_obj = json.loads(result)
@@ -2305,7 +2305,7 @@ def doPublishBroadcastMessage(args, parsed_globals):
2305
2305
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2306
2306
 
2307
2307
 
2308
- def doUnbindProducts(args, parsed_globals):
2308
+ def doGetPositionSpaceList(args, parsed_globals):
2309
2309
  g_param = parse_global_arg(parsed_globals)
2310
2310
 
2311
2311
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2334,11 +2334,11 @@ def doUnbindProducts(args, parsed_globals):
2334
2334
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2335
2335
  client._sdkVersion += ("_CLI_" + __version__)
2336
2336
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2337
- model = models.UnbindProductsRequest()
2337
+ model = models.GetPositionSpaceListRequest()
2338
2338
  model.from_json_string(json.dumps(args))
2339
2339
  start_time = time.time()
2340
2340
  while True:
2341
- rsp = client.UnbindProducts(model)
2341
+ rsp = client.GetPositionSpaceList(model)
2342
2342
  result = rsp.to_json_string()
2343
2343
  try:
2344
2344
  json_obj = json.loads(result)
@@ -2357,7 +2357,7 @@ def doUnbindProducts(args, parsed_globals):
2357
2357
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2358
2358
 
2359
2359
 
2360
- def doGetBatchProductionsList(args, parsed_globals):
2360
+ def doResetCloudStorage(args, parsed_globals):
2361
2361
  g_param = parse_global_arg(parsed_globals)
2362
2362
 
2363
2363
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2386,11 +2386,11 @@ def doGetBatchProductionsList(args, parsed_globals):
2386
2386
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2387
2387
  client._sdkVersion += ("_CLI_" + __version__)
2388
2388
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2389
- model = models.GetBatchProductionsListRequest()
2389
+ model = models.ResetCloudStorageRequest()
2390
2390
  model.from_json_string(json.dumps(args))
2391
2391
  start_time = time.time()
2392
2392
  while True:
2393
- rsp = client.GetBatchProductionsList(model)
2393
+ rsp = client.ResetCloudStorage(model)
2394
2394
  result = rsp.to_json_string()
2395
2395
  try:
2396
2396
  json_obj = json.loads(result)
@@ -2409,7 +2409,7 @@ def doGetBatchProductionsList(args, parsed_globals):
2409
2409
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2410
2410
 
2411
2411
 
2412
- def doDescribeDeviceData(args, parsed_globals):
2412
+ def doDescribeLoRaFrequency(args, parsed_globals):
2413
2413
  g_param = parse_global_arg(parsed_globals)
2414
2414
 
2415
2415
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2438,11 +2438,11 @@ def doDescribeDeviceData(args, parsed_globals):
2438
2438
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2439
2439
  client._sdkVersion += ("_CLI_" + __version__)
2440
2440
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2441
- model = models.DescribeDeviceDataRequest()
2441
+ model = models.DescribeLoRaFrequencyRequest()
2442
2442
  model.from_json_string(json.dumps(args))
2443
2443
  start_time = time.time()
2444
2444
  while True:
2445
- rsp = client.DescribeDeviceData(model)
2445
+ rsp = client.DescribeLoRaFrequency(model)
2446
2446
  result = rsp.to_json_string()
2447
2447
  try:
2448
2448
  json_obj = json.loads(result)
@@ -2461,7 +2461,7 @@ def doDescribeDeviceData(args, parsed_globals):
2461
2461
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2462
2462
 
2463
2463
 
2464
- def doDirectBindDeviceInFamily(args, parsed_globals):
2464
+ def doModifyPositionSpace(args, parsed_globals):
2465
2465
  g_param = parse_global_arg(parsed_globals)
2466
2466
 
2467
2467
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2490,11 +2490,11 @@ def doDirectBindDeviceInFamily(args, parsed_globals):
2490
2490
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2491
2491
  client._sdkVersion += ("_CLI_" + __version__)
2492
2492
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2493
- model = models.DirectBindDeviceInFamilyRequest()
2493
+ model = models.ModifyPositionSpaceRequest()
2494
2494
  model.from_json_string(json.dumps(args))
2495
2495
  start_time = time.time()
2496
2496
  while True:
2497
- rsp = client.DirectBindDeviceInFamily(model)
2497
+ rsp = client.ModifyPositionSpace(model)
2498
2498
  result = rsp.to_json_string()
2499
2499
  try:
2500
2500
  json_obj = json.loads(result)
@@ -2513,7 +2513,7 @@ def doDirectBindDeviceInFamily(args, parsed_globals):
2513
2513
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2514
2514
 
2515
2515
 
2516
- def doCreatePositionFence(args, parsed_globals):
2516
+ def doDescribeCloudStorageTime(args, parsed_globals):
2517
2517
  g_param = parse_global_arg(parsed_globals)
2518
2518
 
2519
2519
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2542,11 +2542,11 @@ def doCreatePositionFence(args, parsed_globals):
2542
2542
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2543
2543
  client._sdkVersion += ("_CLI_" + __version__)
2544
2544
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2545
- model = models.CreatePositionFenceRequest()
2545
+ model = models.DescribeCloudStorageTimeRequest()
2546
2546
  model.from_json_string(json.dumps(args))
2547
2547
  start_time = time.time()
2548
2548
  while True:
2549
- rsp = client.CreatePositionFence(model)
2549
+ rsp = client.DescribeCloudStorageTime(model)
2550
2550
  result = rsp.to_json_string()
2551
2551
  try:
2552
2552
  json_obj = json.loads(result)
@@ -2565,7 +2565,7 @@ def doCreatePositionFence(args, parsed_globals):
2565
2565
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2566
2566
 
2567
2567
 
2568
- def doCreateLoRaGateway(args, parsed_globals):
2568
+ def doGetTopicRuleList(args, parsed_globals):
2569
2569
  g_param = parse_global_arg(parsed_globals)
2570
2570
 
2571
2571
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2594,11 +2594,11 @@ def doCreateLoRaGateway(args, parsed_globals):
2594
2594
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2595
2595
  client._sdkVersion += ("_CLI_" + __version__)
2596
2596
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2597
- model = models.CreateLoRaGatewayRequest()
2597
+ model = models.GetTopicRuleListRequest()
2598
2598
  model.from_json_string(json.dumps(args))
2599
2599
  start_time = time.time()
2600
2600
  while True:
2601
- rsp = client.CreateLoRaGateway(model)
2601
+ rsp = client.GetTopicRuleList(model)
2602
2602
  result = rsp.to_json_string()
2603
2603
  try:
2604
2604
  json_obj = json.loads(result)
@@ -2617,7 +2617,7 @@ def doCreateLoRaGateway(args, parsed_globals):
2617
2617
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2618
2618
 
2619
2619
 
2620
- def doCreateTopicRule(args, parsed_globals):
2620
+ def doDescribeCloudStorageThumbnail(args, parsed_globals):
2621
2621
  g_param = parse_global_arg(parsed_globals)
2622
2622
 
2623
2623
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2646,11 +2646,11 @@ def doCreateTopicRule(args, parsed_globals):
2646
2646
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2647
2647
  client._sdkVersion += ("_CLI_" + __version__)
2648
2648
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2649
- model = models.CreateTopicRuleRequest()
2649
+ model = models.DescribeCloudStorageThumbnailRequest()
2650
2650
  model.from_json_string(json.dumps(args))
2651
2651
  start_time = time.time()
2652
2652
  while True:
2653
- rsp = client.CreateTopicRule(model)
2653
+ rsp = client.DescribeCloudStorageThumbnail(model)
2654
2654
  result = rsp.to_json_string()
2655
2655
  try:
2656
2656
  json_obj = json.loads(result)
@@ -2669,7 +2669,1099 @@ def doCreateTopicRule(args, parsed_globals):
2669
2669
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
2670
 
2671
2671
 
2672
- def doCreateLoRaFrequency(args, parsed_globals):
2672
+ def doCreateProject(args, parsed_globals):
2673
+ g_param = parse_global_arg(parsed_globals)
2674
+
2675
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2676
+ cred = credential.CVMRoleCredential()
2677
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2678
+ cred = credential.STSAssumeRoleCredential(
2679
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2680
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2681
+ )
2682
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2683
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2684
+ else:
2685
+ cred = credential.Credential(
2686
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2687
+ )
2688
+ http_profile = HttpProfile(
2689
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2690
+ reqMethod="POST",
2691
+ endpoint=g_param[OptionsDefine.Endpoint],
2692
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2693
+ )
2694
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2695
+ if g_param[OptionsDefine.Language]:
2696
+ profile.language = g_param[OptionsDefine.Language]
2697
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2698
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2699
+ client._sdkVersion += ("_CLI_" + __version__)
2700
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2701
+ model = models.CreateProjectRequest()
2702
+ model.from_json_string(json.dumps(args))
2703
+ start_time = time.time()
2704
+ while True:
2705
+ rsp = client.CreateProject(model)
2706
+ result = rsp.to_json_string()
2707
+ try:
2708
+ json_obj = json.loads(result)
2709
+ except TypeError as e:
2710
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2711
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2712
+ break
2713
+ cur_time = time.time()
2714
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2715
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2716
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2717
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2718
+ else:
2719
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2720
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2721
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2722
+
2723
+
2724
+ def doCallDeviceActionAsync(args, parsed_globals):
2725
+ g_param = parse_global_arg(parsed_globals)
2726
+
2727
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2728
+ cred = credential.CVMRoleCredential()
2729
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2730
+ cred = credential.STSAssumeRoleCredential(
2731
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2732
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2733
+ )
2734
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2735
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2736
+ else:
2737
+ cred = credential.Credential(
2738
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2739
+ )
2740
+ http_profile = HttpProfile(
2741
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2742
+ reqMethod="POST",
2743
+ endpoint=g_param[OptionsDefine.Endpoint],
2744
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2745
+ )
2746
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2747
+ if g_param[OptionsDefine.Language]:
2748
+ profile.language = g_param[OptionsDefine.Language]
2749
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2750
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2751
+ client._sdkVersion += ("_CLI_" + __version__)
2752
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2753
+ model = models.CallDeviceActionAsyncRequest()
2754
+ model.from_json_string(json.dumps(args))
2755
+ start_time = time.time()
2756
+ while True:
2757
+ rsp = client.CallDeviceActionAsync(model)
2758
+ result = rsp.to_json_string()
2759
+ try:
2760
+ json_obj = json.loads(result)
2761
+ except TypeError as e:
2762
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2763
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2764
+ break
2765
+ cur_time = time.time()
2766
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2767
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2768
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2769
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2770
+ else:
2771
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2772
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2773
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
+
2775
+
2776
+ def doDescribeCloudStorageStreamData(args, parsed_globals):
2777
+ g_param = parse_global_arg(parsed_globals)
2778
+
2779
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2780
+ cred = credential.CVMRoleCredential()
2781
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2782
+ cred = credential.STSAssumeRoleCredential(
2783
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2784
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2785
+ )
2786
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2787
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2788
+ else:
2789
+ cred = credential.Credential(
2790
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2791
+ )
2792
+ http_profile = HttpProfile(
2793
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2794
+ reqMethod="POST",
2795
+ endpoint=g_param[OptionsDefine.Endpoint],
2796
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2797
+ )
2798
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2799
+ if g_param[OptionsDefine.Language]:
2800
+ profile.language = g_param[OptionsDefine.Language]
2801
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2802
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2803
+ client._sdkVersion += ("_CLI_" + __version__)
2804
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2805
+ model = models.DescribeCloudStorageStreamDataRequest()
2806
+ model.from_json_string(json.dumps(args))
2807
+ start_time = time.time()
2808
+ while True:
2809
+ rsp = client.DescribeCloudStorageStreamData(model)
2810
+ result = rsp.to_json_string()
2811
+ try:
2812
+ json_obj = json.loads(result)
2813
+ except TypeError as e:
2814
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2815
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2816
+ break
2817
+ cur_time = time.time()
2818
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2819
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2820
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2821
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2822
+ else:
2823
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2824
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2825
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2826
+
2827
+
2828
+ def doGetDeviceSumStatistics(args, parsed_globals):
2829
+ g_param = parse_global_arg(parsed_globals)
2830
+
2831
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2832
+ cred = credential.CVMRoleCredential()
2833
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2834
+ cred = credential.STSAssumeRoleCredential(
2835
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2836
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2837
+ )
2838
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2839
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2840
+ else:
2841
+ cred = credential.Credential(
2842
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2843
+ )
2844
+ http_profile = HttpProfile(
2845
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2846
+ reqMethod="POST",
2847
+ endpoint=g_param[OptionsDefine.Endpoint],
2848
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2849
+ )
2850
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2851
+ if g_param[OptionsDefine.Language]:
2852
+ profile.language = g_param[OptionsDefine.Language]
2853
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2854
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2855
+ client._sdkVersion += ("_CLI_" + __version__)
2856
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
+ model = models.GetDeviceSumStatisticsRequest()
2858
+ model.from_json_string(json.dumps(args))
2859
+ start_time = time.time()
2860
+ while True:
2861
+ rsp = client.GetDeviceSumStatistics(model)
2862
+ result = rsp.to_json_string()
2863
+ try:
2864
+ json_obj = json.loads(result)
2865
+ except TypeError as e:
2866
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2867
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2868
+ break
2869
+ cur_time = time.time()
2870
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2871
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2872
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2873
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2874
+ else:
2875
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2876
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2877
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
+
2879
+
2880
+ def doDeleteProject(args, parsed_globals):
2881
+ g_param = parse_global_arg(parsed_globals)
2882
+
2883
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2884
+ cred = credential.CVMRoleCredential()
2885
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2886
+ cred = credential.STSAssumeRoleCredential(
2887
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2888
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2889
+ )
2890
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2891
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2892
+ else:
2893
+ cred = credential.Credential(
2894
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2895
+ )
2896
+ http_profile = HttpProfile(
2897
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2898
+ reqMethod="POST",
2899
+ endpoint=g_param[OptionsDefine.Endpoint],
2900
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2901
+ )
2902
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2903
+ if g_param[OptionsDefine.Language]:
2904
+ profile.language = g_param[OptionsDefine.Language]
2905
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2906
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2907
+ client._sdkVersion += ("_CLI_" + __version__)
2908
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2909
+ model = models.DeleteProjectRequest()
2910
+ model.from_json_string(json.dumps(args))
2911
+ start_time = time.time()
2912
+ while True:
2913
+ rsp = client.DeleteProject(model)
2914
+ result = rsp.to_json_string()
2915
+ try:
2916
+ json_obj = json.loads(result)
2917
+ except TypeError as e:
2918
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2919
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2920
+ break
2921
+ cur_time = time.time()
2922
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2923
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2924
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2925
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2926
+ else:
2927
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2928
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2929
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
+
2931
+
2932
+ def doDescribeTopicRule(args, parsed_globals):
2933
+ g_param = parse_global_arg(parsed_globals)
2934
+
2935
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2936
+ cred = credential.CVMRoleCredential()
2937
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2938
+ cred = credential.STSAssumeRoleCredential(
2939
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2940
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2941
+ )
2942
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2943
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2944
+ else:
2945
+ cred = credential.Credential(
2946
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2947
+ )
2948
+ http_profile = HttpProfile(
2949
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2950
+ reqMethod="POST",
2951
+ endpoint=g_param[OptionsDefine.Endpoint],
2952
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2953
+ )
2954
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2955
+ if g_param[OptionsDefine.Language]:
2956
+ profile.language = g_param[OptionsDefine.Language]
2957
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2958
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2959
+ client._sdkVersion += ("_CLI_" + __version__)
2960
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2961
+ model = models.DescribeTopicRuleRequest()
2962
+ model.from_json_string(json.dumps(args))
2963
+ start_time = time.time()
2964
+ while True:
2965
+ rsp = client.DescribeTopicRule(model)
2966
+ result = rsp.to_json_string()
2967
+ try:
2968
+ json_obj = json.loads(result)
2969
+ except TypeError as e:
2970
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2971
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2972
+ break
2973
+ cur_time = time.time()
2974
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2975
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2976
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2977
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2978
+ else:
2979
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2980
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2981
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2982
+
2983
+
2984
+ def doPublishBroadcastMessage(args, parsed_globals):
2985
+ g_param = parse_global_arg(parsed_globals)
2986
+
2987
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2988
+ cred = credential.CVMRoleCredential()
2989
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2990
+ cred = credential.STSAssumeRoleCredential(
2991
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2992
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2993
+ )
2994
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2995
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2996
+ else:
2997
+ cred = credential.Credential(
2998
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2999
+ )
3000
+ http_profile = HttpProfile(
3001
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3002
+ reqMethod="POST",
3003
+ endpoint=g_param[OptionsDefine.Endpoint],
3004
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3005
+ )
3006
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3007
+ if g_param[OptionsDefine.Language]:
3008
+ profile.language = g_param[OptionsDefine.Language]
3009
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3010
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3011
+ client._sdkVersion += ("_CLI_" + __version__)
3012
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3013
+ model = models.PublishBroadcastMessageRequest()
3014
+ model.from_json_string(json.dumps(args))
3015
+ start_time = time.time()
3016
+ while True:
3017
+ rsp = client.PublishBroadcastMessage(model)
3018
+ result = rsp.to_json_string()
3019
+ try:
3020
+ json_obj = json.loads(result)
3021
+ except TypeError as e:
3022
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3023
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3024
+ break
3025
+ cur_time = time.time()
3026
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3027
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3028
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3029
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3030
+ else:
3031
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3032
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3033
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3034
+
3035
+
3036
+ def doUnbindProducts(args, parsed_globals):
3037
+ g_param = parse_global_arg(parsed_globals)
3038
+
3039
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3040
+ cred = credential.CVMRoleCredential()
3041
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3042
+ cred = credential.STSAssumeRoleCredential(
3043
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3044
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3045
+ )
3046
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3047
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3048
+ else:
3049
+ cred = credential.Credential(
3050
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3051
+ )
3052
+ http_profile = HttpProfile(
3053
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3054
+ reqMethod="POST",
3055
+ endpoint=g_param[OptionsDefine.Endpoint],
3056
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3057
+ )
3058
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3059
+ if g_param[OptionsDefine.Language]:
3060
+ profile.language = g_param[OptionsDefine.Language]
3061
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3062
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3063
+ client._sdkVersion += ("_CLI_" + __version__)
3064
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3065
+ model = models.UnbindProductsRequest()
3066
+ model.from_json_string(json.dumps(args))
3067
+ start_time = time.time()
3068
+ while True:
3069
+ rsp = client.UnbindProducts(model)
3070
+ result = rsp.to_json_string()
3071
+ try:
3072
+ json_obj = json.loads(result)
3073
+ except TypeError as e:
3074
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3075
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3076
+ break
3077
+ cur_time = time.time()
3078
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3079
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3080
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3081
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3082
+ else:
3083
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3084
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3085
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3086
+
3087
+
3088
+ def doGetBatchProductionsList(args, parsed_globals):
3089
+ g_param = parse_global_arg(parsed_globals)
3090
+
3091
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3092
+ cred = credential.CVMRoleCredential()
3093
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3094
+ cred = credential.STSAssumeRoleCredential(
3095
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3096
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3097
+ )
3098
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3099
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3100
+ else:
3101
+ cred = credential.Credential(
3102
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3103
+ )
3104
+ http_profile = HttpProfile(
3105
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3106
+ reqMethod="POST",
3107
+ endpoint=g_param[OptionsDefine.Endpoint],
3108
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3109
+ )
3110
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3111
+ if g_param[OptionsDefine.Language]:
3112
+ profile.language = g_param[OptionsDefine.Language]
3113
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3114
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3115
+ client._sdkVersion += ("_CLI_" + __version__)
3116
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3117
+ model = models.GetBatchProductionsListRequest()
3118
+ model.from_json_string(json.dumps(args))
3119
+ start_time = time.time()
3120
+ while True:
3121
+ rsp = client.GetBatchProductionsList(model)
3122
+ result = rsp.to_json_string()
3123
+ try:
3124
+ json_obj = json.loads(result)
3125
+ except TypeError as e:
3126
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3127
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3128
+ break
3129
+ cur_time = time.time()
3130
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3131
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3132
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3133
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3134
+ else:
3135
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3136
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3137
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
+
3139
+
3140
+ def doDescribeDeviceData(args, parsed_globals):
3141
+ g_param = parse_global_arg(parsed_globals)
3142
+
3143
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3144
+ cred = credential.CVMRoleCredential()
3145
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3146
+ cred = credential.STSAssumeRoleCredential(
3147
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3148
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3149
+ )
3150
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3151
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3152
+ else:
3153
+ cred = credential.Credential(
3154
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3155
+ )
3156
+ http_profile = HttpProfile(
3157
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3158
+ reqMethod="POST",
3159
+ endpoint=g_param[OptionsDefine.Endpoint],
3160
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3161
+ )
3162
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3163
+ if g_param[OptionsDefine.Language]:
3164
+ profile.language = g_param[OptionsDefine.Language]
3165
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3166
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3167
+ client._sdkVersion += ("_CLI_" + __version__)
3168
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3169
+ model = models.DescribeDeviceDataRequest()
3170
+ model.from_json_string(json.dumps(args))
3171
+ start_time = time.time()
3172
+ while True:
3173
+ rsp = client.DescribeDeviceData(model)
3174
+ result = rsp.to_json_string()
3175
+ try:
3176
+ json_obj = json.loads(result)
3177
+ except TypeError as e:
3178
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3179
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3180
+ break
3181
+ cur_time = time.time()
3182
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3183
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3184
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3185
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3186
+ else:
3187
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3188
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3189
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3190
+
3191
+
3192
+ def doDirectBindDeviceInFamily(args, parsed_globals):
3193
+ g_param = parse_global_arg(parsed_globals)
3194
+
3195
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3196
+ cred = credential.CVMRoleCredential()
3197
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3198
+ cred = credential.STSAssumeRoleCredential(
3199
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3200
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3201
+ )
3202
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3203
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3204
+ else:
3205
+ cred = credential.Credential(
3206
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3207
+ )
3208
+ http_profile = HttpProfile(
3209
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3210
+ reqMethod="POST",
3211
+ endpoint=g_param[OptionsDefine.Endpoint],
3212
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3213
+ )
3214
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3215
+ if g_param[OptionsDefine.Language]:
3216
+ profile.language = g_param[OptionsDefine.Language]
3217
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3218
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3219
+ client._sdkVersion += ("_CLI_" + __version__)
3220
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3221
+ model = models.DirectBindDeviceInFamilyRequest()
3222
+ model.from_json_string(json.dumps(args))
3223
+ start_time = time.time()
3224
+ while True:
3225
+ rsp = client.DirectBindDeviceInFamily(model)
3226
+ result = rsp.to_json_string()
3227
+ try:
3228
+ json_obj = json.loads(result)
3229
+ except TypeError as e:
3230
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3231
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3232
+ break
3233
+ cur_time = time.time()
3234
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3235
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3236
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3237
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3238
+ else:
3239
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3240
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3241
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3242
+
3243
+
3244
+ def doCreatePositionFence(args, parsed_globals):
3245
+ g_param = parse_global_arg(parsed_globals)
3246
+
3247
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3248
+ cred = credential.CVMRoleCredential()
3249
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3250
+ cred = credential.STSAssumeRoleCredential(
3251
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3252
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3253
+ )
3254
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3255
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3256
+ else:
3257
+ cred = credential.Credential(
3258
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3259
+ )
3260
+ http_profile = HttpProfile(
3261
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3262
+ reqMethod="POST",
3263
+ endpoint=g_param[OptionsDefine.Endpoint],
3264
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3265
+ )
3266
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3267
+ if g_param[OptionsDefine.Language]:
3268
+ profile.language = g_param[OptionsDefine.Language]
3269
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3270
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3271
+ client._sdkVersion += ("_CLI_" + __version__)
3272
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3273
+ model = models.CreatePositionFenceRequest()
3274
+ model.from_json_string(json.dumps(args))
3275
+ start_time = time.time()
3276
+ while True:
3277
+ rsp = client.CreatePositionFence(model)
3278
+ result = rsp.to_json_string()
3279
+ try:
3280
+ json_obj = json.loads(result)
3281
+ except TypeError as e:
3282
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3283
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3284
+ break
3285
+ cur_time = time.time()
3286
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3287
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3288
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3289
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3290
+ else:
3291
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3292
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3293
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3294
+
3295
+
3296
+ def doCreateLoRaGateway(args, parsed_globals):
3297
+ g_param = parse_global_arg(parsed_globals)
3298
+
3299
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3300
+ cred = credential.CVMRoleCredential()
3301
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3302
+ cred = credential.STSAssumeRoleCredential(
3303
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3304
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3305
+ )
3306
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3307
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3308
+ else:
3309
+ cred = credential.Credential(
3310
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3311
+ )
3312
+ http_profile = HttpProfile(
3313
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3314
+ reqMethod="POST",
3315
+ endpoint=g_param[OptionsDefine.Endpoint],
3316
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3317
+ )
3318
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3319
+ if g_param[OptionsDefine.Language]:
3320
+ profile.language = g_param[OptionsDefine.Language]
3321
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3322
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3323
+ client._sdkVersion += ("_CLI_" + __version__)
3324
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
+ model = models.CreateLoRaGatewayRequest()
3326
+ model.from_json_string(json.dumps(args))
3327
+ start_time = time.time()
3328
+ while True:
3329
+ rsp = client.CreateLoRaGateway(model)
3330
+ result = rsp.to_json_string()
3331
+ try:
3332
+ json_obj = json.loads(result)
3333
+ except TypeError as e:
3334
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3335
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3336
+ break
3337
+ cur_time = time.time()
3338
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3339
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3340
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3341
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3342
+ else:
3343
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3344
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3345
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
+
3347
+
3348
+ def doCreateTopicRule(args, parsed_globals):
3349
+ g_param = parse_global_arg(parsed_globals)
3350
+
3351
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3352
+ cred = credential.CVMRoleCredential()
3353
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3354
+ cred = credential.STSAssumeRoleCredential(
3355
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3356
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3357
+ )
3358
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3359
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3360
+ else:
3361
+ cred = credential.Credential(
3362
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3363
+ )
3364
+ http_profile = HttpProfile(
3365
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3366
+ reqMethod="POST",
3367
+ endpoint=g_param[OptionsDefine.Endpoint],
3368
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3369
+ )
3370
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3371
+ if g_param[OptionsDefine.Language]:
3372
+ profile.language = g_param[OptionsDefine.Language]
3373
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3374
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3375
+ client._sdkVersion += ("_CLI_" + __version__)
3376
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3377
+ model = models.CreateTopicRuleRequest()
3378
+ model.from_json_string(json.dumps(args))
3379
+ start_time = time.time()
3380
+ while True:
3381
+ rsp = client.CreateTopicRule(model)
3382
+ result = rsp.to_json_string()
3383
+ try:
3384
+ json_obj = json.loads(result)
3385
+ except TypeError as e:
3386
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3387
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3388
+ break
3389
+ cur_time = time.time()
3390
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3391
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3392
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3393
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3394
+ else:
3395
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3396
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3397
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3398
+
3399
+
3400
+ def doCreateLoRaFrequency(args, parsed_globals):
3401
+ g_param = parse_global_arg(parsed_globals)
3402
+
3403
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3404
+ cred = credential.CVMRoleCredential()
3405
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3406
+ cred = credential.STSAssumeRoleCredential(
3407
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3408
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3409
+ )
3410
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3411
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3412
+ else:
3413
+ cred = credential.Credential(
3414
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3415
+ )
3416
+ http_profile = HttpProfile(
3417
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3418
+ reqMethod="POST",
3419
+ endpoint=g_param[OptionsDefine.Endpoint],
3420
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3421
+ )
3422
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3423
+ if g_param[OptionsDefine.Language]:
3424
+ profile.language = g_param[OptionsDefine.Language]
3425
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3426
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3427
+ client._sdkVersion += ("_CLI_" + __version__)
3428
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3429
+ model = models.CreateLoRaFrequencyRequest()
3430
+ model.from_json_string(json.dumps(args))
3431
+ start_time = time.time()
3432
+ while True:
3433
+ rsp = client.CreateLoRaFrequency(model)
3434
+ result = rsp.to_json_string()
3435
+ try:
3436
+ json_obj = json.loads(result)
3437
+ except TypeError as e:
3438
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3439
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3440
+ break
3441
+ cur_time = time.time()
3442
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3443
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3444
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3445
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3446
+ else:
3447
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3448
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3449
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
+
3451
+
3452
+ def doCreateTopicPolicy(args, parsed_globals):
3453
+ g_param = parse_global_arg(parsed_globals)
3454
+
3455
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3456
+ cred = credential.CVMRoleCredential()
3457
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3458
+ cred = credential.STSAssumeRoleCredential(
3459
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3460
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3461
+ )
3462
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3463
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3464
+ else:
3465
+ cred = credential.Credential(
3466
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3467
+ )
3468
+ http_profile = HttpProfile(
3469
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3470
+ reqMethod="POST",
3471
+ endpoint=g_param[OptionsDefine.Endpoint],
3472
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3473
+ )
3474
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3475
+ if g_param[OptionsDefine.Language]:
3476
+ profile.language = g_param[OptionsDefine.Language]
3477
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3478
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3479
+ client._sdkVersion += ("_CLI_" + __version__)
3480
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3481
+ model = models.CreateTopicPolicyRequest()
3482
+ model.from_json_string(json.dumps(args))
3483
+ start_time = time.time()
3484
+ while True:
3485
+ rsp = client.CreateTopicPolicy(model)
3486
+ result = rsp.to_json_string()
3487
+ try:
3488
+ json_obj = json.loads(result)
3489
+ except TypeError as e:
3490
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3491
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3492
+ break
3493
+ cur_time = time.time()
3494
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3495
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3496
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3497
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3498
+ else:
3499
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3500
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3501
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
+
3503
+
3504
+ def doDescribeCloudStorage(args, parsed_globals):
3505
+ g_param = parse_global_arg(parsed_globals)
3506
+
3507
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3508
+ cred = credential.CVMRoleCredential()
3509
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3510
+ cred = credential.STSAssumeRoleCredential(
3511
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3512
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3513
+ )
3514
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3515
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3516
+ else:
3517
+ cred = credential.Credential(
3518
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3519
+ )
3520
+ http_profile = HttpProfile(
3521
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3522
+ reqMethod="POST",
3523
+ endpoint=g_param[OptionsDefine.Endpoint],
3524
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3525
+ )
3526
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3527
+ if g_param[OptionsDefine.Language]:
3528
+ profile.language = g_param[OptionsDefine.Language]
3529
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3530
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3531
+ client._sdkVersion += ("_CLI_" + __version__)
3532
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3533
+ model = models.DescribeCloudStorageRequest()
3534
+ model.from_json_string(json.dumps(args))
3535
+ start_time = time.time()
3536
+ while True:
3537
+ rsp = client.DescribeCloudStorage(model)
3538
+ result = rsp.to_json_string()
3539
+ try:
3540
+ json_obj = json.loads(result)
3541
+ except TypeError as e:
3542
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3543
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3544
+ break
3545
+ cur_time = time.time()
3546
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3547
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3548
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3549
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3550
+ else:
3551
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3552
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3553
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
+
3555
+
3556
+ def doUploadFirmware(args, parsed_globals):
3557
+ g_param = parse_global_arg(parsed_globals)
3558
+
3559
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3560
+ cred = credential.CVMRoleCredential()
3561
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3562
+ cred = credential.STSAssumeRoleCredential(
3563
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3564
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3565
+ )
3566
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3567
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3568
+ else:
3569
+ cred = credential.Credential(
3570
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3571
+ )
3572
+ http_profile = HttpProfile(
3573
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3574
+ reqMethod="POST",
3575
+ endpoint=g_param[OptionsDefine.Endpoint],
3576
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3577
+ )
3578
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3579
+ if g_param[OptionsDefine.Language]:
3580
+ profile.language = g_param[OptionsDefine.Language]
3581
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3582
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3583
+ client._sdkVersion += ("_CLI_" + __version__)
3584
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3585
+ model = models.UploadFirmwareRequest()
3586
+ model.from_json_string(json.dumps(args))
3587
+ start_time = time.time()
3588
+ while True:
3589
+ rsp = client.UploadFirmware(model)
3590
+ result = rsp.to_json_string()
3591
+ try:
3592
+ json_obj = json.loads(result)
3593
+ except TypeError as e:
3594
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3595
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3596
+ break
3597
+ cur_time = time.time()
3598
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3599
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3600
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3601
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3602
+ else:
3603
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3604
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3605
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3606
+
3607
+
3608
+ def doUpdateDevicesEnableState(args, parsed_globals):
3609
+ g_param = parse_global_arg(parsed_globals)
3610
+
3611
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3612
+ cred = credential.CVMRoleCredential()
3613
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3614
+ cred = credential.STSAssumeRoleCredential(
3615
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3616
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3617
+ )
3618
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3619
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3620
+ else:
3621
+ cred = credential.Credential(
3622
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3623
+ )
3624
+ http_profile = HttpProfile(
3625
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3626
+ reqMethod="POST",
3627
+ endpoint=g_param[OptionsDefine.Endpoint],
3628
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3629
+ )
3630
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3631
+ if g_param[OptionsDefine.Language]:
3632
+ profile.language = g_param[OptionsDefine.Language]
3633
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3634
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3635
+ client._sdkVersion += ("_CLI_" + __version__)
3636
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3637
+ model = models.UpdateDevicesEnableStateRequest()
3638
+ model.from_json_string(json.dumps(args))
3639
+ start_time = time.time()
3640
+ while True:
3641
+ rsp = client.UpdateDevicesEnableState(model)
3642
+ result = rsp.to_json_string()
3643
+ try:
3644
+ json_obj = json.loads(result)
3645
+ except TypeError as e:
3646
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3647
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3648
+ break
3649
+ cur_time = time.time()
3650
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3651
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3652
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3653
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3654
+ else:
3655
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3656
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3657
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3658
+
3659
+
3660
+ def doModifyProject(args, parsed_globals):
3661
+ g_param = parse_global_arg(parsed_globals)
3662
+
3663
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3664
+ cred = credential.CVMRoleCredential()
3665
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3666
+ cred = credential.STSAssumeRoleCredential(
3667
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3668
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3669
+ )
3670
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3671
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3672
+ else:
3673
+ cred = credential.Credential(
3674
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3675
+ )
3676
+ http_profile = HttpProfile(
3677
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3678
+ reqMethod="POST",
3679
+ endpoint=g_param[OptionsDefine.Endpoint],
3680
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3681
+ )
3682
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3683
+ if g_param[OptionsDefine.Language]:
3684
+ profile.language = g_param[OptionsDefine.Language]
3685
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3686
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3687
+ client._sdkVersion += ("_CLI_" + __version__)
3688
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3689
+ model = models.ModifyProjectRequest()
3690
+ model.from_json_string(json.dumps(args))
3691
+ start_time = time.time()
3692
+ while True:
3693
+ rsp = client.ModifyProject(model)
3694
+ result = rsp.to_json_string()
3695
+ try:
3696
+ json_obj = json.loads(result)
3697
+ except TypeError as e:
3698
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3699
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3700
+ break
3701
+ cur_time = time.time()
3702
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3703
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3704
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3705
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3706
+ else:
3707
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3708
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3709
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3710
+
3711
+
3712
+ def doBindProducts(args, parsed_globals):
3713
+ g_param = parse_global_arg(parsed_globals)
3714
+
3715
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3716
+ cred = credential.CVMRoleCredential()
3717
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3718
+ cred = credential.STSAssumeRoleCredential(
3719
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3720
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3721
+ )
3722
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3723
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3724
+ else:
3725
+ cred = credential.Credential(
3726
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3727
+ )
3728
+ http_profile = HttpProfile(
3729
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3730
+ reqMethod="POST",
3731
+ endpoint=g_param[OptionsDefine.Endpoint],
3732
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3733
+ )
3734
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3735
+ if g_param[OptionsDefine.Language]:
3736
+ profile.language = g_param[OptionsDefine.Language]
3737
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3738
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3739
+ client._sdkVersion += ("_CLI_" + __version__)
3740
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3741
+ model = models.BindProductsRequest()
3742
+ model.from_json_string(json.dumps(args))
3743
+ start_time = time.time()
3744
+ while True:
3745
+ rsp = client.BindProducts(model)
3746
+ result = rsp.to_json_string()
3747
+ try:
3748
+ json_obj = json.loads(result)
3749
+ except TypeError as e:
3750
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3751
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3752
+ break
3753
+ cur_time = time.time()
3754
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3755
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3756
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3757
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3758
+ else:
3759
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3760
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3761
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3762
+
3763
+
3764
+ def doSearchPositionSpace(args, parsed_globals):
2673
3765
  g_param = parse_global_arg(parsed_globals)
2674
3766
 
2675
3767
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2698,11 +3790,11 @@ def doCreateLoRaFrequency(args, parsed_globals):
2698
3790
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2699
3791
  client._sdkVersion += ("_CLI_" + __version__)
2700
3792
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2701
- model = models.CreateLoRaFrequencyRequest()
3793
+ model = models.SearchPositionSpaceRequest()
2702
3794
  model.from_json_string(json.dumps(args))
2703
3795
  start_time = time.time()
2704
3796
  while True:
2705
- rsp = client.CreateLoRaFrequency(model)
3797
+ rsp = client.SearchPositionSpace(model)
2706
3798
  result = rsp.to_json_string()
2707
3799
  try:
2708
3800
  json_obj = json.loads(result)
@@ -2721,7 +3813,7 @@ def doCreateLoRaFrequency(args, parsed_globals):
2721
3813
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2722
3814
 
2723
3815
 
2724
- def doCreateTopicPolicy(args, parsed_globals):
3816
+ def doModifyTopicPolicy(args, parsed_globals):
2725
3817
  g_param = parse_global_arg(parsed_globals)
2726
3818
 
2727
3819
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2750,11 +3842,11 @@ def doCreateTopicPolicy(args, parsed_globals):
2750
3842
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2751
3843
  client._sdkVersion += ("_CLI_" + __version__)
2752
3844
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2753
- model = models.CreateTopicPolicyRequest()
3845
+ model = models.ModifyTopicPolicyRequest()
2754
3846
  model.from_json_string(json.dumps(args))
2755
3847
  start_time = time.time()
2756
3848
  while True:
2757
- rsp = client.CreateTopicPolicy(model)
3849
+ rsp = client.ModifyTopicPolicy(model)
2758
3850
  result = rsp.to_json_string()
2759
3851
  try:
2760
3852
  json_obj = json.loads(result)
@@ -2773,7 +3865,7 @@ def doCreateTopicPolicy(args, parsed_globals):
2773
3865
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
3866
 
2775
3867
 
2776
- def doUploadFirmware(args, parsed_globals):
3868
+ def doDescribeSpaceFenceEventList(args, parsed_globals):
2777
3869
  g_param = parse_global_arg(parsed_globals)
2778
3870
 
2779
3871
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2802,11 +3894,11 @@ def doUploadFirmware(args, parsed_globals):
2802
3894
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2803
3895
  client._sdkVersion += ("_CLI_" + __version__)
2804
3896
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2805
- model = models.UploadFirmwareRequest()
3897
+ model = models.DescribeSpaceFenceEventListRequest()
2806
3898
  model.from_json_string(json.dumps(args))
2807
3899
  start_time = time.time()
2808
3900
  while True:
2809
- rsp = client.UploadFirmware(model)
3901
+ rsp = client.DescribeSpaceFenceEventList(model)
2810
3902
  result = rsp.to_json_string()
2811
3903
  try:
2812
3904
  json_obj = json.loads(result)
@@ -2825,7 +3917,7 @@ def doUploadFirmware(args, parsed_globals):
2825
3917
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2826
3918
 
2827
3919
 
2828
- def doUpdateDevicesEnableState(args, parsed_globals):
3920
+ def doUpdateFirmware(args, parsed_globals):
2829
3921
  g_param = parse_global_arg(parsed_globals)
2830
3922
 
2831
3923
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2854,11 +3946,11 @@ def doUpdateDevicesEnableState(args, parsed_globals):
2854
3946
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2855
3947
  client._sdkVersion += ("_CLI_" + __version__)
2856
3948
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
- model = models.UpdateDevicesEnableStateRequest()
3949
+ model = models.UpdateFirmwareRequest()
2858
3950
  model.from_json_string(json.dumps(args))
2859
3951
  start_time = time.time()
2860
3952
  while True:
2861
- rsp = client.UpdateDevicesEnableState(model)
3953
+ rsp = client.UpdateFirmware(model)
2862
3954
  result = rsp.to_json_string()
2863
3955
  try:
2864
3956
  json_obj = json.loads(result)
@@ -2877,7 +3969,7 @@ def doUpdateDevicesEnableState(args, parsed_globals):
2877
3969
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
3970
 
2879
3971
 
2880
- def doModifyProject(args, parsed_globals):
3972
+ def doDescribeGatewaySubProducts(args, parsed_globals):
2881
3973
  g_param = parse_global_arg(parsed_globals)
2882
3974
 
2883
3975
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2906,11 +3998,11 @@ def doModifyProject(args, parsed_globals):
2906
3998
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2907
3999
  client._sdkVersion += ("_CLI_" + __version__)
2908
4000
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2909
- model = models.ModifyProjectRequest()
4001
+ model = models.DescribeGatewaySubProductsRequest()
2910
4002
  model.from_json_string(json.dumps(args))
2911
4003
  start_time = time.time()
2912
4004
  while True:
2913
- rsp = client.ModifyProject(model)
4005
+ rsp = client.DescribeGatewaySubProducts(model)
2914
4006
  result = rsp.to_json_string()
2915
4007
  try:
2916
4008
  json_obj = json.loads(result)
@@ -2929,7 +4021,7 @@ def doModifyProject(args, parsed_globals):
2929
4021
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
4022
 
2931
4023
 
2932
- def doBindProducts(args, parsed_globals):
4024
+ def doDescribeDevicePositionList(args, parsed_globals):
2933
4025
  g_param = parse_global_arg(parsed_globals)
2934
4026
 
2935
4027
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2958,11 +4050,11 @@ def doBindProducts(args, parsed_globals):
2958
4050
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2959
4051
  client._sdkVersion += ("_CLI_" + __version__)
2960
4052
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2961
- model = models.BindProductsRequest()
4053
+ model = models.DescribeDevicePositionListRequest()
2962
4054
  model.from_json_string(json.dumps(args))
2963
4055
  start_time = time.time()
2964
4056
  while True:
2965
- rsp = client.BindProducts(model)
4057
+ rsp = client.DescribeDevicePositionList(model)
2966
4058
  result = rsp.to_json_string()
2967
4059
  try:
2968
4060
  json_obj = json.loads(result)
@@ -2981,7 +4073,7 @@ def doBindProducts(args, parsed_globals):
2981
4073
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2982
4074
 
2983
4075
 
2984
- def doDescribeFenceBindList(args, parsed_globals):
4076
+ def doBindDevices(args, parsed_globals):
2985
4077
  g_param = parse_global_arg(parsed_globals)
2986
4078
 
2987
4079
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3010,11 +4102,11 @@ def doDescribeFenceBindList(args, parsed_globals):
3010
4102
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3011
4103
  client._sdkVersion += ("_CLI_" + __version__)
3012
4104
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3013
- model = models.DescribeFenceBindListRequest()
4105
+ model = models.BindDevicesRequest()
3014
4106
  model.from_json_string(json.dumps(args))
3015
4107
  start_time = time.time()
3016
4108
  while True:
3017
- rsp = client.DescribeFenceBindList(model)
4109
+ rsp = client.BindDevices(model)
3018
4110
  result = rsp.to_json_string()
3019
4111
  try:
3020
4112
  json_obj = json.loads(result)
@@ -3033,7 +4125,7 @@ def doDescribeFenceBindList(args, parsed_globals):
3033
4125
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3034
4126
 
3035
4127
 
3036
- def doModifyTopicPolicy(args, parsed_globals):
4128
+ def doCreateBatchProduction(args, parsed_globals):
3037
4129
  g_param = parse_global_arg(parsed_globals)
3038
4130
 
3039
4131
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3062,11 +4154,11 @@ def doModifyTopicPolicy(args, parsed_globals):
3062
4154
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3063
4155
  client._sdkVersion += ("_CLI_" + __version__)
3064
4156
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3065
- model = models.ModifyTopicPolicyRequest()
4157
+ model = models.CreateBatchProductionRequest()
3066
4158
  model.from_json_string(json.dumps(args))
3067
4159
  start_time = time.time()
3068
4160
  while True:
3069
- rsp = client.ModifyTopicPolicy(model)
4161
+ rsp = client.CreateBatchProduction(model)
3070
4162
  result = rsp.to_json_string()
3071
4163
  try:
3072
4164
  json_obj = json.loads(result)
@@ -3085,7 +4177,7 @@ def doModifyTopicPolicy(args, parsed_globals):
3085
4177
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3086
4178
 
3087
4179
 
3088
- def doDescribeSpaceFenceEventList(args, parsed_globals):
4180
+ def doDisableTopicRule(args, parsed_globals):
3089
4181
  g_param = parse_global_arg(parsed_globals)
3090
4182
 
3091
4183
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3114,11 +4206,11 @@ def doDescribeSpaceFenceEventList(args, parsed_globals):
3114
4206
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3115
4207
  client._sdkVersion += ("_CLI_" + __version__)
3116
4208
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3117
- model = models.DescribeSpaceFenceEventListRequest()
4209
+ model = models.DisableTopicRuleRequest()
3118
4210
  model.from_json_string(json.dumps(args))
3119
4211
  start_time = time.time()
3120
4212
  while True:
3121
- rsp = client.DescribeSpaceFenceEventList(model)
4213
+ rsp = client.DisableTopicRule(model)
3122
4214
  result = rsp.to_json_string()
3123
4215
  try:
3124
4216
  json_obj = json.loads(result)
@@ -3137,7 +4229,7 @@ def doDescribeSpaceFenceEventList(args, parsed_globals):
3137
4229
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
4230
 
3139
4231
 
3140
- def doUpdateFirmware(args, parsed_globals):
4232
+ def doGetFamilyDeviceUserList(args, parsed_globals):
3141
4233
  g_param = parse_global_arg(parsed_globals)
3142
4234
 
3143
4235
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3166,11 +4258,11 @@ def doUpdateFirmware(args, parsed_globals):
3166
4258
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3167
4259
  client._sdkVersion += ("_CLI_" + __version__)
3168
4260
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3169
- model = models.UpdateFirmwareRequest()
4261
+ model = models.GetFamilyDeviceUserListRequest()
3170
4262
  model.from_json_string(json.dumps(args))
3171
4263
  start_time = time.time()
3172
4264
  while True:
3173
- rsp = client.UpdateFirmware(model)
4265
+ rsp = client.GetFamilyDeviceUserList(model)
3174
4266
  result = rsp.to_json_string()
3175
4267
  try:
3176
4268
  json_obj = json.loads(result)
@@ -3189,7 +4281,7 @@ def doUpdateFirmware(args, parsed_globals):
3189
4281
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3190
4282
 
3191
4283
 
3192
- def doDescribeGatewaySubProducts(args, parsed_globals):
4284
+ def doGetStudioProductList(args, parsed_globals):
3193
4285
  g_param = parse_global_arg(parsed_globals)
3194
4286
 
3195
4287
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3218,11 +4310,11 @@ def doDescribeGatewaySubProducts(args, parsed_globals):
3218
4310
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3219
4311
  client._sdkVersion += ("_CLI_" + __version__)
3220
4312
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3221
- model = models.DescribeGatewaySubProductsRequest()
4313
+ model = models.GetStudioProductListRequest()
3222
4314
  model.from_json_string(json.dumps(args))
3223
4315
  start_time = time.time()
3224
4316
  while True:
3225
- rsp = client.DescribeGatewaySubProducts(model)
4317
+ rsp = client.GetStudioProductList(model)
3226
4318
  result = rsp.to_json_string()
3227
4319
  try:
3228
4320
  json_obj = json.loads(result)
@@ -3241,7 +4333,7 @@ def doDescribeGatewaySubProducts(args, parsed_globals):
3241
4333
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3242
4334
 
3243
4335
 
3244
- def doDescribeDevicePositionList(args, parsed_globals):
4336
+ def doDescribeModelDefinition(args, parsed_globals):
3245
4337
  g_param = parse_global_arg(parsed_globals)
3246
4338
 
3247
4339
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3270,11 +4362,11 @@ def doDescribeDevicePositionList(args, parsed_globals):
3270
4362
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3271
4363
  client._sdkVersion += ("_CLI_" + __version__)
3272
4364
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3273
- model = models.DescribeDevicePositionListRequest()
4365
+ model = models.DescribeModelDefinitionRequest()
3274
4366
  model.from_json_string(json.dumps(args))
3275
4367
  start_time = time.time()
3276
4368
  while True:
3277
- rsp = client.DescribeDevicePositionList(model)
4369
+ rsp = client.DescribeModelDefinition(model)
3278
4370
  result = rsp.to_json_string()
3279
4371
  try:
3280
4372
  json_obj = json.loads(result)
@@ -3293,7 +4385,7 @@ def doDescribeDevicePositionList(args, parsed_globals):
3293
4385
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3294
4386
 
3295
4387
 
3296
- def doBindDevices(args, parsed_globals):
4388
+ def doGetGatewaySubDeviceList(args, parsed_globals):
3297
4389
  g_param = parse_global_arg(parsed_globals)
3298
4390
 
3299
4391
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3322,11 +4414,11 @@ def doBindDevices(args, parsed_globals):
3322
4414
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3323
4415
  client._sdkVersion += ("_CLI_" + __version__)
3324
4416
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
- model = models.BindDevicesRequest()
4417
+ model = models.GetGatewaySubDeviceListRequest()
3326
4418
  model.from_json_string(json.dumps(args))
3327
4419
  start_time = time.time()
3328
4420
  while True:
3329
- rsp = client.BindDevices(model)
4421
+ rsp = client.GetGatewaySubDeviceList(model)
3330
4422
  result = rsp.to_json_string()
3331
4423
  try:
3332
4424
  json_obj = json.loads(result)
@@ -3345,7 +4437,7 @@ def doBindDevices(args, parsed_globals):
3345
4437
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
4438
 
3347
4439
 
3348
- def doCreateBatchProduction(args, parsed_globals):
4440
+ def doDescribeBatchProduction(args, parsed_globals):
3349
4441
  g_param = parse_global_arg(parsed_globals)
3350
4442
 
3351
4443
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3374,11 +4466,11 @@ def doCreateBatchProduction(args, parsed_globals):
3374
4466
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3375
4467
  client._sdkVersion += ("_CLI_" + __version__)
3376
4468
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3377
- model = models.CreateBatchProductionRequest()
4469
+ model = models.DescribeBatchProductionRequest()
3378
4470
  model.from_json_string(json.dumps(args))
3379
4471
  start_time = time.time()
3380
4472
  while True:
3381
- rsp = client.CreateBatchProduction(model)
4473
+ rsp = client.DescribeBatchProduction(model)
3382
4474
  result = rsp.to_json_string()
3383
4475
  try:
3384
4476
  json_obj = json.loads(result)
@@ -3397,7 +4489,7 @@ def doCreateBatchProduction(args, parsed_globals):
3397
4489
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3398
4490
 
3399
4491
 
3400
- def doDisableTopicRule(args, parsed_globals):
4492
+ def doDeleteCloudStorageEvent(args, parsed_globals):
3401
4493
  g_param = parse_global_arg(parsed_globals)
3402
4494
 
3403
4495
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3426,11 +4518,11 @@ def doDisableTopicRule(args, parsed_globals):
3426
4518
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3427
4519
  client._sdkVersion += ("_CLI_" + __version__)
3428
4520
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3429
- model = models.DisableTopicRuleRequest()
4521
+ model = models.DeleteCloudStorageEventRequest()
3430
4522
  model.from_json_string(json.dumps(args))
3431
4523
  start_time = time.time()
3432
4524
  while True:
3433
- rsp = client.DisableTopicRule(model)
4525
+ rsp = client.DeleteCloudStorageEvent(model)
3434
4526
  result = rsp.to_json_string()
3435
4527
  try:
3436
4528
  json_obj = json.loads(result)
@@ -3449,7 +4541,7 @@ def doDisableTopicRule(args, parsed_globals):
3449
4541
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
4542
 
3451
4543
 
3452
- def doGetFamilyDeviceUserList(args, parsed_globals):
4544
+ def doDeleteDevices(args, parsed_globals):
3453
4545
  g_param = parse_global_arg(parsed_globals)
3454
4546
 
3455
4547
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3478,11 +4570,11 @@ def doGetFamilyDeviceUserList(args, parsed_globals):
3478
4570
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3479
4571
  client._sdkVersion += ("_CLI_" + __version__)
3480
4572
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3481
- model = models.GetFamilyDeviceUserListRequest()
4573
+ model = models.DeleteDevicesRequest()
3482
4574
  model.from_json_string(json.dumps(args))
3483
4575
  start_time = time.time()
3484
4576
  while True:
3485
- rsp = client.GetFamilyDeviceUserList(model)
4577
+ rsp = client.DeleteDevices(model)
3486
4578
  result = rsp.to_json_string()
3487
4579
  try:
3488
4580
  json_obj = json.loads(result)
@@ -3501,7 +4593,7 @@ def doGetFamilyDeviceUserList(args, parsed_globals):
3501
4593
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
4594
 
3503
4595
 
3504
- def doGetStudioProductList(args, parsed_globals):
4596
+ def doDescribeCloudStorageMultiThumbnail(args, parsed_globals):
3505
4597
  g_param = parse_global_arg(parsed_globals)
3506
4598
 
3507
4599
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3530,11 +4622,11 @@ def doGetStudioProductList(args, parsed_globals):
3530
4622
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3531
4623
  client._sdkVersion += ("_CLI_" + __version__)
3532
4624
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3533
- model = models.GetStudioProductListRequest()
4625
+ model = models.DescribeCloudStorageMultiThumbnailRequest()
3534
4626
  model.from_json_string(json.dumps(args))
3535
4627
  start_time = time.time()
3536
4628
  while True:
3537
- rsp = client.GetStudioProductList(model)
4629
+ rsp = client.DescribeCloudStorageMultiThumbnail(model)
3538
4630
  result = rsp.to_json_string()
3539
4631
  try:
3540
4632
  json_obj = json.loads(result)
@@ -3553,7 +4645,7 @@ def doGetStudioProductList(args, parsed_globals):
3553
4645
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
4646
 
3555
4647
 
3556
- def doDescribeBatchProduction(args, parsed_globals):
4648
+ def doDescribeCloudStorageOrder(args, parsed_globals):
3557
4649
  g_param = parse_global_arg(parsed_globals)
3558
4650
 
3559
4651
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3582,11 +4674,11 @@ def doDescribeBatchProduction(args, parsed_globals):
3582
4674
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3583
4675
  client._sdkVersion += ("_CLI_" + __version__)
3584
4676
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3585
- model = models.DescribeBatchProductionRequest()
4677
+ model = models.DescribeCloudStorageOrderRequest()
3586
4678
  model.from_json_string(json.dumps(args))
3587
4679
  start_time = time.time()
3588
4680
  while True:
3589
- rsp = client.DescribeBatchProduction(model)
4681
+ rsp = client.DescribeCloudStorageOrder(model)
3590
4682
  result = rsp.to_json_string()
3591
4683
  try:
3592
4684
  json_obj = json.loads(result)
@@ -3605,7 +4697,7 @@ def doDescribeBatchProduction(args, parsed_globals):
3605
4697
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3606
4698
 
3607
4699
 
3608
- def doDeleteDevices(args, parsed_globals):
4700
+ def doPublishMessage(args, parsed_globals):
3609
4701
  g_param = parse_global_arg(parsed_globals)
3610
4702
 
3611
4703
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3634,11 +4726,11 @@ def doDeleteDevices(args, parsed_globals):
3634
4726
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3635
4727
  client._sdkVersion += ("_CLI_" + __version__)
3636
4728
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3637
- model = models.DeleteDevicesRequest()
4729
+ model = models.PublishMessageRequest()
3638
4730
  model.from_json_string(json.dumps(args))
3639
4731
  start_time = time.time()
3640
4732
  while True:
3641
- rsp = client.DeleteDevices(model)
4733
+ rsp = client.PublishMessage(model)
3642
4734
  result = rsp.to_json_string()
3643
4735
  try:
3644
4736
  json_obj = json.loads(result)
@@ -3657,7 +4749,7 @@ def doDeleteDevices(args, parsed_globals):
3657
4749
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3658
4750
 
3659
4751
 
3660
- def doGetGatewaySubDeviceList(args, parsed_globals):
4752
+ def doDescribeDeviceDataHistory(args, parsed_globals):
3661
4753
  g_param = parse_global_arg(parsed_globals)
3662
4754
 
3663
4755
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3686,11 +4778,11 @@ def doGetGatewaySubDeviceList(args, parsed_globals):
3686
4778
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3687
4779
  client._sdkVersion += ("_CLI_" + __version__)
3688
4780
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3689
- model = models.GetGatewaySubDeviceListRequest()
4781
+ model = models.DescribeDeviceDataHistoryRequest()
3690
4782
  model.from_json_string(json.dumps(args))
3691
4783
  start_time = time.time()
3692
4784
  while True:
3693
- rsp = client.GetGatewaySubDeviceList(model)
4785
+ rsp = client.DescribeDeviceDataHistory(model)
3694
4786
  result = rsp.to_json_string()
3695
4787
  try:
3696
4788
  json_obj = json.loads(result)
@@ -3709,7 +4801,7 @@ def doGetGatewaySubDeviceList(args, parsed_globals):
3709
4801
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3710
4802
 
3711
4803
 
3712
- def doListEventHistory(args, parsed_globals):
4804
+ def doModifyPositionFence(args, parsed_globals):
3713
4805
  g_param = parse_global_arg(parsed_globals)
3714
4806
 
3715
4807
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3738,11 +4830,11 @@ def doListEventHistory(args, parsed_globals):
3738
4830
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3739
4831
  client._sdkVersion += ("_CLI_" + __version__)
3740
4832
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3741
- model = models.ListEventHistoryRequest()
4833
+ model = models.ModifyPositionFenceRequest()
3742
4834
  model.from_json_string(json.dumps(args))
3743
4835
  start_time = time.time()
3744
4836
  while True:
3745
- rsp = client.ListEventHistory(model)
4837
+ rsp = client.ModifyPositionFence(model)
3746
4838
  result = rsp.to_json_string()
3747
4839
  try:
3748
4840
  json_obj = json.loads(result)
@@ -3761,7 +4853,7 @@ def doListEventHistory(args, parsed_globals):
3761
4853
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3762
4854
 
3763
4855
 
3764
- def doDescribeDeviceDataHistory(args, parsed_globals):
4856
+ def doDescribeStudioProduct(args, parsed_globals):
3765
4857
  g_param = parse_global_arg(parsed_globals)
3766
4858
 
3767
4859
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3790,11 +4882,11 @@ def doDescribeDeviceDataHistory(args, parsed_globals):
3790
4882
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3791
4883
  client._sdkVersion += ("_CLI_" + __version__)
3792
4884
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3793
- model = models.DescribeDeviceDataHistoryRequest()
4885
+ model = models.DescribeStudioProductRequest()
3794
4886
  model.from_json_string(json.dumps(args))
3795
4887
  start_time = time.time()
3796
4888
  while True:
3797
- rsp = client.DescribeDeviceDataHistory(model)
4889
+ rsp = client.DescribeStudioProduct(model)
3798
4890
  result = rsp.to_json_string()
3799
4891
  try:
3800
4892
  json_obj = json.loads(result)
@@ -3813,7 +4905,7 @@ def doDescribeDeviceDataHistory(args, parsed_globals):
3813
4905
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3814
4906
 
3815
4907
 
3816
- def doModifyPositionFence(args, parsed_globals):
4908
+ def doDescribePositionFenceList(args, parsed_globals):
3817
4909
  g_param = parse_global_arg(parsed_globals)
3818
4910
 
3819
4911
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3842,11 +4934,11 @@ def doModifyPositionFence(args, parsed_globals):
3842
4934
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3843
4935
  client._sdkVersion += ("_CLI_" + __version__)
3844
4936
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3845
- model = models.ModifyPositionFenceRequest()
4937
+ model = models.DescribePositionFenceListRequest()
3846
4938
  model.from_json_string(json.dumps(args))
3847
4939
  start_time = time.time()
3848
4940
  while True:
3849
- rsp = client.ModifyPositionFence(model)
4941
+ rsp = client.DescribePositionFenceList(model)
3850
4942
  result = rsp.to_json_string()
3851
4943
  try:
3852
4944
  json_obj = json.loads(result)
@@ -3865,7 +4957,7 @@ def doModifyPositionFence(args, parsed_globals):
3865
4957
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3866
4958
 
3867
4959
 
3868
- def doDescribeStudioProduct(args, parsed_globals):
4960
+ def doDeleteLoRaFrequency(args, parsed_globals):
3869
4961
  g_param = parse_global_arg(parsed_globals)
3870
4962
 
3871
4963
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3894,11 +4986,11 @@ def doDescribeStudioProduct(args, parsed_globals):
3894
4986
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3895
4987
  client._sdkVersion += ("_CLI_" + __version__)
3896
4988
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3897
- model = models.DescribeStudioProductRequest()
4989
+ model = models.DeleteLoRaFrequencyRequest()
3898
4990
  model.from_json_string(json.dumps(args))
3899
4991
  start_time = time.time()
3900
4992
  while True:
3901
- rsp = client.DescribeStudioProduct(model)
4993
+ rsp = client.DeleteLoRaFrequency(model)
3902
4994
  result = rsp.to_json_string()
3903
4995
  try:
3904
4996
  json_obj = json.loads(result)
@@ -3917,7 +5009,7 @@ def doDescribeStudioProduct(args, parsed_globals):
3917
5009
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3918
5010
 
3919
5011
 
3920
- def doDescribePositionFenceList(args, parsed_globals):
5012
+ def doDescribePackageConsumeTask(args, parsed_globals):
3921
5013
  g_param = parse_global_arg(parsed_globals)
3922
5014
 
3923
5015
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3946,11 +5038,11 @@ def doDescribePositionFenceList(args, parsed_globals):
3946
5038
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3947
5039
  client._sdkVersion += ("_CLI_" + __version__)
3948
5040
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3949
- model = models.DescribePositionFenceListRequest()
5041
+ model = models.DescribePackageConsumeTaskRequest()
3950
5042
  model.from_json_string(json.dumps(args))
3951
5043
  start_time = time.time()
3952
5044
  while True:
3953
- rsp = client.DescribePositionFenceList(model)
5045
+ rsp = client.DescribePackageConsumeTask(model)
3954
5046
  result = rsp.to_json_string()
3955
5047
  try:
3956
5048
  json_obj = json.loads(result)
@@ -3969,7 +5061,7 @@ def doDescribePositionFenceList(args, parsed_globals):
3969
5061
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3970
5062
 
3971
5063
 
3972
- def doDeleteLoRaFrequency(args, parsed_globals):
5064
+ def doResetCloudStorageEvent(args, parsed_globals):
3973
5065
  g_param = parse_global_arg(parsed_globals)
3974
5066
 
3975
5067
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3998,11 +5090,11 @@ def doDeleteLoRaFrequency(args, parsed_globals):
3998
5090
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
3999
5091
  client._sdkVersion += ("_CLI_" + __version__)
4000
5092
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4001
- model = models.DeleteLoRaFrequencyRequest()
5093
+ model = models.ResetCloudStorageEventRequest()
4002
5094
  model.from_json_string(json.dumps(args))
4003
5095
  start_time = time.time()
4004
5096
  while True:
4005
- rsp = client.DeleteLoRaFrequency(model)
5097
+ rsp = client.ResetCloudStorageEvent(model)
4006
5098
  result = rsp.to_json_string()
4007
5099
  try:
4008
5100
  json_obj = json.loads(result)
@@ -4489,6 +5581,58 @@ def doSearchTopicRule(args, parsed_globals):
4489
5581
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4490
5582
 
4491
5583
 
5584
+ def doDescribeCloudStorageEvents(args, parsed_globals):
5585
+ g_param = parse_global_arg(parsed_globals)
5586
+
5587
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5588
+ cred = credential.CVMRoleCredential()
5589
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5590
+ cred = credential.STSAssumeRoleCredential(
5591
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5592
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5593
+ )
5594
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5595
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5596
+ else:
5597
+ cred = credential.Credential(
5598
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5599
+ )
5600
+ http_profile = HttpProfile(
5601
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5602
+ reqMethod="POST",
5603
+ endpoint=g_param[OptionsDefine.Endpoint],
5604
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5605
+ )
5606
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5607
+ if g_param[OptionsDefine.Language]:
5608
+ profile.language = g_param[OptionsDefine.Language]
5609
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5610
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
5611
+ client._sdkVersion += ("_CLI_" + __version__)
5612
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5613
+ model = models.DescribeCloudStorageEventsRequest()
5614
+ model.from_json_string(json.dumps(args))
5615
+ start_time = time.time()
5616
+ while True:
5617
+ rsp = client.DescribeCloudStorageEvents(model)
5618
+ result = rsp.to_json_string()
5619
+ try:
5620
+ json_obj = json.loads(result)
5621
+ except TypeError as e:
5622
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5623
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5624
+ break
5625
+ cur_time = time.time()
5626
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5627
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5628
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5629
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5630
+ else:
5631
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5632
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5633
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5634
+
5635
+
4492
5636
  def doModifyModelDefinition(args, parsed_globals):
4493
5637
  g_param = parse_global_arg(parsed_globals)
4494
5638
 
@@ -4645,7 +5789,7 @@ def doDescribeProject(args, parsed_globals):
4645
5789
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4646
5790
 
4647
5791
 
4648
- def doDescribeModelDefinition(args, parsed_globals):
5792
+ def doBindCloudStorageUser(args, parsed_globals):
4649
5793
  g_param = parse_global_arg(parsed_globals)
4650
5794
 
4651
5795
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4674,11 +5818,11 @@ def doDescribeModelDefinition(args, parsed_globals):
4674
5818
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
4675
5819
  client._sdkVersion += ("_CLI_" + __version__)
4676
5820
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4677
- model = models.DescribeModelDefinitionRequest()
5821
+ model = models.BindCloudStorageUserRequest()
4678
5822
  model.from_json_string(json.dumps(args))
4679
5823
  start_time = time.time()
4680
5824
  while True:
4681
- rsp = client.DescribeModelDefinition(model)
5825
+ rsp = client.BindCloudStorageUser(model)
4682
5826
  result = rsp.to_json_string()
4683
5827
  try:
4684
5828
  json_obj = json.loads(result)
@@ -4853,6 +5997,58 @@ def doCreateFenceBind(args, parsed_globals):
4853
5997
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4854
5998
 
4855
5999
 
6000
+ def doDescribeCloudStoragePackageConsumeDetails(args, parsed_globals):
6001
+ g_param = parse_global_arg(parsed_globals)
6002
+
6003
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6004
+ cred = credential.CVMRoleCredential()
6005
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6006
+ cred = credential.STSAssumeRoleCredential(
6007
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6008
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6009
+ )
6010
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6011
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6012
+ else:
6013
+ cred = credential.Credential(
6014
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6015
+ )
6016
+ http_profile = HttpProfile(
6017
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6018
+ reqMethod="POST",
6019
+ endpoint=g_param[OptionsDefine.Endpoint],
6020
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6021
+ )
6022
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6023
+ if g_param[OptionsDefine.Language]:
6024
+ profile.language = g_param[OptionsDefine.Language]
6025
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6026
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
6027
+ client._sdkVersion += ("_CLI_" + __version__)
6028
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6029
+ model = models.DescribeCloudStoragePackageConsumeDetailsRequest()
6030
+ model.from_json_string(json.dumps(args))
6031
+ start_time = time.time()
6032
+ while True:
6033
+ rsp = client.DescribeCloudStoragePackageConsumeDetails(model)
6034
+ result = rsp.to_json_string()
6035
+ try:
6036
+ json_obj = json.loads(result)
6037
+ except TypeError as e:
6038
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6039
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6040
+ break
6041
+ cur_time = time.time()
6042
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6043
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6044
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6045
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6046
+ else:
6047
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6048
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6049
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6050
+
6051
+
4856
6052
  CLIENT_MAP = {
4857
6053
  "v20190423": iotexplorer_client_v20190423,
4858
6054
 
@@ -4866,6 +6062,7 @@ MODELS_MAP = {
4866
6062
  ACTION_MAP = {
4867
6063
  "GetCOSURL": doGetCOSURL,
4868
6064
  "ModifyStudioProduct": doModifyStudioProduct,
6065
+ "DescribeDevicePackages": doDescribeDevicePackages,
4869
6066
  "DescribeDevice": doDescribeDevice,
4870
6067
  "DescribeTopicPolicy": doDescribeTopicPolicy,
4871
6068
  "GetProjectList": doGetProjectList,
@@ -4873,37 +6070,50 @@ ACTION_MAP = {
4873
6070
  "DescribeGatewayBindDevices": doDescribeGatewayBindDevices,
4874
6071
  "DeleteStudioProduct": doDeleteStudioProduct,
4875
6072
  "DescribeDeviceLocationSolve": doDescribeDeviceLocationSolve,
6073
+ "GenerateSignedVideoURL": doGenerateSignedVideoURL,
4876
6074
  "DescribeDeviceBindGateway": doDescribeDeviceBindGateway,
4877
6075
  "GetDeviceLocationHistory": doGetDeviceLocationHistory,
4878
- "PublishMessage": doPublishMessage,
6076
+ "ListEventHistory": doListEventHistory,
4879
6077
  "DeleteDevice": doDeleteDevice,
4880
6078
  "GetLoRaGatewayList": doGetLoRaGatewayList,
4881
6079
  "ReleaseStudioProduct": doReleaseStudioProduct,
6080
+ "DescribeCloudStorageThumbnailList": doDescribeCloudStorageThumbnailList,
4882
6081
  "ModifyFenceBind": doModifyFenceBind,
6082
+ "DescribePackageConsumeTasks": doDescribePackageConsumeTasks,
6083
+ "DescribeCloudStoragePackageConsumeStats": doDescribeCloudStoragePackageConsumeStats,
4883
6084
  "DeletePositionSpace": doDeletePositionSpace,
4884
6085
  "DescribeBindedProducts": doDescribeBindedProducts,
4885
6086
  "ModifyLoRaGateway": doModifyLoRaGateway,
4886
6087
  "ControlDeviceData": doControlDeviceData,
6088
+ "CreateIotVideoCloudStorage": doCreateIotVideoCloudStorage,
4887
6089
  "DeleteTopicRule": doDeleteTopicRule,
4888
6090
  "PublishRRPCMessage": doPublishRRPCMessage,
4889
- "SearchPositionSpace": doSearchPositionSpace,
6091
+ "DescribeFenceBindList": doDescribeFenceBindList,
4890
6092
  "DeleteLoRaGateway": doDeleteLoRaGateway,
4891
6093
  "CreateStudioProduct": doCreateStudioProduct,
6094
+ "DescribeCloudStorageDate": doDescribeCloudStorageDate,
4892
6095
  "EnableTopicRule": doEnableTopicRule,
4893
6096
  "DescribeGatewaySubDeviceList": doDescribeGatewaySubDeviceList,
6097
+ "DescribeCloudStorageUsers": doDescribeCloudStorageUsers,
6098
+ "TransferCloudStorage": doTransferCloudStorage,
4894
6099
  "SearchStudioProduct": doSearchStudioProduct,
4895
6100
  "ModifyTopicRule": doModifyTopicRule,
6101
+ "InheritCloudStorageUser": doInheritCloudStorageUser,
4896
6102
  "ListFirmwares": doListFirmwares,
4897
6103
  "CreateDevice": doCreateDevice,
4898
6104
  "DeleteFenceBind": doDeleteFenceBind,
4899
6105
  "DescribeFenceEventList": doDescribeFenceEventList,
4900
6106
  "DescribeFirmwareTask": doDescribeFirmwareTask,
4901
6107
  "GetPositionSpaceList": doGetPositionSpaceList,
6108
+ "ResetCloudStorage": doResetCloudStorage,
4902
6109
  "DescribeLoRaFrequency": doDescribeLoRaFrequency,
4903
6110
  "ModifyPositionSpace": doModifyPositionSpace,
6111
+ "DescribeCloudStorageTime": doDescribeCloudStorageTime,
4904
6112
  "GetTopicRuleList": doGetTopicRuleList,
6113
+ "DescribeCloudStorageThumbnail": doDescribeCloudStorageThumbnail,
4905
6114
  "CreateProject": doCreateProject,
4906
6115
  "CallDeviceActionAsync": doCallDeviceActionAsync,
6116
+ "DescribeCloudStorageStreamData": doDescribeCloudStorageStreamData,
4907
6117
  "GetDeviceSumStatistics": doGetDeviceSumStatistics,
4908
6118
  "DeleteProject": doDeleteProject,
4909
6119
  "DescribeTopicRule": doDescribeTopicRule,
@@ -4917,11 +6127,12 @@ ACTION_MAP = {
4917
6127
  "CreateTopicRule": doCreateTopicRule,
4918
6128
  "CreateLoRaFrequency": doCreateLoRaFrequency,
4919
6129
  "CreateTopicPolicy": doCreateTopicPolicy,
6130
+ "DescribeCloudStorage": doDescribeCloudStorage,
4920
6131
  "UploadFirmware": doUploadFirmware,
4921
6132
  "UpdateDevicesEnableState": doUpdateDevicesEnableState,
4922
6133
  "ModifyProject": doModifyProject,
4923
6134
  "BindProducts": doBindProducts,
4924
- "DescribeFenceBindList": doDescribeFenceBindList,
6135
+ "SearchPositionSpace": doSearchPositionSpace,
4925
6136
  "ModifyTopicPolicy": doModifyTopicPolicy,
4926
6137
  "DescribeSpaceFenceEventList": doDescribeSpaceFenceEventList,
4927
6138
  "UpdateFirmware": doUpdateFirmware,
@@ -4932,15 +6143,21 @@ ACTION_MAP = {
4932
6143
  "DisableTopicRule": doDisableTopicRule,
4933
6144
  "GetFamilyDeviceUserList": doGetFamilyDeviceUserList,
4934
6145
  "GetStudioProductList": doGetStudioProductList,
6146
+ "DescribeModelDefinition": doDescribeModelDefinition,
6147
+ "GetGatewaySubDeviceList": doGetGatewaySubDeviceList,
4935
6148
  "DescribeBatchProduction": doDescribeBatchProduction,
6149
+ "DeleteCloudStorageEvent": doDeleteCloudStorageEvent,
4936
6150
  "DeleteDevices": doDeleteDevices,
4937
- "GetGatewaySubDeviceList": doGetGatewaySubDeviceList,
4938
- "ListEventHistory": doListEventHistory,
6151
+ "DescribeCloudStorageMultiThumbnail": doDescribeCloudStorageMultiThumbnail,
6152
+ "DescribeCloudStorageOrder": doDescribeCloudStorageOrder,
6153
+ "PublishMessage": doPublishMessage,
4939
6154
  "DescribeDeviceDataHistory": doDescribeDeviceDataHistory,
4940
6155
  "ModifyPositionFence": doModifyPositionFence,
4941
6156
  "DescribeStudioProduct": doDescribeStudioProduct,
4942
6157
  "DescribePositionFenceList": doDescribePositionFenceList,
4943
6158
  "DeleteLoRaFrequency": doDeleteLoRaFrequency,
6159
+ "DescribePackageConsumeTask": doDescribePackageConsumeTask,
6160
+ "ResetCloudStorageEvent": doResetCloudStorageEvent,
4944
6161
  "ModifySpaceProperty": doModifySpaceProperty,
4945
6162
  "DeleteTopicPolicy": doDeleteTopicPolicy,
4946
6163
  "GetDeviceList": doGetDeviceList,
@@ -4950,13 +6167,15 @@ ACTION_MAP = {
4950
6167
  "ModifyLoRaFrequency": doModifyLoRaFrequency,
4951
6168
  "DeletePositionFence": doDeletePositionFence,
4952
6169
  "SearchTopicRule": doSearchTopicRule,
6170
+ "DescribeCloudStorageEvents": doDescribeCloudStorageEvents,
4953
6171
  "ModifyModelDefinition": doModifyModelDefinition,
4954
6172
  "UnbindDevices": doUnbindDevices,
4955
6173
  "DescribeProject": doDescribeProject,
4956
- "DescribeModelDefinition": doDescribeModelDefinition,
6174
+ "BindCloudStorageUser": doBindCloudStorageUser,
4957
6175
  "CreatePositionSpace": doCreatePositionSpace,
4958
6176
  "DescribeDeviceFirmWare": doDescribeDeviceFirmWare,
4959
6177
  "CreateFenceBind": doCreateFenceBind,
6178
+ "DescribeCloudStoragePackageConsumeDetails": doDescribeCloudStoragePackageConsumeDetails,
4960
6179
 
4961
6180
  }
4962
6181