tccli 3.0.1187.1__py2.py3-none-any.whl → 3.0.1188.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +107 -0
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/dc/v20180410/api.json +19 -19
- tccli/services/dc/v20180410/examples.json +5 -5
- tccli/services/dcdb/v20180411/api.json +20 -2
- tccli/services/dlc/dlc_client.py +106 -0
- tccli/services/dlc/v20210125/api.json +87 -0
- tccli/services/dlc/v20210125/examples.json +16 -0
- tccli/services/dts/v20211206/api.json +1 -0
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +261 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/v20180416/api.json +101 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +147 -0
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/mariadb/v20170312/api.json +21 -3
- tccli/services/rce/v20201103/api.json +2 -2
- tccli/services/sms/v20190711/api.json +2 -2
- tccli/services/sms/v20210111/api.json +2 -2
- tccli/services/trtc/v20190722/api.json +11 -0
- tccli/services/tse/v20201207/api.json +18 -18
- tccli/services/vclm/v20240523/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vtc/v20240223/api.json +2 -2
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1188.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1188.1.dist-info}/RECORD +32 -32
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1188.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1188.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1187.1.dist-info → tccli-3.0.1188.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1188.1'
|
tccli/services/cvm/cvm_client.py
CHANGED
@@ -3137,6 +3137,58 @@ def doModifyImageAttribute(args, parsed_globals):
|
|
3137
3137
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3138
3138
|
|
3139
3139
|
|
3140
|
+
def doConvertOperatingSystems(args, parsed_globals):
|
3141
|
+
g_param = parse_global_arg(parsed_globals)
|
3142
|
+
|
3143
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3144
|
+
cred = credential.CVMRoleCredential()
|
3145
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3146
|
+
cred = credential.STSAssumeRoleCredential(
|
3147
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3148
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3149
|
+
)
|
3150
|
+
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):
|
3151
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3152
|
+
else:
|
3153
|
+
cred = credential.Credential(
|
3154
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3155
|
+
)
|
3156
|
+
http_profile = HttpProfile(
|
3157
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3158
|
+
reqMethod="POST",
|
3159
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3160
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3161
|
+
)
|
3162
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3163
|
+
if g_param[OptionsDefine.Language]:
|
3164
|
+
profile.language = g_param[OptionsDefine.Language]
|
3165
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3166
|
+
client = mod.CvmClient(cred, g_param[OptionsDefine.Region], profile)
|
3167
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3168
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3169
|
+
model = models.ConvertOperatingSystemsRequest()
|
3170
|
+
model.from_json_string(json.dumps(args))
|
3171
|
+
start_time = time.time()
|
3172
|
+
while True:
|
3173
|
+
rsp = client.ConvertOperatingSystems(model)
|
3174
|
+
result = rsp.to_json_string()
|
3175
|
+
try:
|
3176
|
+
json_obj = json.loads(result)
|
3177
|
+
except TypeError as e:
|
3178
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3179
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3180
|
+
break
|
3181
|
+
cur_time = time.time()
|
3182
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3183
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3184
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3185
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3186
|
+
else:
|
3187
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3188
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3189
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3190
|
+
|
3191
|
+
|
3140
3192
|
def doDeleteDisasterRecoverGroups(args, parsed_globals):
|
3141
3193
|
g_param = parse_global_arg(parsed_globals)
|
3142
3194
|
|
@@ -5236,6 +5288,7 @@ ACTION_MAP = {
|
|
5236
5288
|
"DescribeLaunchTemplates": doDescribeLaunchTemplates,
|
5237
5289
|
"AssociateSecurityGroups": doAssociateSecurityGroups,
|
5238
5290
|
"ModifyImageAttribute": doModifyImageAttribute,
|
5291
|
+
"ConvertOperatingSystems": doConvertOperatingSystems,
|
5239
5292
|
"DeleteDisasterRecoverGroups": doDeleteDisasterRecoverGroups,
|
5240
5293
|
"TerminateInstances": doTerminateInstances,
|
5241
5294
|
"RemoveChcAssistVpc": doRemoveChcAssistVpc,
|
@@ -35,6 +35,13 @@
|
|
35
35
|
"output": "ConfigureChcDeployVpcResponse",
|
36
36
|
"status": "online"
|
37
37
|
},
|
38
|
+
"ConvertOperatingSystems": {
|
39
|
+
"document": "本接口(ConvertOperatingSystem)用于转换实例的操作系统,仅支持源操作系统为 CentOS 7、CentOS 8 的实例。",
|
40
|
+
"input": "ConvertOperatingSystemsRequest",
|
41
|
+
"name": "转换操作系统",
|
42
|
+
"output": "ConvertOperatingSystemsResponse",
|
43
|
+
"status": "online"
|
44
|
+
},
|
38
45
|
"CreateDisasterRecoverGroup": {
|
39
46
|
"document": "本接口 (CreateDisasterRecoverGroup)用于创建[分散置放群组](https://cloud.tencent.com/document/product/213/15486)。创建好的置放群组,可在[创建实例](https://cloud.tencent.com/document/api/213/15730)时指定。",
|
40
47
|
"input": "CreateDisasterRecoverGroupRequest",
|
@@ -1390,6 +1397,80 @@
|
|
1390
1397
|
],
|
1391
1398
|
"type": "object"
|
1392
1399
|
},
|
1400
|
+
"ConvertOperatingSystemsRequest": {
|
1401
|
+
"document": "ConvertOperatingSystems请求参数结构体",
|
1402
|
+
"members": [
|
1403
|
+
{
|
1404
|
+
"disabled": false,
|
1405
|
+
"document": "执行操作系统转换的实例 ID",
|
1406
|
+
"example": "[\"ins-xxxxxxxx\"]",
|
1407
|
+
"member": "string",
|
1408
|
+
"name": "InstanceIds",
|
1409
|
+
"required": true,
|
1410
|
+
"type": "list"
|
1411
|
+
},
|
1412
|
+
{
|
1413
|
+
"disabled": false,
|
1414
|
+
"document": "是否最小规模转换",
|
1415
|
+
"example": "true",
|
1416
|
+
"member": "bool",
|
1417
|
+
"name": "MinimalConversion",
|
1418
|
+
"required": false,
|
1419
|
+
"type": "bool"
|
1420
|
+
},
|
1421
|
+
{
|
1422
|
+
"disabled": false,
|
1423
|
+
"document": "是否只预检",
|
1424
|
+
"example": "true",
|
1425
|
+
"member": "bool",
|
1426
|
+
"name": "DryRun",
|
1427
|
+
"required": false,
|
1428
|
+
"type": "bool"
|
1429
|
+
},
|
1430
|
+
{
|
1431
|
+
"disabled": false,
|
1432
|
+
"document": "转换的目标操作系统类型。仅支持 TencentOS。",
|
1433
|
+
"example": "TencentOS",
|
1434
|
+
"member": "string",
|
1435
|
+
"name": "TargetOSType",
|
1436
|
+
"required": false,
|
1437
|
+
"type": "string"
|
1438
|
+
}
|
1439
|
+
],
|
1440
|
+
"type": "object"
|
1441
|
+
},
|
1442
|
+
"ConvertOperatingSystemsResponse": {
|
1443
|
+
"document": "ConvertOperatingSystems返回参数结构体",
|
1444
|
+
"members": [
|
1445
|
+
{
|
1446
|
+
"disabled": false,
|
1447
|
+
"document": "转换的目标操系统信息,仅在入参 DryRun 为 true 时返回。\n注意:此字段可能返回 null,表示取不到有效值。",
|
1448
|
+
"example": "无",
|
1449
|
+
"member": "TargetOS",
|
1450
|
+
"name": "SupportTargetOSList",
|
1451
|
+
"output_required": false,
|
1452
|
+
"type": "list",
|
1453
|
+
"value_allowed_null": true
|
1454
|
+
},
|
1455
|
+
{
|
1456
|
+
"disabled": false,
|
1457
|
+
"document": "操作系统转换的任务 ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
1458
|
+
"example": "无",
|
1459
|
+
"member": "string",
|
1460
|
+
"name": "TaskId",
|
1461
|
+
"output_required": false,
|
1462
|
+
"type": "string",
|
1463
|
+
"value_allowed_null": true
|
1464
|
+
},
|
1465
|
+
{
|
1466
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1467
|
+
"member": "string",
|
1468
|
+
"name": "RequestId",
|
1469
|
+
"type": "string"
|
1470
|
+
}
|
1471
|
+
],
|
1472
|
+
"type": "object"
|
1473
|
+
},
|
1393
1474
|
"CpuTopology": {
|
1394
1475
|
"document": "描述了实例CPU拓扑结构的相关信息。",
|
1395
1476
|
"members": [
|
@@ -11713,6 +11794,32 @@
|
|
11713
11794
|
],
|
11714
11795
|
"usage": "both"
|
11715
11796
|
},
|
11797
|
+
"TargetOS": {
|
11798
|
+
"document": "操作系统转换的目标操作系统信息",
|
11799
|
+
"members": [
|
11800
|
+
{
|
11801
|
+
"disabled": false,
|
11802
|
+
"document": "目标操作系统类型",
|
11803
|
+
"example": "TencentOS",
|
11804
|
+
"member": "string",
|
11805
|
+
"name": "TargetOSType",
|
11806
|
+
"output_required": true,
|
11807
|
+
"type": "string",
|
11808
|
+
"value_allowed_null": false
|
11809
|
+
},
|
11810
|
+
{
|
11811
|
+
"disabled": false,
|
11812
|
+
"document": "目标操作系统版本",
|
11813
|
+
"example": "2.4",
|
11814
|
+
"member": "string",
|
11815
|
+
"name": "TargetOSVersion",
|
11816
|
+
"output_required": true,
|
11817
|
+
"type": "string",
|
11818
|
+
"value_allowed_null": false
|
11819
|
+
}
|
11820
|
+
],
|
11821
|
+
"usage": "out"
|
11822
|
+
},
|
11716
11823
|
"TerminateInstancesRequest": {
|
11717
11824
|
"document": "TerminateInstances请求参数结构体",
|
11718
11825
|
"members": [
|
@@ -40,6 +40,14 @@
|
|
40
40
|
"title": "配置CHC物理服务器的部署网络"
|
41
41
|
}
|
42
42
|
],
|
43
|
+
"ConvertOperatingSystems": [
|
44
|
+
{
|
45
|
+
"document": "针对实例 ins-6pb6lrmy 执行操作系统转换",
|
46
|
+
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ConvertOperatingSystem\n<公共请求参数>\n\n{\n \"InstanceIds\": [\n \"ins-6pb6lrmy\"\n ]\n}",
|
47
|
+
"output": "{\n \"Response\": {\n \"SupportTargetOSList\": [\n {\n \"TargetOSType\": \"TencentOS\",\n \"TargetOSVersion\": \"2.4\"\n }\n ],\n \"TaskId\": \"12345678\",\n \"RequestId\": \"abc\"\n }\n}",
|
48
|
+
"title": "执行操作系统转换"
|
49
|
+
}
|
50
|
+
],
|
43
51
|
"CreateDisasterRecoverGroup": [
|
44
52
|
{
|
45
53
|
"document": "创建分散置放群组",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
3
|
"AcceptDirectConnectTunnel": {
|
4
|
-
"document": "
|
4
|
+
"document": "接受专用通道申请。",
|
5
5
|
"input": "AcceptDirectConnectTunnelRequest",
|
6
6
|
"name": "接受专用通道申请",
|
7
7
|
"output": "AcceptDirectConnectTunnelResponse",
|
@@ -43,14 +43,14 @@
|
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
45
|
"DescribeAccessPoints": {
|
46
|
-
"document": "
|
46
|
+
"document": "查询物理专线接入点。",
|
47
47
|
"input": "DescribeAccessPointsRequest",
|
48
48
|
"name": "查询物理专线接入点",
|
49
49
|
"output": "DescribeAccessPointsResponse",
|
50
50
|
"status": "online"
|
51
51
|
},
|
52
52
|
"DescribeDirectConnectTunnelExtra": {
|
53
|
-
"document": "
|
53
|
+
"document": "查询专用通道扩展信息。",
|
54
54
|
"input": "DescribeDirectConnectTunnelExtraRequest",
|
55
55
|
"name": "查询专用通道扩展信息",
|
56
56
|
"output": "DescribeDirectConnectTunnelExtraResponse",
|
@@ -134,7 +134,7 @@
|
|
134
134
|
"status": "online"
|
135
135
|
},
|
136
136
|
"RejectDirectConnectTunnel": {
|
137
|
-
"document": "
|
137
|
+
"document": "拒绝专用通道申请。",
|
138
138
|
"input": "RejectDirectConnectTunnelRequest",
|
139
139
|
"name": "拒绝专用通道申请",
|
140
140
|
"output": "RejectDirectConnectTunnelResponse",
|
@@ -160,8 +160,8 @@
|
|
160
160
|
"members": [
|
161
161
|
{
|
162
162
|
"disabled": false,
|
163
|
-
"document": "
|
164
|
-
"example": "",
|
163
|
+
"document": "专用通道ID。",
|
164
|
+
"example": "dcx-xxxxxxxx",
|
165
165
|
"member": "string",
|
166
166
|
"name": "DirectConnectTunnelId",
|
167
167
|
"required": true,
|
@@ -925,8 +925,8 @@
|
|
925
925
|
"members": [
|
926
926
|
{
|
927
927
|
"disabled": false,
|
928
|
-
"document": "接入点所在的地域。使用DescribeRegions
|
929
|
-
"example": "",
|
928
|
+
"document": "接入点所在的地域。使用DescribeRegions查询。\n您可以通过调用 DescribeRegions接口获取地域ID。",
|
929
|
+
"example": "ap-guangzhou",
|
930
930
|
"member": "string",
|
931
931
|
"name": "RegionId",
|
932
932
|
"required": false,
|
@@ -935,7 +935,7 @@
|
|
935
935
|
{
|
936
936
|
"disabled": false,
|
937
937
|
"document": "偏移量,默认为0。",
|
938
|
-
"example": "",
|
938
|
+
"example": "0",
|
939
939
|
"member": "int64",
|
940
940
|
"name": "Offset",
|
941
941
|
"required": false,
|
@@ -944,7 +944,7 @@
|
|
944
944
|
{
|
945
945
|
"disabled": false,
|
946
946
|
"document": "返回数量,默认为20,最大值为100。",
|
947
|
-
"example": "",
|
947
|
+
"example": "100",
|
948
948
|
"member": "int64",
|
949
949
|
"name": "Limit",
|
950
950
|
"required": false,
|
@@ -959,7 +959,7 @@
|
|
959
959
|
{
|
960
960
|
"disabled": false,
|
961
961
|
"document": "接入点信息。",
|
962
|
-
"example": "",
|
962
|
+
"example": "[]",
|
963
963
|
"member": "AccessPoint",
|
964
964
|
"name": "AccessPointSet",
|
965
965
|
"type": "list",
|
@@ -967,8 +967,8 @@
|
|
967
967
|
},
|
968
968
|
{
|
969
969
|
"disabled": false,
|
970
|
-
"document": "
|
971
|
-
"example": "",
|
970
|
+
"document": "接入点总数量。",
|
971
|
+
"example": "100",
|
972
972
|
"member": "int64",
|
973
973
|
"name": "TotalCount",
|
974
974
|
"type": "int",
|
@@ -988,8 +988,8 @@
|
|
988
988
|
"members": [
|
989
989
|
{
|
990
990
|
"disabled": false,
|
991
|
-
"document": "专用通道ID",
|
992
|
-
"example": "",
|
991
|
+
"document": "专用通道ID。",
|
992
|
+
"example": "dcx-xxxxxxxx",
|
993
993
|
"member": "string",
|
994
994
|
"name": "DirectConnectTunnelId",
|
995
995
|
"required": true,
|
@@ -1003,8 +1003,8 @@
|
|
1003
1003
|
"members": [
|
1004
1004
|
{
|
1005
1005
|
"disabled": false,
|
1006
|
-
"document": "
|
1007
|
-
"example": "",
|
1006
|
+
"document": "专用通道扩展信息。",
|
1007
|
+
"example": "{}",
|
1008
1008
|
"member": "DirectConnectTunnelExtra",
|
1009
1009
|
"name": "DirectConnectTunnelExtra",
|
1010
1010
|
"type": "object",
|
@@ -3237,8 +3237,8 @@
|
|
3237
3237
|
"members": [
|
3238
3238
|
{
|
3239
3239
|
"disabled": false,
|
3240
|
-
"document": "
|
3241
|
-
"example": "",
|
3240
|
+
"document": "专用通道ID。",
|
3241
|
+
"example": "dcx-xxxxxxxx",
|
3242
3242
|
"member": "string",
|
3243
3243
|
"name": "DirectConnectTunnelId",
|
3244
3244
|
"required": true,
|
@@ -2,7 +2,7 @@
|
|
2
2
|
"actions": {
|
3
3
|
"AcceptDirectConnectTunnel": [
|
4
4
|
{
|
5
|
-
"document": "",
|
5
|
+
"document": "接受专用通道申请",
|
6
6
|
"input": "https://dc.tencentcloudapi.com/?Action=AcceptDirectConnectTunnel\n&DirectConnectTunnelId=dcx-abcdefgh\n&<公共请求参数>",
|
7
7
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
8
8
|
"title": "接受专用通道申请"
|
@@ -100,9 +100,9 @@
|
|
100
100
|
],
|
101
101
|
"DescribeDirectConnectTunnelExtra": [
|
102
102
|
{
|
103
|
-
"document": "",
|
104
|
-
"input": "https://dc.tencentcloudapi.com/?Action=DescribeDirectConnectTunnelExtra\n&DirectConnectTunnelId=dcx-
|
105
|
-
"output": "{\n \"Response\": {\n \"
|
103
|
+
"document": "查询专用通道扩展信息",
|
104
|
+
"input": "https://dc.tencentcloudapi.com/?Action=DescribeDirectConnectTunnelExtra\n&DirectConnectTunnelId=dcx-047zz5e6\n&<公共请求参数>",
|
105
|
+
"output": "{\n \"Response\": {\n \"DirectConnectTunnelExtra\": {\n \"OwnerAccount\": \"100001332514\",\n \"DirectConnectOwnerAccount\": \"100001332514\",\n \"DirectConnectId\": \"dc-n6c9vvv3\",\n \"SignLaw\": true,\n \"DirectConnectTunnelId\": \"dcx-047zz5e6\",\n \"DirectConnectTunnelName\": \"DCXCCNVxlanBgpEcmpTestautotestdcxtwo\",\n \"State\": \"AVAILABLE\",\n \"VpcId\": \"\",\n \"NetworkRegion\": \"ap-chongqing\",\n \"VpcRegion\": \"cq\",\n \"DirectConnectGatewayId\": \"dcg-meljxc9n\",\n \"Bandwidth\": 100,\n \"Vlan\": 2432,\n \"TencentAddress\": \"192.168.0.3/29\",\n \"CustomerAddress\": \"192.168.0.1/29\",\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"NetDetectId\": \"\",\n \"EnableBGPCommunity\": false,\n \"NatType\": 0,\n \"BfdEnable\": 0,\n \"AccessPointType\": \"VXLAN\",\n \"DirectConnectGatewayName\": \"\",\n \"VpcName\": \"\",\n \"NqaEnable\": 0,\n \"BfdInfo\": {\n \"ProbeFailedTimes\": -1,\n \"Interval\": -1\n },\n \"NqaInfo\": {\n \"ProbeFailedTimes\": -1,\n \"Interval\": -1,\n \"DestinationIp\": \"0.0.0.0\"\n },\n \"IPv6Enable\": 0,\n \"PublicAddresses\": [],\n \"JumboEnable\": 0,\n \"HighPrecisionBFDEnable\": 0,\n \"TencentBackupAddress\": \"192.168.0.2/29\",\n \"NetworkType\": \"CCN\",\n \"RouteType\": \"BGP\",\n \"BgpPeer\": {\n \"Asn\": 65120,\n \"AuthKey\": \"tencent\"\n },\n \"RouteFilterPrefixes\": [],\n \"BgpStatus\": {\n \"TencentAddressBgpState\": \"Established\",\n \"TencentBackupAddressBgpState\": \"Connect\"\n },\n \"TencentIPv6Address\": \"\",\n \"TencentBackupIPv6Address\": \"\",\n \"CustomerIPv6Address\": \"\",\n \"BgpIPv6Status\": {\n \"TencentAddressBgpState\": \"\",\n \"TencentBackupAddressBgpState\": \"\"\n }\n },\n \"RequestId\": \"8ae32da8-db96-400f-908e-0de2c89e96ea\"\n }\n}",
|
106
106
|
"title": "查询专用通道扩展信息"
|
107
107
|
}
|
108
108
|
],
|
@@ -214,7 +214,7 @@
|
|
214
214
|
],
|
215
215
|
"RejectDirectConnectTunnel": [
|
216
216
|
{
|
217
|
-
"document": "",
|
217
|
+
"document": "拒绝专用通道申请。",
|
218
218
|
"input": "https://dc.tencentcloudapi.com/?Action=RejectDirectConnectTunnel\n&DirectConnectTunnelId=dcx-abcdefgh\n&<公共请求参数>",
|
219
219
|
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
220
220
|
"title": "拒绝专用通道申请"
|
@@ -1094,7 +1094,7 @@
|
|
1094
1094
|
"example": "1234qweri#",
|
1095
1095
|
"member": "string",
|
1096
1096
|
"name": "Password",
|
1097
|
-
"required":
|
1097
|
+
"required": false,
|
1098
1098
|
"type": "string"
|
1099
1099
|
},
|
1100
1100
|
{
|
@@ -1141,6 +1141,15 @@
|
|
1141
1141
|
"name": "MaxUserConnections",
|
1142
1142
|
"required": false,
|
1143
1143
|
"type": "int"
|
1144
|
+
},
|
1145
|
+
{
|
1146
|
+
"disabled": false,
|
1147
|
+
"document": "使用GetPublicKey返回的RSA2048公钥加密后的密码",
|
1148
|
+
"example": "+5DzNPbJ5s6e/SkAFgMKQ4ezgmIyKqwHR/TtkwCQP5oFzYTpXJC6iEYVkAmlbreL8XX2I/YdNsqfy184B5sKt7LcfcvTCDspbQrDlRawvcWU0lLxvSpBgL4zXlixxOIR5UmC6lvSJFHOdMzoeK2UKGuV2EG3BMuvVthHAKaFDEQh5C5UP5FsN8G+Zsf27tofNm6KRFrQksNcYvFqMEnnGWV4luXISbJI0yK0m6kyKJSAgtHtDvsGBbJ1fA3RO1p5K/usvARNPB1jzjK5TJtG5eFDsPLXDHwiHh8clQpSLhYj531Ba1uXi9yL1Zkhoc0lf4y2xoJU3N+ce+6IAfJiaw==",
|
1149
|
+
"member": "string",
|
1150
|
+
"name": "EncryptedPassword",
|
1151
|
+
"required": false,
|
1152
|
+
"type": "string"
|
1144
1153
|
}
|
1145
1154
|
],
|
1146
1155
|
"type": "object"
|
@@ -8163,7 +8172,16 @@
|
|
8163
8172
|
"example": "abcd8765_.",
|
8164
8173
|
"member": "string",
|
8165
8174
|
"name": "Password",
|
8166
|
-
"required":
|
8175
|
+
"required": false,
|
8176
|
+
"type": "string"
|
8177
|
+
},
|
8178
|
+
{
|
8179
|
+
"disabled": false,
|
8180
|
+
"document": "使用GetPublicKey返回的RSA2048公钥加密后的密码,加密算法是PKCS1v15",
|
8181
|
+
"example": "+5DzNPbJ5s6e/SkAFgMKQ4ezgmIyKqwHR/TtkwCQP5oFzYTpXJC6iEYVkAmlbreL8XX2I/YdNsqfy184B5sKt7LcfcvTCDspbQrDlRawvcWU0lLxvSpBgL4zXlixxOIR5UmC6lvSJFHOdMzoeK2UKGuV2EG3BMuvVthHAKaFDEQh5C5UP5FsN8G+Zsf27tofNm6KRFrQksNcYvFqMEnnGWV4luXISbJI0yK0m6kyKJSAgtHtDvsGBbJ1fA3RO1p5K/usvARNPB1jzjK5TJtG5eFDsPLXDHwiHh8clQpSLhYj531Ba1uXi9yL1Zkhoc0lf4y2xoJU3N+ce+6IAfJiaw==",
|
8182
|
+
"member": "string",
|
8183
|
+
"name": "EncryptedPassword",
|
8184
|
+
"required": false,
|
8167
8185
|
"type": "string"
|
8168
8186
|
}
|
8169
8187
|
],
|
tccli/services/dlc/dlc_client.py
CHANGED
@@ -4489,6 +4489,58 @@ def doCreateCHDFSBindingProduct(args, parsed_globals):
|
|
4489
4489
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4490
4490
|
|
4491
4491
|
|
4492
|
+
def doQueryInternalTableWarehouse(args, parsed_globals):
|
4493
|
+
g_param = parse_global_arg(parsed_globals)
|
4494
|
+
|
4495
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4496
|
+
cred = credential.CVMRoleCredential()
|
4497
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4498
|
+
cred = credential.STSAssumeRoleCredential(
|
4499
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4500
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4501
|
+
)
|
4502
|
+
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):
|
4503
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4504
|
+
else:
|
4505
|
+
cred = credential.Credential(
|
4506
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4507
|
+
)
|
4508
|
+
http_profile = HttpProfile(
|
4509
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4510
|
+
reqMethod="POST",
|
4511
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4512
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4513
|
+
)
|
4514
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4515
|
+
if g_param[OptionsDefine.Language]:
|
4516
|
+
profile.language = g_param[OptionsDefine.Language]
|
4517
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4518
|
+
client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
|
4519
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4520
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4521
|
+
model = models.QueryInternalTableWarehouseRequest()
|
4522
|
+
model.from_json_string(json.dumps(args))
|
4523
|
+
start_time = time.time()
|
4524
|
+
while True:
|
4525
|
+
rsp = client.QueryInternalTableWarehouse(model)
|
4526
|
+
result = rsp.to_json_string()
|
4527
|
+
try:
|
4528
|
+
json_obj = json.loads(result)
|
4529
|
+
except TypeError as e:
|
4530
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4531
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4532
|
+
break
|
4533
|
+
cur_time = time.time()
|
4534
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4535
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4536
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4537
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4538
|
+
else:
|
4539
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4540
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4541
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4542
|
+
|
4543
|
+
|
4492
4544
|
def doDescribeDatasourceConnection(args, parsed_globals):
|
4493
4545
|
g_param = parse_global_arg(parsed_globals)
|
4494
4546
|
|
@@ -5113,6 +5165,58 @@ def doDeleteUser(args, parsed_globals):
|
|
5113
5165
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5114
5166
|
|
5115
5167
|
|
5168
|
+
def doDeleteTable(args, parsed_globals):
|
5169
|
+
g_param = parse_global_arg(parsed_globals)
|
5170
|
+
|
5171
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5172
|
+
cred = credential.CVMRoleCredential()
|
5173
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5174
|
+
cred = credential.STSAssumeRoleCredential(
|
5175
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5176
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5177
|
+
)
|
5178
|
+
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):
|
5179
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5180
|
+
else:
|
5181
|
+
cred = credential.Credential(
|
5182
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5183
|
+
)
|
5184
|
+
http_profile = HttpProfile(
|
5185
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5186
|
+
reqMethod="POST",
|
5187
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5188
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5189
|
+
)
|
5190
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5191
|
+
if g_param[OptionsDefine.Language]:
|
5192
|
+
profile.language = g_param[OptionsDefine.Language]
|
5193
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5194
|
+
client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
|
5195
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5196
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5197
|
+
model = models.DeleteTableRequest()
|
5198
|
+
model.from_json_string(json.dumps(args))
|
5199
|
+
start_time = time.time()
|
5200
|
+
while True:
|
5201
|
+
rsp = client.DeleteTable(model)
|
5202
|
+
result = rsp.to_json_string()
|
5203
|
+
try:
|
5204
|
+
json_obj = json.loads(result)
|
5205
|
+
except TypeError as e:
|
5206
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5207
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5208
|
+
break
|
5209
|
+
cur_time = time.time()
|
5210
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5211
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5212
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5213
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5214
|
+
else:
|
5215
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5216
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5217
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5218
|
+
|
5219
|
+
|
5116
5220
|
def doDescribeEngineUsageInfo(args, parsed_globals):
|
5117
5221
|
g_param = parse_global_arg(parsed_globals)
|
5118
5222
|
|
@@ -7446,6 +7550,7 @@ ACTION_MAP = {
|
|
7446
7550
|
"DropDMSPartitions": doDropDMSPartitions,
|
7447
7551
|
"CreateWorkGroup": doCreateWorkGroup,
|
7448
7552
|
"CreateCHDFSBindingProduct": doCreateCHDFSBindingProduct,
|
7553
|
+
"QueryInternalTableWarehouse": doQueryInternalTableWarehouse,
|
7449
7554
|
"DescribeDatasourceConnection": doDescribeDatasourceConnection,
|
7450
7555
|
"CheckDataEngineImageCanBeRollback": doCheckDataEngineImageCanBeRollback,
|
7451
7556
|
"CancelSparkSessionBatchSQL": doCancelSparkSessionBatchSQL,
|
@@ -7458,6 +7563,7 @@ ACTION_MAP = {
|
|
7458
7563
|
"CheckDataEngineConfigPairsValidity": doCheckDataEngineConfigPairsValidity,
|
7459
7564
|
"DeleteDataEngine": doDeleteDataEngine,
|
7460
7565
|
"DeleteUser": doDeleteUser,
|
7566
|
+
"DeleteTable": doDeleteTable,
|
7461
7567
|
"DescribeEngineUsageInfo": doDescribeEngineUsageInfo,
|
7462
7568
|
"DescribeTasksOverview": doDescribeTasksOverview,
|
7463
7569
|
"UpdateDataEngineConfig": doUpdateDataEngineConfig,
|