tccli 3.0.1364.1__py2.py3-none-any.whl → 3.0.1366.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 (55) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +1 -1
  3. tccli/services/cdb/v20170320/api.json +12 -12
  4. tccli/services/cdn/cdn_client.py +161 -1380
  5. tccli/services/cdn/v20180606/api.json +5302 -9471
  6. tccli/services/cdn/v20180606/examples.json +0 -184
  7. tccli/services/cfs/v20190719/api.json +7 -7
  8. tccli/services/chc/v20230418/api.json +1 -1
  9. tccli/services/cls/v20201016/api.json +28 -24
  10. tccli/services/cls/v20201016/examples.json +2 -2
  11. tccli/services/cynosdb/v20190107/api.json +1 -1
  12. tccli/services/cynosdb/v20190107/examples.json +1 -1
  13. tccli/services/dlc/dlc_client.py +1622 -403
  14. tccli/services/dlc/v20210125/api.json +10988 -8007
  15. tccli/services/dlc/v20210125/examples.json +186 -2
  16. tccli/services/emr/v20190103/api.json +1 -1
  17. tccli/services/es/v20250101/api.json +38 -1
  18. tccli/services/ess/ess_client.py +110 -4
  19. tccli/services/ess/v20201111/api.json +359 -6
  20. tccli/services/ess/v20201111/examples.json +22 -0
  21. tccli/services/hunyuan/hunyuan_client.py +73 -179
  22. tccli/services/hunyuan/v20230901/api.json +0 -190
  23. tccli/services/hunyuan/v20230901/examples.json +0 -16
  24. tccli/services/ims/v20201229/api.json +2 -2
  25. tccli/services/lke/v20231130/api.json +47 -4
  26. tccli/services/mongodb/v20190725/api.json +2 -2
  27. tccli/services/mongodb/v20190725/examples.json +1 -1
  28. tccli/services/monitor/v20180724/api.json +2 -2
  29. tccli/services/mps/v20190612/api.json +5 -5
  30. tccli/services/mqtt/v20240516/api.json +84 -0
  31. tccli/services/ocr/v20181119/api.json +49 -3
  32. tccli/services/partners/v20180321/api.json +4 -4
  33. tccli/services/postgres/v20170312/api.json +20 -20
  34. tccli/services/postgres/v20170312/examples.json +2 -2
  35. tccli/services/sqlserver/v20180328/api.json +10 -10
  36. tccli/services/sqlserver/v20180328/examples.json +1 -1
  37. tccli/services/ssl/v20191205/api.json +4 -4
  38. tccli/services/tcbr/v20220217/api.json +114 -9
  39. tccli/services/tcr/v20190924/api.json +2 -2
  40. tccli/services/teo/teo_client.py +1266 -206
  41. tccli/services/teo/v20220901/api.json +1798 -116
  42. tccli/services/teo/v20220901/examples.json +160 -0
  43. tccli/services/tione/v20211111/api.json +48 -38
  44. tccli/services/tione/v20211111/examples.json +1 -1
  45. tccli/services/trtc/v20190722/api.json +40 -7
  46. tccli/services/waf/v20180125/api.json +499 -0
  47. tccli/services/waf/v20180125/examples.json +32 -0
  48. tccli/services/waf/waf_client.py +224 -12
  49. tccli/services/wsa/v20250508/api.json +2 -2
  50. tccli/services/wsa/v20250508/examples.json +2 -2
  51. {tccli-3.0.1364.1.dist-info → tccli-3.0.1366.1.dist-info}/METADATA +2 -2
  52. {tccli-3.0.1364.1.dist-info → tccli-3.0.1366.1.dist-info}/RECORD +55 -55
  53. {tccli-3.0.1364.1.dist-info → tccli-3.0.1366.1.dist-info}/WHEEL +0 -0
  54. {tccli-3.0.1364.1.dist-info → tccli-3.0.1366.1.dist-info}/entry_points.txt +0 -0
  55. {tccli-3.0.1364.1.dist-info → tccli-3.0.1366.1.dist-info}/license_files/LICENSE +0 -0
@@ -56,6 +56,14 @@
56
56
  "title": "示例一"
57
57
  }
58
58
  ],
59
+ "AssociateDatasourceHouse": [
60
+ {
61
+ "document": "",
62
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AssociateDatasourceHouse\n<公共请求参数>\n\n{\n \"DatasourceConnectionName\": \"abc\",\n \"DatasourceConnectionType\": \"abc\",\n \"DatasourceConnectionConfig\": {\n \"Mysql\": {\n \"JdbcUrl\": \"abc\",\n \"User\": \"abc\",\n \"Password\": \"abc\",\n \"Location\": {\n \"VpcId\": \"abc\",\n \"VpcCidrBlock\": \"abc\",\n \"SubnetId\": \"abc\",\n \"SubnetCidrBlock\": \"abc\"\n },\n \"DbName\": \"abc\",\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\"\n },\n \"Hive\": {\n \"MetaStoreUrl\": \"abc\",\n \"Type\": \"abc\",\n \"User\": \"abc\",\n \"HighAvailability\": true,\n \"BucketUrl\": \"abc\",\n \"HdfsProperties\": \"abc\",\n \"Location\": {\n \"VpcId\": \"abc\",\n \"VpcCidrBlock\": \"abc\",\n \"SubnetId\": \"abc\",\n \"SubnetCidrBlock\": \"abc\"\n },\n \"Mysql\": {\n \"JdbcUrl\": \"abc\",\n \"User\": \"abc\",\n \"Password\": \"abc\",\n \"Location\": {\n \"VpcId\": \"abc\",\n \"VpcCidrBlock\": \"abc\",\n \"SubnetId\": \"abc\",\n \"SubnetCidrBlock\": \"abc\"\n },\n \"DbName\": \"abc\",\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\"\n },\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"HiveVersion\": \"abc\",\n \"KerberosInfo\": {\n \"Krb5Conf\": \"abc\",\n \"KeyTab\": \"abc\",\n \"ServicePrincipal\": \"abc\"\n },\n \"KerberosEnable\": true\n },\n \"Kafka\": {\n \"InstanceId\": \"abc\"\n },\n \"OtherDatasourceConnection\": {\n \"Location\": {\n \"VpcId\": \"abc\",\n \"VpcCidrBlock\": \"abc\",\n \"SubnetId\": \"abc\",\n \"SubnetCidrBlock\": \"abc\"\n }\n },\n \"PostgreSql\": {\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"JdbcUrl\": \"abc\",\n \"User\": \"abc\",\n \"Password\": \"abc\",\n \"DbName\": \"abc\"\n },\n \"SqlServer\": {\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"JdbcUrl\": \"abc\",\n \"User\": \"abc\",\n \"Password\": \"abc\",\n \"DbName\": \"abc\"\n },\n \"ClickHouse\": {\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"JdbcUrl\": \"abc\",\n \"User\": \"abc\",\n \"Password\": \"abc\",\n \"DbName\": \"abc\"\n },\n \"Elasticsearch\": {\n \"InstanceId\": \"abc\",\n \"InstanceName\": \"abc\",\n \"User\": \"abc\",\n \"Password\": \"abc\",\n \"DbName\": \"abc\",\n \"ServiceInfo\": [\n {\n \"Ip\": \"abc\",\n \"Port\": 0\n }\n ]\n }\n },\n \"DataEngineNames\": [\n \"abc\"\n ],\n \"NetworkConnectionType\": 0,\n \"NetworkConnectionDesc\": \"abc\"\n}",
63
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
64
+ "title": "test"
65
+ }
66
+ ],
59
67
  "AttachUserPolicy": [
60
68
  {
61
69
  "document": "",
@@ -288,6 +296,14 @@
288
296
  "title": "提交SparkSubmit任务"
289
297
  }
290
298
  ],
299
+ "CreateStandardEngineResourceGroup": [
300
+ {
301
+ "document": "创建标准引擎资源组",
302
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStandardEngineResourceGroup\n<公共请求参数>\n\n{\n \"EngineResourceGroupName\": \"ricky\",\n \"DataEngineName\": \"spark_common_two\",\n \"AutoLaunch\": 1,\n \"AutoPause\": 1,\n \"AutoPauseTime\": 0,\n \"DriverCuSpec\": \"small\",\n \"ExecutorCuSpec\": \"small\",\n \"MinExecutorNums\": 1,\n \"MaxExecutorNums\": 1,\n \"IsLaunchNow\": 1\n}",
303
+ "output": "{\n \"Response\": {\n \"RequestId\": \"a2fa37ab-dd67-4120-b3cd-386316be0d40\"\n }\n}",
304
+ "title": "创建标准引擎资源组"
305
+ }
306
+ ],
291
307
  "CreateStoreLocation": [
292
308
  {
293
309
  "document": "",
@@ -336,6 +352,14 @@
336
352
  "title": "创建用户"
337
353
  }
338
354
  ],
355
+ "CreateUserVpcConnection": [
356
+ {
357
+ "document": "创建用户vpc连接到引擎网络",
358
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateUserVpcConnection\n<公共请求参数>\n\n{\n \"UserVpcId\": \"vpc-dk19yfij\",\n \"UserSubnetId\": \"subnet-gne3mgsy\",\n \"UserVpcEndpointName\": \"rickytest\",\n \"EngineNetworkId\": \"DataEngine-Network-xxx\",\n \"UserVpcEndpointVip\": \"10.0.0.13\"\n}",
359
+ "output": "{\n \"Response\": {\n \"RequestId\": \"515ee497-d527-4f05-b484-61b46522a408\"\n }\n}",
360
+ "title": "创建用户vpc连接到引擎网络"
361
+ }
362
+ ],
339
363
  "CreateWorkGroup": [
340
364
  {
341
365
  "document": "",
@@ -360,6 +384,14 @@
360
384
  "title": "test"
361
385
  }
362
386
  ],
387
+ "DeleteNativeSparkSession": [
388
+ {
389
+ "document": "",
390
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteNativeSparkSession\n<公共请求参数>\n\n{\n \"DataEngineId\": \"DataEngine-mui9yyku\",\n \"ResourceGroupId\": \"rg-ih132ev34\",\n \"EngineSessionName\": \"spark-ml-201c926634\"\n}",
391
+ "output": "{\n \"Response\": {\n \"RequestId\": \"e6fa9fc3-d1ab-42f3-a9b3-9038bc9df590\"\n }\n}",
392
+ "title": "示例"
393
+ }
394
+ ],
363
395
  "DeleteNotebookSession": [
364
396
  {
365
397
  "document": "删除交互式session(notebook)",
@@ -384,6 +416,14 @@
384
416
  "title": "删除spark作业"
385
417
  }
386
418
  ],
419
+ "DeleteStandardEngineResourceGroup": [
420
+ {
421
+ "document": "删除指定资源组",
422
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteStandardEngineResourceGroup\n<公共请求参数>\n\n{\n \"EngineResourceGroupName\": \"rs-new\"\n}",
423
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5605a76b-1499-4f71-8227-e3f635ed5fca\"\n }\n}",
424
+ "title": "删除指定资源组"
425
+ }
426
+ ],
387
427
  "DeleteTable": [
388
428
  {
389
429
  "document": "",
@@ -414,6 +454,14 @@
414
454
  "title": "删除用户"
415
455
  }
416
456
  ],
457
+ "DeleteUserVpcConnection": [
458
+ {
459
+ "document": "删除用户网络连接",
460
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteUserVpcConnection\n<公共请求参数>\n\n{\n \"EngineNetworkId\": \"DataEngine-Network-xxx\",\n \"UserVpcEndpointId\": \"vpce-n4xaqbi2\"\n}",
461
+ "output": "{\n \"Response\": {\n \"RequestId\": \"74ec8ab6-fe6b-4a6a-be29-9043c896ec69\"\n }\n}",
462
+ "title": "删除用户网络连接"
463
+ }
464
+ ],
417
465
  "DeleteUsersFromWorkGroup": [
418
466
  {
419
467
  "document": "",
@@ -518,11 +566,19 @@
518
566
  "title": "获取PYSPARK镜像列表"
519
567
  }
520
568
  ],
569
+ "DescribeDataEngineSessionParameters": [
570
+ {
571
+ "document": "本接口用于获取指定小版本下的Session配置。",
572
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDataEngineSessionParameters\n<公共请求参数>\n\n{\n \"DataEngineId\": \"DataEngine-1\"\n}",
573
+ "output": "{\n \"Response\": {\n \"DataEngineParameters\": [\n {\n \"ParameterType\": 1,\n \"UpdateTime\": \"2020-01-01 01:01:01\",\n \"ValueLengthLimit\": \"100\",\n \"ValueType\": \"string\",\n \"IsPublic\": 1,\n \"ParameterId\": \"d3018ad4-9a7e-4f64-a3f4-f38507c69742\",\n \"KeyDescription\": \"默认分区数。\",\n \"KeyName\": \"spark.sql.shuffle.partitions\",\n \"ChildImageVersionId\": \"d30dfgsf4-9a7e-4f64-a3f4-f38507c69742\",\n \"ValueRegexpLimit\": \"[0-9]+$\",\n \"InsertTime\": \"2020-01-01 01:01:01\",\n \"Operator\": \"admin\",\n \"EngineType\": \"SparkSQL\",\n \"ValueDefault\": \"200\",\n \"SubmitMethod\": \"User\"\n }\n ],\n \"RequestId\": \"b8sd7dd7-ekd4-4e5e-993e-e5db64fa21c1\"\n }\n}",
574
+ "title": "获取指定小版本下的Session配置"
575
+ }
576
+ ],
521
577
  "DescribeDataEngines": [
522
578
  {
523
579
  "document": "查询DataEngines信息列表",
524
- "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDataEngines\n<公共请求参数>\n\n{\n \"Offset\": 1,\n \"Filters\": [\n {\n \"Name\": \"engine-type\",\n \"Values\": [\n \"spark\"\n ]\n }\n ],\n \"SortBy\": \"create-time\",\n \"Sorting\": \"desc\",\n \"Limit\": 10,\n \"DatasourceConnectionName\": \"default-network-3\",\n \"ExcludePublicEngine\": false,\n \"AccessTypes\": [\n \"USE\"\n ],\n \"EngineExecType\": \"BATCH\",\n \"EngineType\": \"spark\",\n \"DatasourceConnectionNameSet\": [\n \"net1111\"\n ],\n \"EngineGeneration\": \"Native\",\n \"EngineTypeDetail\": \"SparkSQL\"\n}",
525
- "output": "{\n \"Response\": {\n \"DataEngines\": [\n {\n \"DataEngineName\": \"\",\n \"QuotaId\": \"\",\n \"EngineType\": \"\",\n \"ClusterType\": \"\",\n \"State\": 0,\n \"CreateTime\": 0,\n \"UpdateTime\": 0,\n \"Size\": 0,\n \"Mode\": 0,\n \"MinClusters\": 0,\n \"MaxClusters\": 0,\n \"AutoResume\": false,\n \"SpendAfter\": 0,\n \"CidrBlock\": \"\",\n \"DefaultDataEngine\": false,\n \"Message\": \"\",\n \"DataEngineId\": \"\",\n \"SubAccountUin\": \"\",\n \"ExpireTime\": \"\",\n \"IsolatedTime\": \"\",\n \"ReversalTime\": \"\",\n \"UserAlias\": \"\",\n \"TagList\": [\n {\n \"TagKey\": \"\",\n \"TagValue\": \"\"\n }\n ],\n \"Permissions\": [\n \"\"\n ],\n \"AutoSuspend\": false,\n \"CrontabResumeSuspend\": 0,\n \"CrontabResumeSuspendStrategy\": {\n \"ResumeTime\": \"\",\n \"SuspendTime\": \"\",\n \"SuspendStrategy\": 0\n },\n \"EngineExecType\": \"\",\n \"RenewFlag\": 0,\n \"AutoSuspendTime\": 0,\n \"NetworkConnectionSet\": [\n {\n \"Id\": 0,\n \"AssociateId\": \"\",\n \"HouseId\": \"\",\n \"DatasourceConnectionId\": \"\",\n \"State\": 0,\n \"CreateTime\": 0,\n \"UpdateTime\": 0,\n \"Appid\": 0,\n \"HouseName\": \"\",\n \"DatasourceConnectionName\": \"\",\n \"NetworkConnectionType\": 0,\n \"Uin\": \"\",\n \"SubAccountUin\": \"\",\n \"NetworkConnectionDesc\": \"\",\n \"DatasourceConnectionVpcId\": \"\",\n \"DatasourceConnectionSubnetId\": \"\",\n \"DatasourceConnectionCidrBlock\": \"\",\n \"DatasourceConnectionSubnetCidrBlock\": \"\"\n }\n ],\n \"UiURL\": \"\",\n \"ResourceType\": \"\",\n \"ImageVersionId\": \"\",\n \"ChildImageVersionId\": \"\",\n \"ImageVersionName\": \"\",\n \"StartStandbyCluster\": false,\n \"ElasticSwitch\": false,\n \"ElasticLimit\": 0,\n \"DefaultHouse\": false,\n \"MaxConcurrency\": 0,\n \"TolerableQueueTime\": 0,\n \"UserAppId\": 0,\n \"UserUin\": \"\",\n \"SessionResourceTemplate\": {\n \"DriverSize\": \"\",\n \"ExecutorSize\": \"\",\n \"ExecutorNums\": 0,\n \"ExecutorMaxNumbers\": 0\n }\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"896387ab-35dc-4f14-b086-ed0e8ca050d9\"\n }\n}",
580
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDataEngines\n<公共请求参数>\n\n{\n \"Offset\": 1,\n \"Filters\": [\n {\n \"Name\": \"engine-type\",\n \"Values\": [\n \"spark\"\n ]\n }\n ],\n \"SortBy\": \"create-time\",\n \"Sorting\": \"desc\",\n \"Limit\": 10,\n \"DatasourceConnectionName\": \"default-network-3\",\n \"ExcludePublicEngine\": false,\n \"AccessTypes\": [\n \"USE\"\n ],\n \"EngineExecType\": \"BATCH\",\n \"EngineType\": \"spark\",\n \"DatasourceConnectionNameSet\": [\n \"net1111\"\n ],\n \"EngineGeneration\": \"Native\",\n \"EngineTypeDetail\": \"SparkSQL\",\n \"ListHasListener\": false\n}",
581
+ "output": "{\n \"Response\": {\n \"DataEngines\": [\n {\n \"DataEngineName\": \"\",\n \"QuotaId\": \"\",\n \"EngineType\": \"\",\n \"ClusterType\": \"\",\n \"State\": 0,\n \"CreateTime\": 0,\n \"UpdateTime\": 0,\n \"Size\": 0,\n \"Mode\": 0,\n \"MinClusters\": 0,\n \"MaxClusters\": 0,\n \"AutoResume\": false,\n \"SpendAfter\": 0,\n \"CidrBlock\": \"\",\n \"DefaultDataEngine\": false,\n \"Message\": \"\",\n \"DataEngineId\": \"\",\n \"SubAccountUin\": \"\",\n \"ExpireTime\": \"\",\n \"IsolatedTime\": \"\",\n \"ReversalTime\": \"\",\n \"UserAlias\": \"\",\n \"TagList\": [\n {\n \"TagKey\": \"\",\n \"TagValue\": \"\"\n }\n ],\n \"Permissions\": [\n \"\"\n ],\n \"AutoSuspend\": false,\n \"CrontabResumeSuspend\": 0,\n \"CrontabResumeSuspendStrategy\": {\n \"ResumeTime\": \"\",\n \"SuspendTime\": \"\",\n \"SuspendStrategy\": 0\n },\n \"EngineExecType\": \"\",\n \"RenewFlag\": 0,\n \"AutoSuspendTime\": 0,\n \"NetworkConnectionSet\": [\n {\n \"Id\": 0,\n \"AssociateId\": \"\",\n \"HouseId\": \"\",\n \"DatasourceConnectionId\": \"\",\n \"State\": 0,\n \"CreateTime\": 0,\n \"UpdateTime\": 0,\n \"Appid\": 0,\n \"HouseName\": \"\",\n \"DatasourceConnectionName\": \"\",\n \"NetworkConnectionType\": 0,\n \"Uin\": \"\",\n \"SubAccountUin\": \"\",\n \"NetworkConnectionDesc\": \"\",\n \"DatasourceConnectionVpcId\": \"\",\n \"DatasourceConnectionSubnetId\": \"\",\n \"DatasourceConnectionCidrBlock\": \"\",\n \"DatasourceConnectionSubnetCidrBlock\": \"\",\n \"EGSupport\": 1\n }\n ],\n \"UiURL\": \"\",\n \"ResourceType\": \"\",\n \"ImageVersionId\": \"\",\n \"ChildImageVersionId\": \"\",\n \"ImageVersionName\": \"\",\n \"StartStandbyCluster\": false,\n \"ElasticSwitch\": false,\n \"ElasticLimit\": 0,\n \"DefaultHouse\": false,\n \"MaxConcurrency\": 0,\n \"TolerableQueueTime\": 0,\n \"UserAppId\": 0,\n \"UserUin\": \"\",\n \"SessionResourceTemplate\": {\n \"DriverSize\": \"\",\n \"ExecutorSize\": \"\",\n \"ExecutorNums\": 0,\n \"ExecutorMaxNumbers\": 0\n }\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"896387ab-35dc-4f14-b086-ed0e8ca050d9\"\n }\n}",
526
582
  "title": "查询DataEngines信息列表"
527
583
  },
528
584
  {
@@ -556,6 +612,22 @@
556
612
  "title": "test"
557
613
  }
558
614
  ],
615
+ "DescribeEngineNetworks": [
616
+ {
617
+ "document": "查询引擎网络",
618
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEngineNetworks\n<公共请求参数>\n\n{\n \"Limit\": 10,\n \"Offset\": 0\n}",
619
+ "output": "{\n \"Response\": {\n \"EngineNetworkInfos\": [\n {\n \"CreateTime\": 1695210806,\n \"EngineNetworkCidr\": \"10.255.0.0/22\",\n \"EngineNetworkId\": \"DataEngine_Network-g1sxyw8v\",\n \"EngineNetworkName\": \"test2\",\n \"EngineNetworkState\": 0,\n \"UpdateTime\": 1695210806\n },\n {\n \"CreateTime\": 1647006129,\n \"EngineNetworkCidr\": \"10.255.0.0/22\",\n \"EngineNetworkId\": \"DataEngine-Network-xxx\",\n \"EngineNetworkName\": \"test1\",\n \"EngineNetworkState\": 2,\n \"UpdateTime\": 1647006129\n }\n ],\n \"RequestId\": \"89887fb3-892d-4cfd-87b1-03ad73ab846c\",\n \"Total\": 2\n }\n}",
620
+ "title": "查询引擎网络"
621
+ }
622
+ ],
623
+ "DescribeEngineNodeSpec": [
624
+ {
625
+ "document": "",
626
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEngineNodeSpec\n<公共请求参数>\n\n{\n \"DataEngineName\": \"test\"\n}",
627
+ "output": "{\n \"Response\": {\n \"DriverSpec\": [\n {\n \"Name\": \"abc\",\n \"Cu\": 0,\n \"Cpu\": 0,\n \"Memory\": 0\n }\n ],\n \"ExecutorSpec\": [\n {\n \"Name\": \"abc\",\n \"Cu\": 0,\n \"Cpu\": 0,\n \"Memory\": 0\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
628
+ "title": "示例"
629
+ }
630
+ ],
559
631
  "DescribeEngineUsageInfo": [
560
632
  {
561
633
  "document": "查询数据引擎资源使用情况",
@@ -596,6 +668,22 @@
596
668
  "title": "实例一"
597
669
  }
598
670
  ],
671
+ "DescribeNativeSparkSessions": [
672
+ {
673
+ "document": "",
674
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeNativeSparkSessions\n<公共请求参数>\n\n{\n \"DataEngineId\": \"DataEngine-a4wvak8f\",\n \"ResourceGroupId\": \"rg-xxxx\"\n}",
675
+ "output": "{\n \"Response\": {\n \"RequestId\": \"3cdfd934-10b7-402b-bacb-985d83c12aee\",\n \"SparkSessionsList\": []\n }\n}",
676
+ "title": "示例"
677
+ }
678
+ ],
679
+ "DescribeNetworkConnections": [
680
+ {
681
+ "document": "",
682
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeNetworkConnections\n<公共请求参数>\n\n{\n \"NetworkConnectionType\": 4,\n \"DataEngineName\": \"\",\n \"DatasourceConnectionVpcId\": \"\",\n \"Limit\": 10,\n \"Offset\": 0\n}",
683
+ "output": "{\n \"Response\": {\n \"NetworkConnectionSet\": [],\n \"RequestId\": \"4adde011-5462-4100-91db-ede860819fa6\",\n \"TotalCount\": 0\n }\n}",
684
+ "title": "test"
685
+ }
686
+ ],
599
687
  "DescribeNotebookSession": [
600
688
  {
601
689
  "document": "查询交互式 session详情信息",
@@ -668,6 +756,14 @@
668
756
  "title": "查询SQL脚本列表"
669
757
  }
670
758
  ],
759
+ "DescribeSessionImageVersion": [
760
+ {
761
+ "document": "当前引擎:DataEngine-b0jt6fvk\n框架类型选择:machine-learning",
762
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSessionImageVersion\n<公共请求参数>\n\n{\n \"DataEngineId\": \"DataEngine-b0jt6fvk\",\n \"FrameworkType\": \"machine-learning\"\n}",
763
+ "output": "{\n \"Response\": {\n \"EngineSessionImages\": [\n {\n \"SparkImageId\": \"123e4567-e89b-12d3-a456-426614174001\",\n \"SparkImageTag\": \"ccr.ccs.tencentyun.com/dlc_cloud/tensorflow:dev-v20241218\",\n \"SparkImageType\": 1,\n \"SparkImageVersion\": \"tensorflow-v2.18.0\"\n },\n {\n \"SparkImageId\": \"1a2b3c4d-5e6f-7g8h-9i0j-k1l2m3n4o5p6\",\n \"SparkImageTag\": \"ccr.ccs.tencentyun.com/dlc_cloud/scikit-learn:dev-v20241218\",\n \"SparkImageType\": 1,\n \"SparkImageVersion\": \"scikit-learn-v1.6.0\"\n },\n {\n \"SparkImageId\": \"98765432-10fe-bcd1-9a8b-0123456789ab\",\n \"SparkImageTag\": \"ccr.ccs.tencentyun.com/dlc_cloud/pytorch:dev-v20241218\",\n \"SparkImageType\": 1,\n \"SparkImageVersion\": \"pytorch-v2.5.1\"\n }\n ],\n \"RequestId\": \"c06478c4-bbc6-4cec-934b-6f9e2ff121ae\"\n }\n}",
764
+ "title": "内置镜像"
765
+ }
766
+ ],
671
767
  "DescribeSparkAppJob": [
672
768
  {
673
769
  "document": "查询spark作业信息",
@@ -716,6 +812,22 @@
716
812
  "title": "查询Spark SQL批任务日志"
717
813
  }
718
814
  ],
815
+ "DescribeStandardEngineResourceGroupConfigInfo": [
816
+ {
817
+ "document": "查询标准引擎资源组",
818
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeStandardEngineResourceGroupConfigInfo\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"engine-id\",\n \"Values\": [\n \"DataEngine-81iy0oxxx\"\n ]\n }\n ]\n}",
819
+ "output": "{\n \"Response\": {\n \"RequestId\": \"90bcc66d-c102-4441-8987-7cc77a733f55\",\n \"StandardEngineResourceGroupConfigInfos\": [\n {\n \"CreateTime\": 1715136398,\n \"DataEngineId\": \"DataEngine-81iy0oxxx\",\n \"DynamicConfigPairs\": [],\n \"ResourceGroupId\": \"rg-fu11wgexxx\",\n \"StaticConfigPairs\": [],\n \"UpdateTime\": 1715136398\n }\n ],\n \"Total\": 1\n }\n}",
820
+ "title": "查询标准引擎资源组"
821
+ }
822
+ ],
823
+ "DescribeStandardEngineResourceGroups": [
824
+ {
825
+ "document": "查询指定资源组信息",
826
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeStandardEngineResourceGroups\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"engine-resource-group-id\",\n \"Values\": [\n \"rg-9y1f952gsss\"\n ]\n }\n ]\n}",
827
+ "output": "{\n \"Response\": {\n \"RequestId\": \"21f32ad0-941c-4515-970c-1658f2a19964\",\n \"Total\": 1,\n \"UserEngineResourceGroupInfos\": [\n {\n \"AutoLaunch\": 1,\n \"AutoPause\": 1,\n \"AutoPauseTime\": 0,\n \"CreateTime\": 1705892615,\n \"Creator\": \"100013032040\",\n \"DataEngineId\": \"DataEngine-37sutfj4\",\n \"DataEngineName\": \"spark_common_two\",\n \"DriverCuSpec\": \"small\",\n \"EngineResourceGroupId\": \"rg-9y1f952g\",\n \"EngineResourceGroupName\": \"rg-test\",\n \"ExecutorCuSpec\": \"small\",\n \"MaxExecutorNums\": 1,\n \"MinExecutorNums\": 1,\n \"MaxConcurrency\": 5,\n \"NeedRestart\": 0,\n \"ResourceGroupState\": 0,\n \"UpdateTime\": 1705892615\n }\n ]\n }\n}",
828
+ "title": "查询指定资源组信息"
829
+ }
830
+ ],
719
831
  "DescribeStoreLocation": [
720
832
  {
721
833
  "document": "",
@@ -876,6 +988,14 @@
876
988
  "title": "获取用户类型"
877
989
  }
878
990
  ],
991
+ "DescribeUserVpcConnection": [
992
+ {
993
+ "document": "查询用户连接信息",
994
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserVpcConnection\n<公共请求参数>\n\n{\n \"EngineNetworkId\": \"DataEngine-Network-xxx\"\n}",
995
+ "output": "{\n \"Response\": {\n \"RequestId\": \"ac4fff9d-b8a8-429c-88fb-c9cfaac1ec5a\",\n \"UserVpcConnectionInfos\": [\n {\n \"AccessConnectionInfos\": [\n \"jdbc:hive2://10.0.0.14:10009/?kyuubi.engine.type=TRINO;kyuubi.session.engine.trino.connection.url=http://127.0.0.1:8080;kyuubi.session.engine.trino.connection.catalog=hive;kyuubi.operation.incremental.collect=true\",\n \"jdbc:presto://10.0.0.14:10999/?sessionProperties=cluster:keyiliu_presto;region:{Region};database:{DatabaseName};catalog:hive&extraCredentials=secretkey:{SecretKey};secretid:{SecretId}\"\n ],\n \"UserVpcEndpointId\": \"vpce-7m3bgkj4\",\n \"UserVpcEndpointName\": \"rickytest\",\n \"UserVpcId\": \"vpc-dk19yfij\"\n }\n ]\n }\n}",
996
+ "title": "查询用户连接信息"
997
+ }
998
+ ],
879
999
  "DescribeUsers": [
880
1000
  {
881
1001
  "document": "",
@@ -972,6 +1092,14 @@
972
1092
  "title": "授权访问DLC元数据"
973
1093
  }
974
1094
  ],
1095
+ "LaunchStandardEngineResourceGroups": [
1096
+ {
1097
+ "document": "启动指定资源组",
1098
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: LaunchStandardEngineResourceGroups\n<公共请求参数>\n\n{\n \"EngineResourceGroupNames\": [\n \"test-rg\"\n ]\n}",
1099
+ "output": "{\n \"Response\": {\n \"OperateEngineResourceGroupFailMessages\": [],\n \"RequestId\": \"e8ec97bc-5a53-45e3-b35b-14145857e819\"\n }\n}",
1100
+ "title": "启动指定资源组"
1101
+ }
1102
+ ],
975
1103
  "ListTaskJobLogDetail": [
976
1104
  {
977
1105
  "document": "查询spark 作业任务的日志详情",
@@ -1060,6 +1188,14 @@
1060
1188
  "title": "修改工作组信息"
1061
1189
  }
1062
1190
  ],
1191
+ "PauseStandardEngineResourceGroups": [
1192
+ {
1193
+ "document": "暂停指定资源组",
1194
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PauseStandardEngineResourceGroups\n<公共请求参数>\n\n{\n \"EngineResourceGroupNames\": [\n \"test-session\"\n ]\n}",
1195
+ "output": "{\n \"Response\": {\n \"OperateEngineResourceGroupFailMessages\": [],\n \"RequestId\": \"b2a83c9e-ddf8-43b5-a308-3d0c743976d4\"\n }\n}",
1196
+ "title": "暂停指定资源组"
1197
+ }
1198
+ ],
1063
1199
  "QueryInternalTableWarehouse": [
1064
1200
  {
1065
1201
  "document": "",
@@ -1164,6 +1300,14 @@
1164
1300
  "title": "解绑用户上的用户组"
1165
1301
  }
1166
1302
  ],
1303
+ "UnboundDatasourceHouse": [
1304
+ {
1305
+ "document": "",
1306
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnboundDatasourceHouse\n<公共请求参数>\n\n{\n \"NetworkConnectionName\": \"abc\"\n}",
1307
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
1308
+ "title": "test"
1309
+ }
1310
+ ],
1167
1311
  "UnlockMetaData": [
1168
1312
  {
1169
1313
  "document": "",
@@ -1188,6 +1332,22 @@
1188
1332
  "title": "更新指定引擎的结果桶配置信息"
1189
1333
  }
1190
1334
  ],
1335
+ "UpdateEngineResourceGroupNetworkConfigInfo": [
1336
+ {
1337
+ "document": "修改资源组网络配置",
1338
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateEngineResourceGroupNetworkConfigInfo\n<公共请求参数>\n\n{\n \"EngineResourceGroupId\": \"rg-b6fxxxxxx2a0\",\n \"IsEffectiveNow\": 1\n}",
1339
+ "output": "{\n \"Response\": {\n \"RequestId\": \"4b186332-1885-4161-8dfb-a8de667eb5c0\"\n }\n}",
1340
+ "title": "修改资源组网络配置"
1341
+ }
1342
+ ],
1343
+ "UpdateNetworkConnection": [
1344
+ {
1345
+ "document": "",
1346
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateNetworkConnection\n<公共请求参数>\n\n{\n \"NetworkConnectionDesc\": \"xx\",\n \"NetworkConnectionName\": \"xx\"\n}",
1347
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
1348
+ "title": "test"
1349
+ }
1350
+ ],
1191
1351
  "UpdateRowFilter": [
1192
1352
  {
1193
1353
  "document": "",
@@ -1196,6 +1356,30 @@
1196
1356
  "title": "更新行过滤策略信息"
1197
1357
  }
1198
1358
  ],
1359
+ "UpdateStandardEngineResourceGroupBaseInfo": [
1360
+ {
1361
+ "document": "更新资源组基础配置信息",
1362
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateStandardEngineResourceGroupBaseInfo\n<公共请求参数>\n\n{\n \"EngineResourceGroupName\": \"test-rg\",\n \"AutoLaunch\": 1,\n \"AutoPause\": 1,\n \"AutoPauseTime\": 20\n}",
1363
+ "output": "{\n \"Response\": {\n \"RequestId\": \"c3e5af77-11bd-4820-aa80-8a3014c4215b\"\n }\n}",
1364
+ "title": "更新资源组基础配置信息"
1365
+ }
1366
+ ],
1367
+ "UpdateStandardEngineResourceGroupConfigInfo": [
1368
+ {
1369
+ "document": "增加指定配置到资源组",
1370
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateStandardEngineResourceGroupConfigInfo\n<公共请求参数>\n\n{\n \"EngineResourceGroupName\": \"test-rg\",\n \"UpdateConfContext\": [\n {\n \"ConfigType\": \"StaticConfigType\",\n \"Params\": [\n {\n \"ConfigItem\": \"spark.sql.shuffle.partitions\",\n \"ConfigValue\": \"300\",\n \"Operate\": \"ADD\"\n }\n ]\n }\n ],\n \"IsEffectiveNow\": 1\n}",
1371
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6e844f50-46ae-422f-882c-e8f6c67cff13\"\n }\n}",
1372
+ "title": "增加指定配置到资源组"
1373
+ }
1374
+ ],
1375
+ "UpdateStandardEngineResourceGroupResourceInfo": [
1376
+ {
1377
+ "document": "更新资源组资源配置",
1378
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateStandardEngineResourceGroupResourceInfo\n<公共请求参数>\n\n{\n \"EngineResourceGroupName\": \"test-rg\",\n \"DriverCuSpec\": \"small\",\n \"ExecutorCuSpec\": \"small\",\n \"MinExecutorNums\": 1,\n \"MaxExecutorNums\": 1,\n \"IsEffectiveNow\": 1\n}",
1379
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b12eb63a-37d1-4b9c-ac9a-8995ccc89b58\"\n }\n}",
1380
+ "title": "更新资源组资源配置"
1381
+ }
1382
+ ],
1199
1383
  "UpdateUserDataEngineConfig": [
1200
1384
  {
1201
1385
  "document": "修改用户集群自定义配置",
@@ -5639,7 +5639,7 @@
5639
5639
  },
5640
5640
  {
5641
5641
  "disabled": false,
5642
- "document": "分页查询编号偏移量,从0开始\t",
5642
+ "document": "页码,第一页:0,第二页:1",
5643
5643
  "example": "0",
5644
5644
  "member": "int64",
5645
5645
  "name": "Offset",
@@ -682,13 +682,23 @@
682
682
  {
683
683
  "disabled": false,
684
684
  "document": "失败的页码。\n注意:此字段可能返回 null,表示取不到有效值。",
685
- "example": "1,2",
685
+ "example": "[1,2]",
686
686
  "member": "int64",
687
687
  "name": "FailedPages",
688
688
  "output_required": false,
689
689
  "type": "list",
690
690
  "value_allowed_null": true
691
691
  },
692
+ {
693
+ "disabled": false,
694
+ "document": "消耗页数",
695
+ "example": "无",
696
+ "member": "PageUsage",
697
+ "name": "Usage",
698
+ "output_required": false,
699
+ "type": "object",
700
+ "value_allowed_null": false
701
+ },
692
702
  {
693
703
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
694
704
  "member": "string",
@@ -838,6 +848,23 @@
838
848
  ],
839
849
  "usage": "both"
840
850
  },
851
+ "PageUsage": {
852
+ "document": "消耗页数",
853
+ "members": [
854
+ {
855
+ "disabled": false,
856
+ "document": "消耗总页数",
857
+ "example": "1",
858
+ "member": "int64",
859
+ "name": "TotalPages",
860
+ "output_required": false,
861
+ "required": false,
862
+ "type": "int",
863
+ "value_allowed_null": false
864
+ }
865
+ ],
866
+ "usage": "both"
867
+ },
841
868
  "ParseDocument": {
842
869
  "document": "文档信息",
843
870
  "members": [
@@ -1013,6 +1040,16 @@
1013
1040
  "type": "list",
1014
1041
  "value_allowed_null": false
1015
1042
  },
1043
+ {
1044
+ "disabled": false,
1045
+ "document": "消耗页数",
1046
+ "example": "无",
1047
+ "member": "PageUsage",
1048
+ "name": "Usage",
1049
+ "output_required": false,
1050
+ "type": "object",
1051
+ "value_allowed_null": false
1052
+ },
1016
1053
  {
1017
1054
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header \"X-TC-RequestId\" 中。",
1018
1055
  "member": "string",
@@ -1577,6 +1577,58 @@ def doDeleteIntegrationEmployees(args, parsed_globals):
1577
1577
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1578
1578
 
1579
1579
 
1580
+ def doCreateBatchContractReviewTask(args, parsed_globals):
1581
+ g_param = parse_global_arg(parsed_globals)
1582
+
1583
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1584
+ cred = credential.CVMRoleCredential()
1585
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1586
+ cred = credential.STSAssumeRoleCredential(
1587
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1588
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1589
+ )
1590
+ 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):
1591
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1592
+ else:
1593
+ cred = credential.Credential(
1594
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1595
+ )
1596
+ http_profile = HttpProfile(
1597
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1598
+ reqMethod="POST",
1599
+ endpoint=g_param[OptionsDefine.Endpoint],
1600
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1601
+ )
1602
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1603
+ if g_param[OptionsDefine.Language]:
1604
+ profile.language = g_param[OptionsDefine.Language]
1605
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1606
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1607
+ client._sdkVersion += ("_CLI_" + __version__)
1608
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1609
+ model = models.CreateBatchContractReviewTaskRequest()
1610
+ model.from_json_string(json.dumps(args))
1611
+ start_time = time.time()
1612
+ while True:
1613
+ rsp = client.CreateBatchContractReviewTask(model)
1614
+ result = rsp.to_json_string()
1615
+ try:
1616
+ json_obj = json.loads(result)
1617
+ except TypeError as e:
1618
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1619
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1620
+ break
1621
+ cur_time = time.time()
1622
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1623
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1624
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1625
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1626
+ else:
1627
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1628
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1629
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
+
1631
+
1580
1632
  def doCreateUserAutoSignSealUrl(args, parsed_globals):
1581
1633
  g_param = parse_global_arg(parsed_globals)
1582
1634
 
@@ -1681,6 +1733,58 @@ def doDescribeOrganizationAuthStatus(args, parsed_globals):
1681
1733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1734
 
1683
1735
 
1736
+ def doCreateEmployeeChangeUrl(args, parsed_globals):
1737
+ g_param = parse_global_arg(parsed_globals)
1738
+
1739
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1740
+ cred = credential.CVMRoleCredential()
1741
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1742
+ cred = credential.STSAssumeRoleCredential(
1743
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1744
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1745
+ )
1746
+ 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):
1747
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1748
+ else:
1749
+ cred = credential.Credential(
1750
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1751
+ )
1752
+ http_profile = HttpProfile(
1753
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1754
+ reqMethod="POST",
1755
+ endpoint=g_param[OptionsDefine.Endpoint],
1756
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1757
+ )
1758
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1759
+ if g_param[OptionsDefine.Language]:
1760
+ profile.language = g_param[OptionsDefine.Language]
1761
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1762
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1763
+ client._sdkVersion += ("_CLI_" + __version__)
1764
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
+ model = models.CreateEmployeeChangeUrlRequest()
1766
+ model.from_json_string(json.dumps(args))
1767
+ start_time = time.time()
1768
+ while True:
1769
+ rsp = client.CreateEmployeeChangeUrl(model)
1770
+ result = rsp.to_json_string()
1771
+ try:
1772
+ json_obj = json.loads(result)
1773
+ except TypeError as e:
1774
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1775
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1776
+ break
1777
+ cur_time = time.time()
1778
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1779
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1780
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1781
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1782
+ else:
1783
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1784
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1785
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
+
1787
+
1684
1788
  def doRenewAutoSignLicense(args, parsed_globals):
1685
1789
  g_param = parse_global_arg(parsed_globals)
1686
1790
 
@@ -3449,7 +3553,7 @@ def doModifyExtendedService(args, parsed_globals):
3449
3553
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
3554
 
3451
3555
 
3452
- def doCreateEmployeeChangeUrl(args, parsed_globals):
3556
+ def doDescribeContractReviewTask(args, parsed_globals):
3453
3557
  g_param = parse_global_arg(parsed_globals)
3454
3558
 
3455
3559
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3478,11 +3582,11 @@ def doCreateEmployeeChangeUrl(args, parsed_globals):
3478
3582
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
3479
3583
  client._sdkVersion += ("_CLI_" + __version__)
3480
3584
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3481
- model = models.CreateEmployeeChangeUrlRequest()
3585
+ model = models.DescribeContractReviewTaskRequest()
3482
3586
  model.from_json_string(json.dumps(args))
3483
3587
  start_time = time.time()
3484
3588
  while True:
3485
- rsp = client.CreateEmployeeChangeUrl(model)
3589
+ rsp = client.DescribeContractReviewTask(model)
3486
3590
  result = rsp.to_json_string()
3487
3591
  try:
3488
3592
  json_obj = json.loads(result)
@@ -5986,8 +6090,10 @@ ACTION_MAP = {
5986
6090
  "DescribeContractDiffTaskWebUrl": doDescribeContractDiffTaskWebUrl,
5987
6091
  "DescribePersonCertificate": doDescribePersonCertificate,
5988
6092
  "DeleteIntegrationEmployees": doDeleteIntegrationEmployees,
6093
+ "CreateBatchContractReviewTask": doCreateBatchContractReviewTask,
5989
6094
  "CreateUserAutoSignSealUrl": doCreateUserAutoSignSealUrl,
5990
6095
  "DescribeOrganizationAuthStatus": doDescribeOrganizationAuthStatus,
6096
+ "CreateEmployeeChangeUrl": doCreateEmployeeChangeUrl,
5991
6097
  "RenewAutoSignLicense": doRenewAutoSignLicense,
5992
6098
  "VerifyPdf": doVerifyPdf,
5993
6099
  "BindEmployeeUserIdWithClientOpenId": doBindEmployeeUserIdWithClientOpenId,
@@ -6022,7 +6128,7 @@ ACTION_MAP = {
6022
6128
  "CreateIntegrationRole": doCreateIntegrationRole,
6023
6129
  "OperateTemplate": doOperateTemplate,
6024
6130
  "ModifyExtendedService": doModifyExtendedService,
6025
- "CreateEmployeeChangeUrl": doCreateEmployeeChangeUrl,
6131
+ "DescribeContractReviewTask": doDescribeContractReviewTask,
6026
6132
  "CreateFlowBlockchainEvidenceUrl": doCreateFlowBlockchainEvidenceUrl,
6027
6133
  "CreateBatchOrganizationAuthorizationUrl": doCreateBatchOrganizationAuthorizationUrl,
6028
6134
  "DescribeUserVerifyStatus": doDescribeUserVerifyStatus,