tccli 3.0.1376.1__py2.py3-none-any.whl → 3.0.1377.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.
- tccli/__init__.py +1 -1
- tccli/services/bi/bi_client.py +53 -0
- tccli/services/bi/v20220105/api.json +101 -0
- tccli/services/bi/v20220105/examples.json +8 -0
- tccli/services/cdb/v20170320/api.json +16 -6
- tccli/services/cdb/v20170320/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +1 -1
- tccli/services/cls/v20201016/api.json +13 -13
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/csip/v20221121/api.json +12 -12
- tccli/services/cwp/v20180228/api.json +39 -9
- tccli/services/cwp/v20180228/examples.json +6 -0
- tccli/services/cynosdb/v20190107/api.json +1 -1
- tccli/services/dc/v20180410/api.json +18 -0
- tccli/services/dlc/v20210125/api.json +27 -8
- tccli/services/dlc/v20210125/examples.json +2 -2
- tccli/services/dts/dts_client.py +79 -26
- tccli/services/dts/v20211206/api.json +34 -0
- tccli/services/dts/v20211206/examples.json +8 -0
- tccli/services/ess/ess_client.py +106 -0
- tccli/services/ess/v20201111/api.json +137 -2
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/essbasic/v20210526/api.json +6 -6
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/ioa/ioa_client.py +106 -0
- tccli/services/ioa/v20220601/api.json +498 -0
- tccli/services/ioa/v20220601/examples.json +16 -0
- tccli/services/iotexplorer/v20190423/api.json +52 -1
- tccli/services/iotexplorer/v20190423/examples.json +78 -6
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lkeap/v20240522/api.json +17 -7
- tccli/services/mna/v20210119/api.json +1 -1
- tccli/services/mongodb/v20190725/api.json +22 -10
- tccli/services/mps/v20190612/api.json +112 -2
- tccli/services/mqtt/mqtt_client.py +265 -0
- tccli/services/mqtt/v20240516/api.json +480 -0
- tccli/services/mqtt/v20240516/examples.json +40 -0
- tccli/services/ocr/v20181119/api.json +5 -5
- tccli/services/partners/v20180321/api.json +5 -5
- tccli/services/rce/v20201103/api.json +1 -1
- tccli/services/tdmq/v20200217/api.json +1 -1
- tccli/services/tione/v20211111/api.json +200 -20
- tccli/services/tione/v20211111/examples.json +1 -1
- tccli/services/tke/v20180525/api.json +10 -0
- tccli/services/tke/v20220501/api.json +20 -2
- tccli/services/trtc/v20190722/api.json +6 -6
- tccli/services/vpc/v20170312/api.json +11 -2
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1377.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1377.1.dist-info}/RECORD +52 -52
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1377.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1377.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1377.1.dist-info}/license_files/LICENSE +0 -0
@@ -968,6 +968,15 @@
|
|
968
968
|
"required": false,
|
969
969
|
"type": "string"
|
970
970
|
},
|
971
|
+
{
|
972
|
+
"disabled": false,
|
973
|
+
"document": "报障联系邮箱。",
|
974
|
+
"example": "lisi@tencent.com",
|
975
|
+
"member": "string",
|
976
|
+
"name": "FaultReportContactEmail",
|
977
|
+
"required": false,
|
978
|
+
"type": "string"
|
979
|
+
},
|
971
980
|
{
|
972
981
|
"disabled": false,
|
973
982
|
"document": "物理专线申请者是否签署了用户使用协议。默认已签署。",
|
@@ -3318,6 +3327,15 @@
|
|
3318
3327
|
"required": false,
|
3319
3328
|
"type": "string"
|
3320
3329
|
},
|
3330
|
+
{
|
3331
|
+
"disabled": false,
|
3332
|
+
"document": "报障联系邮箱。",
|
3333
|
+
"example": "zhangsan@tencent.com",
|
3334
|
+
"member": "string",
|
3335
|
+
"name": "FaultReportContactEmail",
|
3336
|
+
"required": false,
|
3337
|
+
"type": "string"
|
3338
|
+
},
|
3321
3339
|
{
|
3322
3340
|
"disabled": false,
|
3323
3341
|
"document": "物理专线申请者补签用户使用协议。",
|
@@ -4597,7 +4597,7 @@
|
|
4597
4597
|
{
|
4598
4598
|
"disabled": false,
|
4599
4599
|
"document": "spark作业类型,1代表spark jar作业,2代表spark streaming作业",
|
4600
|
-
"example": "1
|
4600
|
+
"example": "1",
|
4601
4601
|
"member": "int64",
|
4602
4602
|
"name": "AppType",
|
4603
4603
|
"required": true,
|
@@ -5906,7 +5906,7 @@
|
|
5906
5906
|
{
|
5907
5907
|
"disabled": false,
|
5908
5908
|
"document": "用户vpcid",
|
5909
|
-
"example": "
|
5909
|
+
"example": "vpc-dk19yfxx",
|
5910
5910
|
"member": "string",
|
5911
5911
|
"name": "UserVpcId",
|
5912
5912
|
"required": true,
|
@@ -5915,7 +5915,7 @@
|
|
5915
5915
|
{
|
5916
5916
|
"disabled": false,
|
5917
5917
|
"document": "用户子网",
|
5918
|
-
"example": "
|
5918
|
+
"example": "subnet-gne3mgxx",
|
5919
5919
|
"member": "string",
|
5920
5920
|
"name": "UserSubnetId",
|
5921
5921
|
"required": true,
|
@@ -5924,7 +5924,7 @@
|
|
5924
5924
|
{
|
5925
5925
|
"disabled": false,
|
5926
5926
|
"document": "用户终端节点名称",
|
5927
|
-
"example": "
|
5927
|
+
"example": "rickytest",
|
5928
5928
|
"member": "string",
|
5929
5929
|
"name": "UserVpcEndpointName",
|
5930
5930
|
"required": true,
|
@@ -5933,7 +5933,7 @@
|
|
5933
5933
|
{
|
5934
5934
|
"disabled": false,
|
5935
5935
|
"document": "引擎网络ID",
|
5936
|
-
"example": "
|
5936
|
+
"example": "DataEngine-Network-xxx",
|
5937
5937
|
"member": "string",
|
5938
5938
|
"name": "EngineNetworkId",
|
5939
5939
|
"required": true,
|
@@ -5942,7 +5942,7 @@
|
|
5942
5942
|
{
|
5943
5943
|
"disabled": false,
|
5944
5944
|
"document": "手动指定vip,不填自动分配子网下的一个ip",
|
5945
|
-
"example": "
|
5945
|
+
"example": "10.0.0.13",
|
5946
5946
|
"member": "string",
|
5947
5947
|
"name": "UserVpcEndpointVip",
|
5948
5948
|
"required": false,
|
@@ -5954,6 +5954,16 @@
|
|
5954
5954
|
"CreateUserVpcConnectionResponse": {
|
5955
5955
|
"document": "CreateUserVpcConnection返回参数结构体",
|
5956
5956
|
"members": [
|
5957
|
+
{
|
5958
|
+
"disabled": false,
|
5959
|
+
"document": "终端节点IP",
|
5960
|
+
"example": "vpce-h4czuhxx",
|
5961
|
+
"member": "string",
|
5962
|
+
"name": "UserVpcEndpointId",
|
5963
|
+
"output_required": false,
|
5964
|
+
"type": "string",
|
5965
|
+
"value_allowed_null": false
|
5966
|
+
},
|
5957
5967
|
{
|
5958
5968
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5959
5969
|
"member": "string",
|
@@ -14530,7 +14540,7 @@
|
|
14530
14540
|
{
|
14531
14541
|
"disabled": false,
|
14532
14542
|
"document": "引擎网络ID",
|
14533
|
-
"example": "
|
14543
|
+
"example": "DataEngine-Network-xxx",
|
14534
14544
|
"member": "string",
|
14535
14545
|
"name": "EngineNetworkId",
|
14536
14546
|
"required": true,
|
@@ -14539,11 +14549,20 @@
|
|
14539
14549
|
{
|
14540
14550
|
"disabled": false,
|
14541
14551
|
"document": "引擎ID集合",
|
14542
|
-
"example": "
|
14552
|
+
"example": "[\"DataEngine-mjmxxx\"]",
|
14543
14553
|
"member": "string",
|
14544
14554
|
"name": "DataEngineIds",
|
14545
14555
|
"required": false,
|
14546
14556
|
"type": "list"
|
14557
|
+
},
|
14558
|
+
{
|
14559
|
+
"disabled": false,
|
14560
|
+
"document": "终端节点ID集合",
|
14561
|
+
"example": "[\"vpce-h4czuhxx\"]",
|
14562
|
+
"member": "string",
|
14563
|
+
"name": "UserVpcEndpointIds",
|
14564
|
+
"required": false,
|
14565
|
+
"type": "list"
|
14547
14566
|
}
|
14548
14567
|
],
|
14549
14568
|
"type": "object"
|
@@ -371,8 +371,8 @@
|
|
371
371
|
"CreateUserVpcConnection": [
|
372
372
|
{
|
373
373
|
"document": "创建用户vpc连接到引擎网络",
|
374
|
-
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateUserVpcConnection\n<公共请求参数>\n\n{\n \"UserVpcId\": \"vpc-
|
375
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"515ee497-d527-4f05-b484-61b46522a408\"\n }\n}",
|
374
|
+
"input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateUserVpcConnection\n<公共请求参数>\n\n{\n \"UserVpcId\": \"vpc-dk19yfxx\",\n \"UserSubnetId\": \"subnet-gne3mgxx\",\n \"UserVpcEndpointName\": \"rickytest\",\n \"EngineNetworkId\": \"DataEngine-Network-xxx\",\n \"UserVpcEndpointVip\": \"10.0.0.13\"\n}",
|
375
|
+
"output": "{\n \"Response\": {\n \"UserVpcEndpointId\": \"vpce-h4czuhxx\",\n \"RequestId\": \"515ee497-d527-4f05-b484-61b46522a408\"\n }\n}",
|
376
376
|
"title": "创建用户vpc连接到引擎网络"
|
377
377
|
}
|
378
378
|
],
|
tccli/services/dts/dts_client.py
CHANGED
@@ -1319,7 +1319,7 @@ def doContinueMigrateJob(args, parsed_globals):
|
|
1319
1319
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1320
1320
|
|
1321
1321
|
|
1322
|
-
def
|
1322
|
+
def doPauseMigrateJob(args, parsed_globals):
|
1323
1323
|
g_param = parse_global_arg(parsed_globals)
|
1324
1324
|
|
1325
1325
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1348,11 +1348,11 @@ def doModifyCompareTask(args, parsed_globals):
|
|
1348
1348
|
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1349
1349
|
client._sdkVersion += ("_CLI_" + __version__)
|
1350
1350
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1351
|
-
model = models.
|
1351
|
+
model = models.PauseMigrateJobRequest()
|
1352
1352
|
model.from_json_string(json.dumps(args))
|
1353
1353
|
start_time = time.time()
|
1354
1354
|
while True:
|
1355
|
-
rsp = client.
|
1355
|
+
rsp = client.PauseMigrateJob(model)
|
1356
1356
|
result = rsp.to_json_string()
|
1357
1357
|
try:
|
1358
1358
|
json_obj = json.loads(result)
|
@@ -1371,7 +1371,7 @@ def doModifyCompareTask(args, parsed_globals):
|
|
1371
1371
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1372
1372
|
|
1373
1373
|
|
1374
|
-
def
|
1374
|
+
def doDescribeMigrateCheckJob(args, parsed_globals):
|
1375
1375
|
g_param = parse_global_arg(parsed_globals)
|
1376
1376
|
|
1377
1377
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1400,11 +1400,11 @@ def doPauseMigrateJob(args, parsed_globals):
|
|
1400
1400
|
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1401
1401
|
client._sdkVersion += ("_CLI_" + __version__)
|
1402
1402
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1403
|
-
model = models.
|
1403
|
+
model = models.DescribeMigrateCheckJobRequest()
|
1404
1404
|
model.from_json_string(json.dumps(args))
|
1405
1405
|
start_time = time.time()
|
1406
1406
|
while True:
|
1407
|
-
rsp = client.
|
1407
|
+
rsp = client.DescribeMigrateCheckJob(model)
|
1408
1408
|
result = rsp.to_json_string()
|
1409
1409
|
try:
|
1410
1410
|
json_obj = json.loads(result)
|
@@ -1423,7 +1423,7 @@ def doPauseMigrateJob(args, parsed_globals):
|
|
1423
1423
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1424
1424
|
|
1425
1425
|
|
1426
|
-
def
|
1426
|
+
def doModifySubscribeObjects(args, parsed_globals):
|
1427
1427
|
g_param = parse_global_arg(parsed_globals)
|
1428
1428
|
|
1429
1429
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1452,11 +1452,11 @@ def doDescribeMigrateCheckJob(args, parsed_globals):
|
|
1452
1452
|
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1453
1453
|
client._sdkVersion += ("_CLI_" + __version__)
|
1454
1454
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1455
|
-
model = models.
|
1455
|
+
model = models.ModifySubscribeObjectsRequest()
|
1456
1456
|
model.from_json_string(json.dumps(args))
|
1457
1457
|
start_time = time.time()
|
1458
1458
|
while True:
|
1459
|
-
rsp = client.
|
1459
|
+
rsp = client.ModifySubscribeObjects(model)
|
1460
1460
|
result = rsp.to_json_string()
|
1461
1461
|
try:
|
1462
1462
|
json_obj = json.loads(result)
|
@@ -1475,7 +1475,7 @@ def doDescribeMigrateCheckJob(args, parsed_globals):
|
|
1475
1475
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1476
1476
|
|
1477
1477
|
|
1478
|
-
def
|
1478
|
+
def doConfigureSyncJob(args, parsed_globals):
|
1479
1479
|
g_param = parse_global_arg(parsed_globals)
|
1480
1480
|
|
1481
1481
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1504,11 +1504,11 @@ def doModifySubscribeObjects(args, parsed_globals):
|
|
1504
1504
|
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1505
1505
|
client._sdkVersion += ("_CLI_" + __version__)
|
1506
1506
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1507
|
-
model = models.
|
1507
|
+
model = models.ConfigureSyncJobRequest()
|
1508
1508
|
model.from_json_string(json.dumps(args))
|
1509
1509
|
start_time = time.time()
|
1510
1510
|
while True:
|
1511
|
-
rsp = client.
|
1511
|
+
rsp = client.ConfigureSyncJob(model)
|
1512
1512
|
result = rsp.to_json_string()
|
1513
1513
|
try:
|
1514
1514
|
json_obj = json.loads(result)
|
@@ -1527,7 +1527,7 @@ def doModifySubscribeObjects(args, parsed_globals):
|
|
1527
1527
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1528
1528
|
|
1529
1529
|
|
1530
|
-
def
|
1530
|
+
def doIsolateSubscribe(args, parsed_globals):
|
1531
1531
|
g_param = parse_global_arg(parsed_globals)
|
1532
1532
|
|
1533
1533
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1556,11 +1556,11 @@ def doConfigureSyncJob(args, parsed_globals):
|
|
1556
1556
|
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1557
1557
|
client._sdkVersion += ("_CLI_" + __version__)
|
1558
1558
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1559
|
-
model = models.
|
1559
|
+
model = models.IsolateSubscribeRequest()
|
1560
1560
|
model.from_json_string(json.dumps(args))
|
1561
1561
|
start_time = time.time()
|
1562
1562
|
while True:
|
1563
|
-
rsp = client.
|
1563
|
+
rsp = client.IsolateSubscribe(model)
|
1564
1564
|
result = rsp.to_json_string()
|
1565
1565
|
try:
|
1566
1566
|
json_obj = json.loads(result)
|
@@ -1579,7 +1579,7 @@ def doConfigureSyncJob(args, parsed_globals):
|
|
1579
1579
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1580
1580
|
|
1581
1581
|
|
1582
|
-
def
|
1582
|
+
def doDestroyMigrateJob(args, parsed_globals):
|
1583
1583
|
g_param = parse_global_arg(parsed_globals)
|
1584
1584
|
|
1585
1585
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1608,11 +1608,11 @@ def doIsolateSubscribe(args, parsed_globals):
|
|
1608
1608
|
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1609
1609
|
client._sdkVersion += ("_CLI_" + __version__)
|
1610
1610
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1611
|
-
model = models.
|
1611
|
+
model = models.DestroyMigrateJobRequest()
|
1612
1612
|
model.from_json_string(json.dumps(args))
|
1613
1613
|
start_time = time.time()
|
1614
1614
|
while True:
|
1615
|
-
rsp = client.
|
1615
|
+
rsp = client.DestroyMigrateJob(model)
|
1616
1616
|
result = rsp.to_json_string()
|
1617
1617
|
try:
|
1618
1618
|
json_obj = json.loads(result)
|
@@ -1631,7 +1631,7 @@ def doIsolateSubscribe(args, parsed_globals):
|
|
1631
1631
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1632
1632
|
|
1633
1633
|
|
1634
|
-
def
|
1634
|
+
def doResetSyncJob(args, parsed_globals):
|
1635
1635
|
g_param = parse_global_arg(parsed_globals)
|
1636
1636
|
|
1637
1637
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1660,11 +1660,11 @@ def doDestroyMigrateJob(args, parsed_globals):
|
|
1660
1660
|
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
1661
1661
|
client._sdkVersion += ("_CLI_" + __version__)
|
1662
1662
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1663
|
-
model = models.
|
1663
|
+
model = models.ResetSyncJobRequest()
|
1664
1664
|
model.from_json_string(json.dumps(args))
|
1665
1665
|
start_time = time.time()
|
1666
1666
|
while True:
|
1667
|
-
rsp = client.
|
1667
|
+
rsp = client.ResetSyncJob(model)
|
1668
1668
|
result = rsp.to_json_string()
|
1669
1669
|
try:
|
1670
1670
|
json_obj = json.loads(result)
|
@@ -4231,6 +4231,58 @@ def doModifyCompareTaskName(args, parsed_globals):
|
|
4231
4231
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4232
4232
|
|
4233
4233
|
|
4234
|
+
def doCompleteMigrateJob(args, parsed_globals):
|
4235
|
+
g_param = parse_global_arg(parsed_globals)
|
4236
|
+
|
4237
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4238
|
+
cred = credential.CVMRoleCredential()
|
4239
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4240
|
+
cred = credential.STSAssumeRoleCredential(
|
4241
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4242
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4243
|
+
)
|
4244
|
+
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):
|
4245
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4246
|
+
else:
|
4247
|
+
cred = credential.Credential(
|
4248
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4249
|
+
)
|
4250
|
+
http_profile = HttpProfile(
|
4251
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4252
|
+
reqMethod="POST",
|
4253
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4254
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4255
|
+
)
|
4256
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4257
|
+
if g_param[OptionsDefine.Language]:
|
4258
|
+
profile.language = g_param[OptionsDefine.Language]
|
4259
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4260
|
+
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
4261
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4262
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4263
|
+
model = models.CompleteMigrateJobRequest()
|
4264
|
+
model.from_json_string(json.dumps(args))
|
4265
|
+
start_time = time.time()
|
4266
|
+
while True:
|
4267
|
+
rsp = client.CompleteMigrateJob(model)
|
4268
|
+
result = rsp.to_json_string()
|
4269
|
+
try:
|
4270
|
+
json_obj = json.loads(result)
|
4271
|
+
except TypeError as e:
|
4272
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4273
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4274
|
+
break
|
4275
|
+
cur_time = time.time()
|
4276
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4277
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4278
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4279
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4280
|
+
else:
|
4281
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4282
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4283
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4284
|
+
|
4285
|
+
|
4234
4286
|
def doModifyMigrateName(args, parsed_globals):
|
4235
4287
|
g_param = parse_global_arg(parsed_globals)
|
4236
4288
|
|
@@ -4283,7 +4335,7 @@ def doModifyMigrateName(args, parsed_globals):
|
|
4283
4335
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4284
4336
|
|
4285
4337
|
|
4286
|
-
def
|
4338
|
+
def doModifyCompareTask(args, parsed_globals):
|
4287
4339
|
g_param = parse_global_arg(parsed_globals)
|
4288
4340
|
|
4289
4341
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4312,11 +4364,11 @@ def doCompleteMigrateJob(args, parsed_globals):
|
|
4312
4364
|
client = mod.DtsClient(cred, g_param[OptionsDefine.Region], profile)
|
4313
4365
|
client._sdkVersion += ("_CLI_" + __version__)
|
4314
4366
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4315
|
-
model = models.
|
4367
|
+
model = models.ModifyCompareTaskRequest()
|
4316
4368
|
model.from_json_string(json.dumps(args))
|
4317
4369
|
start_time = time.time()
|
4318
4370
|
while True:
|
4319
|
-
rsp = client.
|
4371
|
+
rsp = client.ModifyCompareTask(model)
|
4320
4372
|
result = rsp.to_json_string()
|
4321
4373
|
try:
|
4322
4374
|
json_obj = json.loads(result)
|
@@ -4373,13 +4425,13 @@ ACTION_MAP = {
|
|
4373
4425
|
"CreateCheckSyncJob": doCreateCheckSyncJob,
|
4374
4426
|
"DescribeCompareReport": doDescribeCompareReport,
|
4375
4427
|
"ContinueMigrateJob": doContinueMigrateJob,
|
4376
|
-
"ModifyCompareTask": doModifyCompareTask,
|
4377
4428
|
"PauseMigrateJob": doPauseMigrateJob,
|
4378
4429
|
"DescribeMigrateCheckJob": doDescribeMigrateCheckJob,
|
4379
4430
|
"ModifySubscribeObjects": doModifySubscribeObjects,
|
4380
4431
|
"ConfigureSyncJob": doConfigureSyncJob,
|
4381
4432
|
"IsolateSubscribe": doIsolateSubscribe,
|
4382
4433
|
"DestroyMigrateJob": doDestroyMigrateJob,
|
4434
|
+
"ResetSyncJob": doResetSyncJob,
|
4383
4435
|
"ResizeSyncJob": doResizeSyncJob,
|
4384
4436
|
"ModifySubscribeAutoRenewFlag": doModifySubscribeAutoRenewFlag,
|
4385
4437
|
"ModifySyncJobConfig": doModifySyncJobConfig,
|
@@ -4429,8 +4481,9 @@ ACTION_MAP = {
|
|
4429
4481
|
"DescribeAsyncRequestInfo": doDescribeAsyncRequestInfo,
|
4430
4482
|
"DestroySyncJob": doDestroySyncJob,
|
4431
4483
|
"ModifyCompareTaskName": doModifyCompareTaskName,
|
4432
|
-
"ModifyMigrateName": doModifyMigrateName,
|
4433
4484
|
"CompleteMigrateJob": doCompleteMigrateJob,
|
4485
|
+
"ModifyMigrateName": doModifyMigrateName,
|
4486
|
+
"ModifyCompareTask": doModifyCompareTask,
|
4434
4487
|
|
4435
4488
|
}
|
4436
4489
|
|
@@ -399,6 +399,13 @@
|
|
399
399
|
"output": "ResetSubscribeResponse",
|
400
400
|
"status": "online"
|
401
401
|
},
|
402
|
+
"ResetSyncJob": {
|
403
|
+
"document": "重置已经结束的同步任务,重置后可以重新配置启动任务。",
|
404
|
+
"input": "ResetSyncJobRequest",
|
405
|
+
"name": "重置任务",
|
406
|
+
"output": "ResetSyncJobResponse",
|
407
|
+
"status": "online"
|
408
|
+
},
|
402
409
|
"ResizeSyncJob": {
|
403
410
|
"document": "调整同步任务规格,此接口只支持按量计费任务的调整,调用此接口后不会立即生效,后台调整时间大概为3~5分钟。调用此接口后可通过查询同步任务信息接口DescribeSyncJobs,获取变配后的状态。",
|
404
411
|
"input": "ResizeSyncJobRequest",
|
@@ -8641,6 +8648,33 @@
|
|
8641
8648
|
],
|
8642
8649
|
"type": "object"
|
8643
8650
|
},
|
8651
|
+
"ResetSyncJobRequest": {
|
8652
|
+
"document": "ResetSyncJob请求参数结构体",
|
8653
|
+
"members": [
|
8654
|
+
{
|
8655
|
+
"disabled": false,
|
8656
|
+
"document": "需要重置的同步任务ID。",
|
8657
|
+
"example": "sync-4ftuz3d2",
|
8658
|
+
"member": "string",
|
8659
|
+
"name": "JobId",
|
8660
|
+
"required": true,
|
8661
|
+
"type": "string"
|
8662
|
+
}
|
8663
|
+
],
|
8664
|
+
"type": "object"
|
8665
|
+
},
|
8666
|
+
"ResetSyncJobResponse": {
|
8667
|
+
"document": "ResetSyncJob返回参数结构体",
|
8668
|
+
"members": [
|
8669
|
+
{
|
8670
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
8671
|
+
"member": "string",
|
8672
|
+
"name": "RequestId",
|
8673
|
+
"type": "string"
|
8674
|
+
}
|
8675
|
+
],
|
8676
|
+
"type": "object"
|
8677
|
+
},
|
8644
8678
|
"ResizeSyncJobRequest": {
|
8645
8679
|
"document": "ResizeSyncJob请求参数结构体",
|
8646
8680
|
"members": [
|
@@ -468,6 +468,14 @@
|
|
468
468
|
"title": "重置数据订阅任务"
|
469
469
|
}
|
470
470
|
],
|
471
|
+
"ResetSyncJob": [
|
472
|
+
{
|
473
|
+
"document": "任务结束后重置同步任务信息,生成一个完全初始化的同步任务",
|
474
|
+
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopSyncJob\n<公共请求参数>\n\n{\n \"JobId\": \"sync-7r1cz016\"\n}",
|
475
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"ead9fdc1-baa8-4a09-aaa1-c2012690c976\"\n }\n}",
|
476
|
+
"title": "重置同步任务"
|
477
|
+
}
|
478
|
+
],
|
471
479
|
"ResizeSyncJob": [
|
472
480
|
{
|
473
481
|
"document": "",
|
tccli/services/ess/ess_client.py
CHANGED
@@ -1317,6 +1317,58 @@ def doCreateFlowReminds(args, parsed_globals):
|
|
1317
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1318
|
|
1319
1319
|
|
1320
|
+
def doDescribeContractReviewWebUrl(args, parsed_globals):
|
1321
|
+
g_param = parse_global_arg(parsed_globals)
|
1322
|
+
|
1323
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1324
|
+
cred = credential.CVMRoleCredential()
|
1325
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1326
|
+
cred = credential.STSAssumeRoleCredential(
|
1327
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1328
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1329
|
+
)
|
1330
|
+
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):
|
1331
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1332
|
+
else:
|
1333
|
+
cred = credential.Credential(
|
1334
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1335
|
+
)
|
1336
|
+
http_profile = HttpProfile(
|
1337
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1338
|
+
reqMethod="POST",
|
1339
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1340
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1341
|
+
)
|
1342
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1343
|
+
if g_param[OptionsDefine.Language]:
|
1344
|
+
profile.language = g_param[OptionsDefine.Language]
|
1345
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1346
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
+
model = models.DescribeContractReviewWebUrlRequest()
|
1350
|
+
model.from_json_string(json.dumps(args))
|
1351
|
+
start_time = time.time()
|
1352
|
+
while True:
|
1353
|
+
rsp = client.DescribeContractReviewWebUrl(model)
|
1354
|
+
result = rsp.to_json_string()
|
1355
|
+
try:
|
1356
|
+
json_obj = json.loads(result)
|
1357
|
+
except TypeError as e:
|
1358
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1359
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1360
|
+
break
|
1361
|
+
cur_time = time.time()
|
1362
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1363
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1364
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1365
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1366
|
+
else:
|
1367
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1368
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1369
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
|
+
|
1371
|
+
|
1320
1372
|
def doCreateUserNameChangeUrl(args, parsed_globals):
|
1321
1373
|
g_param = parse_global_arg(parsed_globals)
|
1322
1374
|
|
@@ -4489,6 +4541,58 @@ def doDescribeUserFlowType(args, parsed_globals):
|
|
4489
4541
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4490
4542
|
|
4491
4543
|
|
4544
|
+
def doCreateContractReviewWebUrl(args, parsed_globals):
|
4545
|
+
g_param = parse_global_arg(parsed_globals)
|
4546
|
+
|
4547
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4548
|
+
cred = credential.CVMRoleCredential()
|
4549
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4550
|
+
cred = credential.STSAssumeRoleCredential(
|
4551
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4552
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4553
|
+
)
|
4554
|
+
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):
|
4555
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4556
|
+
else:
|
4557
|
+
cred = credential.Credential(
|
4558
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4559
|
+
)
|
4560
|
+
http_profile = HttpProfile(
|
4561
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4562
|
+
reqMethod="POST",
|
4563
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4564
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4565
|
+
)
|
4566
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4567
|
+
if g_param[OptionsDefine.Language]:
|
4568
|
+
profile.language = g_param[OptionsDefine.Language]
|
4569
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4570
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
4571
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4572
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4573
|
+
model = models.CreateContractReviewWebUrlRequest()
|
4574
|
+
model.from_json_string(json.dumps(args))
|
4575
|
+
start_time = time.time()
|
4576
|
+
while True:
|
4577
|
+
rsp = client.CreateContractReviewWebUrl(model)
|
4578
|
+
result = rsp.to_json_string()
|
4579
|
+
try:
|
4580
|
+
json_obj = json.loads(result)
|
4581
|
+
except TypeError as e:
|
4582
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4583
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4584
|
+
break
|
4585
|
+
cur_time = time.time()
|
4586
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4587
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4588
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4589
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4590
|
+
else:
|
4591
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4592
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4593
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4594
|
+
|
4595
|
+
|
4492
4596
|
def doCreateModifyAdminAuthorizationUrl(args, parsed_globals):
|
4493
4597
|
g_param = parse_global_arg(parsed_globals)
|
4494
4598
|
|
@@ -6085,6 +6189,7 @@ ACTION_MAP = {
|
|
6085
6189
|
"CreateBatchSignUrl": doCreateBatchSignUrl,
|
6086
6190
|
"DescribeInformationExtractionTask": doDescribeInformationExtractionTask,
|
6087
6191
|
"CreateFlowReminds": doCreateFlowReminds,
|
6192
|
+
"DescribeContractReviewWebUrl": doDescribeContractReviewWebUrl,
|
6088
6193
|
"CreateUserNameChangeUrl": doCreateUserNameChangeUrl,
|
6089
6194
|
"DescribeFlowEvidenceReport": doDescribeFlowEvidenceReport,
|
6090
6195
|
"DescribeContractDiffTaskWebUrl": doDescribeContractDiffTaskWebUrl,
|
@@ -6146,6 +6251,7 @@ ACTION_MAP = {
|
|
6146
6251
|
"CreateWebThemeConfig": doCreateWebThemeConfig,
|
6147
6252
|
"CreateDynamicFlowApprover": doCreateDynamicFlowApprover,
|
6148
6253
|
"DescribeUserFlowType": doDescribeUserFlowType,
|
6254
|
+
"CreateContractReviewWebUrl": doCreateContractReviewWebUrl,
|
6149
6255
|
"CreateModifyAdminAuthorizationUrl": doCreateModifyAdminAuthorizationUrl,
|
6150
6256
|
"CreateIntegrationEmployees": doCreateIntegrationEmployees,
|
6151
6257
|
"DeleteOrganizationAuthorizations": doDeleteOrganizationAuthorizations,
|