tccli 3.0.1328.1__py2.py3-none-any.whl → 3.0.1330.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 (58) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +3 -3
  3. tccli/services/autoscaling/v20180419/examples.json +1 -1
  4. tccli/services/btoe/v20210514/api.json +26 -26
  5. tccli/services/cbs/v20170312/api.json +13 -13
  6. tccli/services/ccc/v20200210/api.json +36 -0
  7. tccli/services/cdn/v20180606/examples.json +1 -1
  8. tccli/services/cdwch/v20200915/api.json +3 -3
  9. tccli/services/cdwch/v20200915/examples.json +1 -1
  10. tccli/services/ckafka/v20190819/api.json +9 -0
  11. tccli/services/emr/v20190103/api.json +1 -1
  12. tccli/services/ess/v20201111/api.json +12 -3
  13. tccli/services/essbasic/v20210526/api.json +13 -4
  14. tccli/services/essbasic/v20210526/examples.json +3 -3
  15. tccli/services/faceid/v20180301/api.json +45 -0
  16. tccli/services/gs/gs_client.py +53 -0
  17. tccli/services/gs/v20191118/api.json +62 -9
  18. tccli/services/gs/v20191118/examples.json +8 -0
  19. tccli/services/hai/hai_client.py +110 -4
  20. tccli/services/hai/v20230812/api.json +105 -0
  21. tccli/services/hai/v20230812/examples.json +16 -0
  22. tccli/services/ioa/ioa_client.py +53 -0
  23. tccli/services/ioa/v20220601/api.json +263 -0
  24. tccli/services/ioa/v20220601/examples.json +8 -0
  25. tccli/services/iotexplorer/v20190423/api.json +54 -3
  26. tccli/services/lighthouse/v20200324/api.json +1 -1
  27. tccli/services/lke/v20231130/api.json +315 -4
  28. tccli/services/lke/v20231130/examples.json +4 -4
  29. tccli/services/mps/v20190612/api.json +11 -0
  30. tccli/services/ocr/v20181119/api.json +42 -2
  31. tccli/services/postgres/v20170312/api.json +1 -1
  32. tccli/services/sms/v20190711/api.json +4 -4
  33. tccli/services/sms/v20210111/api.json +4 -4
  34. tccli/services/sqlserver/v20180328/api.json +29 -2
  35. tccli/services/ssl/v20191205/api.json +79 -0
  36. tccli/services/ssl/v20191205/examples.json +6 -6
  37. tccli/services/tcss/tcss_client.py +57 -4
  38. tccli/services/tcss/v20201101/api.json +79 -0
  39. tccli/services/tcss/v20201101/examples.json +8 -0
  40. tccli/services/tke/tke_client.py +53 -0
  41. tccli/services/tke/v20180525/api.json +59 -1
  42. tccli/services/tke/v20180525/examples.json +4 -4
  43. tccli/services/tke/v20220501/api.json +61 -0
  44. tccli/services/tke/v20220501/examples.json +8 -0
  45. tccli/services/trtc/trtc_client.py +216 -4
  46. tccli/services/trtc/v20190722/api.json +430 -1
  47. tccli/services/trtc/v20190722/examples.json +32 -0
  48. tccli/services/vm/v20210922/api.json +16 -20
  49. tccli/services/vod/v20180717/api.json +25 -13
  50. tccli/services/vod/v20180717/examples.json +2 -2
  51. tccli/services/wedata/v20210820/api.json +4144 -447
  52. tccli/services/wedata/v20210820/examples.json +52 -10
  53. tccli/services/wedata/wedata_client.py +403 -85
  54. {tccli-3.0.1328.1.dist-info → tccli-3.0.1330.1.dist-info}/METADATA +2 -2
  55. {tccli-3.0.1328.1.dist-info → tccli-3.0.1330.1.dist-info}/RECORD +58 -58
  56. {tccli-3.0.1328.1.dist-info → tccli-3.0.1330.1.dist-info}/WHEEL +0 -0
  57. {tccli-3.0.1328.1.dist-info → tccli-3.0.1330.1.dist-info}/entry_points.txt +0 -0
  58. {tccli-3.0.1328.1.dist-info → tccli-3.0.1330.1.dist-info}/license_files/LICENSE +0 -0
@@ -4335,6 +4335,58 @@ def doCreateReservedInstances(args, parsed_globals):
4335
4335
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4336
4336
 
4337
4337
 
4338
+ def doDeleteClusterMachines(args, parsed_globals):
4339
+ g_param = parse_global_arg(parsed_globals)
4340
+
4341
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4342
+ cred = credential.CVMRoleCredential()
4343
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4344
+ cred = credential.STSAssumeRoleCredential(
4345
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4346
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4347
+ )
4348
+ 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):
4349
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4350
+ else:
4351
+ cred = credential.Credential(
4352
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4353
+ )
4354
+ http_profile = HttpProfile(
4355
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4356
+ reqMethod="POST",
4357
+ endpoint=g_param[OptionsDefine.Endpoint],
4358
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4359
+ )
4360
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4361
+ if g_param[OptionsDefine.Language]:
4362
+ profile.language = g_param[OptionsDefine.Language]
4363
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4364
+ client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
4365
+ client._sdkVersion += ("_CLI_" + __version__)
4366
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4367
+ model = models.DeleteClusterMachinesRequest()
4368
+ model.from_json_string(json.dumps(args))
4369
+ start_time = time.time()
4370
+ while True:
4371
+ rsp = client.DeleteClusterMachines(model)
4372
+ result = rsp.to_json_string()
4373
+ try:
4374
+ json_obj = json.loads(result)
4375
+ except TypeError as e:
4376
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4377
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4378
+ break
4379
+ cur_time = time.time()
4380
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4381
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4382
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4383
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4384
+ else:
4385
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4386
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4387
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4388
+
4389
+
4338
4390
  def doRebootMachines(args, parsed_globals):
4339
4391
  g_param = parse_global_arg(parsed_globals)
4340
4392
 
@@ -12647,6 +12699,7 @@ ACTION_MAP = {
12647
12699
  "ModifyClusterTags": doModifyClusterTags,
12648
12700
  "DescribeClusterEndpointStatus": doDescribeClusterEndpointStatus,
12649
12701
  "CreateReservedInstances": doCreateReservedInstances,
12702
+ "DeleteClusterMachines": doDeleteClusterMachines,
12650
12703
  "RebootMachines": doRebootMachines,
12651
12704
  "ForwardTKEEdgeApplicationRequestV3": doForwardTKEEdgeApplicationRequestV3,
12652
12705
  "DescribeBatchModifyTagsStatus": doDescribeBatchModifyTagsStatus,
@@ -4674,6 +4674,15 @@
4674
4674
  "name": "ExtensiveParameters",
4675
4675
  "required": false,
4676
4676
  "type": "string"
4677
+ },
4678
+ {
4679
+ "disabled": false,
4680
+ "document": "使用已有clb开启内网或外网访问",
4681
+ "example": "lb-n18gb6t3",
4682
+ "member": "string",
4683
+ "name": "ExistedLoadBalancerId",
4684
+ "required": false,
4685
+ "type": "string"
4677
4686
  }
4678
4687
  ],
4679
4688
  "type": "object"
@@ -25010,6 +25019,7 @@
25010
25019
  "member": "string",
25011
25020
  "name": "NodeName",
25012
25021
  "output_required": false,
25022
+ "required": false,
25013
25023
  "type": "string",
25014
25024
  "value_allowed_null": false
25015
25025
  },
@@ -25020,6 +25030,7 @@
25020
25030
  "member": "uint64",
25021
25031
  "name": "Num",
25022
25032
  "output_required": false,
25033
+ "required": false,
25023
25034
  "type": "int",
25024
25035
  "value_allowed_null": false
25025
25036
  },
@@ -25030,6 +25041,7 @@
25030
25041
  "member": "float",
25031
25042
  "name": "Cpu",
25032
25043
  "output_required": false,
25044
+ "required": false,
25033
25045
  "type": "float",
25034
25046
  "value_allowed_null": false
25035
25047
  },
@@ -25040,6 +25052,7 @@
25040
25052
  "member": "float",
25041
25053
  "name": "Memory",
25042
25054
  "output_required": false,
25055
+ "required": false,
25043
25056
  "type": "float",
25044
25057
  "value_allowed_null": false
25045
25058
  },
@@ -25050,11 +25063,56 @@
25050
25063
  "member": "float",
25051
25064
  "name": "Gpu",
25052
25065
  "output_required": false,
25066
+ "required": false,
25053
25067
  "type": "float",
25054
25068
  "value_allowed_null": false
25069
+ },
25070
+ {
25071
+ "disabled": false,
25072
+ "document": "节点资源的配额类型,exact表示精确配额,fuzzy 表示模糊配额。",
25073
+ "example": "exact",
25074
+ "member": "string",
25075
+ "name": "QuotaType",
25076
+ "output_required": false,
25077
+ "required": false,
25078
+ "type": "string",
25079
+ "value_allowed_null": false
25080
+ },
25081
+ {
25082
+ "disabled": false,
25083
+ "document": "配额的计费类型,PREPAID表示包月,POSTPAID_BY_HOUR表示按量。",
25084
+ "example": "PREPAID",
25085
+ "member": "string",
25086
+ "name": "ChargeType",
25087
+ "output_required": false,
25088
+ "required": false,
25089
+ "type": "string",
25090
+ "value_allowed_null": false
25091
+ },
25092
+ {
25093
+ "disabled": false,
25094
+ "document": "QuotaType为 exact 时,此字段有效,表示精确配额的资源类型。",
25095
+ "example": "intel",
25096
+ "member": "string",
25097
+ "name": "ResourceType",
25098
+ "output_required": false,
25099
+ "required": false,
25100
+ "type": "string",
25101
+ "value_allowed_null": false
25102
+ },
25103
+ {
25104
+ "disabled": false,
25105
+ "document": "置放群组 ID",
25106
+ "example": "ps-12345678",
25107
+ "member": "string",
25108
+ "name": "DisasterRecoverGroupId",
25109
+ "output_required": false,
25110
+ "required": false,
25111
+ "type": "string",
25112
+ "value_allowed_null": false
25055
25113
  }
25056
25114
  ],
25057
- "usage": "out"
25115
+ "usage": "both"
25058
25116
  },
25059
25117
  "Switch": {
25060
25118
  "document": "集群日志开关集合",
@@ -1073,7 +1073,7 @@
1073
1073
  "DescribePodsBySpec": [
1074
1074
  {
1075
1075
  "document": "Filter Name只支持文档中的示例值",
1076
- "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodsBySpec\n<公共请求参数>\n\n{\n \"Cpu\": 1,\n \"Memory\": 2,\n \"Filters\": [\n {\n \"Name\": \"not-support-filter-name\"\n }\n ]\n}",
1076
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodsBySpec\n<公共请求参数>\n\n{\n \"Cpu\": 1,\n \"Memory\": 2,\n \"Filters\": [\n {\n \"Name\": \"not-support-filter-name\",\n \"Values\": [\n \"intel\"\n ]\n }\n ]\n}",
1077
1077
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Filter Name:not-support-filter-name not supported\"\n },\n \"RequestId\": \"3323e599-cc1f-481b-95a7-dec3f145d158\"\n }\n}",
1078
1078
  "title": "Filter Name值不支持"
1079
1079
  },
@@ -1265,7 +1265,7 @@
1265
1265
  "DescribeRIUtilizationDetail": [
1266
1266
  {
1267
1267
  "document": "Filter Name只支持文档中的示例值",
1268
- "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRIUtilizationDetail\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"not-support-filter-name\"\n }\n ]\n}",
1268
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRIUtilizationDetail\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"not-support-filter-name\",\n \"Values\": [\n \"2023-08-09 00:00:00\"\n ]\n }\n ]\n}",
1269
1269
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Filter Name:not-support-filter-name not supported\"\n },\n \"RequestId\": \"e6a4cb0c-defc-4829-8c12-784f300cea6a\"\n }\n}",
1270
1270
  "title": "Filter Name值不支持"
1271
1271
  },
@@ -1301,7 +1301,7 @@
1301
1301
  "DescribeReservedInstances": [
1302
1302
  {
1303
1303
  "document": "Filter Name只支持文档中的示例值",
1304
- "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedInstances\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"not-support-filter-name\",\n \"Values\": [\n \"value\"\n ]\n }\n ]\n}",
1304
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedInstances\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"not-support-filter-name\",\n \"Values\": [\n \"Active\"\n ]\n }\n ]\n}",
1305
1305
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Filter Name:not-support-filter-name not supported\"\n },\n \"RequestId\": \"b31166bd-80d6-4868-b13a-952bc1cdc74c\"\n }\n}",
1306
1306
  "title": "Filter Name值不支持"
1307
1307
  },
@@ -1313,7 +1313,7 @@
1313
1313
  },
1314
1314
  {
1315
1315
  "document": "支持的 Filter Name示例",
1316
- "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedInstances\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"status\",\n \"Values\": [\n \"Active\"\n ]\n },\n {\n \"Name\": \"scope\",\n \"Values\": [\n \"ap-guangzhou-2\"\n ]\n },\n {\n \"Name\": \"cluster-id\",\n \"Values\": [\n \"cls-3dkzu9z2\"\n ]\n },\n {\n \"Name\": \"node-name\",\n \"Values\": [\n \"eklet-subnet-9hxmgam6-790879\"\n ]\n },\n {\n \"Name\": \"cpu\",\n \"Values\": [\n \"2\"\n ]\n },\n {\n \"Name\": \"memory\",\n \"Values\": [\n \"4\"\n ]\n },\n {\n \"Name\": \"resource-type\",\n \"Values\": [\n \"common\"\n ]\n },\n {\n \"Name\": \"gpu\",\n \"Values\": [\n \"\"\n ]\n },\n {\n \"Name\": \"reserved-instance-id\",\n \"Values\": [\n \"eksri-f9rwc82i\"\n ]\n },\n {\n \"Name\": \"reserved-instance-name\",\n \"Values\": [\n \"c\"\n ]\n },\n {\n \"Name\": \"reserved-instance-not-deduct\"\n }\n ],\n \"OrderField\": \"ExpireAt\",\n \"OrderDirection\": \"ASC\"\n}",
1316
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedInstances\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"status\",\n \"Values\": [\n \"Active\"\n ]\n },\n {\n \"Name\": \"scope\",\n \"Values\": [\n \"ap-guangzhou-2\"\n ]\n },\n {\n \"Name\": \"cluster-id\",\n \"Values\": [\n \"cls-3dkzu9z2\"\n ]\n },\n {\n \"Name\": \"node-name\",\n \"Values\": [\n \"eklet-subnet-9hxmgam6-790879\"\n ]\n },\n {\n \"Name\": \"cpu\",\n \"Values\": [\n \"2\"\n ]\n },\n {\n \"Name\": \"memory\",\n \"Values\": [\n \"4\"\n ]\n },\n {\n \"Name\": \"resource-type\",\n \"Values\": [\n \"common\"\n ]\n },\n {\n \"Name\": \"gpu\",\n \"Values\": [\n \"t4\"\n ]\n },\n {\n \"Name\": \"reserved-instance-id\",\n \"Values\": [\n \"eksri-f9rwc82i\"\n ]\n },\n {\n \"Name\": \"reserved-instance-name\",\n \"Values\": [\n \"c\"\n ]\n },\n {\n \"Name\": \"reserved-instance-not-deduct\",\n \"Values\": [\n \"c\"\n ]\n }\n ],\n \"OrderField\": \"ExpireAt\",\n \"OrderDirection\": \"ASC\"\n}",
1317
1317
  "output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"ReservedInstanceSet\": [],\n \"RequestId\": \"a1be36f0-1aa4-4af2-a289-da021bcef89f\"\n }\n}",
1318
1318
  "title": "支持的 Filter Name示例"
1319
1319
  },
@@ -14,6 +14,13 @@
14
14
  "output": "CreateNodePoolResponse",
15
15
  "status": "online"
16
16
  },
17
+ "DeleteClusterMachines": {
18
+ "document": "删除原生节点池节点",
19
+ "input": "DeleteClusterMachinesRequest",
20
+ "name": "删除原生节点池节点",
21
+ "output": "DeleteClusterMachinesResponse",
22
+ "status": "online"
23
+ },
17
24
  "DeleteHealthCheckPolicy": {
18
25
  "document": "删除健康检测策略",
19
26
  "input": "DeleteHealthCheckPolicyRequest",
@@ -694,6 +701,60 @@
694
701
  ],
695
702
  "usage": "both"
696
703
  },
704
+ "DeleteClusterMachinesRequest": {
705
+ "document": "DeleteClusterMachines请求参数结构体",
706
+ "members": [
707
+ {
708
+ "disabled": false,
709
+ "document": "集群 ID",
710
+ "example": "cls-xxxxxxxx",
711
+ "member": "string",
712
+ "name": "ClusterId",
713
+ "required": true,
714
+ "type": "string"
715
+ },
716
+ {
717
+ "disabled": false,
718
+ "document": "节点名列表",
719
+ "example": "[np-xxxxxxxx-7j9rt]",
720
+ "member": "string",
721
+ "name": "MachineNames",
722
+ "required": true,
723
+ "type": "list"
724
+ },
725
+ {
726
+ "disabled": false,
727
+ "document": "删除节点时是否缩容节点池,true为缩容",
728
+ "example": "true",
729
+ "member": "bool",
730
+ "name": "EnableScaleDown",
731
+ "required": false,
732
+ "type": "bool"
733
+ },
734
+ {
735
+ "disabled": false,
736
+ "document": "集群实例删除时的策略:terminate(销毁实例,仅支持按量计费云主机实例)retain(仅移除,保留实例)",
737
+ "example": "terminate",
738
+ "member": "string",
739
+ "name": "InstanceDeleteMode",
740
+ "required": false,
741
+ "type": "string"
742
+ }
743
+ ],
744
+ "type": "object"
745
+ },
746
+ "DeleteClusterMachinesResponse": {
747
+ "document": "DeleteClusterMachines返回参数结构体",
748
+ "members": [
749
+ {
750
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
751
+ "member": "string",
752
+ "name": "RequestId",
753
+ "type": "string"
754
+ }
755
+ ],
756
+ "type": "object"
757
+ },
697
758
  "DeleteHealthCheckPolicyRequest": {
698
759
  "document": "DeleteHealthCheckPolicy请求参数结构体",
699
760
  "members": [
@@ -16,6 +16,14 @@
16
16
  "title": "创建 TKE 节点池"
17
17
  }
18
18
  ],
19
+ "DeleteClusterMachines": [
20
+ {
21
+ "document": "",
22
+ "input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteClusterMachines\n<公共请求参数>\n\n{\n \"MachineNames\": [\n \"np-5tx2l4dc-hbbv6\"\n ],\n \"ClusterId\": \"cls-l9l1o3y0\",\n \"EnableScaleDown\": false\n}",
23
+ "output": "{\n \"Response\": {\n \"RequestId\": \"71e54a99-9be0-4983-82ff-54dce2191c4a\"\n }\n}",
24
+ "title": "删除原生节点池节点"
25
+ }
26
+ ],
19
27
  "DeleteHealthCheckPolicy": [
20
28
  {
21
29
  "document": "",
@@ -693,7 +693,7 @@ def doStartAIConversation(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
- def doDescribeAIConversation(args, parsed_globals):
696
+ def doDeleteVoicePrint(args, parsed_globals):
697
697
  g_param = parse_global_arg(parsed_globals)
698
698
 
699
699
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -722,11 +722,11 @@ def doDescribeAIConversation(args, parsed_globals):
722
722
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
723
723
  client._sdkVersion += ("_CLI_" + __version__)
724
724
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
- model = models.DescribeAIConversationRequest()
725
+ model = models.DeleteVoicePrintRequest()
726
726
  model.from_json_string(json.dumps(args))
727
727
  start_time = time.time()
728
728
  while True:
729
- rsp = client.DescribeAIConversation(model)
729
+ rsp = client.DeleteVoicePrint(model)
730
730
  result = rsp.to_json_string()
731
731
  try:
732
732
  json_obj = json.loads(result)
@@ -1525,6 +1525,58 @@ def doDescribeTRTCMarketScaleData(args, parsed_globals):
1525
1525
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
1526
 
1527
1527
 
1528
+ def doRegisterVoicePrint(args, parsed_globals):
1529
+ g_param = parse_global_arg(parsed_globals)
1530
+
1531
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1532
+ cred = credential.CVMRoleCredential()
1533
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1534
+ cred = credential.STSAssumeRoleCredential(
1535
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1536
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1537
+ )
1538
+ 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):
1539
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1540
+ else:
1541
+ cred = credential.Credential(
1542
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1543
+ )
1544
+ http_profile = HttpProfile(
1545
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1546
+ reqMethod="POST",
1547
+ endpoint=g_param[OptionsDefine.Endpoint],
1548
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1549
+ )
1550
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1551
+ if g_param[OptionsDefine.Language]:
1552
+ profile.language = g_param[OptionsDefine.Language]
1553
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1554
+ client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
1555
+ client._sdkVersion += ("_CLI_" + __version__)
1556
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1557
+ model = models.RegisterVoicePrintRequest()
1558
+ model.from_json_string(json.dumps(args))
1559
+ start_time = time.time()
1560
+ while True:
1561
+ rsp = client.RegisterVoicePrint(model)
1562
+ result = rsp.to_json_string()
1563
+ try:
1564
+ json_obj = json.loads(result)
1565
+ except TypeError as e:
1566
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1567
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1568
+ break
1569
+ cur_time = time.time()
1570
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1571
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1572
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1573
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1574
+ else:
1575
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1576
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1577
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1578
+
1579
+
1528
1580
  def doStopWebRecord(args, parsed_globals):
1529
1581
  g_param = parse_global_arg(parsed_globals)
1530
1582
 
@@ -1629,6 +1681,58 @@ def doCreateCloudRecording(args, parsed_globals):
1629
1681
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1682
 
1631
1683
 
1684
+ def doDescribeAIConversation(args, parsed_globals):
1685
+ g_param = parse_global_arg(parsed_globals)
1686
+
1687
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1688
+ cred = credential.CVMRoleCredential()
1689
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1690
+ cred = credential.STSAssumeRoleCredential(
1691
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1692
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1693
+ )
1694
+ 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):
1695
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1696
+ else:
1697
+ cred = credential.Credential(
1698
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1699
+ )
1700
+ http_profile = HttpProfile(
1701
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1702
+ reqMethod="POST",
1703
+ endpoint=g_param[OptionsDefine.Endpoint],
1704
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1705
+ )
1706
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1707
+ if g_param[OptionsDefine.Language]:
1708
+ profile.language = g_param[OptionsDefine.Language]
1709
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1710
+ client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
1711
+ client._sdkVersion += ("_CLI_" + __version__)
1712
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1713
+ model = models.DescribeAIConversationRequest()
1714
+ model.from_json_string(json.dumps(args))
1715
+ start_time = time.time()
1716
+ while True:
1717
+ rsp = client.DescribeAIConversation(model)
1718
+ result = rsp.to_json_string()
1719
+ try:
1720
+ json_obj = json.loads(result)
1721
+ except TypeError as e:
1722
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1723
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1724
+ break
1725
+ cur_time = time.time()
1726
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1727
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1728
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1729
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1730
+ else:
1731
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1732
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1733
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
+
1735
+
1632
1736
  def doDescribeScaleInfo(args, parsed_globals):
1633
1737
  g_param = parse_global_arg(parsed_globals)
1634
1738
 
@@ -2253,6 +2357,58 @@ def doDescribeRecordStatistic(args, parsed_globals):
2253
2357
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
2358
 
2255
2359
 
2360
+ def doDescribeVoicePrint(args, parsed_globals):
2361
+ g_param = parse_global_arg(parsed_globals)
2362
+
2363
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2364
+ cred = credential.CVMRoleCredential()
2365
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2366
+ cred = credential.STSAssumeRoleCredential(
2367
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2368
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2369
+ )
2370
+ 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):
2371
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2372
+ else:
2373
+ cred = credential.Credential(
2374
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2375
+ )
2376
+ http_profile = HttpProfile(
2377
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2378
+ reqMethod="POST",
2379
+ endpoint=g_param[OptionsDefine.Endpoint],
2380
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2381
+ )
2382
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2383
+ if g_param[OptionsDefine.Language]:
2384
+ profile.language = g_param[OptionsDefine.Language]
2385
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2386
+ client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
2387
+ client._sdkVersion += ("_CLI_" + __version__)
2388
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2389
+ model = models.DescribeVoicePrintRequest()
2390
+ model.from_json_string(json.dumps(args))
2391
+ start_time = time.time()
2392
+ while True:
2393
+ rsp = client.DescribeVoicePrint(model)
2394
+ result = rsp.to_json_string()
2395
+ try:
2396
+ json_obj = json.loads(result)
2397
+ except TypeError as e:
2398
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2399
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2400
+ break
2401
+ cur_time = time.time()
2402
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2403
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2404
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2405
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2406
+ else:
2407
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2408
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2409
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2410
+
2411
+
2256
2412
  def doDismissRoomByStrRoomId(args, parsed_globals):
2257
2413
  g_param = parse_global_arg(parsed_globals)
2258
2414
 
@@ -2669,6 +2825,58 @@ def doDescribePicture(args, parsed_globals):
2669
2825
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
2826
 
2671
2827
 
2828
+ def doUpdateVoicePrint(args, parsed_globals):
2829
+ g_param = parse_global_arg(parsed_globals)
2830
+
2831
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2832
+ cred = credential.CVMRoleCredential()
2833
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2834
+ cred = credential.STSAssumeRoleCredential(
2835
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2836
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2837
+ )
2838
+ 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):
2839
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2840
+ else:
2841
+ cred = credential.Credential(
2842
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2843
+ )
2844
+ http_profile = HttpProfile(
2845
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2846
+ reqMethod="POST",
2847
+ endpoint=g_param[OptionsDefine.Endpoint],
2848
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2849
+ )
2850
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2851
+ if g_param[OptionsDefine.Language]:
2852
+ profile.language = g_param[OptionsDefine.Language]
2853
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2854
+ client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
2855
+ client._sdkVersion += ("_CLI_" + __version__)
2856
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
+ model = models.UpdateVoicePrintRequest()
2858
+ model.from_json_string(json.dumps(args))
2859
+ start_time = time.time()
2860
+ while True:
2861
+ rsp = client.UpdateVoicePrint(model)
2862
+ result = rsp.to_json_string()
2863
+ try:
2864
+ json_obj = json.loads(result)
2865
+ except TypeError as e:
2866
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2867
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2868
+ break
2869
+ cur_time = time.time()
2870
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2871
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2872
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2873
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2874
+ else:
2875
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2876
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2877
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
+
2879
+
2672
2880
  def doDescribeTRTCMarketQualityData(args, parsed_globals):
2673
2881
  g_param = parse_global_arg(parsed_globals)
2674
2882
 
@@ -3005,7 +3213,7 @@ ACTION_MAP = {
3005
3213
  "DescribeStreamIngest": doDescribeStreamIngest,
3006
3214
  "DescribeTRTCMarketScaleMetricData": doDescribeTRTCMarketScaleMetricData,
3007
3215
  "StartAIConversation": doStartAIConversation,
3008
- "DescribeAIConversation": doDescribeAIConversation,
3216
+ "DeleteVoicePrint": doDeleteVoicePrint,
3009
3217
  "DescribeRecordingUsage": doDescribeRecordingUsage,
3010
3218
  "StartStreamIngest": doStartStreamIngest,
3011
3219
  "UpdateStreamIngest": doUpdateStreamIngest,
@@ -3021,8 +3229,10 @@ ACTION_MAP = {
3021
3229
  "StartMCUMixTranscode": doStartMCUMixTranscode,
3022
3230
  "StartAITranscription": doStartAITranscription,
3023
3231
  "DescribeTRTCMarketScaleData": doDescribeTRTCMarketScaleData,
3232
+ "RegisterVoicePrint": doRegisterVoicePrint,
3024
3233
  "StopWebRecord": doStopWebRecord,
3025
3234
  "CreateCloudRecording": doCreateCloudRecording,
3235
+ "DescribeAIConversation": doDescribeAIConversation,
3026
3236
  "DescribeScaleInfo": doDescribeScaleInfo,
3027
3237
  "DescribeRelayUsage": doDescribeRelayUsage,
3028
3238
  "DescribeUserInfo": doDescribeUserInfo,
@@ -3035,6 +3245,7 @@ ACTION_MAP = {
3035
3245
  "DismissRoom": doDismissRoom,
3036
3246
  "DescribeCloudRecording": doDescribeCloudRecording,
3037
3247
  "DescribeRecordStatistic": doDescribeRecordStatistic,
3248
+ "DescribeVoicePrint": doDescribeVoicePrint,
3038
3249
  "DismissRoomByStrRoomId": doDismissRoomByStrRoomId,
3039
3250
  "DescribeTrtcRoomUsage": doDescribeTrtcRoomUsage,
3040
3251
  "ModifyPicture": doModifyPicture,
@@ -3043,6 +3254,7 @@ ACTION_MAP = {
3043
3254
  "DescribeTRTCRealTimeQualityData": doDescribeTRTCRealTimeQualityData,
3044
3255
  "DescribeWebRecord": doDescribeWebRecord,
3045
3256
  "DescribePicture": doDescribePicture,
3257
+ "UpdateVoicePrint": doUpdateVoicePrint,
3046
3258
  "DescribeTRTCMarketQualityData": doDescribeTRTCMarketQualityData,
3047
3259
  "ControlAIConversation": doControlAIConversation,
3048
3260
  "StopPublishCdnStream": doStopPublishCdnStream,