tccli 3.0.1048.1__py2.py3-none-any.whl → 3.0.1050.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 (88) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/antiddos/v20200309/DescribeBGPIPL7Rules.md +87 -0
  3. tccli/examples/ckafka/v20190819/DescribeGroup.md +6 -5
  4. tccli/examples/csip/v20221121/ModifyOrganizationAccountStatus.md +21 -0
  5. tccli/examples/csip/v20221121/ModifyRiskCenterScanTask.md +41 -0
  6. tccli/examples/cynosdb/v20190107/AddInstances.md +2 -2
  7. tccli/examples/cynosdb/v20190107/DescribeClusterInstanceGrps.md +235 -79
  8. tccli/examples/cynosdb/v20190107/DescribeClusterParams.md +3 -1
  9. tccli/examples/cynosdb/v20190107/DescribeClusterPasswordComplexity.md +18 -6
  10. tccli/examples/cynosdb/v20190107/DescribeInstances.md +63 -55
  11. tccli/examples/cynosdb/v20190107/DescribeParamTemplateDetail.md +3 -1
  12. tccli/examples/cynosdb/v20190107/ModifyVipVport.md +3 -3
  13. tccli/examples/essbasic/v20210526/ChannelCreatePrepareFlow.md +2 -2
  14. tccli/examples/hunyuan/v20230901/ChatPro.md +76 -0
  15. tccli/examples/hunyuan/v20230901/ChatStd.md +37 -0
  16. tccli/examples/live/v20180801/DescribeLiveTranscodeTemplates.md +8 -8
  17. tccli/examples/oceanus/v20190422/CopyJobs.md +11 -20
  18. tccli/examples/redis/v20180412/CreateInstanceAccount.md +7 -6
  19. tccli/examples/teo/v20220901/DescribeDefaultCertificates.md +2 -1
  20. tccli/examples/tke/v20180525/ForwardApplicationRequestV3.md +2 -2
  21. tccli/examples/trocket/v20230308/CreateMQTTInsPublicEndpoint.md +26 -0
  22. tccli/examples/trocket/v20230308/CreateMQTTInstance.md +31 -0
  23. tccli/examples/trocket/v20230308/CreateMQTTTopic.md +25 -0
  24. tccli/examples/trocket/v20230308/CreateMQTTUser.md +27 -0
  25. tccli/examples/trocket/v20230308/DeleteMQTTInsPublicEndpoint.md +22 -0
  26. tccli/examples/trocket/v20230308/DeleteMQTTInstance.md +22 -0
  27. tccli/examples/trocket/v20230308/DeleteMQTTTopic.md +23 -0
  28. tccli/examples/trocket/v20230308/DeleteMQTTUser.md +23 -0
  29. tccli/examples/trocket/v20230308/DescribeMQTTClient.md +82 -0
  30. tccli/examples/trocket/v20230308/DescribeMQTTInsPublicEndpoints.md +26 -0
  31. tccli/examples/trocket/v20230308/DescribeMQTTInsVPCEndpoints.md +40 -0
  32. tccli/examples/trocket/v20230308/DescribeMQTTInstance.md +34 -0
  33. tccli/examples/trocket/v20230308/DescribeMQTTInstanceCert.md +25 -0
  34. tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +176 -0
  35. tccli/examples/trocket/v20230308/DescribeMQTTMessage.md +83 -0
  36. tccli/examples/trocket/v20230308/DescribeMQTTMessageList.md +54 -0
  37. tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +94 -0
  38. tccli/examples/trocket/v20230308/DescribeMQTTTopic.md +27 -0
  39. tccli/examples/trocket/v20230308/DescribeMQTTTopicList.md +127 -0
  40. tccli/examples/trocket/v20230308/DescribeMQTTUserList.md +36 -0
  41. tccli/examples/trocket/v20230308/ModifyMQTTInsPublicEndpoint.md +26 -0
  42. tccli/examples/trocket/v20230308/ModifyMQTTInstance.md +24 -0
  43. tccli/examples/trocket/v20230308/ModifyMQTTInstanceCertBinding.md +24 -0
  44. tccli/examples/trocket/v20230308/ModifyMQTTTopic.md +24 -0
  45. tccli/examples/trocket/v20230308/ModifyMQTTUser.md +26 -0
  46. tccli/examples/wedata/v20210820/DeleteProjectUsers.md +36 -0
  47. tccli/services/antiddos/antiddos_client.py +53 -0
  48. tccli/services/antiddos/v20200309/api.json +439 -0
  49. tccli/services/antiddos/v20200309/examples.json +8 -0
  50. tccli/services/cfg/v20210820/api.json +21 -10
  51. tccli/services/ckafka/v20190819/api.json +6 -5
  52. tccli/services/ckafka/v20190819/examples.json +1 -1
  53. tccli/services/cls/v20201016/api.json +48 -19
  54. tccli/services/csip/csip_client.py +106 -0
  55. tccli/services/csip/v20221121/api.json +188 -0
  56. tccli/services/csip/v20221121/examples.json +16 -0
  57. tccli/services/cynosdb/v20190107/api.json +415 -87
  58. tccli/services/cynosdb/v20190107/examples.json +12 -12
  59. tccli/services/ess/v20201111/api.json +1 -1
  60. tccli/services/essbasic/v20210526/examples.json +2 -2
  61. tccli/services/hunyuan/v20230901/api.json +2 -2
  62. tccli/services/hunyuan/v20230901/examples.json +18 -0
  63. tccli/services/live/v20180801/api.json +13 -3
  64. tccli/services/live/v20180801/examples.json +1 -1
  65. tccli/services/oceanus/v20190422/api.json +32 -3
  66. tccli/services/oceanus/v20190422/examples.json +1 -1
  67. tccli/services/privatedns/v20201028/api.json +29 -19
  68. tccli/services/redis/v20180412/api.json +13 -10
  69. tccli/services/redis/v20180412/examples.json +2 -2
  70. tccli/services/ssl/ssl_client.py +0 -53
  71. tccli/services/ssl/v20191205/api.json +0 -99
  72. tccli/services/ssl/v20191205/examples.json +0 -8
  73. tccli/services/teo/v20220901/api.json +14 -3
  74. tccli/services/teo/v20220901/examples.json +1 -1
  75. tccli/services/tke/v20180525/api.json +26 -22
  76. tccli/services/tke/v20180525/examples.json +1 -1
  77. tccli/services/trocket/trocket_client.py +1377 -52
  78. tccli/services/trocket/v20230308/api.json +2946 -502
  79. tccli/services/trocket/v20230308/examples.json +212 -0
  80. tccli/services/ump/v20200918/api.json +2 -2
  81. tccli/services/wedata/v20210820/api.json +24 -0
  82. tccli/services/wedata/v20210820/examples.json +14 -0
  83. tccli/services/wedata/wedata_client.py +53 -0
  84. {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/METADATA +2 -2
  85. {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/RECORD +88 -59
  86. {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/WHEEL +0 -0
  87. {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/entry_points.txt +0 -0
  88. {tccli-3.0.1048.1.dist-info → tccli-3.0.1050.1.dist-info}/license_files/LICENSE +0 -0
@@ -0,0 +1,27 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket DescribeMQTTTopic --cli-unfold-argument \
9
+ --InstanceId mqtt-7pnqmkrx \
10
+ --Topic topic1
11
+ ```
12
+
13
+ Output:
14
+ ```
15
+ {
16
+ "Error": null,
17
+ "RequestId": null,
18
+ "Response": {
19
+ "CreatedTime": 1705567642,
20
+ "InstanceId": "mqtt-7pnqmkrx",
21
+ "Remark": "",
22
+ "RequestId": "acf7faf2-b2a9-431c-96b9-f589262da8f7",
23
+ "Topic": "topic1"
24
+ }
25
+ }
26
+ ```
27
+
@@ -0,0 +1,127 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket DescribeMQTTTopicList --cli-unfold-argument \
9
+ --InstanceId mqtt-47ka4rdr \
10
+ --Offset 0 \
11
+ --Limit 20
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Error": null,
18
+ "RequestId": null,
19
+ "Response": {
20
+ "Data": [
21
+ {
22
+ "InstanceId": "mqtt-47ka4rdr",
23
+ "Remark": "",
24
+ "Topic": "1111"
25
+ },
26
+ {
27
+ "InstanceId": "mqtt-47ka4rdr",
28
+ "Remark": "",
29
+ "Topic": "topic24"
30
+ },
31
+ {
32
+ "InstanceId": "mqtt-47ka4rdr",
33
+ "Remark": "",
34
+ "Topic": "topic23"
35
+ },
36
+ {
37
+ "InstanceId": "mqtt-47ka4rdr",
38
+ "Remark": "",
39
+ "Topic": "topic22"
40
+ },
41
+ {
42
+ "InstanceId": "mqtt-47ka4rdr",
43
+ "Remark": "",
44
+ "Topic": "topic21"
45
+ },
46
+ {
47
+ "InstanceId": "mqtt-47ka4rdr",
48
+ "Remark": "",
49
+ "Topic": "topic20"
50
+ },
51
+ {
52
+ "InstanceId": "mqtt-47ka4rdr",
53
+ "Remark": "",
54
+ "Topic": "topic19"
55
+ },
56
+ {
57
+ "InstanceId": "mqtt-47ka4rdr",
58
+ "Remark": "",
59
+ "Topic": "topic18"
60
+ },
61
+ {
62
+ "InstanceId": "mqtt-47ka4rdr",
63
+ "Remark": "",
64
+ "Topic": "topic17"
65
+ },
66
+ {
67
+ "InstanceId": "mqtt-47ka4rdr",
68
+ "Remark": "",
69
+ "Topic": "topic16"
70
+ },
71
+ {
72
+ "InstanceId": "mqtt-47ka4rdr",
73
+ "Remark": "",
74
+ "Topic": "topic15"
75
+ },
76
+ {
77
+ "InstanceId": "mqtt-47ka4rdr",
78
+ "Remark": "",
79
+ "Topic": "topic14"
80
+ },
81
+ {
82
+ "InstanceId": "mqtt-47ka4rdr",
83
+ "Remark": "",
84
+ "Topic": "topic13"
85
+ },
86
+ {
87
+ "InstanceId": "mqtt-47ka4rdr",
88
+ "Remark": "",
89
+ "Topic": "topic12"
90
+ },
91
+ {
92
+ "InstanceId": "mqtt-47ka4rdr",
93
+ "Remark": "",
94
+ "Topic": "topic11"
95
+ },
96
+ {
97
+ "InstanceId": "mqtt-47ka4rdr",
98
+ "Remark": "",
99
+ "Topic": "topic10"
100
+ },
101
+ {
102
+ "InstanceId": "mqtt-47ka4rdr",
103
+ "Remark": "",
104
+ "Topic": "topic9"
105
+ },
106
+ {
107
+ "InstanceId": "mqtt-47ka4rdr",
108
+ "Remark": "",
109
+ "Topic": "topic8"
110
+ },
111
+ {
112
+ "InstanceId": "mqtt-47ka4rdr",
113
+ "Remark": "",
114
+ "Topic": "topic7"
115
+ },
116
+ {
117
+ "InstanceId": "mqtt-47ka4rdr",
118
+ "Remark": "",
119
+ "Topic": "topic6"
120
+ }
121
+ ],
122
+ "RequestId": "d9042e88-c70e-4158-958c-8bb57d6c809f",
123
+ "TotalCount": 25
124
+ }
125
+ }
126
+ ```
127
+
@@ -0,0 +1,36 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket DescribeMQTTUserList --cli-unfold-argument \
9
+ --InstanceId mqtt-47ka4rdr \
10
+ --Offset 0 \
11
+ --Limit 10
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Error": null,
18
+ "RequestId": null,
19
+ "Response": {
20
+ "Data": [
21
+ {
22
+ "CreatedTime": 1705392159000,
23
+ "ModifiedTime": 1705392159000,
24
+ "Password": "sunjianxiong",
25
+ "PermRead": true,
26
+ "PermWrite": true,
27
+ "Remark": "",
28
+ "Username": "sunjianxiong"
29
+ }
30
+ ],
31
+ "RequestId": "8e86117c-a56c-4598-9e1f-4a039eed6e3a",
32
+ "TotalCount": 1
33
+ }
34
+ }
35
+ ```
36
+
@@ -0,0 +1,26 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket ModifyMQTTInsPublicEndpoint --cli-unfold-argument \
9
+ --InstanceId mqtt-47ka4rdr \
10
+ --Bandwidth 2 \
11
+ --Rules.0.IpRule 2.2.2.2 \
12
+ --Rules.0.Allow True \
13
+ --Rules.0.Remark 555
14
+ ```
15
+
16
+ Output:
17
+ ```
18
+ {
19
+ "Error": null,
20
+ "RequestId": null,
21
+ "Response": {
22
+ "RequestId": "02eb3529-3440-44e9-b2c8-1e65c7017c09"
23
+ }
24
+ }
25
+ ```
26
+
@@ -0,0 +1,24 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket ModifyMQTTInstance --cli-unfold-argument \
9
+ --InstanceId mqtt-47ka4rdr \
10
+ --Name sjx0119 \
11
+ --Remark 555
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Error": null,
18
+ "RequestId": null,
19
+ "Response": {
20
+ "RequestId": "9955522b-ac27-46c1-8a16-3ed6f98f9c5c"
21
+ }
22
+ }
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket ModifyMQTTInstanceCertBinding --cli-unfold-argument \
9
+ --InstanceId mqtt-rvb5xxrn \
10
+ --SSLServerCertId \
11
+ --SSLCaCertId
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Error": null,
18
+ "RequestId": null,
19
+ "Response": {
20
+ "RequestId": "1d2d027f-1701-4bc6-8a2a-cede24d9c9ed"
21
+ }
22
+ }
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket ModifyMQTTTopic --cli-unfold-argument \
9
+ --InstanceId mqtt-rvb5xxrn \
10
+ --Topic 222 \
11
+ --Remark 444
12
+ ```
13
+
14
+ Output:
15
+ ```
16
+ {
17
+ "Error": null,
18
+ "RequestId": null,
19
+ "Response": {
20
+ "RequestId": "29a02c3b-66ee-4442-acb7-3545b8e044b7"
21
+ }
22
+ }
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ **Example 1: 示例**
2
+
3
+ 示例
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli trocket ModifyMQTTUser --cli-unfold-argument \
9
+ --InstanceId mqtt-7pnqmkrx \
10
+ --Username 222 \
11
+ --Remark 3333 \
12
+ --PermRead True \
13
+ --PermWrite True
14
+ ```
15
+
16
+ Output:
17
+ ```
18
+ {
19
+ "Error": null,
20
+ "RequestId": null,
21
+ "Response": {
22
+ "RequestId": "85d3aeee-ba25-47cc-8c17-7ad837b877ba"
23
+ }
24
+ }
25
+ ```
26
+
@@ -0,0 +1,36 @@
1
+ **Example 1: 删除项目用户**
2
+
3
+
4
+
5
+ Input:
6
+
7
+ ```
8
+ tccli wedata DeleteProjectUsers --cli-unfold-argument ```
9
+
10
+ Output:
11
+ ```
12
+ {
13
+ "Response": {
14
+ "RequestId": "xx"
15
+ }
16
+ }
17
+ ```
18
+
19
+ **Example 2: 成功示例**
20
+
21
+
22
+
23
+ Input:
24
+
25
+ ```
26
+ tccli wedata DeleteProjectUsers --cli-unfold-argument ```
27
+
28
+ Output:
29
+ ```
30
+ {
31
+ "Response": {
32
+ "RequestId": "eb621c29-6ee3-49d2-a4e0-cb84b46e2590"
33
+ }
34
+ }
35
+ ```
36
+
@@ -225,6 +225,58 @@ def doDescribeL7RulesBySSLCertId(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
+ def doDescribeBGPIPL7Rules(args, parsed_globals):
229
+ g_param = parse_global_arg(parsed_globals)
230
+
231
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
232
+ cred = credential.CVMRoleCredential()
233
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
234
+ cred = credential.STSAssumeRoleCredential(
235
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
236
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
237
+ )
238
+ 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):
239
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
240
+ else:
241
+ cred = credential.Credential(
242
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
243
+ )
244
+ http_profile = HttpProfile(
245
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
246
+ reqMethod="POST",
247
+ endpoint=g_param[OptionsDefine.Endpoint],
248
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
249
+ )
250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
251
+ if g_param[OptionsDefine.Language]:
252
+ profile.language = g_param[OptionsDefine.Language]
253
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
254
+ client = mod.AntiddosClient(cred, g_param[OptionsDefine.Region], profile)
255
+ client._sdkVersion += ("_CLI_" + __version__)
256
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
+ model = models.DescribeBGPIPL7RulesRequest()
258
+ model.from_json_string(json.dumps(args))
259
+ start_time = time.time()
260
+ while True:
261
+ rsp = client.DescribeBGPIPL7Rules(model)
262
+ result = rsp.to_json_string()
263
+ try:
264
+ json_obj = json.loads(result)
265
+ except TypeError as e:
266
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
267
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
268
+ break
269
+ cur_time = time.time()
270
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
271
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
272
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
273
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
274
+ else:
275
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
276
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
277
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
+
279
+
228
280
  def doDescribeListIPAlarmConfig(args, parsed_globals):
229
281
  g_param = parse_global_arg(parsed_globals)
230
282
 
@@ -4972,6 +5024,7 @@ ACTION_MAP = {
4972
5024
  "ModifyDDoSBlackWhiteIpList": doModifyDDoSBlackWhiteIpList,
4973
5025
  "DescribePendingRiskInfo": doDescribePendingRiskInfo,
4974
5026
  "DescribeL7RulesBySSLCertId": doDescribeL7RulesBySSLCertId,
5027
+ "DescribeBGPIPL7Rules": doDescribeBGPIPL7Rules,
4975
5028
  "DescribeListIPAlarmConfig": doDescribeListIPAlarmConfig,
4976
5029
  "DescribeDefaultAlarmThreshold": doDescribeDefaultAlarmThreshold,
4977
5030
  "DescribeDDoSConnectLimitList": doDescribeDDoSConnectLimitList,