tccli 3.0.1222.1__py2.py3-none-any.whl → 3.0.1224.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 (67) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apigateway/apigateway_client.py +136 -30
  3. tccli/services/apigateway/v20180808/api.json +183 -0
  4. tccli/services/apigateway/v20180808/examples.json +16 -0
  5. tccli/services/autoscaling/v20180419/api.json +4 -4
  6. tccli/services/bi/bi_client.py +106 -0
  7. tccli/services/bi/v20220105/api.json +355 -0
  8. tccli/services/bi/v20220105/examples.json +16 -0
  9. tccli/services/billing/v20180709/api.json +593 -542
  10. tccli/services/billing/v20180709/examples.json +9 -9
  11. tccli/services/bpaas/v20181217/api.json +71 -46
  12. tccli/services/bpaas/v20181217/examples.json +1 -1
  13. tccli/services/cam/v20190116/api.json +99 -78
  14. tccli/services/cam/v20190116/examples.json +10 -10
  15. tccli/services/cdwch/v20200915/api.json +1 -1
  16. tccli/services/cdwch/v20200915/examples.json +1 -1
  17. tccli/services/clb/v20180317/examples.json +1 -1
  18. tccli/services/cloudhsm/v20191112/api.json +324 -320
  19. tccli/services/cloudhsm/v20191112/examples.json +16 -16
  20. tccli/services/cls/v20201016/api.json +3 -3
  21. tccli/services/config/config_client.py +106 -0
  22. tccli/services/config/v20220802/api.json +364 -0
  23. tccli/services/config/v20220802/examples.json +16 -0
  24. tccli/services/dcdb/v20180411/api.json +136 -136
  25. tccli/services/dnspod/dnspod_client.py +139 -33
  26. tccli/services/dnspod/v20210323/api.json +104 -0
  27. tccli/services/dnspod/v20210323/examples.json +16 -0
  28. tccli/services/ess/v20201111/api.json +5 -5
  29. tccli/services/essbasic/v20210526/api.json +3 -3
  30. tccli/services/goosefs/v20220519/api.json +9 -0
  31. tccli/services/gwlb/v20240906/api.json +1 -1
  32. tccli/services/hunyuan/v20230901/api.json +13 -2
  33. tccli/services/ivld/v20210903/api.json +3 -3
  34. tccli/services/lcic/lcic_client.py +110 -4
  35. tccli/services/lcic/v20220817/api.json +306 -2
  36. tccli/services/lcic/v20220817/examples.json +16 -0
  37. tccli/services/lighthouse/v20200324/api.json +1 -1
  38. tccli/services/live/live_client.py +322 -4
  39. tccli/services/live/v20180801/api.json +333 -1
  40. tccli/services/live/v20180801/examples.json +48 -0
  41. tccli/services/lke/v20231130/api.json +30 -10
  42. tccli/services/mariadb/v20170312/api.json +142 -142
  43. tccli/services/mps/v20190612/api.json +12 -2
  44. tccli/services/oceanus/v20190422/api.json +10 -0
  45. tccli/services/ocr/ocr_client.py +314 -685
  46. tccli/services/ocr/v20181119/api.json +187 -1206
  47. tccli/services/ocr/v20181119/examples.json +4 -66
  48. tccli/services/organization/v20181225/api.json +43 -43
  49. tccli/services/organization/v20181225/examples.json +2 -2
  50. tccli/services/organization/v20210331/api.json +516 -508
  51. tccli/services/organization/v20210331/examples.json +26 -26
  52. tccli/services/privatedns/privatedns_client.py +4 -534
  53. tccli/services/privatedns/v20201028/api.json +4 -943
  54. tccli/services/privatedns/v20201028/examples.json +0 -80
  55. tccli/services/redis/v20180412/api.json +1 -1
  56. tccli/services/teo/v20220901/api.json +5 -0
  57. tccli/services/tke/v20220501/api.json +3 -1
  58. tccli/services/trtc/trtc_client.py +126 -20
  59. tccli/services/trtc/v20190722/api.json +138 -14
  60. tccli/services/trtc/v20190722/examples.json +16 -0
  61. tccli/services/vod/v20180717/api.json +19 -0
  62. tccli/services/vpc/v20170312/api.json +30 -1
  63. {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/METADATA +2 -2
  64. {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/RECORD +67 -67
  65. {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/WHEEL +0 -0
  66. {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/entry_points.txt +0 -0
  67. {tccli-3.0.1222.1.dist-info → tccli-3.0.1224.1.dist-info}/license_files/LICENSE +0 -0
@@ -8,30 +8,6 @@
8
8
  "title": "追加与私有域关联的vpc"
9
9
  }
10
10
  ],
11
- "CreateEndPoint": [
12
- {
13
- "document": "输入终端节点名称,客户自己的终端节点服务ID,以及终端节点服务对应的地域来创建一个终端节点",
14
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEndPoint\n<公共请求参数>\n\n{\n \"EndPointName\": \"终端节点名\",\n \"EndPointServiceId\": \"vpcsvc-gtd4gxa1\",\n \"EndPointRegion\": \"ap-guangzhou\"\n}",
15
- "output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"EndPointId\": \"eid-scls023kfns\",\n \"EndPointName\": \"终端节点名\",\n \"EndPointServiceId\": \"vpcsvc-gtd4gxa1\",\n \"EndPointVipSet\": [\n \"10.0.0.13\"\n ]\n }\n}",
16
- "title": "创建终端节点"
17
- }
18
- ],
19
- "CreateEndPointAndEndPointService": [
20
- {
21
- "document": "输入vpcid,终端节点服务名称, 实例id,服务类型 创建终端节点服务,同时用终端节点名称,以及终端节点服务对应的地域来创建一个终端节点",
22
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEndPointAndEndPointService\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-xxxxxxxx\",\n \"EndPointServiceName\": \"test001\",\n \"AutoAcceptFlag\": true,\n \"ServiceInstanceId\": \"lb-xxxxxxxx\",\n \"ServiceType\": \"clb\",\n \"EndPointName\": \"test001\",\n \"EndPointRegion\": \"ap-guangzhou\"\n}",
23
- "output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"EndPointId\": \"eid-scls023kfns\",\n \"EndPointName\": \"终端节点名\",\n \"EndPointServiceId\": \"vpcsvc-gtd4gxa1\",\n \"EndPointVipSet\": [\n \"10.0.0.13\"\n ]\n }\n}",
24
- "title": "同时创建终端节点和终端节点服务"
25
- }
26
- ],
27
- "CreateForwardRule": [
28
- {
29
- "document": "",
30
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateForwardRule\n<公共请求参数>\n\n{\n \"RuleType\": \"UP\",\n \"ZoneId\": \"zone-fadsvas\",\n \"RuleName\": \"规则1\",\n \"EndPointId\": \"eid-93kvksadf\"\n}",
31
- "output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"RuleType\": \"UP\",\n \"RuleId\": \"fid-afdfaf2fsad\",\n \"ZoneId\": \"zone-fadsvas\",\n \"EndPointId\": \"eid-93kvksadf\",\n \"RuleName\": \"规则1\"\n }\n}",
32
- "title": "创建转发规则"
33
- }
34
- ],
35
11
  "CreatePrivateDNSAccount": [
36
12
  {
37
13
  "document": "",
@@ -68,22 +44,6 @@
68
44
  "title": "私有域-添加PTR记录"
69
45
  }
70
46
  ],
71
- "DeleteEndPoint": [
72
- {
73
- "document": "删除终端节点",
74
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteEndPoint\n<公共请求参数>\n\n{\n \"EndPointId\": \"eid-juygvf672i\"\n}",
75
- "output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\"\n }\n}",
76
- "title": "删除终端节点"
77
- }
78
- ],
79
- "DeleteForwardRule": [
80
- {
81
- "document": "删除转发规则",
82
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteForwardRule\n<公共请求参数>\n\n{\n \"RuleIdSet\": [\n \"fid-123456\",\n \"fid-789abc\"\n ]\n}",
83
- "output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\"\n }\n}",
84
- "title": "删除转发规则"
85
- }
86
- ],
87
47
  "DeletePrivateDNSAccount": [
88
48
  {
89
49
  "document": "",
@@ -152,38 +112,6 @@
152
112
  "title": "获取私有域解析概览"
153
113
  }
154
114
  ],
155
- "DescribeEndPointList": [
156
- {
157
- "document": "",
158
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEndPointList\n<公共请求参数>\n\n{\n \"Limit\": 200,\n \"Offset\": 0,\n \"Filters\": [\n {\n \"Name\": \"EndPointName\",\n \"Values\": [\n \"终端节点名\"\n ]\n },\n {\n \"Name\": \"EndPointId\",\n \"Values\": [\n \"eid-24ed8e6319\"\n ]\n },\n {\n \"Name\": \"EndPointServiceId\",\n \"Values\": [\n \"vpcsvc-prvrnrlt\"\n ]\n },\n {\n \"Name\": \"EndPointVip\",\n \"Values\": [\n \"11.149.7.14\",\n \"11.149.7.141\"\n ]\n }\n ]\n}",
159
- "output": "{\n \"Response\": {\n \"RequestId\": \"8a4ea9cc-b1df-f8f8-ffe7efbe98f9ff85\",\n \"TotalCount\": 5,\n \"EndPointSet\": [\n {\n \"EndPointId\": \"eid-24ed8e6319\",\n \"EndPointName\": \"名称\",\n \"EndPointServiceId\": \"vpcsvc-prvrnrlt\",\n \"EndPointVipSet\": [\n \"10.0.0.17:53\"\n ],\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n }\n ]\n }\n}",
160
- "title": "获取终端节点列表"
161
- }
162
- ],
163
- "DescribeEndPointRegion": [
164
- {
165
- "document": "查询终端节点可用地域",
166
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEndPointRegion\n<公共请求参数>\n\n{}",
167
- "output": "{\n \"Response\": {\n \"RegionSet\": [\n {\n \"CnName\": \"北京\",\n \"EnName\": \"bj\",\n \"RegionCode\": \"ap-beijing\",\n \"RegionId\": 8\n },\n {\n \"CnName\": \"广州\",\n \"EnName\": \"gz\",\n \"RegionCode\": \"ap-guangzhou\",\n \"RegionId\": 1\n },\n {\n \"CnName\": \"南京\",\n \"EnName\": \"nj\",\n \"RegionCode\": \"ap-nanjing\",\n \"RegionId\": 33\n },\n {\n \"CnName\": \"上海\",\n \"EnName\": \"sh\",\n \"RegionCode\": \"ap-shanghai\",\n \"RegionId\": 4\n }\n ],\n \"RequestId\": \"036e44eb-02af-44cf-b46e-924a0e04ea4a\"\n }\n}",
168
- "title": "查询终端节点可用地域"
169
- }
170
- ],
171
- "DescribeForwardRule": [
172
- {
173
- "document": "",
174
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeForwardRule\n<公共请求参数>\n\n{\n \"RuleId\": \"fid-af2f9nkug\"\n}",
175
- "output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"ForwardRule\": {\n \"Domain\": \"qq.com\",\n \"ZoneId\": \"zone-s8cs72d9\",\n \"RuleId\": \"fid-fa2c8misu\",\n \"ForwardAddress\": [\n \"1.1.11.1:53\"\n ],\n \"RuleType\": \"DOWN\",\n \"VpcSet\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-as3bsfml\"\n }\n ],\n \"EndPointName\": \"终端节点名\",\n \"EndPointId\": \"eid-fc9iuxhg4\",\n \"RuleName\": \"转发规则名称\",\n \"UpdatedAt\": \"2022-09-09 10:45:44\",\n \"CreatedAt\": \"2022-09-09 10:45:44\"\n }\n }\n}",
176
- "title": "查询转发规则"
177
- }
178
- ],
179
- "DescribeForwardRuleList": [
180
- {
181
- "document": "",
182
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeForwardRuleList\n<公共请求参数>\n\n{\n \"Limit\": 200,\n \"Offset\": 0,\n \"Filters\": [\n {\n \"Name\": \"RuleName\",\n \"Values\": [\n \"呵呵\"\n ]\n },\n {\n \"Name\": \"RuleType\",\n \"Values\": [\n \"DOWN\"\n ]\n },\n {\n \"Name\": \"ZoneId\",\n \"Values\": [\n \"zone-04jlawty\"\n ]\n },\n {\n \"Name\": \"EndPointId\",\n \"Values\": [\n \"eid-asdfadaf\"\n ]\n },\n {\n \"Name\": \"EndPointName\",\n \"Values\": [\n \"zdjdhhh\"\n ]\n }\n ]\n}",
183
- "output": "{\n \"Response\": {\n \"RequestId\": \"8a4ea9cc-b1df-f8f8-ffe7efbe98f9ff85\",\n \"TotalCount\": 5,\n \"ForwardRuleSet\": [\n {\n \"Domain\": \"qq.com\",\n \"ZoneId\": \"zone-s8cs72d9\",\n \"RuleId\": \"fid-af2skm96n\",\n \"ForwardAddress\": [\n \"1.1.1.1:53\"\n ],\n \"RuleType\": \"UP\",\n \"VpcSet\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"UniqVpcId\": \"vpc-dus89eks\"\n }\n ],\n \"EndPointName\": \"终端节点1\",\n \"EndPointId\": \"eid-fxiuf872bsp\",\n \"RuleName\": \"转发规则名称\",\n \"UpdatedAt\": \"2022-09-09 10:45:44\",\n \"CreatedAt\": \"2022-09-09 10:45:44\",\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ]\n }\n ]\n }\n}",
184
- "title": "获取私有域列表"
185
- }
186
- ],
187
115
  "DescribePrivateDNSAccountList": [
188
116
  {
189
117
  "document": "",
@@ -240,14 +168,6 @@
240
168
  "title": "获取私有域解析请求量"
241
169
  }
242
170
  ],
243
- "ModifyForwardRule": [
244
- {
245
- "document": "",
246
- "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyForwardRule\n<公共请求参数>\n\n{\n \"RuleName\": \"转发规则名\",\n \"EndPointId\": \"eid-xlsjc8qojg\",\n \"RuleId\": \"fid-xiwus89no\"\n}",
247
- "output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\"\n }\n}",
248
- "title": "修改转发规则"
249
- }
250
- ],
251
171
  "ModifyPrivateZone": [
252
172
  {
253
173
  "document": "",
@@ -549,7 +549,7 @@
549
549
  "ModifyConnectionConfig": {
550
550
  "document": "本接口(ModifyConnectionConfig)用于修改实例的连接配置,包括带宽和最大连接数。",
551
551
  "input": "ModifyConnectionConfigRequest",
552
- "name": "修改实例连接配置",
552
+ "name": "修改实例连接数与带宽",
553
553
  "output": "ModifyConnectionConfigResponse",
554
554
  "status": "online"
555
555
  },
@@ -15516,6 +15516,7 @@
15516
15516
  "example": "off",
15517
15517
  "member": "string",
15518
15518
  "name": "Switch",
15519
+ "output_required": true,
15519
15520
  "required": true,
15520
15521
  "type": "string",
15521
15522
  "value_allowed_null": false
@@ -15526,6 +15527,7 @@
15526
15527
  "example": "无",
15527
15528
  "member": "RateLimitUserRule",
15528
15529
  "name": "RateLimitUserRules",
15530
+ "output_required": true,
15529
15531
  "required": false,
15530
15532
  "type": "list",
15531
15533
  "value_allowed_null": false
@@ -15536,6 +15538,7 @@
15536
15538
  "example": "无",
15537
15539
  "member": "RateLimitTemplate",
15538
15540
  "name": "RateLimitTemplate",
15541
+ "output_required": true,
15539
15542
  "required": false,
15540
15543
  "type": "object",
15541
15544
  "value_allowed_null": true
@@ -15546,6 +15549,7 @@
15546
15549
  "example": "无",
15547
15550
  "member": "RateLimitIntelligence",
15548
15551
  "name": "RateLimitIntelligence",
15552
+ "output_required": true,
15549
15553
  "required": false,
15550
15554
  "type": "object",
15551
15555
  "value_allowed_null": true
@@ -15556,6 +15560,7 @@
15556
15560
  "example": "无",
15557
15561
  "member": "RateLimitUserRule",
15558
15562
  "name": "RateLimitCustomizes",
15563
+ "output_required": true,
15559
15564
  "required": false,
15560
15565
  "type": "list",
15561
15566
  "value_allowed_null": true
@@ -3286,10 +3286,11 @@
3286
3286
  "members": [
3287
3287
  {
3288
3288
  "disabled": false,
3289
- "document": "标签绑定的资源类型,当前支持类型:\"cluster\"\n注意:此字段可能返回 null,表示取不到有效值。",
3289
+ "document": "标签绑定的资源类型,当前支持类型:\n1.cluster:集群相关接口,TagSpecification 的 ResourceType 传参为 cluster\n2.machine:节点池相关接口,如:CreateNodePool, DescribeNodePools 等,TagSpecification 的 ResourceType 传参为 machine\n注意:此字段可能返回 null,表示取不到有效值。",
3290
3290
  "example": "cluster",
3291
3291
  "member": "string",
3292
3292
  "name": "ResourceType",
3293
+ "output_required": true,
3293
3294
  "required": false,
3294
3295
  "type": "string",
3295
3296
  "value_allowed_null": true
@@ -3300,6 +3301,7 @@
3300
3301
  "example": "无",
3301
3302
  "member": "Tag",
3302
3303
  "name": "Tags",
3304
+ "output_required": true,
3303
3305
  "required": false,
3304
3306
  "type": "list",
3305
3307
  "value_allowed_null": true
@@ -17,7 +17,7 @@ from tencentcloud.trtc.v20190722 import models as models_v20190722
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
- def doDescribeTRTCMarketScaleMetricData(args, parsed_globals):
20
+ def doDescribeRoomInfo(args, parsed_globals):
21
21
  g_param = parse_global_arg(parsed_globals)
22
22
 
23
23
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -46,11 +46,11 @@ def doDescribeTRTCMarketScaleMetricData(args, parsed_globals):
46
46
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
47
47
  client._sdkVersion += ("_CLI_" + __version__)
48
48
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.DescribeTRTCMarketScaleMetricDataRequest()
49
+ model = models.DescribeRoomInfoRequest()
50
50
  model.from_json_string(json.dumps(args))
51
51
  start_time = time.time()
52
52
  while True:
53
- rsp = client.DescribeTRTCMarketScaleMetricData(model)
53
+ rsp = client.DescribeRoomInfo(model)
54
54
  result = rsp.to_json_string()
55
55
  try:
56
56
  json_obj = json.loads(result)
@@ -69,7 +69,7 @@ def doDescribeTRTCMarketScaleMetricData(args, parsed_globals):
69
69
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
70
 
71
71
 
72
- def doDescribeRoomInfo(args, parsed_globals):
72
+ def doStopAITranscription(args, parsed_globals):
73
73
  g_param = parse_global_arg(parsed_globals)
74
74
 
75
75
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -98,11 +98,11 @@ def doDescribeRoomInfo(args, parsed_globals):
98
98
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
99
99
  client._sdkVersion += ("_CLI_" + __version__)
100
100
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
- model = models.DescribeRoomInfoRequest()
101
+ model = models.StopAITranscriptionRequest()
102
102
  model.from_json_string(json.dumps(args))
103
103
  start_time = time.time()
104
104
  while True:
105
- rsp = client.DescribeRoomInfo(model)
105
+ rsp = client.StopAITranscription(model)
106
106
  result = rsp.to_json_string()
107
107
  try:
108
108
  json_obj = json.loads(result)
@@ -121,7 +121,7 @@ def doDescribeRoomInfo(args, parsed_globals):
121
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
122
 
123
123
 
124
- def doStopAITranscription(args, parsed_globals):
124
+ def doUpdateAIConversation(args, parsed_globals):
125
125
  g_param = parse_global_arg(parsed_globals)
126
126
 
127
127
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -150,11 +150,11 @@ def doStopAITranscription(args, parsed_globals):
150
150
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
151
151
  client._sdkVersion += ("_CLI_" + __version__)
152
152
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
- model = models.StopAITranscriptionRequest()
153
+ model = models.UpdateAIConversationRequest()
154
154
  model.from_json_string(json.dumps(args))
155
155
  start_time = time.time()
156
156
  while True:
157
- rsp = client.StopAITranscription(model)
157
+ rsp = client.UpdateAIConversation(model)
158
158
  result = rsp.to_json_string()
159
159
  try:
160
160
  json_obj = json.loads(result)
@@ -173,7 +173,7 @@ def doStopAITranscription(args, parsed_globals):
173
173
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
174
 
175
175
 
176
- def doUpdateAIConversation(args, parsed_globals):
176
+ def doDescribeTrtcUsage(args, parsed_globals):
177
177
  g_param = parse_global_arg(parsed_globals)
178
178
 
179
179
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -202,11 +202,11 @@ def doUpdateAIConversation(args, parsed_globals):
202
202
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
203
203
  client._sdkVersion += ("_CLI_" + __version__)
204
204
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
- model = models.UpdateAIConversationRequest()
205
+ model = models.DescribeTrtcUsageRequest()
206
206
  model.from_json_string(json.dumps(args))
207
207
  start_time = time.time()
208
208
  while True:
209
- rsp = client.UpdateAIConversation(model)
209
+ rsp = client.DescribeTrtcUsage(model)
210
210
  result = rsp.to_json_string()
211
211
  try:
212
212
  json_obj = json.loads(result)
@@ -225,7 +225,7 @@ def doUpdateAIConversation(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
- def doDescribeTrtcUsage(args, parsed_globals):
228
+ def doCreateBasicModeration(args, parsed_globals):
229
229
  g_param = parse_global_arg(parsed_globals)
230
230
 
231
231
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -254,11 +254,11 @@ def doDescribeTrtcUsage(args, parsed_globals):
254
254
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
255
255
  client._sdkVersion += ("_CLI_" + __version__)
256
256
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
- model = models.DescribeTrtcUsageRequest()
257
+ model = models.CreateBasicModerationRequest()
258
258
  model.from_json_string(json.dumps(args))
259
259
  start_time = time.time()
260
260
  while True:
261
- rsp = client.DescribeTrtcUsage(model)
261
+ rsp = client.CreateBasicModeration(model)
262
262
  result = rsp.to_json_string()
263
263
  try:
264
264
  json_obj = json.loads(result)
@@ -589,7 +589,7 @@ def doDescribeStreamIngest(args, parsed_globals):
589
589
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
590
 
591
591
 
592
- def doStopMCUMixTranscode(args, parsed_globals):
592
+ def doDescribeTRTCMarketScaleMetricData(args, parsed_globals):
593
593
  g_param = parse_global_arg(parsed_globals)
594
594
 
595
595
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -618,11 +618,11 @@ def doStopMCUMixTranscode(args, parsed_globals):
618
618
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
619
619
  client._sdkVersion += ("_CLI_" + __version__)
620
620
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
621
- model = models.StopMCUMixTranscodeRequest()
621
+ model = models.DescribeTRTCMarketScaleMetricDataRequest()
622
622
  model.from_json_string(json.dumps(args))
623
623
  start_time = time.time()
624
624
  while True:
625
- rsp = client.StopMCUMixTranscode(model)
625
+ rsp = client.DescribeTRTCMarketScaleMetricData(model)
626
626
  result = rsp.to_json_string()
627
627
  try:
628
628
  json_obj = json.loads(result)
@@ -1161,6 +1161,58 @@ def doRemoveUser(args, parsed_globals):
1161
1161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1162
1162
 
1163
1163
 
1164
+ def doDeleteBasicModeration(args, parsed_globals):
1165
+ g_param = parse_global_arg(parsed_globals)
1166
+
1167
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1168
+ cred = credential.CVMRoleCredential()
1169
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1170
+ cred = credential.STSAssumeRoleCredential(
1171
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1172
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1173
+ )
1174
+ 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):
1175
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1176
+ else:
1177
+ cred = credential.Credential(
1178
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1179
+ )
1180
+ http_profile = HttpProfile(
1181
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1182
+ reqMethod="POST",
1183
+ endpoint=g_param[OptionsDefine.Endpoint],
1184
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1185
+ )
1186
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1187
+ if g_param[OptionsDefine.Language]:
1188
+ profile.language = g_param[OptionsDefine.Language]
1189
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1190
+ client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
1191
+ client._sdkVersion += ("_CLI_" + __version__)
1192
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1193
+ model = models.DeleteBasicModerationRequest()
1194
+ model.from_json_string(json.dumps(args))
1195
+ start_time = time.time()
1196
+ while True:
1197
+ rsp = client.DeleteBasicModeration(model)
1198
+ result = rsp.to_json_string()
1199
+ try:
1200
+ json_obj = json.loads(result)
1201
+ except TypeError as e:
1202
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1203
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1204
+ break
1205
+ cur_time = time.time()
1206
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1207
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1208
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1209
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1210
+ else:
1211
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1212
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1213
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
+
1215
+
1164
1216
  def doModifyCloudRecording(args, parsed_globals):
1165
1217
  g_param = parse_global_arg(parsed_globals)
1166
1218
 
@@ -2877,6 +2929,58 @@ def doDescribeTRTCRealTimeScaleMetricData(args, parsed_globals):
2877
2929
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
2930
 
2879
2931
 
2932
+ def doStopMCUMixTranscode(args, parsed_globals):
2933
+ g_param = parse_global_arg(parsed_globals)
2934
+
2935
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2936
+ cred = credential.CVMRoleCredential()
2937
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2938
+ cred = credential.STSAssumeRoleCredential(
2939
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2940
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2941
+ )
2942
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2943
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2944
+ else:
2945
+ cred = credential.Credential(
2946
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2947
+ )
2948
+ http_profile = HttpProfile(
2949
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2950
+ reqMethod="POST",
2951
+ endpoint=g_param[OptionsDefine.Endpoint],
2952
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2953
+ )
2954
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2955
+ if g_param[OptionsDefine.Language]:
2956
+ profile.language = g_param[OptionsDefine.Language]
2957
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2958
+ client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
2959
+ client._sdkVersion += ("_CLI_" + __version__)
2960
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2961
+ model = models.StopMCUMixTranscodeRequest()
2962
+ model.from_json_string(json.dumps(args))
2963
+ start_time = time.time()
2964
+ while True:
2965
+ rsp = client.StopMCUMixTranscode(model)
2966
+ result = rsp.to_json_string()
2967
+ try:
2968
+ json_obj = json.loads(result)
2969
+ except TypeError as e:
2970
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2971
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2972
+ break
2973
+ cur_time = time.time()
2974
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2975
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2976
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2977
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2978
+ else:
2979
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2980
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2981
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2982
+
2983
+
2880
2984
  CLIENT_MAP = {
2881
2985
  "v20190722": trtc_client_v20190722,
2882
2986
 
@@ -2888,18 +2992,18 @@ MODELS_MAP = {
2888
2992
  }
2889
2993
 
2890
2994
  ACTION_MAP = {
2891
- "DescribeTRTCMarketScaleMetricData": doDescribeTRTCMarketScaleMetricData,
2892
2995
  "DescribeRoomInfo": doDescribeRoomInfo,
2893
2996
  "StopAITranscription": doStopAITranscription,
2894
2997
  "UpdateAIConversation": doUpdateAIConversation,
2895
2998
  "DescribeTrtcUsage": doDescribeTrtcUsage,
2999
+ "CreateBasicModeration": doCreateBasicModeration,
2896
3000
  "StopAIConversation": doStopAIConversation,
2897
3001
  "DescribeTRTCMarketQualityMetricData": doDescribeTRTCMarketQualityMetricData,
2898
3002
  "DeleteCloudRecording": doDeleteCloudRecording,
2899
3003
  "StartPublishCdnStream": doStartPublishCdnStream,
2900
3004
  "DescribeCallDetailInfo": doDescribeCallDetailInfo,
2901
3005
  "DescribeStreamIngest": doDescribeStreamIngest,
2902
- "StopMCUMixTranscode": doStopMCUMixTranscode,
3006
+ "DescribeTRTCMarketScaleMetricData": doDescribeTRTCMarketScaleMetricData,
2903
3007
  "StartAIConversation": doStartAIConversation,
2904
3008
  "DescribeAIConversation": doDescribeAIConversation,
2905
3009
  "DescribeRecordingUsage": doDescribeRecordingUsage,
@@ -2910,6 +3014,7 @@ ACTION_MAP = {
2910
3014
  "CreatePicture": doCreatePicture,
2911
3015
  "DescribeTRTCRealTimeScaleData": doDescribeTRTCRealTimeScaleData,
2912
3016
  "RemoveUser": doRemoveUser,
3017
+ "DeleteBasicModeration": doDeleteBasicModeration,
2913
3018
  "ModifyCloudRecording": doModifyCloudRecording,
2914
3019
  "DescribeUserEvent": doDescribeUserEvent,
2915
3020
  "StartWebRecord": doStartWebRecord,
@@ -2943,6 +3048,7 @@ ACTION_MAP = {
2943
3048
  "StopPublishCdnStream": doStopPublishCdnStream,
2944
3049
  "DescribeUnusualEvent": doDescribeUnusualEvent,
2945
3050
  "DescribeTRTCRealTimeScaleMetricData": doDescribeTRTCRealTimeScaleMetricData,
3051
+ "StopMCUMixTranscode": doStopMCUMixTranscode,
2946
3052
 
2947
3053
  }
2948
3054