tccli 3.0.1223.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 (50) 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 +237 -186
  10. tccli/services/billing/v20180709/examples.json +2 -2
  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 +2 -2
  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/ess/v20201111/api.json +1 -1
  25. tccli/services/essbasic/v20210526/api.json +1 -1
  26. tccli/services/gwlb/v20240906/api.json +1 -1
  27. tccli/services/hunyuan/v20230901/api.json +2 -2
  28. tccli/services/ivld/v20210903/api.json +3 -3
  29. tccli/services/lcic/lcic_client.py +110 -4
  30. tccli/services/lcic/v20220817/api.json +297 -2
  31. tccli/services/lcic/v20220817/examples.json +16 -0
  32. tccli/services/live/v20180801/api.json +2 -1
  33. tccli/services/lke/v20231130/api.json +1 -1
  34. tccli/services/mps/v20190612/api.json +1 -1
  35. tccli/services/ocr/ocr_client.py +314 -685
  36. tccli/services/ocr/v20181119/api.json +157 -1206
  37. tccli/services/ocr/v20181119/examples.json +0 -56
  38. tccli/services/organization/v20181225/api.json +43 -43
  39. tccli/services/organization/v20181225/examples.json +2 -2
  40. tccli/services/organization/v20210331/api.json +516 -508
  41. tccli/services/organization/v20210331/examples.json +26 -26
  42. tccli/services/trtc/trtc_client.py +126 -20
  43. tccli/services/trtc/v20190722/api.json +138 -14
  44. tccli/services/trtc/v20190722/examples.json +16 -0
  45. tccli/services/vpc/v20170312/api.json +1 -1
  46. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/METADATA +2 -2
  47. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/RECORD +50 -50
  48. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/WHEEL +0 -0
  49. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/entry_points.txt +0 -0
  50. {tccli-3.0.1223.1.dist-info → tccli-3.0.1224.1.dist-info}/license_files/LICENSE +0 -0
@@ -27,7 +27,7 @@
27
27
  "AddOrganizationNode": [
28
28
  {
29
29
  "document": "",
30
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddOrganizationNode\n<公共请求参数>\n\n{\n \"Name\": \"test\",\n \"ParentNodeId\": 123\n}",
30
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddOrganizationNode\n<公共请求参数>\n\n{\n \"Name\": \"node_name\",\n \"ParentNodeId\": 101\n}",
31
31
  "output": "{\n \"Response\": {\n \"NodeId\": 1001,\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
32
32
  "title": "添加企业组织节点"
33
33
  }
@@ -83,7 +83,7 @@
83
83
  "BindOrganizationMemberAuthAccount": [
84
84
  {
85
85
  "document": "",
86
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BindOrganizationMemberAuthAccount\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"PolicyId\": 123,\n \"OrgSubAccountUins\": [\n 222222222222\n ]\n}",
86
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BindOrganizationMemberAuthAccount\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"PolicyId\": 101,\n \"OrgSubAccountUins\": [\n 222222222222\n ]\n}",
87
87
  "output": "{\n \"Response\": {\n \"RequestId\": \"4c2f4b68-01b2-4841-a927-6ca8fe40649b\"\n }\n}",
88
88
  "title": "绑定组织成员和组织管理员子账号的授权关系"
89
89
  }
@@ -91,7 +91,7 @@
91
91
  "CancelOrganizationMemberAuthAccount": [
92
92
  {
93
93
  "document": "",
94
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CancelOrganizationMemberAuthAccount\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"PolicyId\": 123,\n \"OrgSubAccountUin\": 222222222222\n}",
94
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CancelOrganizationMemberAuthAccount\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"PolicyId\": 101,\n \"OrgSubAccountUin\": 222222222222\n}",
95
95
  "output": "{\n \"Response\": {\n \"RequestId\": \"caecf1a4-72b7-48d6-8f5f-90d1c428d3f3\"\n }\n}",
96
96
  "title": "取消组织成员和组织管理员子账号的授权关系"
97
97
  }
@@ -132,22 +132,22 @@
132
132
  {
133
133
  "document": "",
134
134
  "input": "https://organization.tencentcloudapi.com/?Action=CreateOrganization\n&<公共请求参数>",
135
- "output": "{\n \"Response\": {\n \"OrgId\": 123,\n \"NickName\": \"test\",\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
135
+ "output": "{\n \"Response\": {\n \"OrgId\": 101,\n \"NickName\": \"nick_name\",\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
136
136
  "title": "创建企业组织"
137
137
  }
138
138
  ],
139
139
  "CreateOrganizationIdentity": [
140
140
  {
141
141
  "document": "",
142
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationIdentity\n<公共请求参数>\n\n{\n \"Description\": \"\",\n \"IdentityAliasName\": \"test\",\n \"IdentityPolicy\": [\n {\n \"PolicyId\": 1,\n \"PolicyName\": \"AdministratorAccess\"\n }\n ]\n}",
143
- "output": "{\n \"Response\": {\n \"IdentityId\": 123,\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
142
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationIdentity\n<公共请求参数>\n\n{\n \"Description\": \"\",\n \"IdentityAliasName\": \"admin_identity\",\n \"IdentityPolicy\": [\n {\n \"PolicyId\": 1,\n \"PolicyName\": \"AdministratorAccess\"\n }\n ]\n}",
143
+ "output": "{\n \"Response\": {\n \"IdentityId\": 101,\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
144
144
  "title": "添加组织身份"
145
145
  }
146
146
  ],
147
147
  "CreateOrganizationMember": [
148
148
  {
149
149
  "document": "",
150
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMember\n<公共请求参数>\n\n{\n \"Remark\": \"test\",\n \"Name\": \"name\",\n \"NodeId\": 1001,\n \"AccountName\": \"test\",\n \"PermissionIds\": [\n 1,\n 2\n ],\n \"PolicyType\": \"Finical\",\n \"PayUin\": \"\",\n \"IdentityRoleID\": [\n 1\n ]\n}",
150
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMember\n<公共请求参数>\n\n{\n \"Remark\": \"create member\",\n \"Name\": \"member_name\",\n \"NodeId\": 1001,\n \"AccountName\": \"member_name\",\n \"PermissionIds\": [\n 1,\n 2\n ],\n \"PolicyType\": \"Finical\",\n \"IdentityRoleID\": [\n 1\n ]\n}",
151
151
  "output": "{\n \"Response\": {\n \"Uin\": 111111111111,\n \"RequestId\": \"1a556fac-cd38-4732-86ef-6283d6abddd7\"\n }\n}",
152
152
  "title": "创建组织成员"
153
153
  }
@@ -163,16 +163,16 @@
163
163
  "CreateOrganizationMemberPolicy": [
164
164
  {
165
165
  "document": "",
166
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMemberPolicy\n<公共请求参数>\n\n{\n \"PolicyName\": \"policy_name\",\n \"MemberUin\": 111111111111,\n \"Description\": \"description\",\n \"IdentityId\": 11\n}",
167
- "output": "{\n \"Response\": {\n \"PolicyId\": 123,\n \"RequestId\": \"a1a10c6e-6723-408a-858b-2cb84e92776c\"\n }\n}",
166
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMemberPolicy\n<公共请求参数>\n\n{\n \"PolicyName\": \"policy_name\",\n \"MemberUin\": 111111111111,\n \"Description\": \"description\",\n \"IdentityId\": 101\n}",
167
+ "output": "{\n \"Response\": {\n \"PolicyId\": 1001,\n \"RequestId\": \"a1a10c6e-6723-408a-858b-2cb84e92776c\"\n }\n}",
168
168
  "title": "创建组织成员访问授权策略"
169
169
  }
170
170
  ],
171
171
  "CreateOrganizationMembersPolicy": [
172
172
  {
173
173
  "document": "创建组织成员访问策略",
174
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"MemberUins\": [\n 111111111111\n ],\n \"PolicyName\": \"policy_name\",\n \"IdentityId\": 11,\n \"Description\": \"description\"\n}",
175
- "output": "{\n \"Response\": {\n \"PolicyId\": 123,\n \"RequestId\": \"3840f6f4-3976-4b44-9ecc-cb0578129059\"\n }\n}",
174
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"MemberUins\": [\n 111111111111\n ],\n \"PolicyName\": \"policy_name\",\n \"IdentityId\": 101,\n \"Description\": \"description\"\n}",
175
+ "output": "{\n \"Response\": {\n \"PolicyId\": 1001,\n \"RequestId\": \"3840f6f4-3976-4b44-9ecc-cb0578129059\"\n }\n}",
176
176
  "title": "创建组织成员访问策略"
177
177
  }
178
178
  ],
@@ -283,7 +283,7 @@
283
283
  "DeleteOrganizationMembersPolicy": [
284
284
  {
285
285
  "document": "删除组织成员访问策略",
286
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"PolicyId\": 123\n}",
286
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"PolicyId\": 1001\n}",
287
287
  "output": "{\n \"Response\": {\n \"RequestId\": \"3840f6f4-3976-4b44-9ecc-cb0578129059\"\n }\n}",
288
288
  "title": "删除组织成员访问策略"
289
289
  }
@@ -371,7 +371,7 @@
371
371
  "DescribeEffectivePolicy": [
372
372
  {
373
373
  "document": "查询目标关联的有效策略",
374
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEffectivePolicy\n<公共请求参数>\n\n{\n \"TargetId\": 111111111111\n}",
374
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEffectivePolicy\n<公共请求参数>\n\n{\n \"TargetId\": 10001\n}",
375
375
  "output": "{\n \"Response\": {\n \"EffectivePolicy\": {\n \"TargetId\": 111111111111,\n \"PolicyContent\": \"{\\\"tags\\\":{\\\"aaa\\\":{\\\"tag_key\\\":\\\"aaa\\\",\\\"tag_value\\\":[\\\"111\\\",\\\"222\\\"],\\\"resource_type_scope\\\":[\\\"cvm:instance\\\",\\\"cvm:volume\\\",\\\"cvm:keypair\\\",\\\"cvm:image\\\"]},\\\"bbb\\\":{\\\"tag_key\\\":\\\"bbb\\\",\\\"tag_value\\\":[\\\"333\\\"]}}}\",\n \"LastUpdatedTimestamp\": 1668394639\n },\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
376
376
  "title": "查询目标关联的有效策略"
377
377
  }
@@ -388,7 +388,7 @@
388
388
  {
389
389
  "document": "",
390
390
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganization\n<公共请求参数>\n\n{}",
391
- "output": "{\n \"Response\": {\n \"CreateTime\": \"2021-04-15 21:07:54\",\n \"JoinTime\": \"2021-04-15 21:07:54\",\n \"HostUin\": 100000546922,\n \"IsManager\": true,\n \"NickName\": \"\",\n \"OrgId\": 13,\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"允许主账号查看子账号的消费信息\"\n },\n {\n \"Id\": 2,\n \"Name\": \"允许主账号查看子账号的财务信息\"\n },\n {\n \"Id\": 3,\n \"Name\": \"允许主账号划拨资金给子账号\"\n },\n {\n \"Id\": 4,\n \"Name\": \"允许主账号对子账号的账单合并出账\"\n },\n {\n \"Id\": 5,\n \"Name\": \"允许主账号代子账号开票\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"OrgType\": 1,\n \"RootNodeId\": 1001,\n \"IsAllowQuit\": \"Allow\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"IsAssignManager\": false,\n \"IsAuthManager\": false,\n \"RequestId\": \"e5c09721-236b-4a55-a5d1-0513ac506245\"\n }\n}",
391
+ "output": "{\n \"Response\": {\n \"CreateTime\": \"2021-04-15 21:07:54\",\n \"JoinTime\": \"2021-04-15 21:07:54\",\n \"HostUin\": 1001,\n \"IsManager\": true,\n \"NickName\": \"host_name\",\n \"OrgId\": 101,\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"viewBill\"\n },\n {\n \"Id\": 2,\n \"Name\": \"viewBalance\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"OrgType\": 1,\n \"RootNodeId\": 1001,\n \"IsAllowQuit\": \"Allow\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"IsAssignManager\": false,\n \"IsAuthManager\": false,\n \"RequestId\": \"e5c09721-236b-4a55-a5d1-0513ac506245\"\n }\n}",
392
392
  "title": "获取组织详情"
393
393
  }
394
394
  ],
@@ -396,7 +396,7 @@
396
396
  {
397
397
  "document": "获取已设置管理员的互信主体关系列表",
398
398
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationAuthNode\n<公共请求参数>\n\n{\n \"Limit\": 10,\n \"Offset\": 0\n}",
399
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"RelationId\": 1,\n \"AuthName\": \"腾讯云\",\n \"Manager\": {\n \"MemberUin\": 10000036541,\n \"MemberName\": \"test1\"\n }\n }\n ],\n \"RequestId\": \"1d744bef-fa56-40e9-8e3b-5a88b122ad5e\",\n \"Total\": 1\n }\n}",
399
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"RelationId\": 1,\n \"AuthName\": \"auth_name\",\n \"Manager\": {\n \"MemberUin\": 10000000001,\n \"MemberName\": \"member_name\"\n }\n }\n ],\n \"RequestId\": \"1d744bef-fa56-40e9-8e3b-5a88b122ad5e\",\n \"Total\": 1\n }\n}",
400
400
  "title": "获取已设置管理员的互信主体关系列表"
401
401
  }
402
402
  ],
@@ -404,7 +404,7 @@
404
404
  {
405
405
  "document": "按成员维度获取企业财务信息",
406
406
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationFinancialByMember\n<公共请求参数>\n\n{\n \"Month\": \"2021-04\"\n}",
407
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"MemberName\": \"test2\",\n \"MemberUin\": 111111111111,\n \"TotalCost\": 99,\n \"Ratio\": \"79.5\"\n },\n {\n \"MemberName\": \"test1\",\n \"MemberUin\": 222222222222,\n \"TotalCost\": 12.22,\n \"Ratio\": \"20.5\"\n }\n ],\n \"RequestId\": \"dd729295-1586-4395-9286-598dadccc88d\",\n \"TotalCost\": 1002.1,\n \"Total\": 2\n }\n}",
407
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"MemberName\": \"member2\",\n \"MemberUin\": 111111111111,\n \"TotalCost\": 99,\n \"Ratio\": \"79.5\"\n },\n {\n \"MemberName\": \"member1\",\n \"MemberUin\": 222222222222,\n \"TotalCost\": 12.22,\n \"Ratio\": \"20.5\"\n }\n ],\n \"RequestId\": \"dd729295-1586-4395-9286-598dadccc88d\",\n \"TotalCost\": 1002.1,\n \"Total\": 2\n }\n}",
408
408
  "title": "按成员维度获取企业财务信息"
409
409
  }
410
410
  ],
@@ -412,23 +412,23 @@
412
412
  {
413
413
  "document": "按月维度获取企业财务趋势",
414
414
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationFinancialByMonth\n<公共请求参数>\n\n{\n \"Limit\": 5\n}",
415
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Id\": 7,\n \"Month\": \"2021-06\",\n \"TotalCost\": 10232.1\n },\n {\n \"Id\": 5,\n \"Month\": \"2021-05\",\n \"TotalCost\": 1002.1\n },\n {\n \"Id\": 3,\n \"Month\": \"2021-04\",\n \"TotalCost\": 1002.1\n }\n ],\n \"RequestId\": \"89c5de68-2306-48df-9e81-ad2953447e7a\"\n }\n}",
415
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Id\": 7,\n \"Month\": \"2021-06\",\n \"TotalCost\": 1002.1,\n \"GrowthRate\": \"33.3\"\n },\n {\n \"Id\": 5,\n \"Month\": \"2021-05\",\n \"TotalCost\": 1002.1,\n \"GrowthRate\": \"33.3\"\n },\n {\n \"Id\": 3,\n \"Month\": \"2021-04\",\n \"TotalCost\": 1002.1,\n \"GrowthRate\": \"33.3\"\n }\n ],\n \"RequestId\": \"89c5de68-2306-48df-9e81-ad2953447e7a\"\n }\n}",
416
416
  "title": "按月维度获取企业财务趋势"
417
417
  }
418
418
  ],
419
419
  "DescribeOrganizationFinancialByProduct": [
420
420
  {
421
421
  "document": "以产品维度获取企业财务信息",
422
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationFinancialByProduct\n<公共请求参数>\n\n{\n \"Month\": \"2021-04\"\n}",
423
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"ProductCode\": \"e-cdb\",\n \"ProductName\": \"mysql\",\n \"TotalCost\": 33.23,\n \"Ratio\": \"70\"\n },\n {\n \"ProductCode\": \"e-cos\",\n \"ProductName\": \"cos对象存储\",\n \"TotalCost\": 10.12,\n \"Ratio\": \"30\"\n }\n ],\n \"RequestId\": \"d581d282-3acf-496f-b7ba-0fe640648183\",\n \"TotalCost\": 1002.1,\n \"Total\": 2\n }\n}",
422
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationFinancialByProduct\n<公共请求参数>\n\n{\n \"Month\": \"2021-01\"\n}",
423
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"ProductCode\": \"e-cdb\",\n \"ProductName\": \"mysql\",\n \"TotalCost\": 33.23,\n \"Ratio\": \"70\"\n },\n {\n \"ProductCode\": \"e-cos\",\n \"ProductName\": \"cos对象存储\",\n \"TotalCost\": 10.12,\n \"Ratio\": \"30\"\n }\n ],\n \"RequestId\": \"d581d282-3acf-496f-b7ba-0fe640648183\",\n \"TotalCost\": 43.35,\n \"Total\": 2\n }\n}",
424
424
  "title": "以产品维度获取企业财务信息"
425
425
  }
426
426
  ],
427
427
  "DescribeOrganizationMemberAuthAccounts": [
428
428
  {
429
429
  "document": "",
430
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberAuthAccounts\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"Limit\": 10,\n \"PolicyId\": 11,\n \"Offset\": 0\n}",
431
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 21:00:59\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"登录访问\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"OrgSubAccountUin\": 100000546921,\n \"PolicyId\": 98081,\n \"PolicyName\": \"test\",\n \"UpdateTime\": \"2021-07-14 21:00:59\",\n \"OrgSubAccountName\": \"test\"\n }\n ],\n \"RequestId\": \"cf182a6b-8caa-4df9-b1d0-09ad41e8c434\",\n \"Total\": 1\n }\n}",
430
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberAuthAccounts\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"Limit\": 10,\n \"PolicyId\": 1001,\n \"Offset\": 0\n}",
431
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 21:00:59\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"admin\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"OrgSubAccountUin\": 222222222222,\n \"PolicyId\": 1001,\n \"PolicyName\": \"policy_name\",\n \"UpdateTime\": \"2021-07-14 21:00:59\",\n \"OrgSubAccountName\": \"sub_name\"\n }\n ],\n \"RequestId\": \"cf182a6b-8caa-4df9-b1d0-09ad41e8c434\",\n \"Total\": 1\n }\n}",
432
432
  "title": "获取组织成员被绑定授权关系的子账号列表"
433
433
  }
434
434
  ],
@@ -436,7 +436,7 @@
436
436
  {
437
437
  "document": "获取组织成员可被管理的身份列表",
438
438
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberAuthIdentities\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"Limit\": 10,\n \"Offset\": 0\n}",
439
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 20:17:34\",\n \"Description\": \"AdministratorAccess\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"登录访问\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"IdentityType\": 1,\n \"UpdateTime\": \"2021-07-14 20:17:34\"\n }\n ],\n \"RequestId\": \"55fa3e27-1166-45e1-bdac-6198c3c38534\",\n \"Total\": 1\n }\n}",
439
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 20:17:34\",\n \"Description\": \"AdministratorAccess\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"admin\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"IdentityType\": 1,\n \"UpdateTime\": \"2021-07-14 20:17:34\"\n }\n ],\n \"RequestId\": \"55fa3e27-1166-45e1-bdac-6198c3c38534\",\n \"Total\": 1\n }\n}",
440
440
  "title": "获取组织成员可被管理的身份列表"
441
441
  }
442
442
  ],
@@ -444,7 +444,7 @@
444
444
  {
445
445
  "document": "",
446
446
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberEmailBind\n<公共请求参数>\n\n{\n \"MemberUin\": 123\n}",
447
- "output": "{\n \"Response\": {\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\",\n \"BindId\": 1,\n \"ApplyTime\": \"2022-01-13 12:09:08\",\n \"Email\": \"123@qq.com\",\n \"Phone\": \"18798765432\",\n \"BindStatus\": \"Success\",\n \"BindTime\": \"2022-01-13 18:09:08\",\n \"Description\": \"\",\n \"PhoneBind\": 0,\n \"CountryCode\": \"86\"\n }\n}",
447
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\",\n \"BindId\": 1,\n \"ApplyTime\": \"2022-01-13 12:09:08\",\n \"Email\": \"123@qq.com\",\n \"Phone\": \"18***32\",\n \"BindStatus\": \"Success\",\n \"BindTime\": \"2022-01-13 18:09:08\",\n \"Description\": \"success\",\n \"PhoneBind\": 0,\n \"CountryCode\": \"86\"\n }\n}",
448
448
  "title": "查询成员邮箱绑定详细信息"
449
449
  }
450
450
  ],
@@ -452,7 +452,7 @@
452
452
  {
453
453
  "document": "",
454
454
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberPolicies\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"Limit\": 10,\n \"Offset\": 0\n}",
455
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 20:22:30\",\n \"Description\": \"test\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"登录访问\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"PolicyId\": 27887,\n \"PolicyName\": \"test3\",\n \"UpdateTime\": \"2021-07-14 20:22:30\"\n },\n {\n \"CreateTime\": \"2021-07-14 20:21:21\",\n \"Description\": \"test\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"登录访问\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"PolicyId\": 98081,\n \"PolicyName\": \"test\",\n \"UpdateTime\": \"2021-07-14 20:21:21\"\n }\n ],\n \"RequestId\": \"a1525f09-8a00-4b76-9db5-d47aea591dff\",\n \"Total\": 2\n }\n}",
455
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 20:22:30\",\n \"Description\": \"admin policy\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"admin\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"PolicyId\": 1001,\n \"PolicyName\": \"policy_name\",\n \"UpdateTime\": \"2021-07-14 20:22:30\"\n }\n ],\n \"RequestId\": \"a1525f09-8a00-4b76-9db5-d47aea591dff\",\n \"Total\": 1\n }\n}",
456
456
  "title": "获取组织成员的授权策略列表"
457
457
  }
458
458
  ],
@@ -460,7 +460,7 @@
460
460
  {
461
461
  "document": "获取成员列表",
462
462
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMembers\n<公共请求参数>\n\n{\n \"Lang\": \"zh\",\n \"Limit\": 10,\n \"Offset\": 0\n}",
463
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-04-17 12:19:07\",\n \"MemberType\": \"Invite\",\n \"MemberUin\": 111111111111,\n \"Name\": \"test2\",\n \"NodeId\": 27,\n \"NodeName\": \"node1\",\n \"IsAllowQuit\": \"Denied\",\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"允许主账号查看子账号的消费信息\"\n },\n {\n \"Id\": 2,\n \"Name\": \"允许主账号查看子账号的财务信息\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"Remark\": \"123\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"OrgIdentity\": [],\n \"BindStatus\": \"Unbound\",\n \"PermissionStatus\": \"Confirmed\",\n \"UpdateTime\": \"2021-04-17 12:19:07\"\n },\n {\n \"CreateTime\": \"2021-04-16 11:49:39\",\n \"MemberType\": \"Create\",\n \"MemberUin\": 222222222222,\n \"Name\": \"name2\",\n \"NodeId\": 26,\n \"NodeName\": \"node2\",\n \"IsAllowQuit\": \"Denied\",\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"允许主账号查看子账号的消费信息\"\n },\n {\n \"Id\": 2,\n \"Name\": \"允许主账号查看子账号的财务信息\"\n },\n {\n \"Id\": 3,\n \"Name\": \"允许主账号划拨资金给子账号\"\n },\n {\n \"Id\": 4,\n \"Name\": \"允许主账号对子账号的账单合并出账\"\n },\n {\n \"Id\": 5,\n \"Name\": \"允许主账号代子账号开票\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"Remark\": \"\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"OrgIdentity\": [],\n \"BindStatus\": \"Unbound\",\n \"PermissionStatus\": \"Confirmed\",\n \"UpdateTime\": \"2021-04-16 11:49:39\"\n }\n ],\n \"RequestId\": \"a0fe0702-5757-4aa4-8872-74b70a4c1b7a\",\n \"Total\": 2\n }\n}",
463
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-04-17 12:19:07\",\n \"MemberType\": \"Invite\",\n \"MemberUin\": 111111111111,\n \"Name\": \"member_name\",\n \"NodeId\": 101,\n \"NodeName\": \"node_name\",\n \"IsAllowQuit\": \"Denied\",\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"允许主账号查看子账号的消费信息\"\n },\n {\n \"Id\": 2,\n \"Name\": \"允许主账号查看子账号的财务信息\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"Remark\": \"member1\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"OrgIdentity\": [],\n \"BindStatus\": \"Unbound\",\n \"PermissionStatus\": \"Confirmed\",\n \"UpdateTime\": \"2021-04-17 12:19:07\"\n }\n ],\n \"RequestId\": \"a0fe0702-5757-4aa4-8872-74b70a4c1b7a\",\n \"Total\": 1\n }\n}",
464
464
  "title": "获取成员列表"
465
465
  }
466
466
  ],
@@ -468,7 +468,7 @@
468
468
  {
469
469
  "document": "",
470
470
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationNodes\n<公共请求参数>\n\n{\n \"Limit\": 10,\n \"Offset\": 0\n}",
471
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-04-16 11:49:39\",\n \"Name\": \"Root\",\n \"NodeId\": 26,\n \"ParentNodeId\": 0,\n \"Remark\": \"\",\n \"UpdateTime\": \"2021-04-16 11:49:39\"\n },\n {\n \"CreateTime\": \"2021-04-16 14:59:57\",\n \"Name\": \"test\",\n \"NodeId\": 27,\n \"ParentNodeId\": 26,\n \"Remark\": \"test\",\n \"UpdateTime\": \"2021-04-16 14:59:57\"\n },\n {\n \"CreateTime\": \"2021-04-16 15:55:53\",\n \"Name\": \"test1\",\n \"NodeId\": 29,\n \"ParentNodeId\": 27,\n \"Remark\": \"1\",\n \"UpdateTime\": \"2021-04-16 15:55:53\"\n }\n ],\n \"RequestId\": \"becff4cb-fe62-4288-ac6c-4fba115b94b3\",\n \"Total\": 3\n }\n}",
471
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-04-16 11:49:39\",\n \"Name\": \"Root\",\n \"NodeId\": 101,\n \"ParentNodeId\": 0,\n \"Remark\": \"\",\n \"UpdateTime\": \"2021-04-16 11:49:39\"\n }\n ],\n \"RequestId\": \"becff4cb-fe62-4288-ac6c-4fba115b94b3\",\n \"Total\": 1\n }\n}",
472
472
  "title": "获取节点列表"
473
473
  }
474
474
  ],
@@ -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