tccli 3.0.1376.1__py2.py3-none-any.whl → 3.0.1378.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/autoscaling/v20180419/api.json +3 -3
- 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 +19 -17
- 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 +12 -12
- tccli/services/dc/v20180410/api.json +18 -0
- tccli/services/dlc/v20210125/api.json +28 -9
- 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 +267 -11
- 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/iotexplorer_client.py +53 -0
- tccli/services/iotexplorer/v20190423/api.json +261 -1
- tccli/services/iotexplorer/v20190423/examples.json +86 -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 +15 -15
- tccli/services/rce/v20201103/api.json +1 -1
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +156 -1
- tccli/services/tdmq/v20200217/examples.json +8 -0
- 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 +22 -11
- tccli/services/tsf/v20180326/api.json +4 -4
- tccli/services/vclm/v20240523/api.json +9 -0
- tccli/services/vpc/v20170312/api.json +11 -2
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1378.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1378.1.dist-info}/RECORD +58 -58
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1378.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1378.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1376.1.dist-info → tccli-3.0.1378.1.dist-info}/license_files/LICENSE +0 -0
@@ -20476,8 +20476,8 @@
|
|
20476
20476
|
"members": [
|
20477
20477
|
{
|
20478
20478
|
"disabled": false,
|
20479
|
-
"document": "
|
20480
|
-
"example": "
|
20479
|
+
"document": "(已废弃) 阻断开关状态: 0 -- 关闭 1 -- 高级阻断 2 -- 基础阻断(只阻断情报库黑ip)",
|
20480
|
+
"example": "0",
|
20481
20481
|
"member": "uint64",
|
20482
20482
|
"name": "Status",
|
20483
20483
|
"output_required": true,
|
@@ -20497,13 +20497,43 @@
|
|
20497
20497
|
{
|
20498
20498
|
"disabled": false,
|
20499
20499
|
"document": "是否开启智能过白模式",
|
20500
|
-
"example": "
|
20500
|
+
"example": "true",
|
20501
20501
|
"member": "bool",
|
20502
20502
|
"name": "OpenSmartMode",
|
20503
20503
|
"output_required": false,
|
20504
20504
|
"type": "bool",
|
20505
20505
|
"value_allowed_null": false
|
20506
20506
|
},
|
20507
|
+
{
|
20508
|
+
"disabled": false,
|
20509
|
+
"document": "是否开启情报IP阻断",
|
20510
|
+
"example": "true",
|
20511
|
+
"member": "bool",
|
20512
|
+
"name": "BanBlackIp",
|
20513
|
+
"output_required": false,
|
20514
|
+
"type": "bool",
|
20515
|
+
"value_allowed_null": false
|
20516
|
+
},
|
20517
|
+
{
|
20518
|
+
"disabled": false,
|
20519
|
+
"document": "是否开启漏洞IP阻断",
|
20520
|
+
"example": "true",
|
20521
|
+
"member": "bool",
|
20522
|
+
"name": "BanVulIp",
|
20523
|
+
"output_required": false,
|
20524
|
+
"type": "bool",
|
20525
|
+
"value_allowed_null": false
|
20526
|
+
},
|
20527
|
+
{
|
20528
|
+
"disabled": false,
|
20529
|
+
"document": "是否开启规则阻断",
|
20530
|
+
"example": "true",
|
20531
|
+
"member": "bool",
|
20532
|
+
"name": "BanByRule",
|
20533
|
+
"output_required": false,
|
20534
|
+
"type": "bool",
|
20535
|
+
"value_allowed_null": false
|
20536
|
+
},
|
20507
20537
|
{
|
20508
20538
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
20509
20539
|
"member": "string",
|
@@ -42307,7 +42337,7 @@
|
|
42307
42337
|
},
|
42308
42338
|
{
|
42309
42339
|
"disabled": false,
|
42310
|
-
"document": "高危信息说明:\nABROAD -
|
42340
|
+
"document": "高危信息说明:\nABROAD - 境外IP;\nXTI - 威胁情报",
|
42311
42341
|
"example": "ABROAD",
|
42312
42342
|
"member": "string",
|
42313
42343
|
"name": "Desc",
|
@@ -42318,7 +42348,7 @@
|
|
42318
42348
|
{
|
42319
42349
|
"disabled": false,
|
42320
42350
|
"document": "附加信息",
|
42321
|
-
"example": "
|
42351
|
+
"example": "无",
|
42322
42352
|
"member": "MachineExtraInfo",
|
42323
42353
|
"name": "MachineExtraInfo",
|
42324
42354
|
"output_required": false,
|
@@ -44070,7 +44100,7 @@
|
|
44070
44100
|
{
|
44071
44101
|
"disabled": false,
|
44072
44102
|
"document": "白名单地域",
|
44073
|
-
"example": "
|
44103
|
+
"example": "无",
|
44074
44104
|
"member": "Place",
|
44075
44105
|
"name": "Places",
|
44076
44106
|
"output_required": true,
|
@@ -44090,7 +44120,7 @@
|
|
44090
44120
|
{
|
44091
44121
|
"disabled": false,
|
44092
44122
|
"document": "白名单IP(多个IP逗号隔开)",
|
44093
|
-
"example": "19
|
44123
|
+
"example": "19.*.1.**",
|
44094
44124
|
"member": "string",
|
44095
44125
|
"name": "SrcIp",
|
44096
44126
|
"output_required": true,
|
@@ -44209,7 +44239,7 @@
|
|
44209
44239
|
},
|
44210
44240
|
{
|
44211
44241
|
"disabled": false,
|
44212
|
-
"document": "
|
44242
|
+
"document": "登录地",
|
44213
44243
|
"example": "shanghai",
|
44214
44244
|
"member": "string",
|
44215
44245
|
"name": "Locations",
|
@@ -50309,7 +50339,7 @@
|
|
50309
50339
|
},
|
50310
50340
|
{
|
50311
50341
|
"disabled": false,
|
50312
|
-
"document": "国家ID
|
50342
|
+
"document": "国家ID,暂只支持境内:1。",
|
50313
50343
|
"example": "104",
|
50314
50344
|
"member": "uint64",
|
50315
50345
|
"name": "CountryId",
|
@@ -1030,6 +1030,12 @@
|
|
1030
1030
|
"input": "https://cwp.tencentcloudapi.com/?Action=DescribeBanStatus\n&<公共请求参数>",
|
1031
1031
|
"output": "{\n \"Response\": {\n \"Status\": 1,\n \"ShowTips\": false,\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\"\n }\n}",
|
1032
1032
|
"title": "获取阻断按钮状态"
|
1033
|
+
},
|
1034
|
+
{
|
1035
|
+
"document": "新版BanStatus",
|
1036
|
+
"input": "POST / HTTP/1.1\nHost: cwp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBanStatus\n<公共请求参数>\n\n{}",
|
1037
|
+
"output": "{\n \"Response\": {\n \"BanBlackIp\": true,\n \"BanByRule\": false,\n \"BanVulIp\": true,\n \"OpenSmartMode\": true,\n \"RequestId\": \"b76c888e-31cf-4dfe-b40a-0e3d30ee555e\",\n \"ShowTips\": false,\n \"Status\": 2\n }\n}",
|
1038
|
+
"title": "新版BanStatus"
|
1033
1039
|
}
|
1034
1040
|
],
|
1035
1041
|
"DescribeBanWhiteList": [
|
@@ -4775,7 +4775,7 @@
|
|
4775
4775
|
{
|
4776
4776
|
"disabled": false,
|
4777
4777
|
"document": "集群创建需要绑定的tag数组信息",
|
4778
|
-
"example": "
|
4778
|
+
"example": "无",
|
4779
4779
|
"member": "Tag",
|
4780
4780
|
"name": "ResourceTags",
|
4781
4781
|
"required": false,
|
@@ -4856,7 +4856,7 @@
|
|
4856
4856
|
{
|
4857
4857
|
"disabled": false,
|
4858
4858
|
"document": "参数数组,暂时支持character_set_server (utf8|latin1|gbk|utf8mb4) ,lower_case_table_names,1-大小写不敏感,0-大小写敏感",
|
4859
|
-
"example": "
|
4859
|
+
"example": "无",
|
4860
4860
|
"member": "ParamItem",
|
4861
4861
|
"name": "ClusterParams",
|
4862
4862
|
"required": false,
|
@@ -4892,7 +4892,7 @@
|
|
4892
4892
|
{
|
4893
4893
|
"disabled": false,
|
4894
4894
|
"document": "实例初始化配置信息,主要用于购买集群时选不同规格实例",
|
4895
|
-
"example": "
|
4895
|
+
"example": "无",
|
4896
4896
|
"member": "InstanceInitInfo",
|
4897
4897
|
"name": "InstanceInitInfos",
|
4898
4898
|
"required": false,
|
@@ -4983,7 +4983,7 @@
|
|
4983
4983
|
{
|
4984
4984
|
"disabled": false,
|
4985
4985
|
"document": "大订单号\n注意:此字段可能返回 null,表示取不到有效值。",
|
4986
|
-
"example": "[\"
|
4986
|
+
"example": "[\"2019052211228311\"]",
|
4987
4987
|
"member": "string",
|
4988
4988
|
"name": "BigDealIds",
|
4989
4989
|
"output_required": true,
|
@@ -6017,7 +6017,7 @@
|
|
6017
6017
|
{
|
6018
6018
|
"disabled": false,
|
6019
6019
|
"document": "从可用区",
|
6020
|
-
"example": "ap-singapore-4",
|
6020
|
+
"example": "[\"ap-singapore-4\"]",
|
6021
6021
|
"member": "string",
|
6022
6022
|
"name": "SlaveZones",
|
6023
6023
|
"output_required": true,
|
@@ -6451,7 +6451,7 @@
|
|
6451
6451
|
{
|
6452
6452
|
"disabled": false,
|
6453
6453
|
"document": "从可用区列表",
|
6454
|
-
"example": "ap-guangzhou-3",
|
6454
|
+
"example": "[\"ap-guangzhou-3\"]",
|
6455
6455
|
"member": "string",
|
6456
6456
|
"name": "SlaveZones",
|
6457
6457
|
"output_required": true,
|
@@ -11338,7 +11338,7 @@
|
|
11338
11338
|
{
|
11339
11339
|
"disabled": false,
|
11340
11340
|
"document": "是否需要返回可用区信息",
|
11341
|
-
"example": "
|
11341
|
+
"example": "false",
|
11342
11342
|
"member": "bool",
|
11343
11343
|
"name": "IncludeZoneStocks",
|
11344
11344
|
"required": false,
|
@@ -11362,7 +11362,7 @@
|
|
11362
11362
|
{
|
11363
11363
|
"disabled": false,
|
11364
11364
|
"document": "规格信息",
|
11365
|
-
"example": "
|
11365
|
+
"example": "无",
|
11366
11366
|
"member": "InstanceSpec",
|
11367
11367
|
"name": "InstanceSpecSet",
|
11368
11368
|
"output_required": true,
|
@@ -14999,7 +14999,7 @@
|
|
14999
14999
|
},
|
15000
15000
|
{
|
15001
15001
|
"disabled": false,
|
15002
|
-
"document": "
|
15002
|
+
"document": "自动逻辑备份保留时间\n单位:秒",
|
15003
15003
|
"example": "7",
|
15004
15004
|
"member": "uint64",
|
15005
15005
|
"name": "LogicReserveDuration",
|
@@ -15010,8 +15010,8 @@
|
|
15010
15010
|
},
|
15011
15011
|
{
|
15012
15012
|
"disabled": false,
|
15013
|
-
"document": "
|
15014
|
-
"example": "
|
15013
|
+
"document": "是否开启跨地域逻辑备份\n可选值:ON/OFF",
|
15014
|
+
"example": "ON",
|
15015
15015
|
"member": "string",
|
15016
15016
|
"name": "LogicCrossRegionsEnable",
|
15017
15017
|
"output_required": false,
|
@@ -16259,7 +16259,7 @@
|
|
16259
16259
|
},
|
16260
16260
|
{
|
16261
16261
|
"disabled": false,
|
16262
|
-
"document": "要修改的安全组ID列表,一个或者多个安全组ID
|
16262
|
+
"document": "要修改的安全组ID列表,一个或者多个安全组ID组成的数组。\n注意:该入参会全量替换存量已有集合,非增量更新。修改需传入预期的全量集合。",
|
16263
16263
|
"example": "[\"sg-ajr1jzgj\\n\"]",
|
16264
16264
|
"member": "string",
|
16265
16265
|
"name": "SecurityGroupIds",
|
@@ -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",
|
@@ -13877,7 +13887,7 @@
|
|
13877
13887
|
{
|
13878
13888
|
"disabled": false,
|
13879
13889
|
"document": "DataEngine-dm8bjs29",
|
13880
|
-
"example": "
|
13890
|
+
"example": "[\"DataEngine-xx\"]",
|
13881
13891
|
"member": "string",
|
13882
13892
|
"name": "HouseIds",
|
13883
13893
|
"required": false,
|
@@ -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
|
|