tccli 3.0.1084.1__py2.py3-none-any.whl → 3.0.1086.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 (213) 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/ckafka/v20190819/CreateInstancePost.md +9 -6
  12. tccli/examples/ckafka/v20190819/CreatePrometheus.md +29 -0
  13. tccli/examples/ckafka/v20190819/DescribePrometheus.md +25 -0
  14. tccli/examples/cynosdb/v20190107/RollbackToNewCluster.md +62 -0
  15. tccli/examples/dlc/v20210125/QueryTaskCostDetail.md +20 -0
  16. tccli/examples/essbasic/v20210526/ChannelCreateReleaseFlow.md +1 -1
  17. tccli/examples/faceid/v20180301/GetFaceIdResult.md +4 -4
  18. tccli/examples/iotexplorer/v20190423/BindCloudStorageUser.md +22 -0
  19. tccli/examples/iotexplorer/v20190423/CreateIotVideoCloudStorage.md +22 -0
  20. tccli/examples/iotexplorer/v20190423/DeleteCloudStorageEvent.md +26 -0
  21. tccli/examples/iotexplorer/v20190423/DescribeCloudStorage.md +27 -0
  22. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageDate.md +24 -0
  23. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageEvents.md +87 -0
  24. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageMultiThumbnail.md +28 -0
  25. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageOrder.md +25 -0
  26. tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeDetails.md +21 -0
  27. tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeStats.md +44 -0
  28. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageStreamData.md +24 -0
  29. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnail.md +24 -0
  30. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnailList.md +28 -0
  31. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageTime.md +43 -0
  32. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageUsers.md +29 -0
  33. tccli/examples/iotexplorer/v20190423/DescribeDevicePackages.md +37 -0
  34. tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTask.md +21 -0
  35. tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTasks.md +39 -0
  36. tccli/examples/iotexplorer/v20190423/GenerateSignedVideoURL.md +22 -0
  37. tccli/examples/iotexplorer/v20190423/InheritCloudStorageUser.md +23 -0
  38. tccli/examples/iotexplorer/v20190423/ResetCloudStorage.md +21 -0
  39. tccli/examples/iotexplorer/v20190423/ResetCloudStorageEvent.md +22 -0
  40. tccli/examples/iotexplorer/v20190423/TransferCloudStorage.md +22 -0
  41. tccli/examples/monitor/v20180724/CreateExporterIntegration.md +626 -2
  42. tccli/examples/ocr/v20181119/ReconstructDocument.md +2263 -0
  43. tccli/examples/pts/v20210728/CreateEnvironment.md +18 -0
  44. tccli/examples/pts/v20210728/DeleteEnvironments.md +18 -0
  45. tccli/examples/pts/v20210728/DescribeEnvironments.md +18 -0
  46. tccli/examples/pts/v20210728/UpdateEnvironment.md +18 -0
  47. tccli/examples/redis/v20180412/DescribeInstanceEvents.md +45 -0
  48. tccli/examples/redis/v20180412/ModifyInstanceEvent.md +25 -0
  49. tccli/examples/ssl/v20191205/UploadCertificate.md +48 -3
  50. tccli/examples/tag/v20180813/DescribeProjects.md +1 -1
  51. tccli/examples/tione/v20211111/CreateModelService.md +3 -1
  52. tccli/examples/tione/v20211111/ModifyModelService.md +62 -228
  53. tccli/examples/vrs/v20200824/DetectEnvAndSoundQuality.md +12 -4
  54. tccli/examples/wedata/v20210820/BatchCreateIntegrationTaskAlarms.md +11 -11
  55. tccli/examples/wedata/v20210820/BatchForceSuccessIntegrationTaskInstances.md +2 -2
  56. tccli/examples/wedata/v20210820/BatchKillIntegrationTaskInstances.md +2 -2
  57. tccli/examples/wedata/v20210820/BatchMakeUpIntegrationTasks.md +2 -2
  58. tccli/examples/wedata/v20210820/BatchRerunIntegrationTaskInstances.md +5 -2
  59. tccli/examples/wedata/v20210820/CheckDuplicateRuleName.md +5 -5
  60. tccli/examples/wedata/v20210820/CheckDuplicateTemplateName.md +4 -4
  61. tccli/examples/wedata/v20210820/CheckIntegrationNodeNameExists.md +4 -4
  62. tccli/examples/wedata/v20210820/CheckIntegrationTaskNameExists.md +4 -4
  63. tccli/examples/wedata/v20210820/CheckTaskNameExist.md +3 -3
  64. tccli/examples/wedata/v20210820/CommitExportTask.md +4 -4
  65. tccli/examples/wedata/v20210820/CreateInLongAgent.md +6 -6
  66. tccli/examples/wedata/v20210820/CreateOrUpdateResource.md +2 -1
  67. tccli/examples/wedata/v20210820/CreateRuleTemplate.md +1 -1
  68. tccli/examples/wedata/v20210820/CreateTaskAlarmRegular.md +11 -11
  69. tccli/examples/wedata/v20210820/DeleteInLongAgent.md +3 -3
  70. tccli/examples/wedata/v20210820/DeleteIntegrationNode.md +2 -2
  71. tccli/examples/wedata/v20210820/DeleteOfflineTask.md +4 -4
  72. tccli/examples/wedata/v20210820/DeleteRule.md +1 -1
  73. tccli/examples/wedata/v20210820/DeleteRuleTemplate.md +1 -1
  74. tccli/examples/wedata/v20210820/DescribeClusterNamespaceList.md +6 -6
  75. tccli/examples/wedata/v20210820/DescribeDataBases.md +12 -8
  76. tccli/examples/wedata/v20210820/DescribeDataCheckStat.md +5 -5
  77. tccli/examples/wedata/v20210820/DescribeDataObjects.md +6 -3
  78. tccli/examples/wedata/v20210820/DescribeExecStrategy.md +20 -16
  79. tccli/examples/wedata/v20210820/DescribeInLongAgentTaskList.md +6 -6
  80. tccli/examples/wedata/v20210820/DescribeInLongAgentVpcList.md +3 -3
  81. tccli/examples/wedata/v20210820/DescribeInstances.md +6 -6
  82. tccli/examples/wedata/v20210820/DescribeIntegrationNode.md +61 -43
  83. tccli/examples/wedata/v20210820/DescribeIntegrationStatistics.md +13 -13
  84. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsAgentStatus.md +6 -6
  85. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsInstanceTrend.md +8 -10
  86. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsRecordsTrend.md +1 -1
  87. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatus.md +5 -5
  88. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatusTrend.md +8 -10
  89. tccli/examples/wedata/v20210820/DescribeMonitorsByPage.md +7 -7
  90. tccli/examples/wedata/v20210820/DescribeOfflineTaskToken.md +3 -3
  91. tccli/examples/wedata/v20210820/DescribeProdTasks.md +6 -5
  92. tccli/examples/wedata/v20210820/DescribeRealTimeTaskInstanceNodeInfo.md +9 -9
  93. tccli/examples/wedata/v20210820/DescribeRealTimeTaskSpeed.md +32 -26
  94. tccli/examples/wedata/v20210820/DescribeRule.md +118 -23
  95. tccli/examples/wedata/v20210820/DescribeRuleDataSources.md +11 -8
  96. tccli/examples/wedata/v20210820/DescribeRuleDimStat.md +3 -3
  97. tccli/examples/wedata/v20210820/DescribeRuleExecDetail.md +48 -41
  98. tccli/examples/wedata/v20210820/DescribeRuleExecExportResult.md +15 -10
  99. tccli/examples/wedata/v20210820/DescribeRuleExecLog.md +2 -2
  100. tccli/examples/wedata/v20210820/DescribeRuleExecResults.md +72 -4
  101. tccli/examples/wedata/v20210820/DescribeRuleExecResultsByPage.md +38 -33
  102. tccli/examples/wedata/v20210820/DescribeRuleExecStat.md +14 -14
  103. tccli/examples/wedata/v20210820/DescribeRuleGroup.md +50 -23
  104. tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPage.md +87 -14
  105. tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPageWithoutAuth.md +81 -12
  106. tccli/examples/wedata/v20210820/DescribeRuleGroupSubscription.md +12 -6
  107. tccli/examples/wedata/v20210820/DescribeRuleGroupTable.md +35 -27
  108. tccli/examples/wedata/v20210820/DescribeRuleGroupsByPage.md +51 -21
  109. tccli/examples/wedata/v20210820/DescribeRuleHistoryByPage.md +9 -9
  110. tccli/examples/wedata/v20210820/DescribeRuleTablesByPage.md +52 -35
  111. tccli/examples/wedata/v20210820/DescribeRuleTemplate.md +33 -16
  112. tccli/examples/wedata/v20210820/DescribeRuleTemplates.md +8 -8
  113. tccli/examples/wedata/v20210820/DescribeRuleTemplatesByPage.md +13 -13
  114. tccli/examples/wedata/v20210820/DescribeRulesByPage.md +123 -28
  115. tccli/examples/wedata/v20210820/DescribeStandardRuleDetailInfoList.md +3 -3
  116. tccli/examples/wedata/v20210820/DescribeTableInfoList.md +9 -2
  117. tccli/examples/wedata/v20210820/DescribeTaskInstance.md +35 -35
  118. tccli/examples/wedata/v20210820/DescribeTaskInstanceReportDetail.md +28 -26
  119. tccli/examples/wedata/v20210820/DescribeTaskLockStatus.md +7 -7
  120. tccli/examples/wedata/v20210820/DescribeTaskReport.md +6 -6
  121. tccli/examples/wedata/v20210820/DescribeTaskReportDetailList.md +17 -17
  122. tccli/examples/wedata/v20210820/DescribeTopTableStat.md +9 -9
  123. tccli/examples/wedata/v20210820/DescribeTrendStat.md +2 -2
  124. tccli/examples/wedata/v20210820/DryRunDIOfflineTask.md +10 -9
  125. tccli/examples/wedata/v20210820/GetIntegrationNodeColumnSchema.md +13 -11
  126. tccli/examples/wedata/v20210820/GetOfflineDIInstanceList.md +26 -26
  127. tccli/examples/wedata/v20210820/LockIntegrationTask.md +4 -4
  128. tccli/examples/wedata/v20210820/ModifyIntegrationNode.md +42 -41
  129. tccli/examples/wedata/v20210820/ModifyIntegrationTask.md +110 -58
  130. tccli/examples/wedata/v20210820/ModifyMonitorStatus.md +4 -4
  131. tccli/examples/wedata/v20210820/ModifyRule.md +24 -24
  132. tccli/examples/wedata/v20210820/ModifyRuleGroupSubscription.md +11 -13
  133. tccli/examples/wedata/v20210820/ModifyTaskAlarmRegular.md +45 -16
  134. tccli/examples/wedata/v20210820/ModifyTaskName.md +5 -5
  135. tccli/examples/wedata/v20210820/RestartInLongAgent.md +3 -3
  136. tccli/examples/wedata/v20210820/RobAndLockIntegrationTask.md +7 -7
  137. tccli/examples/wedata/v20210820/StopIntegrationTask.md +4 -4
  138. tccli/examples/wedata/v20210820/TaskLog.md +5 -15
  139. tccli/examples/wedata/v20210820/UnlockIntegrationTask.md +4 -4
  140. tccli/examples/wedata/v20210820/UpdateInLongAgent.md +5 -5
  141. tccli/services/aiart/aiart_client.py +106 -0
  142. tccli/services/aiart/v20221229/api.json +174 -0
  143. tccli/services/aiart/v20221229/examples.json +16 -0
  144. tccli/services/asr/v20190614/api.json +4 -4
  145. tccli/services/bi/v20220105/api.json +27 -0
  146. tccli/services/billing/v20180709/api.json +365 -130
  147. tccli/services/billing/v20180709/examples.json +4 -4
  148. tccli/services/ccc/ccc_client.py +159 -0
  149. tccli/services/ccc/v20200210/api.json +442 -0
  150. tccli/services/ccc/v20200210/examples.json +24 -0
  151. tccli/services/cdb/v20170320/api.json +3 -3
  152. tccli/services/cdwch/v20200915/api.json +13 -4
  153. tccli/services/cdwdoris/v20211228/api.json +127 -0
  154. tccli/services/cdwpg/v20201230/api.json +9 -0
  155. tccli/services/ckafka/ckafka_client.py +106 -0
  156. tccli/services/ckafka/v20190819/api.json +190 -12
  157. tccli/services/ckafka/v20190819/examples.json +17 -1
  158. tccli/services/clb/v20180317/api.json +2 -2
  159. tccli/services/cloudstudio/v20230508/api.json +40 -4
  160. tccli/services/cls/v20201016/api.json +30 -30
  161. tccli/services/csip/v20221121/api.json +76 -76
  162. tccli/services/cwp/v20180228/api.json +124 -8
  163. tccli/services/cynosdb/cynosdb_client.py +53 -0
  164. tccli/services/cynosdb/v20190107/api.json +255 -0
  165. tccli/services/cynosdb/v20190107/examples.json +8 -0
  166. tccli/services/dlc/dlc_client.py +53 -0
  167. tccli/services/dlc/v20210125/api.json +103 -4
  168. tccli/services/dlc/v20210125/examples.json +8 -0
  169. tccli/services/dsgc/v20190723/api.json +20 -0
  170. tccli/services/dts/v20211206/api.json +56 -2
  171. tccli/services/es/v20180416/api.json +127 -24
  172. tccli/services/ess/v20201111/api.json +20 -20
  173. tccli/services/essbasic/v20210526/api.json +14 -5
  174. tccli/services/essbasic/v20210526/examples.json +1 -1
  175. tccli/services/faceid/v20180301/api.json +23 -13
  176. tccli/services/faceid/v20180301/examples.json +1 -1
  177. tccli/services/iotexplorer/iotexplorer_client.py +1453 -234
  178. tccli/services/iotexplorer/v20190423/api.json +2179 -117
  179. tccli/services/iotexplorer/v20190423/examples.json +184 -0
  180. tccli/services/lcic/v20220817/api.json +62 -4
  181. tccli/services/live/v20180801/api.json +16 -0
  182. tccli/services/monitor/v20180724/examples.json +111 -3
  183. tccli/services/mps/v20190612/api.json +161 -27
  184. tccli/services/ms/v20180408/api.json +14 -14
  185. tccli/services/ocr/ocr_client.py +53 -0
  186. tccli/services/ocr/v20181119/api.json +276 -0
  187. tccli/services/ocr/v20181119/examples.json +8 -0
  188. tccli/services/pts/pts_client.py +212 -0
  189. tccli/services/pts/v20210728/api.json +96 -0
  190. tccli/services/pts/v20210728/examples.json +32 -0
  191. tccli/services/redis/redis_client.py +106 -0
  192. tccli/services/redis/v20180412/api.json +342 -0
  193. tccli/services/redis/v20180412/examples.json +16 -0
  194. tccli/services/ssl/v20191205/examples.json +9 -3
  195. tccli/services/tag/v20180813/examples.json +1 -1
  196. tccli/services/tdmq/v20200217/api.json +45 -0
  197. tccli/services/tione/v20211111/api.json +77 -3
  198. tccli/services/tione/v20211111/examples.json +2 -2
  199. tccli/services/tms/v20201229/api.json +1 -1
  200. tccli/services/tmt/v20180321/api.json +1 -1
  201. tccli/services/trtc/v20190722/api.json +1 -1
  202. tccli/services/tse/v20201207/api.json +286 -42
  203. tccli/services/tts/v20190823/api.json +19 -10
  204. tccli/services/vod/v20180717/api.json +6 -6
  205. tccli/services/vrs/v20200824/api.json +34 -33
  206. tccli/services/vrs/v20200824/examples.json +1 -1
  207. tccli/services/wedata/v20210820/api.json +621 -198
  208. tccli/services/wedata/v20210820/examples.json +146 -146
  209. {tccli-3.0.1084.1.dist-info → tccli-3.0.1086.1.dist-info}/METADATA +2 -2
  210. {tccli-3.0.1084.1.dist-info → tccli-3.0.1086.1.dist-info}/RECORD +213 -174
  211. {tccli-3.0.1084.1.dist-info → tccli-3.0.1086.1.dist-info}/WHEEL +0 -0
  212. {tccli-3.0.1084.1.dist-info → tccli-3.0.1086.1.dist-info}/entry_points.txt +0 -0
  213. {tccli-3.0.1084.1.dist-info → tccli-3.0.1086.1.dist-info}/license_files/LICENSE +0 -0
@@ -480,6 +480,24 @@
480
480
  "name": "CaseSensitive",
481
481
  "required": false,
482
482
  "type": "int"
483
+ },
484
+ {
485
+ "disabled": false,
486
+ "document": "是否开启多可用区",
487
+ "example": "true",
488
+ "member": "bool",
489
+ "name": "EnableMultiZones",
490
+ "required": false,
491
+ "type": "bool"
492
+ },
493
+ {
494
+ "disabled": false,
495
+ "document": "开启多可用区后,用户的所有可用区和子网信息",
496
+ "example": "无",
497
+ "member": "NetworkInfo",
498
+ "name": "UserMultiZoneInfos",
499
+ "required": false,
500
+ "type": "object"
483
501
  }
484
502
  ],
485
503
  "type": "object"
@@ -2173,6 +2191,26 @@
2173
2191
  "output_required": false,
2174
2192
  "type": "list",
2175
2193
  "value_allowed_null": true
2194
+ },
2195
+ {
2196
+ "disabled": false,
2197
+ "document": "是否为多可用区\n注意:此字段可能返回 null,表示取不到有效值。",
2198
+ "example": "false",
2199
+ "member": "bool",
2200
+ "name": "EnableMultiZones",
2201
+ "output_required": false,
2202
+ "type": "bool",
2203
+ "value_allowed_null": true
2204
+ },
2205
+ {
2206
+ "disabled": false,
2207
+ "document": "用户可用区和子网信息\n注意:此字段可能返回 null,表示取不到有效值。",
2208
+ "example": "无",
2209
+ "member": "string",
2210
+ "name": "UserNetworkInfos",
2211
+ "output_required": false,
2212
+ "type": "string",
2213
+ "value_allowed_null": true
2176
2214
  }
2177
2215
  ],
2178
2216
  "usage": "out"
@@ -2329,6 +2367,45 @@
2329
2367
  ],
2330
2368
  "type": "object"
2331
2369
  },
2370
+ "NetworkInfo": {
2371
+ "document": "网络信息",
2372
+ "members": [
2373
+ {
2374
+ "disabled": false,
2375
+ "document": "可用区\n注意:此字段可能返回 null,表示取不到有效值。",
2376
+ "example": "ap-guangzhou-1",
2377
+ "member": "string",
2378
+ "name": "Zone",
2379
+ "output_required": false,
2380
+ "required": false,
2381
+ "type": "string",
2382
+ "value_allowed_null": true
2383
+ },
2384
+ {
2385
+ "disabled": false,
2386
+ "document": "子网id\n注意:此字段可能返回 null,表示取不到有效值。",
2387
+ "example": "subnet-xxxxxxx",
2388
+ "member": "string",
2389
+ "name": "SubnetId",
2390
+ "output_required": false,
2391
+ "required": false,
2392
+ "type": "string",
2393
+ "value_allowed_null": true
2394
+ },
2395
+ {
2396
+ "disabled": false,
2397
+ "document": "当前子网可用ip数\n注意:此字段可能返回 null,表示取不到有效值。",
2398
+ "example": "20",
2399
+ "member": "int64",
2400
+ "name": "SubnetIpNum",
2401
+ "output_required": false,
2402
+ "required": false,
2403
+ "type": "int",
2404
+ "value_allowed_null": true
2405
+ }
2406
+ ],
2407
+ "usage": "both"
2408
+ },
2332
2409
  "NodeInfo": {
2333
2410
  "document": "NodeInfo",
2334
2411
  "members": [
@@ -2351,6 +2428,56 @@
2351
2428
  "output_required": false,
2352
2429
  "type": "int",
2353
2430
  "value_allowed_null": true
2431
+ },
2432
+ {
2433
+ "disabled": false,
2434
+ "document": "节点角色名\n注意:此字段可能返回 null,表示取不到有效值。",
2435
+ "example": "MASTER",
2436
+ "member": "string",
2437
+ "name": "NodeName",
2438
+ "output_required": false,
2439
+ "type": "string",
2440
+ "value_allowed_null": true
2441
+ },
2442
+ {
2443
+ "disabled": false,
2444
+ "document": "组件名\n注意:此字段可能返回 null,表示取不到有效值。",
2445
+ "example": "FE",
2446
+ "member": "string",
2447
+ "name": "ComponentName",
2448
+ "output_required": false,
2449
+ "type": "string",
2450
+ "value_allowed_null": true
2451
+ },
2452
+ {
2453
+ "disabled": false,
2454
+ "document": "节点角色\n注意:此字段可能返回 null,表示取不到有效值。",
2455
+ "example": "core",
2456
+ "member": "string",
2457
+ "name": "NodeRole",
2458
+ "output_required": false,
2459
+ "type": "string",
2460
+ "value_allowed_null": true
2461
+ },
2462
+ {
2463
+ "disabled": false,
2464
+ "document": "节点上次重启的时间\n注意:此字段可能返回 null,表示取不到有效值。",
2465
+ "example": "无",
2466
+ "member": "string",
2467
+ "name": "LastRestartTime",
2468
+ "output_required": false,
2469
+ "type": "string",
2470
+ "value_allowed_null": true
2471
+ },
2472
+ {
2473
+ "disabled": false,
2474
+ "document": "节点所在可用区\n注意:此字段可能返回 null,表示取不到有效值。",
2475
+ "example": "无",
2476
+ "member": "string",
2477
+ "name": "Zone",
2478
+ "output_required": false,
2479
+ "type": "string",
2480
+ "value_allowed_null": true
2354
2481
  }
2355
2482
  ],
2356
2483
  "usage": "out"
@@ -274,6 +274,15 @@
274
274
  "name": "Tags",
275
275
  "required": false,
276
276
  "type": "object"
277
+ },
278
+ {
279
+ "disabled": false,
280
+ "document": "版本",
281
+ "example": "无",
282
+ "member": "string",
283
+ "name": "ProductVersion",
284
+ "required": false,
285
+ "type": "string"
277
286
  }
278
287
  ],
279
288
  "type": "object"
@@ -1057,6 +1057,58 @@ def doModifyDatahubTask(args, parsed_globals):
1057
1057
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
1058
 
1059
1059
 
1060
+ def doDescribePrometheus(args, parsed_globals):
1061
+ g_param = parse_global_arg(parsed_globals)
1062
+
1063
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1064
+ cred = credential.CVMRoleCredential()
1065
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1066
+ cred = credential.STSAssumeRoleCredential(
1067
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1068
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1069
+ )
1070
+ 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):
1071
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1072
+ else:
1073
+ cred = credential.Credential(
1074
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1075
+ )
1076
+ http_profile = HttpProfile(
1077
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1078
+ reqMethod="POST",
1079
+ endpoint=g_param[OptionsDefine.Endpoint],
1080
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1081
+ )
1082
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1083
+ if g_param[OptionsDefine.Language]:
1084
+ profile.language = g_param[OptionsDefine.Language]
1085
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1086
+ client = mod.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
1087
+ client._sdkVersion += ("_CLI_" + __version__)
1088
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1089
+ model = models.DescribePrometheusRequest()
1090
+ model.from_json_string(json.dumps(args))
1091
+ start_time = time.time()
1092
+ while True:
1093
+ rsp = client.DescribePrometheus(model)
1094
+ result = rsp.to_json_string()
1095
+ try:
1096
+ json_obj = json.loads(result)
1097
+ except TypeError as e:
1098
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1099
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1100
+ break
1101
+ cur_time = time.time()
1102
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1103
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1104
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1105
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1106
+ else:
1107
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1108
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1109
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1110
+
1111
+
1060
1112
  def doDescribeDatahubTasks(args, parsed_globals):
1061
1113
  g_param = parse_global_arg(parsed_globals)
1062
1114
 
@@ -2929,6 +2981,58 @@ def doDescribeAppInfo(args, parsed_globals):
2929
2981
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
2982
 
2931
2983
 
2984
+ def doCreatePrometheus(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.CkafkaClient(cred, g_param[OptionsDefine.Region], profile)
3011
+ client._sdkVersion += ("_CLI_" + __version__)
3012
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3013
+ model = models.CreatePrometheusRequest()
3014
+ model.from_json_string(json.dumps(args))
3015
+ start_time = time.time()
3016
+ while True:
3017
+ rsp = client.CreatePrometheus(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
+
2932
3036
  def doInstanceScalingDown(args, parsed_globals):
2933
3037
  g_param = parse_global_arg(parsed_globals)
2934
3038
 
@@ -4260,6 +4364,7 @@ ACTION_MAP = {
4260
4364
  "DeleteConnectResource": doDeleteConnectResource,
4261
4365
  "DescribeGroup": doDescribeGroup,
4262
4366
  "ModifyDatahubTask": doModifyDatahubTask,
4367
+ "DescribePrometheus": doDescribePrometheus,
4263
4368
  "DescribeDatahubTasks": doDescribeDatahubTasks,
4264
4369
  "DescribeInstances": doDescribeInstances,
4265
4370
  "DescribeDatahubTopic": doDescribeDatahubTopic,
@@ -4296,6 +4401,7 @@ ACTION_MAP = {
4296
4401
  "CancelAuthorizationToken": doCancelAuthorizationToken,
4297
4402
  "DeleteAcl": doDeleteAcl,
4298
4403
  "DescribeAppInfo": doDescribeAppInfo,
4404
+ "CreatePrometheus": doCreatePrometheus,
4299
4405
  "InstanceScalingDown": doInstanceScalingDown,
4300
4406
  "DescribeGroupOffsets": doDescribeGroupOffsets,
4301
4407
  "DeleteInstancePre": doDeleteInstancePre,
@@ -119,6 +119,13 @@
119
119
  "output": "CreatePostPaidInstanceResponse",
120
120
  "status": "online"
121
121
  },
122
+ "CreatePrometheus": {
123
+ "document": "添加普罗米修斯监控1",
124
+ "input": "CreatePrometheusRequest",
125
+ "name": "添加普罗米修斯监控",
126
+ "output": "CreatePrometheusResponse",
127
+ "status": "online"
128
+ },
122
129
  "CreateRoute": {
123
130
  "document": "添加实例路由",
124
131
  "input": "CreateRouteRequest",
@@ -371,6 +378,13 @@
371
378
  "output": "DescribeInstancesDetailResponse",
372
379
  "status": "online"
373
380
  },
381
+ "DescribePrometheus": {
382
+ "document": "获取实例Prometheus信息",
383
+ "input": "DescribePrometheusRequest",
384
+ "name": "获取实例Prometheus信息",
385
+ "output": "DescribePrometheusResponse",
386
+ "status": "online"
387
+ },
374
388
  "DescribeRegion": {
375
389
  "document": "枚举地域,只支持广州地域",
376
390
  "input": "DescribeRegionRequest",
@@ -3396,22 +3410,13 @@
3396
3410
  "required": true,
3397
3411
  "type": "string"
3398
3412
  },
3399
- {
3400
- "disabled": false,
3401
- "document": "实例内网峰值带宽。单位 MB/s。标准版需传入当前实例规格所对应的峰值带宽。注意如果创建的实例为专业版实例,峰值带宽,分区数等参数配置需要满足专业版的计费规格。",
3402
- "example": "20",
3403
- "member": "int64",
3404
- "name": "BandWidth",
3405
- "required": true,
3406
- "type": "int"
3407
- },
3408
3413
  {
3409
3414
  "disabled": false,
3410
3415
  "document": "创建的实例默认接入点所在的 vpc 对应 vpcId。目前不支持创建基础网络实例,因此该参数必填",
3411
3416
  "example": "vpc-xxxxxxxx",
3412
3417
  "member": "string",
3413
3418
  "name": "VpcId",
3414
- "required": false,
3419
+ "required": true,
3415
3420
  "type": "string"
3416
3421
  },
3417
3422
  {
@@ -3420,9 +3425,18 @@
3420
3425
  "example": "subnet-xxxxxxxx",
3421
3426
  "member": "string",
3422
3427
  "name": "SubnetId",
3423
- "required": false,
3428
+ "required": true,
3424
3429
  "type": "string"
3425
3430
  },
3431
+ {
3432
+ "disabled": false,
3433
+ "document": "实例内网峰值带宽。单位 MB/s。标准版需传入当前实例规格所对应的峰值带宽。注意如果创建的实例为专业版实例,峰值带宽,分区数等参数配置需要满足专业版的计费规格。",
3434
+ "example": "20",
3435
+ "member": "int64",
3436
+ "name": "BandWidth",
3437
+ "required": true,
3438
+ "type": "int"
3439
+ },
3426
3440
  {
3427
3441
  "disabled": false,
3428
3442
  "document": "国际站标准版实例规格。目前只有国际站标准版使用当前字段区分规格,国内站标准版使用峰值带宽区分规格。除了国际站标准版外的所有实例填写 1 即可。国际站标准版实例:入门型(general)]填写1;[标准型(standard)]填写2;[进阶型(advanced)]填写3;[容量型(capacity)]填写4;[高阶型1(specialized-1)]填写5;[高阶型2(specialized-2)]填写6;[高阶型3(specialized-3)]填写7;[高阶型4(specialized-4)]填写8。",
@@ -4163,6 +4177,61 @@
4163
4177
  ],
4164
4178
  "type": "object"
4165
4179
  },
4180
+ "CreatePrometheusRequest": {
4181
+ "document": "CreatePrometheus请求参数结构体",
4182
+ "members": [
4183
+ {
4184
+ "disabled": false,
4185
+ "document": "ckafka实例id",
4186
+ "example": "ckafka-xxx",
4187
+ "member": "string",
4188
+ "name": "InstanceId",
4189
+ "required": true,
4190
+ "type": "string"
4191
+ },
4192
+ {
4193
+ "disabled": false,
4194
+ "document": "vpc地址",
4195
+ "example": "vpc-xxxx",
4196
+ "member": "string",
4197
+ "name": "VpcId",
4198
+ "required": true,
4199
+ "type": "string"
4200
+ },
4201
+ {
4202
+ "disabled": false,
4203
+ "document": "子网地址",
4204
+ "example": "subnet-xxxx",
4205
+ "member": "string",
4206
+ "name": "SubnetId",
4207
+ "required": true,
4208
+ "type": "string"
4209
+ }
4210
+ ],
4211
+ "type": "object"
4212
+ },
4213
+ "CreatePrometheusResponse": {
4214
+ "document": "CreatePrometheus返回参数结构体",
4215
+ "members": [
4216
+ {
4217
+ "disabled": false,
4218
+ "document": "打通普罗米修斯",
4219
+ "example": "data",
4220
+ "member": "PrometheusResult",
4221
+ "name": "Result",
4222
+ "required": true,
4223
+ "type": "object",
4224
+ "value_allowed_null": false
4225
+ },
4226
+ {
4227
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4228
+ "member": "string",
4229
+ "name": "RequestId",
4230
+ "type": "string"
4231
+ }
4232
+ ],
4233
+ "type": "object"
4234
+ },
4166
4235
  "CreateRouteRequest": {
4167
4236
  "document": "CreateRoute请求参数结构体",
4168
4237
  "members": [
@@ -7417,7 +7486,7 @@
7417
7486
  },
7418
7487
  {
7419
7488
  "disabled": false,
7420
- "document": "Kafka 消费分组,Consumer-group,这里是数组形式,格式:GroupList.0=xxx&GroupList.1=yyy",
7489
+ "document": "Kafka 消费分组,Consumer-group,这里是数组形式,示例:[\"xxx\",\"yyy\"]",
7421
7490
  "example": "无",
7422
7491
  "member": "string",
7423
7492
  "name": "GroupList",
@@ -7840,6 +7909,43 @@
7840
7909
  ],
7841
7910
  "type": "object"
7842
7911
  },
7912
+ "DescribePrometheusRequest": {
7913
+ "document": "DescribePrometheus请求参数结构体",
7914
+ "members": [
7915
+ {
7916
+ "disabled": false,
7917
+ "document": "ckafka实例Id",
7918
+ "example": "ckafka-xxx",
7919
+ "member": "string",
7920
+ "name": "InstanceId",
7921
+ "required": true,
7922
+ "type": "string"
7923
+ }
7924
+ ],
7925
+ "type": "object"
7926
+ },
7927
+ "DescribePrometheusResponse": {
7928
+ "document": "DescribePrometheus返回参数结构体",
7929
+ "members": [
7930
+ {
7931
+ "disabled": false,
7932
+ "document": "Prometheus监控映射列表",
7933
+ "example": "data",
7934
+ "member": "PrometheusDTO",
7935
+ "name": "Result",
7936
+ "required": true,
7937
+ "type": "list",
7938
+ "value_allowed_null": false
7939
+ },
7940
+ {
7941
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
7942
+ "member": "string",
7943
+ "name": "RequestId",
7944
+ "type": "string"
7945
+ }
7946
+ ],
7947
+ "type": "object"
7948
+ },
7843
7949
  "DescribeRegionRequest": {
7844
7950
  "document": "DescribeRegion请求参数结构体",
7845
7951
  "members": [
@@ -14617,6 +14723,78 @@
14617
14723
  ],
14618
14724
  "usage": "in"
14619
14725
  },
14726
+ "PrometheusDTO": {
14727
+ "document": "普罗米修斯打通的vipVport",
14728
+ "members": [
14729
+ {
14730
+ "disabled": false,
14731
+ "document": "export类型(jmx_export\\node_export)",
14732
+ "example": "jmx_export",
14733
+ "member": "string",
14734
+ "name": "Type",
14735
+ "required": true,
14736
+ "type": "string",
14737
+ "value_allowed_null": false
14738
+ },
14739
+ {
14740
+ "disabled": false,
14741
+ "document": "vip",
14742
+ "example": "10.0.0.1",
14743
+ "member": "string",
14744
+ "name": "SourceIp",
14745
+ "required": true,
14746
+ "type": "string",
14747
+ "value_allowed_null": false
14748
+ },
14749
+ {
14750
+ "disabled": false,
14751
+ "document": "vport",
14752
+ "example": "60002",
14753
+ "member": "int64",
14754
+ "name": "SourcePort",
14755
+ "required": true,
14756
+ "type": "int",
14757
+ "value_allowed_null": false
14758
+ }
14759
+ ],
14760
+ "usage": "out"
14761
+ },
14762
+ "PrometheusResult": {
14763
+ "document": "Prometheus 监控返回",
14764
+ "members": [
14765
+ {
14766
+ "disabled": false,
14767
+ "document": "返回的code,0为正常,非0为错误",
14768
+ "example": "0",
14769
+ "member": "string",
14770
+ "name": "ReturnCode",
14771
+ "required": true,
14772
+ "type": "string",
14773
+ "value_allowed_null": false
14774
+ },
14775
+ {
14776
+ "disabled": false,
14777
+ "document": "成功消息",
14778
+ "example": "1",
14779
+ "member": "string",
14780
+ "name": "ReturnMessage",
14781
+ "required": true,
14782
+ "type": "string",
14783
+ "value_allowed_null": false
14784
+ },
14785
+ {
14786
+ "disabled": false,
14787
+ "document": "操作型返回的Data数据,可能有flowId等",
14788
+ "example": "1",
14789
+ "member": "OperateResponseData",
14790
+ "name": "Data",
14791
+ "required": true,
14792
+ "type": "object",
14793
+ "value_allowed_null": false
14794
+ }
14795
+ ],
14796
+ "usage": "out"
14797
+ },
14620
14798
  "RecordMapping": {
14621
14799
  "document": "record 与数据库表的映射关系",
14622
14800
  "members": [
@@ -132,7 +132,7 @@
132
132
  {
133
133
  "document": "创建峰值带宽为 20MB/s,硬盘大小 200GB 的专业版实例",
134
134
  "input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateInstancePost\n<公共请求参数>\n\n{\n \"InstanceName\": \"test45\",\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"SubnetId\": \"subnet-xxxxxxxx\",\n \"KafkaVersion\": \"2.4.2\",\n \"SpecificationsType\": \"profession\",\n \"DiskType\": \"CLOUD_BASIC\",\n \"BandWidth\": 20,\n \"DiskSize\": 200,\n \"Partition\": 400,\n \"TopicNum\": 200,\n \"ZoneId\": 450001\n}",
135
- "output": "{\n \"Response\": {\n \"RequestId\": \"9432af9d-8c3e-4474-b5eb-0f5298dbb6e5\",\n \"Result\": {\n \"Data\": {\n \"FlowId\": 0\n },\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"ok[apply ok]\"\n }\n }\n}",
135
+ "output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"abc\",\n \"ReturnMessage\": \"abc\",\n \"Data\": {\n \"FlowId\": 0,\n \"RouteDTO\": {\n \"RouteId\": 0\n }\n }\n },\n \"RequestId\": \"abc\"\n }\n}",
136
136
  "title": "创建专业版实例"
137
137
  }
138
138
  ],
@@ -178,6 +178,14 @@
178
178
  "title": "创建后付费多可用区专业版实例"
179
179
  }
180
180
  ],
181
+ "CreatePrometheus": [
182
+ {
183
+ "document": "",
184
+ "input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheus\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\",\n \"SubnetId\": \"xx\",\n \"VpcId\": \"xx\"\n}",
185
+ "output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnMessage\": \"xx\",\n \"ReturnCode\": \"xx\",\n \"Data\": {\n \"FlowId\": 0\n }\n },\n \"RequestId\": \"xx\"\n }\n}",
186
+ "title": "打通普罗米修斯监控"
187
+ }
188
+ ],
181
189
  "CreateRoute": [
182
190
  {
183
191
  "document": "",
@@ -466,6 +474,14 @@
466
474
  "title": "获取实例列表详情"
467
475
  }
468
476
  ],
477
+ "DescribePrometheus": [
478
+ {
479
+ "document": "",
480
+ "input": "POST / HTTP/1.1\nHost: ckafka.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheus\n<公共请求参数>\n\n{\n \"InstanceId\": \"ckafka-xxx\"\n}",
481
+ "output": "{\n \"Response\": {\n \"Result\": [\n {\n \"Type\": \"xx\"\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
482
+ "title": "获取实例Prometheus信息"
483
+ }
484
+ ],
469
485
  "DescribeRegion": [
470
486
  {
471
487
  "document": "",
@@ -1075,13 +1075,13 @@
1075
1075
  "members": [
1076
1076
  {
1077
1077
  "disabled": false,
1078
- "document": "绑定失败的监听器ID,如为空表示全部绑定成功。\n注意:此字段可能返回 null,表示取不到有效值。",
1078
+ "document": "绑定失败的监听器ID,如为空表示全部绑定成功。",
1079
1079
  "example": "[]",
1080
1080
  "member": "string",
1081
1081
  "name": "FailListenerIdSet",
1082
1082
  "output_required": true,
1083
1083
  "type": "list",
1084
- "value_allowed_null": true
1084
+ "value_allowed_null": false
1085
1085
  },
1086
1086
  {
1087
1087
  "disabled": false,