tccli 3.0.1228.1__py2.py3-none-any.whl → 3.0.1229.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 (46) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +12 -3
  3. tccli/services/cam/v20190116/api.json +25 -25
  4. tccli/services/cam/v20190116/examples.json +8 -8
  5. tccli/services/cdb/v20170320/api.json +8 -8
  6. tccli/services/ckafka/v20190819/api.json +1 -1
  7. tccli/services/ckafka/v20190819/examples.json +14 -14
  8. tccli/services/clb/v20180317/api.json +1 -1
  9. tccli/services/cloudaudit/v20190319/api.json +15 -15
  10. tccli/services/cloudaudit/v20190319/examples.json +3 -3
  11. tccli/services/config/v20220802/api.json +70 -68
  12. tccli/services/config/v20220802/examples.json +6 -6
  13. tccli/services/cynosdb/cynosdb_client.py +118 -12
  14. tccli/services/cynosdb/v20190107/api.json +126 -0
  15. tccli/services/cynosdb/v20190107/examples.json +16 -0
  16. tccli/services/essbasic/v20210526/api.json +10 -0
  17. tccli/services/facefusion/v20181201/api.json +12 -6
  18. tccli/services/hai/v20230812/api.json +6 -6
  19. tccli/services/hai/v20230812/examples.json +2 -2
  20. tccli/services/mqtt/mqtt_client.py +118 -12
  21. tccli/services/mqtt/v20240516/api.json +312 -33
  22. tccli/services/mqtt/v20240516/examples.json +23 -13
  23. tccli/services/ocr/v20181119/api.json +11 -2
  24. tccli/services/ocr/v20181119/examples.json +6 -6
  25. tccli/services/pts/v20210728/api.json +22 -12
  26. tccli/services/redis/v20180412/api.json +14 -14
  27. tccli/services/scf/v20180416/api.json +12 -0
  28. tccli/services/ssl/v20191205/api.json +246 -173
  29. tccli/services/ssl/v20191205/examples.json +69 -69
  30. tccli/services/sts/v20180813/api.json +17 -11
  31. tccli/services/sts/v20180813/examples.json +6 -6
  32. tccli/services/tcr/v20190924/api.json +17 -17
  33. tccli/services/tdmq/tdmq_client.py +4 -57
  34. tccli/services/tdmq/v20200217/api.json +119 -200
  35. tccli/services/tdmq/v20200217/examples.json +29 -49
  36. tccli/services/trtc/v20190722/api.json +1 -1
  37. tccli/services/vclm/v20240523/api.json +25 -15
  38. tccli/services/vclm/v20240523/examples.json +2 -2
  39. tccli/services/vod/v20180717/api.json +1 -1
  40. tccli/services/vpc/v20170312/api.json +166 -137
  41. tccli/services/vpc/v20170312/examples.json +3 -3
  42. {tccli-3.0.1228.1.dist-info → tccli-3.0.1229.1.dist-info}/METADATA +2 -2
  43. {tccli-3.0.1228.1.dist-info → tccli-3.0.1229.1.dist-info}/RECORD +46 -46
  44. {tccli-3.0.1228.1.dist-info → tccli-3.0.1229.1.dist-info}/WHEEL +0 -0
  45. {tccli-3.0.1228.1.dist-info → tccli-3.0.1229.1.dist-info}/entry_points.txt +0 -0
  46. {tccli-3.0.1228.1.dist-info → tccli-3.0.1229.1.dist-info}/license_files/LICENSE +0 -0
@@ -56,7 +56,7 @@
56
56
  {
57
57
  "disabled": false,
58
58
  "document": "密钥ID",
59
- "example": "",
59
+ "example": "AKID***",
60
60
  "member": "string",
61
61
  "name": "SecretId",
62
62
  "output_required": true,
@@ -66,7 +66,7 @@
66
66
  {
67
67
  "disabled": false,
68
68
  "document": "创建时间(时间戳)",
69
- "example": "",
69
+ "example": "1575517111",
70
70
  "member": "uint64",
71
71
  "name": "CreateTime",
72
72
  "output_required": true,
@@ -76,7 +76,7 @@
76
76
  {
77
77
  "disabled": false,
78
78
  "document": "状态(2:有效, 3:禁用, 4:已删除)",
79
- "example": "",
79
+ "example": "2",
80
80
  "member": "uint64",
81
81
  "name": "Status",
82
82
  "output_required": true,
@@ -92,7 +92,7 @@
92
92
  {
93
93
  "disabled": false,
94
94
  "document": "角色的资源描述,可在[访问管理](https://console.cloud.tencent.com/cam/role),点击角色名获取。\n普通角色:\nqcs::cam::uin/12345678:role/4611686018427397919、qcs::cam::uin/12345678:roleName/testRoleName\n服务角色:\nqcs::cam::uin/12345678:role/tencentcloudServiceRole/4611686018427397920、qcs::cam::uin/12345678:role/tencentcloudServiceRoleName/testServiceRoleName",
95
- "example": "qcs%3A%3Acam%3A%3Auin%2F2385420691%3Arole%2F4611686018427397919",
95
+ "example": "qcs::cam::uin/100015158414:roleName/readOnlyRole",
96
96
  "member": "string",
97
97
  "name": "RoleArn",
98
98
  "required": true,
@@ -119,7 +119,7 @@
119
119
  {
120
120
  "disabled": false,
121
121
  "document": "策略描述\n注意:\n1、该参数需要做urlencode,服务端会对该字段做urldecode, 并按处理后Policy授予临时访问凭证权限,请按规范传入参数。(如果通过 GET 方法请求云 API,发送请求前,所有参数都需要按照[云 API 规范](https://cloud.tencent.com/document/api/598/33159#1.-.E6.8B.BC.E6.8E.A5.E8.A7.84.E8.8C.83.E8.AF.B7.E6.B1.82.E4.B8.B2)再 urlencode 一次)。\n2、策略语法参照[ CAM 策略语法](https://cloud.tencent.com/document/product/598/10603)。\n3、策略中不能包含 principal 元素。",
122
- "example": "",
122
+ "example": "%7B%22version%22%3A%222.0%22%2C%22statement%22%3A%5B%7B%22effect%22%3A%22allow%22%2C%22action%22%3A%5B%22dlc%3A*%22%5D%2C%22resource%22%3A%5B%22*%22%5D%7D%5D%7D%22%7D%7D%7D",
123
123
  "member": "string",
124
124
  "name": "Policy",
125
125
  "required": false,
@@ -137,7 +137,7 @@
137
137
  {
138
138
  "disabled": false,
139
139
  "document": "会话标签列表。最多可以传递 50 个会话标签,不支持包含相同标签键。",
140
- "example": "",
140
+ "example": "[{\"Key\":\"partment\",\"Value\":\"product\"}]",
141
141
  "member": "Tag",
142
142
  "name": "Tags",
143
143
  "required": false,
@@ -161,7 +161,7 @@
161
161
  {
162
162
  "disabled": false,
163
163
  "document": "临时访问凭证",
164
- "example": "",
164
+ "example": "{\"Token\":\"da1e***\",\"TmpSecretId\":\"AKID***\",\"TmpSecretKey\":\"q95K***\"}",
165
165
  "member": "Credentials",
166
166
  "name": "Credentials",
167
167
  "output_required": true,
@@ -257,6 +257,7 @@
257
257
  "example": "无",
258
258
  "member": "Credentials",
259
259
  "name": "Credentials",
260
+ "output_required": true,
260
261
  "type": "object",
261
262
  "value_allowed_null": false
262
263
  },
@@ -266,6 +267,7 @@
266
267
  "example": "1543914376",
267
268
  "member": "uint64",
268
269
  "name": "ExpiredTime",
270
+ "output_required": true,
269
271
  "type": "int",
270
272
  "value_allowed_null": false
271
273
  },
@@ -275,6 +277,7 @@
275
277
  "example": "2018-12-04T09:06:16Z",
276
278
  "member": "string",
277
279
  "name": "Expiration",
280
+ "output_required": true,
278
281
  "type": "string",
279
282
  "value_allowed_null": false
280
283
  },
@@ -344,27 +347,30 @@
344
347
  {
345
348
  "disabled": false,
346
349
  "document": "临时访问凭证过期时间(时间戳)",
347
- "example": "123456789",
350
+ "example": "1543914376",
348
351
  "member": "uint64",
349
352
  "name": "ExpiredTime",
353
+ "output_required": true,
350
354
  "type": "int",
351
355
  "value_allowed_null": false
352
356
  },
353
357
  {
354
358
  "disabled": false,
355
359
  "document": "临时访问凭证过期时间",
356
- "example": "2010-12-10",
360
+ "example": "2018-12-04T09:06:16Z",
357
361
  "member": "string",
358
362
  "name": "Expiration",
363
+ "output_required": true,
359
364
  "type": "string",
360
365
  "value_allowed_null": false
361
366
  },
362
367
  {
363
368
  "disabled": false,
364
369
  "document": "临时访问凭证",
365
- "example": "",
370
+ "example": "{\"Token\":\"1siMD***\",\"TmpSecretId\":\"AKID***\",\"TmpSecretKey\":\"q95K***\"}",
366
371
  "member": "Credentials",
367
372
  "name": "Credentials",
373
+ "output_required": true,
368
374
  "type": "object",
369
375
  "value_allowed_null": false
370
376
  },
@@ -571,7 +577,7 @@
571
577
  {
572
578
  "disabled": false,
573
579
  "document": "密钥ID列表。",
574
- "example": "[\"AKIDyqWzF***\",\"AKID5CnA***\"]",
580
+ "example": "[{\"SecretId\":\"AKID***\",\"CreateTime\":1575517111,\"Status\":2}]",
575
581
  "member": "ApiKey",
576
582
  "name": "IdKeys",
577
583
  "output_required": true,
@@ -3,8 +3,8 @@
3
3
  "AssumeRole": [
4
4
  {
5
5
  "document": "申请扮演角色临时访问凭证",
6
- "input": "POST / HTTP/1.1\nHost: sts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssumeRole\n<公共请求参数>\n\n{\n \"RoleArn\": \"qcs%3A%3Acam%3A%3Auin%2F2385420691%3Arole%2F4611686018427397919\",\n \"RoleSessionName\": \"cts\"\n}",
7
- "output": "{\n \"Response\": {\n \"Credentials\": {\n \"Token\": \"da1e9d2ee9d***2dfe340001\",\n \"TmpSecretId\": \"AKID65zyIP0mpXtaI******WIQVMn1umNH58\",\n \"TmpSecretKey\": \"q95K84wrzuEGoc*******52boxvp71yoh\"\n },\n \"ExpiredTime\": 1543914376,\n \"Expiration\": \"2018-12-04T09:06:16Z\",\n \"RequestId\": \"4daec797-9cd2-4f09-9e7a-7d4c43b2a74c\"\n }\n}",
6
+ "input": "POST / HTTP/1.1\nHost: sts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssumeRole\n<公共请求参数>\n\n{\n \"RoleArn\": \"qcs::cam::uin/100015158414:roleName/readOnlyRole\",\n \"RoleSessionName\": \"cts\"\n}",
7
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"Token\": \"da1e***\",\n \"TmpSecretId\": \"AKID***\",\n \"TmpSecretKey\": \"q95K***\"\n },\n \"ExpiredTime\": 1543914376,\n \"Expiration\": \"2018-12-04T09:06:16Z\",\n \"RequestId\": \"4daec797-9cd2-4f09-9e7a-7d4c43b2a74c\"\n }\n}",
8
8
  "title": "申请扮演角色临时访问凭证"
9
9
  }
10
10
  ],
@@ -12,7 +12,7 @@
12
12
  {
13
13
  "document": "SAML 断言申请角色临时访问凭证",
14
14
  "input": "POST / HTTP/1.1\nHost: sts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssumeRoleWithSAML\n<公共请求参数>\n\n{\n \"RoleArn\": \"qcs::cam::uin/798950673:roleName/OneLogin-Role\",\n \"PrincipalArn\": \"qcs::cam::uin/798950673:saml-provider/OneLogin\",\n \"SAMLAssertion\": \"c2FtbCBhc3NlcnRpb24=\",\n \"RoleSessionName\": \"test\"\n}",
15
- "output": "{\n \"Response\": {\n \"Credentials\": {\n \"Token\": \"1siMD***5ue\",\n \"TmpSecretId\": \"AKID****H58\",\n \"TmpSecretKey\": \"q95K****yoh\"\n },\n \"ExpiredTime\": 1543914376,\n \"Expiration\": \"2018-12-04T09:06:16Z\",\n \"RequestId\": \"4daec797-9cd2-4f09-9e7a-7d4c43b2a74c\"\n }\n}",
15
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"Token\": \"1siMD***\",\n \"TmpSecretId\": \"AKID***\",\n \"TmpSecretKey\": \"q95K***\"\n },\n \"ExpiredTime\": 1543914376,\n \"Expiration\": \"2018-12-04T09:06:16Z\",\n \"RequestId\": \"4daec797-9cd2-4f09-9e7a-7d4c43b2a74c\"\n }\n}",
16
16
  "title": "SAML 断言申请角色临时访问凭证"
17
17
  }
18
18
  ],
@@ -20,7 +20,7 @@
20
20
  {
21
21
  "document": "申请OIDC角色临时访问凭证",
22
22
  "input": "POST / HTTP/1.1\nHost: sts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssumeRoleWithWebIdentity\n<公共请求参数>\n\n{\n \"DurationSeconds\": \"1800\",\n \"RoleSessionName\": \"test_OIDC\",\n \"WebIdentityToken\": \"eyJraWQiOiJkT**********CNOQ\",\n \"RoleArn\": \"qcs::cam::uin/7989***:roleName/OneLogin-Role\",\n \"ProviderId\": \"OIDC\"\n}",
23
- "output": "{\n \"Response\": {\n \"ExpiredTime\": 1543914376,\n \"Expiration\": \"2018-12-04T09:06:16Z\",\n \"Credentials\": {\n \"Token\": \"1siMD5r0tPAq9xpR******6a1ad76f09a0069002923def8aFw7tUMd2nH\",\n \"TmpSecretId\": \"AKID65zyIP0mp****qt2SlWIQVMn1umNH58\",\n \"TmpSecretKey\": \"q95K84wrzuE****y39zg52boxvp71yoh\"\n },\n \"RequestId\": \"f6e7cbcb-add1-47bd-9097-d08cf8f3a919\"\n }\n}",
23
+ "output": "{\n \"Response\": {\n \"ExpiredTime\": 1543914376,\n \"Expiration\": \"2018-12-04T09:06:16Z\",\n \"Credentials\": {\n \"Token\": \"1siMD***\",\n \"TmpSecretId\": \"AKID***\",\n \"TmpSecretKey\": \"q95K***\"\n },\n \"RequestId\": \"f6e7cbcb-add1-47bd-9097-d08cf8f3a919\"\n }\n}",
24
24
  "title": "申请OIDC角色临时访问凭证"
25
25
  }
26
26
  ],
@@ -48,7 +48,7 @@
48
48
  {
49
49
  "document": "授权临时访问凭证具有以下权限:\n{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":[\"name/cos:PutObject\"],\"resource\":[\"qcs::cos:ap-beijing:uid/123456:prefix//123456/bucketA/*\"]}]}\n\n注意,因为GET请求需要给所有参数做urlencode,所以下面示例中的Policy参数是做了两次urlencode的结果。",
50
50
  "input": "https://sts.tencentcloudapi.com/?Action=GetFederationToken\n&Name=SUN\n&Policy=%257B%2522version%2522%3A%25222.0%2522%2C%2522statement%2522%3A%255B%257B%2522effect%2522%3A%2522allow%2522%2C%2522action%2522%3A%255B%2522name%2Fcos%3APutObject%2522%255D%2C%2522resource%2522%3A%255B%2522qcs%3A%3Acos%3Aap-beijing%3Auid%2F123456%3Aprefix%2F%2F123456%2FbucketA%2F%2A%2522%255D%257D%255D%257D\n&<公共请求参数>",
51
- "output": "{\n \"Response\": {\n \"Credentials\": {\n \"Token\": \"kTRt***Jb7m\",\n \"TmpSecretId\": \"AKID****CjE6\",\n \"TmpSecretKey\": \"Eo28***7ps=\"\n },\n \"Expiration\": \"2023-06-14T05:06:57Z\",\n \"ExpiredTime\": 1686719217,\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
51
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"Token\": \"kTRt***\",\n \"TmpSecretId\": \"AKID***\",\n \"TmpSecretKey\": \"Eo28***\"\n },\n \"Expiration\": \"2023-06-14T05:06:57Z\",\n \"ExpiredTime\": 1686719217,\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
52
52
  "title": "获取临时访问凭证"
53
53
  }
54
54
  ],
@@ -56,7 +56,7 @@
56
56
  {
57
57
  "document": "",
58
58
  "input": "https://sts.tencentcloudapi.com/?Action=QueryApiKey\n&TargetUin=100020328651\n&<公共请求参数>",
59
- "output": "{\n \"Response\": {\n \"IdKeys\": [\n {\n \"SecretId\": \"AKID5Cn***\",\n \"CreateTime\": 1575517111,\n \"Status\": 2\n }\n ],\n \"RequestId\": \"5cf9d558-a46a-4ce7-bbc2-500cad68b0da\"\n }\n}",
59
+ "output": "{\n \"Response\": {\n \"IdKeys\": [\n {\n \"SecretId\": \"AKID***\",\n \"CreateTime\": 1575517111,\n \"Status\": 2\n }\n ],\n \"RequestId\": \"5cf9d558-a46a-4ce7-bbc2-500cad68b0da\"\n }\n}",
60
60
  "title": "拉取API密钥列表"
61
61
  }
62
62
  ]
@@ -7864,7 +7864,7 @@
7864
7864
  "example": "无",
7865
7865
  "member": "string",
7866
7866
  "name": "RegistryId",
7867
- "required": true,
7867
+ "output_required": true,
7868
7868
  "type": "string",
7869
7869
  "value_allowed_null": false
7870
7870
  },
@@ -7874,7 +7874,7 @@
7874
7874
  "example": "无",
7875
7875
  "member": "string",
7876
7876
  "name": "RegistryName",
7877
- "required": true,
7877
+ "output_required": true,
7878
7878
  "type": "string",
7879
7879
  "value_allowed_null": false
7880
7880
  },
@@ -7884,17 +7884,17 @@
7884
7884
  "example": "无",
7885
7885
  "member": "string",
7886
7886
  "name": "RegistryType",
7887
- "required": true,
7887
+ "output_required": true,
7888
7888
  "type": "string",
7889
7889
  "value_allowed_null": false
7890
7890
  },
7891
7891
  {
7892
7892
  "disabled": false,
7893
- "document": "实例状态",
7893
+ "document": "实例状态。有以下状态:\nPending, 初始化中\nDeploying, 创建中\nRunning, 运行中\nUnhealthy, 状态异常\nFailedCreated, 创建失败\nFailedUpdated, 更新失败\nBucket-Error, 存储桶异常\nIsolate, 待回收\nDeleting, 删除中\nDeleteBucketFailed, 实例删除存储桶失败\nDeleteFailed, 实例删除失败",
7894
7894
  "example": "无",
7895
7895
  "member": "string",
7896
7896
  "name": "Status",
7897
- "required": true,
7897
+ "output_required": true,
7898
7898
  "type": "string",
7899
7899
  "value_allowed_null": false
7900
7900
  },
@@ -7904,7 +7904,7 @@
7904
7904
  "example": "无",
7905
7905
  "member": "string",
7906
7906
  "name": "PublicDomain",
7907
- "required": true,
7907
+ "output_required": true,
7908
7908
  "type": "string",
7909
7909
  "value_allowed_null": false
7910
7910
  },
@@ -7914,7 +7914,7 @@
7914
7914
  "example": "无",
7915
7915
  "member": "datetime_iso",
7916
7916
  "name": "CreatedAt",
7917
- "required": true,
7917
+ "output_required": true,
7918
7918
  "type": "string",
7919
7919
  "value_allowed_null": false
7920
7920
  },
@@ -7924,7 +7924,7 @@
7924
7924
  "example": "无",
7925
7925
  "member": "string",
7926
7926
  "name": "RegionName",
7927
- "required": true,
7927
+ "output_required": true,
7928
7928
  "type": "string",
7929
7929
  "value_allowed_null": false
7930
7930
  },
@@ -7934,7 +7934,7 @@
7934
7934
  "example": "无",
7935
7935
  "member": "uint64",
7936
7936
  "name": "RegionId",
7937
- "required": true,
7937
+ "output_required": true,
7938
7938
  "type": "int",
7939
7939
  "value_allowed_null": false
7940
7940
  },
@@ -7944,7 +7944,7 @@
7944
7944
  "example": "无",
7945
7945
  "member": "bool",
7946
7946
  "name": "EnableAnonymous",
7947
- "required": true,
7947
+ "output_required": true,
7948
7948
  "type": "bool",
7949
7949
  "value_allowed_null": false
7950
7950
  },
@@ -7954,7 +7954,7 @@
7954
7954
  "example": "无",
7955
7955
  "member": "uint64",
7956
7956
  "name": "TokenValidTime",
7957
- "required": true,
7957
+ "output_required": true,
7958
7958
  "type": "int",
7959
7959
  "value_allowed_null": false
7960
7960
  },
@@ -7964,7 +7964,7 @@
7964
7964
  "example": "无",
7965
7965
  "member": "string",
7966
7966
  "name": "InternalEndpoint",
7967
- "required": true,
7967
+ "output_required": true,
7968
7968
  "type": "string",
7969
7969
  "value_allowed_null": false
7970
7970
  },
@@ -7974,7 +7974,7 @@
7974
7974
  "example": "无",
7975
7975
  "member": "TagSpecification",
7976
7976
  "name": "TagSpecification",
7977
- "required": true,
7977
+ "output_required": true,
7978
7978
  "type": "object",
7979
7979
  "value_allowed_null": true
7980
7980
  },
@@ -7984,7 +7984,7 @@
7984
7984
  "example": "无",
7985
7985
  "member": "string",
7986
7986
  "name": "ExpiredAt",
7987
- "required": true,
7987
+ "output_required": true,
7988
7988
  "type": "string",
7989
7989
  "value_allowed_null": true
7990
7990
  },
@@ -7994,7 +7994,7 @@
7994
7994
  "example": "无",
7995
7995
  "member": "int64",
7996
7996
  "name": "PayMod",
7997
- "required": true,
7997
+ "output_required": true,
7998
7998
  "type": "int",
7999
7999
  "value_allowed_null": true
8000
8000
  },
@@ -8004,7 +8004,7 @@
8004
8004
  "example": "无",
8005
8005
  "member": "int64",
8006
8006
  "name": "RenewFlag",
8007
- "required": true,
8007
+ "output_required": true,
8008
8008
  "type": "int",
8009
8009
  "value_allowed_null": true
8010
8010
  },
@@ -8014,7 +8014,7 @@
8014
8014
  "example": "无",
8015
8015
  "member": "bool",
8016
8016
  "name": "DeletionProtection",
8017
- "required": false,
8017
+ "output_required": true,
8018
8018
  "type": "bool",
8019
8019
  "value_allowed_null": false
8020
8020
  }
@@ -1941,58 +1941,6 @@ def doCreateRabbitMQVirtualHost(args, parsed_globals):
1941
1941
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
1942
 
1943
1943
 
1944
- def doDeleteCluster(args, parsed_globals):
1945
- g_param = parse_global_arg(parsed_globals)
1946
-
1947
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1948
- cred = credential.CVMRoleCredential()
1949
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1950
- cred = credential.STSAssumeRoleCredential(
1951
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1952
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1953
- )
1954
- 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):
1955
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1956
- else:
1957
- cred = credential.Credential(
1958
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1959
- )
1960
- http_profile = HttpProfile(
1961
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1962
- reqMethod="POST",
1963
- endpoint=g_param[OptionsDefine.Endpoint],
1964
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1965
- )
1966
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1967
- if g_param[OptionsDefine.Language]:
1968
- profile.language = g_param[OptionsDefine.Language]
1969
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1970
- client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
1971
- client._sdkVersion += ("_CLI_" + __version__)
1972
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
- model = models.DeleteClusterRequest()
1974
- model.from_json_string(json.dumps(args))
1975
- start_time = time.time()
1976
- while True:
1977
- rsp = client.DeleteCluster(model)
1978
- result = rsp.to_json_string()
1979
- try:
1980
- json_obj = json.loads(result)
1981
- except TypeError as e:
1982
- json_obj = json.loads(result.decode('utf-8')) # python3.3
1983
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1984
- break
1985
- cur_time = time.time()
1986
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1987
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1988
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1989
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1990
- else:
1991
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1992
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1993
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
-
1995
-
1996
1944
  def doDeleteCmqTopic(args, parsed_globals):
1997
1945
  g_param = parse_global_arg(parsed_globals)
1998
1946
 
@@ -2461,7 +2409,7 @@ def doDescribeRabbitMQVirtualHost(args, parsed_globals):
2461
2409
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2462
2410
 
2463
2411
 
2464
- def doDescribeCmqDeadLetterSourceQueues(args, parsed_globals):
2412
+ def doDeleteCluster(args, parsed_globals):
2465
2413
  g_param = parse_global_arg(parsed_globals)
2466
2414
 
2467
2415
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2490,11 +2438,11 @@ def doDescribeCmqDeadLetterSourceQueues(args, parsed_globals):
2490
2438
  client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
2491
2439
  client._sdkVersion += ("_CLI_" + __version__)
2492
2440
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2493
- model = models.DescribeCmqDeadLetterSourceQueuesRequest()
2441
+ model = models.DeleteClusterRequest()
2494
2442
  model.from_json_string(json.dumps(args))
2495
2443
  start_time = time.time()
2496
2444
  while True:
2497
- rsp = client.DescribeCmqDeadLetterSourceQueues(model)
2445
+ rsp = client.DeleteCluster(model)
2498
2446
  result = rsp.to_json_string()
2499
2447
  try:
2500
2448
  json_obj = json.loads(result)
@@ -7605,7 +7553,6 @@ ACTION_MAP = {
7605
7553
  "DescribePublisherSummary": doDescribePublisherSummary,
7606
7554
  "DeleteRocketMQNamespace": doDeleteRocketMQNamespace,
7607
7555
  "CreateRabbitMQVirtualHost": doCreateRabbitMQVirtualHost,
7608
- "DeleteCluster": doDeleteCluster,
7609
7556
  "DeleteCmqTopic": doDeleteCmqTopic,
7610
7557
  "ModifyPublicNetworkAccessPoint": doModifyPublicNetworkAccessPoint,
7611
7558
  "ModifyRocketMQInstance": doModifyRocketMQInstance,
@@ -7615,7 +7562,7 @@ ACTION_MAP = {
7615
7562
  "DescribeRocketMQMigratingTopicList": doDescribeRocketMQMigratingTopicList,
7616
7563
  "DescribeCmqSubscriptionDetail": doDescribeCmqSubscriptionDetail,
7617
7564
  "DescribeRabbitMQVirtualHost": doDescribeRabbitMQVirtualHost,
7618
- "DescribeCmqDeadLetterSourceQueues": doDescribeCmqDeadLetterSourceQueues,
7565
+ "DeleteCluster": doDeleteCluster,
7619
7566
  "CreateRocketMQVipInstance": doCreateRocketMQVipInstance,
7620
7567
  "ResetRocketMQConsumerOffSet": doResetRocketMQConsumerOffSet,
7621
7568
  "DescribeClusters": doDescribeClusters,