tccli 3.0.1092.1__py2.py3-none-any.whl → 3.0.1094.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/domain/v20180808/DescribeReservedBidInfo.md +27 -11
  3. tccli/examples/ess/v20201111/CreateOrganizationAuthUrl.md +11 -1
  4. tccli/examples/ess/v20201111/DescribeBillUsage.md +26 -0
  5. tccli/examples/gaap/v20180529/DescribeProxyDetail.md +136 -108
  6. tccli/examples/gaap/v20180529/DescribeProxyGroupDetails.md +34 -27
  7. tccli/examples/gaap/v20180529/DescribeRules.md +55 -70
  8. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIService.md +25 -0
  9. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIServiceCallback.md +23 -0
  10. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIServiceTasks.md +40 -0
  11. tccli/examples/iotexplorer/v20190423/DescribeProductCloudStorageAIService.md +22 -0
  12. tccli/examples/iotexplorer/v20190423/ModifyCloudStorageAIService.md +23 -0
  13. tccli/examples/iotexplorer/v20190423/ModifyCloudStorageAIServiceCallback.md +23 -0
  14. tccli/examples/iotexplorer/v20190423/ModifyProductCloudStorageAIService.md +21 -0
  15. tccli/examples/lcic/v20220817/BatchDescribeDocument.md +3 -1
  16. tccli/examples/organization/v20210331/AttachPolicy.md +22 -0
  17. tccli/examples/organization/v20210331/CreatePolicy.md +24 -0
  18. tccli/examples/organization/v20210331/DeletePolicy.md +20 -0
  19. tccli/examples/organization/v20210331/DescribePolicy.md +27 -0
  20. tccli/examples/organization/v20210331/DescribePolicyConfig.md +22 -0
  21. tccli/examples/organization/v20210331/DetachPolicy.md +22 -0
  22. tccli/examples/organization/v20210331/DisablePolicyType.md +21 -0
  23. tccli/examples/organization/v20210331/EnablePolicyType.md +21 -0
  24. tccli/examples/organization/v20210331/ListPolicies.md +41 -0
  25. tccli/examples/organization/v20210331/ListPoliciesForTarget.md +45 -0
  26. tccli/examples/organization/v20210331/ListTargetsForPolicy.md +35 -0
  27. tccli/examples/organization/v20210331/UpdatePolicy.md +23 -0
  28. tccli/examples/rce/v20201103/ManageMarketingRisk.md +19 -56
  29. tccli/examples/svp/v20240125/CreateSavingPlanOrder.md +1 -1
  30. tccli/examples/tke/v20180525/DescribeClusterNodePoolDetail.md +4 -0
  31. tccli/examples/tke/v20180525/DescribeClusterNodePools.md +4 -0
  32. tccli/examples/tke/v20180525/DescribeSupportedRuntime.md +25 -0
  33. tccli/examples/tke/v20180525/ModifyClusterRuntimeConfig.md +27 -0
  34. tccli/examples/vod/v20180717/CreateSubAppId.md +1 -1
  35. tccli/examples/vod/v20180717/DescribeAdaptiveDynamicStreamingTemplates.md +5 -1
  36. tccli/examples/vod/v20180717/DescribeSubAppIds.md +8 -8
  37. tccli/examples/vod/v20180717/ModifySubAppIdInfo.md +3 -3
  38. tccli/examples/vod/v20180717/ModifySubAppIdStatus.md +1 -1
  39. tccli/examples/wedata/v20210820/BatchCreateIntegrationTaskAlarms.md +13 -13
  40. tccli/examples/wedata/v20210820/BatchDeleteIntegrationTasks.md +2 -2
  41. tccli/examples/wedata/v20210820/BatchDeleteOpsTasks.md +4 -85
  42. tccli/examples/wedata/v20210820/BatchForceSuccessIntegrationTaskInstances.md +4 -4
  43. tccli/examples/wedata/v20210820/BatchKillIntegrationTaskInstances.md +4 -4
  44. tccli/examples/wedata/v20210820/BatchMakeUpIntegrationTasks.md +3 -3
  45. tccli/examples/wedata/v20210820/BatchModifyOpsOwners.md +5 -5
  46. tccli/examples/wedata/v20210820/BatchRerunIntegrationTaskInstances.md +5 -5
  47. tccli/examples/wedata/v20210820/BatchResumeIntegrationTasks.md +1 -1
  48. tccli/examples/wedata/v20210820/BatchRunOpsTask.md +5 -5
  49. tccli/examples/wedata/v20210820/BatchStartIntegrationTasks.md +5 -5
  50. tccli/examples/wedata/v20210820/BatchStopIntegrationTasks.md +4 -4
  51. tccli/examples/wedata/v20210820/BatchStopWorkflowsByIds.md +6 -6
  52. tccli/examples/wedata/v20210820/BatchSuspendIntegrationTasks.md +3 -3
  53. tccli/examples/wedata/v20210820/BatchUpdateIntegrationTasks.md +4 -4
  54. tccli/examples/wedata/v20210820/CheckAlarmRegularNameExist.md +2 -2
  55. tccli/examples/wedata/v20210820/CheckIntegrationNodeNameExists.md +4 -4
  56. tccli/examples/wedata/v20210820/CheckIntegrationTaskNameExists.md +4 -4
  57. tccli/examples/wedata/v20210820/CheckTaskNameExist.md +3 -3
  58. tccli/examples/wedata/v20210820/CommitIntegrationTask.md +6 -6
  59. tccli/examples/wedata/v20210820/CommitRuleGroupTask.md +84 -14
  60. tccli/examples/wedata/v20210820/CountOpsInstanceState.md +4 -4
  61. tccli/examples/wedata/v20210820/CreateCustomFunction.md +8 -8
  62. tccli/examples/wedata/v20210820/CreateDataSource.md +8 -8
  63. tccli/examples/wedata/v20210820/CreateDsFolder.md +5 -5
  64. tccli/examples/wedata/v20210820/CreateHiveTable.md +1 -1
  65. tccli/examples/wedata/v20210820/CreateHiveTableByDDL.md +8 -8
  66. tccli/examples/wedata/v20210820/CreateIntegrationNode.md +2 -2
  67. tccli/examples/wedata/v20210820/CreateOfflineTask.md +12 -12
  68. tccli/examples/wedata/v20210820/CreateOpsMakePlan.md +2 -2
  69. tccli/examples/wedata/v20210820/CreateRule.md +118 -68
  70. tccli/examples/wedata/v20210820/CreateRuleTemplate.md +9 -9
  71. tccli/examples/wedata/v20210820/CreateTask.md +1 -1
  72. tccli/examples/wedata/v20210820/CreateTaskAlarmRegular.md +13 -13
  73. tccli/examples/wedata/v20210820/CreateTaskVersionDs.md +8 -10
  74. tccli/examples/wedata/v20210820/DagInstances.md +105 -2
  75. tccli/examples/wedata/v20210820/DeleteCustomFunction.md +7 -9
  76. tccli/examples/wedata/v20210820/DeleteDataSources.md +2 -2
  77. tccli/examples/wedata/v20210820/DeleteDsFolder.md +3 -3
  78. tccli/examples/wedata/v20210820/DeleteFile.md +3 -3
  79. tccli/examples/wedata/v20210820/DeleteIntegrationNode.md +3 -3
  80. tccli/examples/wedata/v20210820/DeleteIntegrationTask.md +4 -4
  81. tccli/examples/wedata/v20210820/DeleteOfflineTask.md +4 -4
  82. tccli/examples/wedata/v20210820/DeleteProjectParamDs.md +3 -3
  83. tccli/examples/wedata/v20210820/DeleteProjectUsers.md +4 -19
  84. tccli/examples/wedata/v20210820/DeleteResourceFile.md +3 -3
  85. tccli/examples/wedata/v20210820/DeleteResourceFiles.md +4 -4
  86. tccli/examples/wedata/v20210820/DeleteRule.md +1 -1
  87. tccli/examples/wedata/v20210820/DeleteRuleTemplate.md +1 -1
  88. tccli/examples/wedata/v20210820/DeleteTaskAlarmRegular.md +3 -3
  89. tccli/examples/wedata/v20210820/DeleteTaskDs.md +4 -4
  90. tccli/examples/wedata/v20210820/DeleteWorkflowById.md +6 -6
  91. tccli/examples/wedata/v20210820/DescribeAlarmEvents.md +2 -2
  92. tccli/examples/wedata/v20210820/DescribeAllByFolderNew.md +111 -101
  93. tccli/examples/wedata/v20210820/DescribeApproveList.md +19 -66
  94. tccli/examples/wedata/v20210820/DescribeApproveTypeList.md +1 -33
  95. tccli/examples/wedata/v20210820/DescribeBatchOperateTask.md +21 -19
  96. tccli/examples/wedata/v20210820/DescribeDataCheckStat.md +1 -1
  97. tccli/examples/wedata/v20210820/DescribeDataSourceInfoList.md +10 -9
  98. tccli/examples/wedata/v20210820/DescribeDataSourceList.md +45 -4
  99. tccli/examples/wedata/v20210820/DescribeDatabaseInfoList.md +8 -8
  100. tccli/examples/wedata/v20210820/DescribeDatasource.md +35 -12
  101. tccli/examples/wedata/v20210820/DescribeDependOpsTasks.md +37 -44
  102. tccli/examples/wedata/v20210820/DescribeDependTaskLists.md +85 -74
  103. tccli/examples/wedata/v20210820/DescribeDimensionScore.md +59 -10
  104. tccli/examples/wedata/v20210820/DescribeDsFolderTree.md +27 -27
  105. tccli/examples/wedata/v20210820/DescribeDsParentFolderTree.md +20 -20
  106. tccli/examples/wedata/v20210820/DescribeEventCases.md +35 -62
  107. tccli/examples/wedata/v20210820/DescribeEventConsumeTasks.md +2 -0
  108. tccli/examples/wedata/v20210820/DescribeExecStrategy.md +3 -3
  109. tccli/examples/wedata/v20210820/DescribeFolderWorkflowList.md +21 -61
  110. tccli/examples/wedata/v20210820/DescribeFunctionKinds.md +14 -4
  111. tccli/examples/wedata/v20210820/DescribeFunctionTypes.md +1 -1
  112. tccli/examples/wedata/v20210820/DescribeInstanceLastLog.md +4 -4
  113. tccli/examples/wedata/v20210820/DescribeInstanceList.md +19 -19
  114. tccli/examples/wedata/v20210820/DescribeInstanceLog.md +7 -7
  115. tccli/examples/wedata/v20210820/DescribeInstanceLogList.md +15 -15
  116. tccli/examples/wedata/v20210820/DescribeIntegrationNode.md +89 -51
  117. tccli/examples/wedata/v20210820/DescribeIntegrationStatistics.md +2 -2
  118. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsInstanceTrend.md +9 -7
  119. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsRecordsTrend.md +1 -1
  120. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatus.md +5 -5
  121. tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatusTrend.md +10 -8
  122. tccli/examples/wedata/v20210820/DescribeIntegrationTask.md +181 -119
  123. tccli/examples/wedata/v20210820/DescribeIntegrationTasks.md +198 -239
  124. tccli/examples/wedata/v20210820/DescribeIntegrationVersionNodesInfo.md +117 -52
  125. tccli/examples/wedata/v20210820/DescribeOfflineTaskToken.md +3 -3
  126. tccli/examples/wedata/v20210820/DescribeOperateOpsTasks.md +91 -147
  127. tccli/examples/wedata/v20210820/DescribeOpsInstanceLogList.md +14 -14
  128. tccli/examples/wedata/v20210820/DescribeOpsMakePlanInstances.md +313 -45
  129. tccli/examples/wedata/v20210820/DescribeOpsMakePlanTasks.md +92 -76
  130. tccli/examples/wedata/v20210820/DescribeOpsMakePlans.md +13 -9
  131. tccli/examples/wedata/v20210820/DescribeOpsWorkflows.md +19 -29
  132. tccli/examples/wedata/v20210820/DescribeOrganizationalFunctions.md +2 -2
  133. tccli/examples/wedata/v20210820/DescribeProject.md +3 -47
  134. tccli/examples/wedata/v20210820/DescribeQualityScore.md +15 -15
  135. tccli/examples/wedata/v20210820/DescribeRealTimeTaskInstanceNodeInfo.md +8 -8
  136. tccli/examples/wedata/v20210820/DescribeRealTimeTaskMetricOverview.md +12 -12
  137. tccli/examples/wedata/v20210820/DescribeRealTimeTaskSpeed.md +13 -13
  138. tccli/examples/wedata/v20210820/DescribeRule.md +81 -101
  139. tccli/examples/wedata/v20210820/DescribeRuleExecDetail.md +42 -66
  140. tccli/examples/wedata/v20210820/DescribeRuleExecLog.md +2 -2
  141. tccli/examples/wedata/v20210820/DescribeRuleExecResults.md +34 -58
  142. tccli/examples/wedata/v20210820/DescribeRuleGroup.md +19 -63
  143. tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPage.md +52 -76
  144. tccli/examples/wedata/v20210820/DescribeRuleGroupTable.md +12 -12
  145. tccli/examples/wedata/v20210820/DescribeRuleGroupsByPage.md +34 -29
  146. tccli/examples/wedata/v20210820/DescribeRuleTemplate.md +9 -9
  147. tccli/examples/wedata/v20210820/DescribeRuleTemplates.md +10 -10
  148. tccli/examples/wedata/v20210820/DescribeRuleTemplatesByPage.md +2 -2
  149. tccli/examples/wedata/v20210820/DescribeRules.md +92 -33
  150. tccli/examples/wedata/v20210820/DescribeRulesByPage.md +12 -12
  151. tccli/examples/wedata/v20210820/DescribeScheduleInstances.md +8 -2
  152. tccli/examples/wedata/v20210820/DescribeSchedulerInstanceStatus.md +11 -66
  153. tccli/examples/wedata/v20210820/DescribeSchedulerRunTimeInstanceCntByStatus.md +2 -32
  154. tccli/examples/wedata/v20210820/DescribeSchedulerTaskCntByStatus.md +2 -24
  155. tccli/examples/wedata/v20210820/DescribeSchedulerTaskTypeCnt.md +12 -36
  156. tccli/examples/wedata/v20210820/DescribeStatisticInstanceStatusTrendOps.md +16 -73
  157. tccli/examples/wedata/v20210820/DescribeStreamTaskLogList.md +13 -13
  158. tccli/examples/wedata/v20210820/DescribeSuccessorOpsTaskInfos.md +83 -85
  159. tccli/examples/wedata/v20210820/DescribeTableInfoList.md +5 -5
  160. tccli/examples/wedata/v20210820/DescribeTableQualityDetails.md +15 -15
  161. tccli/examples/wedata/v20210820/DescribeTableSchemaInfo.md +5 -5
  162. tccli/examples/wedata/v20210820/DescribeTableScoreTrend.md +5 -5
  163. tccli/examples/wedata/v20210820/DescribeTaskAlarmRegulations.md +48 -31
  164. tccli/examples/wedata/v20210820/DescribeTaskByCycle.md +1 -26
  165. tccli/examples/wedata/v20210820/DescribeTaskByStatusReport.md +21 -70
  166. tccli/examples/wedata/v20210820/DescribeTaskLockStatus.md +6 -6
  167. tccli/examples/wedata/v20210820/DescribeTaskRunHistory.md +75 -70
  168. tccli/examples/wedata/v20210820/DescribeTaskScript.md +2 -2
  169. tccli/examples/wedata/v20210820/DescribeTemplateDimCount.md +23 -3
  170. tccli/examples/wedata/v20210820/DescribeTopTableStat.md +1 -1
  171. tccli/examples/wedata/v20210820/DescribeTrendStat.md +1 -1
  172. tccli/examples/wedata/v20210820/DescribeWorkflowCanvasInfo.md +285 -100
  173. tccli/examples/wedata/v20210820/DescribeWorkflowExecuteById.md +17 -11
  174. tccli/examples/wedata/v20210820/DescribeWorkflowInfoById.md +24 -24
  175. tccli/examples/wedata/v20210820/DescribeWorkflowListByProjectId.md +32 -176
  176. tccli/examples/wedata/v20210820/DescribeWorkflowTaskCount.md +26 -10
  177. tccli/examples/wedata/v20210820/DiagnosePro.md +72 -0
  178. tccli/examples/wedata/v20210820/DryRunDIOfflineTask.md +10 -10
  179. tccli/examples/wedata/v20210820/FindAllFolder.md +902 -1
  180. tccli/examples/wedata/v20210820/GenHiveTableDDLSql.md +22 -22
  181. tccli/examples/wedata/v20210820/GetIntegrationNodeColumnSchema.md +37 -15
  182. tccli/examples/wedata/v20210820/GetOfflineDIInstanceList.md +27 -27
  183. tccli/examples/wedata/v20210820/GetOfflineInstanceList.md +28 -28
  184. tccli/examples/wedata/v20210820/KillScheduleInstances.md +2 -2
  185. tccli/examples/wedata/v20210820/LockIntegrationTask.md +3 -3
  186. tccli/examples/wedata/v20210820/ModifyApproveStatus.md +1 -25
  187. tccli/examples/wedata/v20210820/ModifyDataSource.md +7 -7
  188. tccli/examples/wedata/v20210820/ModifyDsFolder.md +5 -5
  189. tccli/examples/wedata/v20210820/ModifyExecStrategy.md +16 -16
  190. tccli/examples/wedata/v20210820/ModifyIntegrationNode.md +42 -42
  191. tccli/examples/wedata/v20210820/ModifyIntegrationTask.md +132 -105
  192. tccli/examples/wedata/v20210820/ModifyRule.md +8 -8
  193. tccli/examples/wedata/v20210820/ModifyRuleTemplate.md +4 -4
  194. tccli/examples/wedata/v20210820/ModifyTaskAlarmRegular.md +34 -34
  195. tccli/examples/wedata/v20210820/ModifyTaskInfo.md +27 -54
  196. tccli/examples/wedata/v20210820/ModifyTaskLinks.md +9 -9
  197. tccli/examples/wedata/v20210820/ModifyTaskName.md +5 -5
  198. tccli/examples/wedata/v20210820/ModifyTaskScript.md +6 -15
  199. tccli/examples/wedata/v20210820/ModifyWorkflowInfo.md +7 -7
  200. tccli/examples/wedata/v20210820/ModifyWorkflowSchedule.md +7 -7
  201. tccli/examples/wedata/v20210820/RegisterEvent.md +12 -40
  202. tccli/examples/wedata/v20210820/RemoveWorkflowDs.md +2 -2
  203. tccli/examples/wedata/v20210820/ResumeIntegrationTask.md +7 -32
  204. tccli/examples/wedata/v20210820/RobAndLockIntegrationTask.md +5 -5
  205. tccli/examples/wedata/v20210820/RunForceSucScheduleInstances.md +14 -7
  206. tccli/examples/wedata/v20210820/RunRerunScheduleInstances.md +17 -12
  207. tccli/examples/wedata/v20210820/RunTasksByMultiWorkflow.md +6 -6
  208. tccli/examples/wedata/v20210820/SaveCustomFunction.md +1 -1
  209. tccli/examples/wedata/v20210820/SetTaskAlarmNew.md +12 -13
  210. tccli/examples/wedata/v20210820/StartIntegrationTask.md +7 -32
  211. tccli/examples/wedata/v20210820/StopIntegrationTask.md +3 -3
  212. tccli/examples/wedata/v20210820/SubmitCustomFunction.md +1 -1
  213. tccli/examples/wedata/v20210820/SubmitSqlTask.md +27 -28
  214. tccli/examples/wedata/v20210820/SubmitTask.md +8 -8
  215. tccli/examples/wedata/v20210820/SubmitTaskTestRun.md +6 -26
  216. tccli/examples/wedata/v20210820/SubmitWorkflow.md +13 -9
  217. tccli/examples/wedata/v20210820/SuspendIntegrationTask.md +2 -2
  218. tccli/examples/wedata/v20210820/TaskLog.md +5 -5
  219. tccli/examples/wedata/v20210820/TriggerDsEvent.md +1 -1
  220. tccli/examples/wedata/v20210820/TriggerEvent.md +28 -0
  221. tccli/examples/wedata/v20210820/UnlockIntegrationTask.md +5 -5
  222. tccli/examples/wedata/v20210820/UpdateWorkflowOwner.md +6 -6
  223. tccli/examples/wedata/v20210820/UploadContent.md +29 -29
  224. tccli/services/aiart/v20221229/api.json +19 -0
  225. tccli/services/asr/v20190614/api.json +4 -4
  226. tccli/services/bsca/v20210811/api.json +19 -1
  227. tccli/services/ccc/v20200210/api.json +12 -12
  228. tccli/services/cfs/v20190719/api.json +2 -2
  229. tccli/services/ckafka/v20190819/api.json +17 -17
  230. tccli/services/cls/v20201016/api.json +5 -3
  231. tccli/services/cynosdb/v20190107/api.json +70 -0
  232. tccli/services/dnspod/v20210323/api.json +2 -2
  233. tccli/services/domain/v20180808/api.json +50 -10
  234. tccli/services/domain/v20180808/examples.json +1 -1
  235. tccli/services/dsgc/v20190723/api.json +90 -20
  236. tccli/services/dts/v20180330/api.json +1 -1
  237. tccli/services/dts/v20211206/api.json +4 -3
  238. tccli/services/eb/v20210416/api.json +64 -0
  239. tccli/services/emr/v20190103/api.json +1 -1
  240. tccli/services/ess/ess_client.py +57 -4
  241. tccli/services/ess/v20201111/api.json +372 -1
  242. tccli/services/ess/v20201111/examples.json +10 -2
  243. tccli/services/facefusion/v20220927/api.json +1 -1
  244. tccli/services/gaap/v20180529/api.json +68 -40
  245. tccli/services/gaap/v20180529/examples.json +6 -6
  246. tccli/services/iotexplorer/iotexplorer_client.py +375 -4
  247. tccli/services/iotexplorer/v20190423/api.json +589 -0
  248. tccli/services/iotexplorer/v20190423/examples.json +56 -0
  249. tccli/services/lcic/v20220817/api.json +54 -5
  250. tccli/services/lcic/v20220817/examples.json +1 -1
  251. tccli/services/lke/v20231130/api.json +11 -1
  252. tccli/services/ocr/v20181119/api.json +24 -15
  253. tccli/services/organization/organization_client.py +783 -147
  254. tccli/services/organization/v20210331/api.json +1259 -207
  255. tccli/services/organization/v20210331/examples.json +96 -0
  256. tccli/services/rce/v20201103/api.json +4 -4
  257. tccli/services/rce/v20201103/examples.json +3 -3
  258. tccli/services/svp/v20240125/examples.json +1 -1
  259. tccli/services/tat/v20201028/api.json +3 -3
  260. tccli/services/tke/tke_client.py +106 -0
  261. tccli/services/tke/v20180525/api.json +252 -42
  262. tccli/services/tke/v20180525/examples.json +19 -3
  263. tccli/services/trocket/trocket_client.py +8 -61
  264. tccli/services/trocket/v20230308/api.json +0 -34
  265. tccli/services/trocket/v20230308/examples.json +0 -8
  266. tccli/services/tse/v20201207/api.json +10 -1
  267. tccli/services/vod/v20180717/api.json +36 -36
  268. tccli/services/vod/v20180717/examples.json +8 -8
  269. tccli/services/wedata/v20210820/api.json +19900 -34093
  270. tccli/services/wedata/v20210820/examples.json +404 -1256
  271. tccli/services/wedata/wedata_client.py +714 -5166
  272. {tccli-3.0.1092.1.dist-info → tccli-3.0.1094.1.dist-info}/METADATA +2 -2
  273. {tccli-3.0.1092.1.dist-info → tccli-3.0.1094.1.dist-info}/RECORD +276 -253
  274. {tccli-3.0.1092.1.dist-info → tccli-3.0.1094.1.dist-info}/WHEEL +0 -0
  275. {tccli-3.0.1092.1.dist-info → tccli-3.0.1094.1.dist-info}/entry_points.txt +0 -0
  276. {tccli-3.0.1092.1.dist-info → tccli-3.0.1094.1.dist-info}/license_files/LICENSE +0 -0
@@ -40,6 +40,14 @@
40
40
  "title": "添加共享单元资源"
41
41
  }
42
42
  ],
43
+ "AttachPolicy": [
44
+ {
45
+ "document": "绑定策略",
46
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AttachPolicy\n<公共请求参数>\n\n{\n \"TargetId\": 10001,\n \"TargetType\": \"NODE\",\n \"PolicyId\": 100001\n}",
47
+ "output": "{\n \"Response\": {\n \"RequestId\": \"fd498970-3ffb-440e-a3bf-f6faa43eeb08\"\n }\n}",
48
+ "title": "绑定策略"
49
+ }
50
+ ],
43
51
  "BindOrganizationMemberAuthAccount": [
44
52
  {
45
53
  "document": "",
@@ -112,6 +120,14 @@
112
120
  "title": "创建组织成员访问策略"
113
121
  }
114
122
  ],
123
+ "CreatePolicy": [
124
+ {
125
+ "document": "创建策略",
126
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePolicy\n<公共请求参数>\n\n{\n \"Content\": \"{\\\"version\\\":\\\"2.0\\\",\\\"statement\\\":[{\\\"effect\\\":\\\"allow\\\",\\\"action\\\":\\\"*\\\",\\\"resource\\\":\\\"*\\\"}]}\",\n \"Description\": \"FullAccessPolicy\",\n \"Name\": \"FullAccessPolicy\",\n \"Type\": \"SERVICE_CONTROL_POLICY\"\n}",
127
+ "output": "{\n \"Response\": {\n \"PolicyId\": 100001,\n \"RequestId\": \"fd498970-3ffb-440e-a3bf-f6faa43eeb08\"\n }\n}",
128
+ "title": "创建策略"
129
+ }
130
+ ],
115
131
  "DeleteAccount": [
116
132
  {
117
133
  "document": "删除成员账号",
@@ -168,6 +184,14 @@
168
184
  "title": "批量删除企业组织节点"
169
185
  }
170
186
  ],
187
+ "DeletePolicy": [
188
+ {
189
+ "document": "删除策略",
190
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeletePolicy\n<公共请求参数>\n\n{\n \"PolicyId\": 100001\n}",
191
+ "output": "{\n \"Response\": {\n \"RequestId\": \"fd498970-3ffb-440e-a3bf-f6faa43eeb08\"\n }\n}",
192
+ "title": "删除策略"
193
+ }
194
+ ],
171
195
  "DeleteShareUnit": [
172
196
  {
173
197
  "document": "",
@@ -280,6 +304,22 @@
280
304
  "title": "获取节点列表"
281
305
  }
282
306
  ],
307
+ "DescribePolicy": [
308
+ {
309
+ "document": "查看一个策略的详情",
310
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePolicy\n<公共请求参数>\n\n{\n \"PolicyId\": 1001\n}",
311
+ "output": "{\n \"Response\": {\n \"RequestId\": \"152482ca-5968-4557-ac1d-1e7ac28ce0da\",\n \"AddTime\": \"2022-08-04 16:04:17\",\n \"Description\": \"test\",\n \"PolicyDocument\": \"{\\\"strategyInfo\\\":{\\\"version\\\":\\\"2.0\\\",\\\"statement\\\":[{\\\"effect\\\":\\\"allow\\\",\\\"action\\\":\\\"*\\\",\\\"resource\\\":\\\"qcs::cam::*:*\\\"}]},\\\"version\\\":\\\"2.0\\\"}\",\n \"PolicyId\": 1001,\n \"PolicyName\": \"test-1\",\n \"Type\": 3,\n \"UpdateTime\": \"2022-08-04 17:04:17\"\n }\n}",
312
+ "title": "查看一个策略的详情"
313
+ }
314
+ ],
315
+ "DescribePolicyConfig": [
316
+ {
317
+ "document": "查看企业组织策略配置",
318
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePolicyConfig\n<公共请求参数>\n\n{\n \"OrganizationId\": 80001\n}",
319
+ "output": "{\n \"Response\": {\n \"RequestId\": \"20678896-12d1-11ed-a2cd-525400fed39d\",\n \"Status\": 1,\n \"Type\": \"SERVICE_CONTROL_POLICY\"\n }\n}",
320
+ "title": "查看企业组织策略配置"
321
+ }
322
+ ],
283
323
  "DescribeShareAreas": [
284
324
  {
285
325
  "document": "",
@@ -312,6 +352,30 @@
312
352
  "title": "获取共享单元列表"
313
353
  }
314
354
  ],
355
+ "DetachPolicy": [
356
+ {
357
+ "document": "解绑策略",
358
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DetachPolicy\n<公共请求参数>\n\n{\n \"TargetId\": 10001,\n \"TargetType\": \"NODE\",\n \"PolicyId\": 100001\n}",
359
+ "output": "{\n \"Response\": {\n \"RequestId\": \"fd498970-3ffb-440e-a3bf-f6faa43eeb08\"\n }\n}",
360
+ "title": "解绑策略"
361
+ }
362
+ ],
363
+ "DisablePolicyType": [
364
+ {
365
+ "document": "禁用策略类型",
366
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DisablePolicyType\n<公共请求参数>\n\n{\n \"OrganizationId\": 80001,\n \"PolicyType\": \"SERVICE_CONTROL_POLICY\"\n}",
367
+ "output": "{\n \"Response\": {\n \"RequestId\": \"fd498970-3ffb-440e-a3bf-f6faa43eeb08\"\n }\n}",
368
+ "title": "禁用策略类型"
369
+ }
370
+ ],
371
+ "EnablePolicyType": [
372
+ {
373
+ "document": "启用策略类型",
374
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnablePolicyType\n<公共请求参数>\n\n{\n \"OrganizationId\": 80001,\n \"PolicyType\": \"SERVICE_CONTROL_POLICY\"\n}",
375
+ "output": "{\n \"Response\": {\n \"RequestId\": \"fd498970-3ffb-440e-a3bf-f6faa43eeb08\"\n }\n}",
376
+ "title": "启用策略类型"
377
+ }
378
+ ],
315
379
  "ListOrganizationIdentity": [
316
380
  {
317
381
  "document": "获取组织成员访问身份列表",
@@ -320,6 +384,30 @@
320
384
  "title": "获取组织成员访问身份列表"
321
385
  }
322
386
  ],
387
+ "ListPolicies": [
388
+ {
389
+ "document": "查看策略列表数据",
390
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListPolicies\n<公共请求参数>\n\n{\n \"Scope\": \"Local\"\n}",
391
+ "output": "{\n \"Response\": {\n \"List\": [\n {\n \"AddTime\": \"2022-08-04 16:04:17\",\n \"AttachedTimes\": 0,\n \"Description\": \"test\",\n \"PolicyId\": 133766838,\n \"PolicyName\": \"test-1\",\n \"Type\": 1,\n \"UpdateTime\": \"2022-08-04 16:04:17\"\n },\n {\n \"AddTime\": \"2022-08-04 15:06:07\",\n \"AttachedTimes\": 0,\n \"Description\": \"test-c\",\n \"PolicyId\": 133760482,\n \"PolicyName\": \"test-3\",\n \"Type\": 1,\n \"UpdateTime\": \"2022-08-04 16:03:53\"\n }\n ],\n \"RequestId\": \"152482ca-5968-4557-ac1d-1e7ac28ce0da\",\n \"TotalNum\": 2\n }\n}",
392
+ "title": "查看策略列表数据"
393
+ }
394
+ ],
395
+ "ListPoliciesForTarget": [
396
+ {
397
+ "document": "查询目标关联的策略列表",
398
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListPoliciesForTarget\n<公共请求参数>\n\n{\n \"TargetId\": 111111111111\n}",
399
+ "output": "{\n \"Response\": {\n \"List\": [\n {\n \"StrategyId\": 134173928,\n \"StrategyName\": \"policy-test-1\",\n \"AddTime\": \"2022-08-07 20:20:09\",\n \"UpdateTime\": \"2022-08-07 20:20:09\",\n \"AttachTime\": \"2022-08-08 14:49:59\",\n \"Type\": 2,\n \"Remark\": \"test1\",\n \"Uin\": 111111111111,\n \"Name\": \"test\"\n },\n {\n \"StrategyId\": 1000,\n \"StrategyName\": \"FullQcloudAccess\",\n \"AddTime\": \"2022-08-08 14:45:50\",\n \"UpdateTime\": \"2022-08-08 14:49:59\",\n \"AttachTime\": \"2022-08-08 14:49:59\",\n \"Type\": 2,\n \"Remark\": \"允许授权所有操作,用于企业组织服务控制策略。\",\n \"Uin\": 111111111111,\n \"Name\": \"test\"\n }\n ],\n \"TotalNum\": 2,\n \"RequestId\": \"2f76e3a5-225f-4deb-8d98-4efb0f1ae0ea\"\n }\n}",
400
+ "title": "查询目标关联的策略列表"
401
+ }
402
+ ],
403
+ "ListTargetsForPolicy": [
404
+ {
405
+ "document": "查询某个指定策略关联的目标列表",
406
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListTargetsForPolicy\n<公共请求参数>\n\n{\n \"PolicyId\": \"134173928\"\n}",
407
+ "output": "{\n \"Response\": {\n \"List\": [\n {\n \"AddTime\": \"2022-08-09 17:08:35\",\n \"Name\": \"T0\",\n \"RelatedType\": 1,\n \"Uin\": 222222222222\n },\n {\n \"AddTime\": \"2022-08-09 17:11:54\",\n \"Name\": \"33\",\n \"RelatedType\": 2,\n \"Uin\": 111111111111\n }\n ],\n \"RequestId\": \"676ed1a2-8a98-4834-8d7a-19538980ad0e\",\n \"TotalNum\": 5\n }\n}",
408
+ "title": "查询某个指定策略关联的目标列表"
409
+ }
410
+ ],
323
411
  "MoveOrganizationNodeMembers": [
324
412
  {
325
413
  "document": "",
@@ -368,6 +456,14 @@
368
456
  "title": "更新企业组织节点"
369
457
  }
370
458
  ],
459
+ "UpdatePolicy": [
460
+ {
461
+ "document": "编辑策略",
462
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdatePolicy\n<公共请求参数>\n\n{\n \"Content\": \"{\\\"version\\\":\\\"2.0\\\",\\\"statement\\\":[{\\\"effect\\\":\\\"allow\\\",\\\"action\\\":\\\"*\\\",\\\"resource\\\":\\\"*\\\"}]}\",\n \"Description\": \"FullAccessPolicy\",\n \"Name\": \"FullAccessPolicy\",\n \"PolicyId\": 100001\n}",
463
+ "output": "{\n \"Response\": {\n \"RequestId\": \"fd498970-3ffb-440e-a3bf-f6faa43eeb08\"\n }\n}",
464
+ "title": "编辑策略"
465
+ }
466
+ ],
371
467
  "UpdateShareUnit": [
372
468
  {
373
469
  "document": "",
@@ -489,7 +489,7 @@
489
489
  "example": "无",
490
490
  "member": "OutputManageMarketingRisk",
491
491
  "name": "Data",
492
- "required": true,
492
+ "output_required": true,
493
493
  "type": "object",
494
494
  "value_allowed_null": false
495
495
  },
@@ -572,7 +572,7 @@
572
572
  },
573
573
  {
574
574
  "disabled": false,
575
- "document": "MD5手机号,AccountType是10004时,此处无需重复填写。",
575
+ "document": "账号绑定的MD5手机号。\n注释:只支持标准中国大陆11位手机号MD5加密后位的32位小写字符串。",
576
576
  "example": "无",
577
577
  "member": "string",
578
578
  "name": "MobilePhone",
@@ -581,7 +581,7 @@
581
581
  },
582
582
  {
583
583
  "disabled": false,
584
- "document": "用户设备号,AccountType是8时,此处无需重复填写。",
584
+ "document": "用户设备号,支持IMEI、IMEIMD5、IDFA、IDFAMD5。\n注释:IMEIMD5、IDFAMD5加密方式,对IMEI、IDFA明文进行MD5加密,加密后取32位小写值。",
585
585
  "example": "无",
586
586
  "member": "string",
587
587
  "name": "DeviceId",
@@ -730,7 +730,7 @@
730
730
  "members": [
731
731
  {
732
732
  "disabled": false,
733
- "document": "账号ID:对应输入参数。\n当AccountType为1时,对应QQ的OpenId。\n当AccountType为2时,对应微信的OpenId/UnionId。\n当AccountType为8时,对应IMEI、IDFA、IMEIMD5或者IDFAMD5。\n当AccountType为10004时,对应手机号的MD5值。\n请注意:此字段可能返回null,表示无法获取有效值。\n注意:此字段可能返回 null,表示取不到有效值。",
733
+ "document": "账号ID:对应输入参数。\n当AccountType为1时,对应QQ的OpenId。\n当AccountType为2时,对应微信的OpenId/UnionId。\n当AccountType为8时,对应IMEI、IDFA、IMEIMD5或者IDFAMD5。\n当AccountType为10004时,对应手机号的MD5值。\n注意:此字段可能返回 null,表示取不到有效值。",
734
734
  "example": "3ac9aa8a9a0074918763bfd6ed526ed9",
735
735
  "member": "string",
736
736
  "name": "UserId",
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "ManageMarketingRisk": [
20
20
  {
21
- "document": "",
22
- "input": "POST / HTTP/1.1\nHost: rce.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ManageMarketingRisk\n<公共请求参数>\n\n{\n \"BusinessSecurityData\": {\n \"PostTime\": 1,\n \"Account\": {\n \"QQAccount\": {\n \"QQOpenId\": \"xx\",\n \"AppIdUser\": \"xx\",\n \"DeviceId\": \"xx\",\n \"MobilePhone\": \"xx\",\n \"AssociateAccount\": \"xx\"\n },\n \"OtherAccount\": {\n \"DeviceId\": \"xx\",\n \"MobilePhone\": \"xx\",\n \"AccountId\": \"xx\"\n },\n \"WeChatAccount\": {\n \"MobilePhone\": \"xx\",\n \"WeChatAccessToken\": \"xx\",\n \"WeChatSubType\": 1,\n \"DeviceId\": \"xx\",\n \"AssociateAccount\": \"xx\",\n \"WeChatOpenId\": \"xx\",\n \"RandStr\": \"xx\"\n },\n \"AccountType\": 1\n },\n \"CookieHash\": \"xx\",\n \"BusinessId\": 1,\n \"DeviceType\": 0,\n \"XForwardedFor\": \"xx\",\n \"UserId\": \"xx\",\n \"CheckDevice\": 0,\n \"Details\": [\n {\n \"FieldName\": \"xx\",\n \"FieldValue\": \"xx\"\n }\n ],\n \"MacAddress\": \"xx\",\n \"UserAgent\": \"xx\",\n \"EmailAddress\": \"xx\",\n \"VendorId\": \"xx\",\n \"SceneCode\": \"xx\",\n \"Sponsor\": {\n \"SponsorDeviceNumber\": \"xx\",\n \"SponsorIp\": \"xx\",\n \"CampaignUrl\": \"xx\",\n \"SponsorOpenId\": \"xx\",\n \"SponsorPhone\": \"xx\"\n },\n \"UserIp\": \"xx\",\n \"Referer\": \"xx\",\n \"OnlineScam\": {\n \"ContentRiskLevel\": 0,\n \"ContentLabel\": \"xx\",\n \"ContentType\": 0,\n \"FraudAccount\": \"xx\",\n \"FraudType\": 0\n },\n \"Nickname\": \"xx\",\n \"DeviceToken\": \"xx\",\n \"DeviceBusinessId\": 0\n }\n}",
23
- "output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"OK\",\n \"Value\": {\n \"UserId\": \"oz5I********************GfVv\",\n \"UserIp\": \"127.0.0.1\",\n \"PostTime\": 1590753783,\n \"AssociateAccount\": \"\",\n \"RiskLevel\": \"reject\",\n \"RiskType\": [\n 101,\n 1,\n 2,\n 105\n ]\n },\n \"UUid\": \"***********************\"\n },\n \"RequestId\": \"a6227506-5f00-43cf-9a4c-66fe931cefc9\"\n }\n}",
21
+ "document": "使用手机号MD5请求方式",
22
+ "input": "POST / HTTP/1.1\nHost: rce.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ManageMarketingRisk\n<公共请求参数>\n\n{\n \"BusinessSecurityData\": {\n \"Account\": {\n \"AccountType\": 10004,\n \"OtherAccount\": {\n \"AccountId\": \"3ac9aa********************526ed9\"\n }\n },\n \"SceneCode\": \"e_activity_antirush\",\n \"UserIp\": \"113.***.***.150\",\n \"PostTime\": 1712841851\n }\n}",
23
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"OK\",\n \"UUid\": \"9a570741-****-****-****-****0b788232\",\n \"Value\": {\n \"AssociateAccount\": \"\",\n \"ConstId\": \"\",\n \"PostTime\": 1712841851,\n \"RiskInformation\": null,\n \"RiskLevel\": \"reject\",\n \"RiskType\": [\n 201,\n 1,\n 21,\n 11,\n 2011\n ],\n \"UserId\": \"3ac9aa********************526ed9\",\n \"UserIp\": \"113.***.***.150\"\n }\n },\n \"RequestId\": \"5d9e8c5d-****-****-****-1c0dca666edb\"\n }\n}",
24
24
  "title": "ManageMarketingRisk"
25
25
  }
26
26
  ]
@@ -3,7 +3,7 @@
3
3
  "CreateSavingPlanOrder": [
4
4
  {
5
5
  "document": "",
6
- "input": "POST / HTTP/1.1\nHost: svp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSavingPlanOrder\n<公共请求参数>\n\n{\n \"RegionId\": 47,\n \"ZoneId\": 470004,\n \"PrePayType\": \"1\",\n \"SpecifyEffectTime\": \"2023-10-21 00:00:00\",\n \"TimeSpan\": 1,\n \"TimeUnit\": \"y\",\n \"CommodityCode\": \"svp_common_CYq7cGNk3FaV\",\n \"PromiseUseAmount\": 10000,\n \"ClientToken\": \"sp-856f5555-8064-43e9-8b7e-d04c5a9d6a9a,856f5555806443e98b7ed04c5a9d6a9a\"\n}",
6
+ "input": "POST / HTTP/1.1\nHost: svp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSavingPlanOrder\n<公共请求参数>\n\n{\n \"RegionId\": 47,\n \"ZoneId\": 470004,\n \"PrePayType\": \"1\",\n \"SpecifyEffectTime\": \"2023-10-21 00:00:00\",\n \"TimeSpan\": 1,\n \"TimeUnit\": \"y\",\n \"CommodityCode\": \"svp_common_CYq7cGNk3FaV\",\n \"PromiseUseAmount\": 10000,\n \"ClientToken\": \"sp-856f5555\"\n}",
7
7
  "output": "{\n \"Response\": {\n \"BigDealId\": \"20231020400000764159521\",\n \"RequestId\": \"7525ef6b-ac63-4fa6-9bd4-d8c3c8b96220\"\n }\n}",
8
8
  "title": "节省计划下单"
9
9
  }
@@ -1798,12 +1798,12 @@
1798
1798
  "type": "object"
1799
1799
  },
1800
1800
  "Filter": {
1801
- "document": ">描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等\n> * 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。\n> * 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。\n>\n> 以[DescribeCommands](https://cloud.tencent.com/document/api/1340/52681)接口的`Filters`为例。若我们需要查询命令名称(`command-name`)为 “打印工作目录” ***并且*** 命令类型(`command-type`)为 “POWERSHELL” ***或者*** “BAT” 时,可如下实现:\n```\nFilters.0.Name=command-name\n&Filters.0.Values.0=打印工作目录\n\n&Filters.1.Name=command-type\n&Filters.1.Values.0=POWERSHELL\n&Filters.1.Values.1=BAT\n```",
1801
+ "document": "> 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等\n> - 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。\n> - 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。\n> \n> 以[DescribeCommands](https://cloud.tencent.com/document/api/1340/52681)接口的`Filters`为例。若我们需要查询命令名称(`command-name`)为 “打印工作目录” ***并且*** 命令类型(`command-type`)为 “POWERSHELL” ***或者*** “BAT” 时,可如下实现:\n```\nFilters.0.Name=command-name\n&Filters.0.Values.0=打印工作目录\n\n&Filters.1.Name=command-type\n&Filters.1.Values.0=POWERSHELL\n&Filters.1.Values.1=BAT\n```",
1802
1802
  "members": [
1803
1803
  {
1804
1804
  "disabled": false,
1805
1805
  "document": "需要过滤的字段。",
1806
- "example": "",
1806
+ "example": "command-type",
1807
1807
  "member": "string",
1808
1808
  "name": "Name",
1809
1809
  "required": true,
@@ -1812,7 +1812,7 @@
1812
1812
  {
1813
1813
  "disabled": false,
1814
1814
  "document": "字段的过滤值。",
1815
- "example": "",
1815
+ "example": "[\"POWERSHELL\", \"BAT\"]",
1816
1816
  "member": "string",
1817
1817
  "name": "Values",
1818
1818
  "required": true,
@@ -227,6 +227,58 @@ def doCreateCluster(args, parsed_globals):
227
227
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
228
228
 
229
229
 
230
+ def doDescribeSupportedRuntime(args, parsed_globals):
231
+ g_param = parse_global_arg(parsed_globals)
232
+
233
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
234
+ cred = credential.CVMRoleCredential()
235
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
236
+ cred = credential.STSAssumeRoleCredential(
237
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
238
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
239
+ )
240
+ 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):
241
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
242
+ else:
243
+ cred = credential.Credential(
244
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
245
+ )
246
+ http_profile = HttpProfile(
247
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
248
+ reqMethod="POST",
249
+ endpoint=g_param[OptionsDefine.Endpoint],
250
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
251
+ )
252
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
253
+ if g_param[OptionsDefine.Language]:
254
+ profile.language = g_param[OptionsDefine.Language]
255
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
256
+ client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
257
+ client._sdkVersion += ("_CLI_" + __version__)
258
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
259
+ model = models.DescribeSupportedRuntimeRequest()
260
+ model.from_json_string(json.dumps(args))
261
+ start_time = time.time()
262
+ while True:
263
+ rsp = client.DescribeSupportedRuntime(model)
264
+ result = rsp.to_json_string()
265
+ try:
266
+ json_obj = json.loads(result)
267
+ except TypeError as e:
268
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
269
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
270
+ break
271
+ cur_time = time.time()
272
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
273
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
274
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
275
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
276
+ else:
277
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
278
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
279
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
280
+
281
+
230
282
  def doCreateClusterVirtualNodePool(args, parsed_globals):
231
283
  g_param = parse_global_arg(parsed_globals)
232
284
 
@@ -11355,6 +11407,58 @@ def doCreateClusterEndpointVip(args, parsed_globals):
11355
11407
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11356
11408
 
11357
11409
 
11410
+ def doModifyClusterRuntimeConfig(args, parsed_globals):
11411
+ g_param = parse_global_arg(parsed_globals)
11412
+
11413
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
11414
+ cred = credential.CVMRoleCredential()
11415
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
11416
+ cred = credential.STSAssumeRoleCredential(
11417
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
11418
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
11419
+ )
11420
+ 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):
11421
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
11422
+ else:
11423
+ cred = credential.Credential(
11424
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
11425
+ )
11426
+ http_profile = HttpProfile(
11427
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
11428
+ reqMethod="POST",
11429
+ endpoint=g_param[OptionsDefine.Endpoint],
11430
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
11431
+ )
11432
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
11433
+ if g_param[OptionsDefine.Language]:
11434
+ profile.language = g_param[OptionsDefine.Language]
11435
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
11436
+ client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
11437
+ client._sdkVersion += ("_CLI_" + __version__)
11438
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
11439
+ model = models.ModifyClusterRuntimeConfigRequest()
11440
+ model.from_json_string(json.dumps(args))
11441
+ start_time = time.time()
11442
+ while True:
11443
+ rsp = client.ModifyClusterRuntimeConfig(model)
11444
+ result = rsp.to_json_string()
11445
+ try:
11446
+ json_obj = json.loads(result)
11447
+ except TypeError as e:
11448
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
11449
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
11450
+ break
11451
+ cur_time = time.time()
11452
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
11453
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
11454
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
11455
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
11456
+ else:
11457
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
11458
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
11459
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11460
+
11461
+
11358
11462
  def doDescribeRouteTableConflicts(args, parsed_globals):
11359
11463
  g_param = parse_global_arg(parsed_globals)
11360
11464
 
@@ -11424,6 +11528,7 @@ ACTION_MAP = {
11424
11528
  "CreateECMInstances": doCreateECMInstances,
11425
11529
  "DescribeClusterVirtualNode": doDescribeClusterVirtualNode,
11426
11530
  "CreateCluster": doCreateCluster,
11531
+ "DescribeSupportedRuntime": doDescribeSupportedRuntime,
11427
11532
  "CreateClusterVirtualNodePool": doCreateClusterVirtualNodePool,
11428
11533
  "GetTkeAppChartList": doGetTkeAppChartList,
11429
11534
  "ModifyClusterAsGroupOptionAttribute": doModifyClusterAsGroupOptionAttribute,
@@ -11638,6 +11743,7 @@ ACTION_MAP = {
11638
11743
  "InstallLogAgent": doInstallLogAgent,
11639
11744
  "CheckEdgeClusterCIDR": doCheckEdgeClusterCIDR,
11640
11745
  "CreateClusterEndpointVip": doCreateClusterEndpointVip,
11746
+ "ModifyClusterRuntimeConfig": doModifyClusterRuntimeConfig,
11641
11747
  "DescribeRouteTableConflicts": doDescribeRouteTableConflicts,
11642
11748
 
11643
11749
  }