tccli 3.0.1326.1__py2.py3-none-any.whl → 3.0.1327.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/ams/v20201229/api.json +9 -9
- tccli/services/cdb/v20170320/api.json +9 -9
- tccli/services/cdc/v20201214/api.json +5 -5
- tccli/services/cfs/v20190719/api.json +4 -4
- tccli/services/clb/clb_client.py +53 -0
- tccli/services/clb/v20180317/api.json +100 -0
- tccli/services/clb/v20180317/examples.json +8 -0
- tccli/services/emr/v20190103/api.json +19 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/gs/gs_client.py +167 -8
- tccli/services/gs/v20191118/api.json +269 -9
- tccli/services/gs/v20191118/examples.json +26 -2
- tccli/services/lowcode/v20210108/api.json +60 -0
- tccli/services/monitor/monitor_client.py +117 -11
- tccli/services/monitor/v20180724/api.json +151 -0
- tccli/services/monitor/v20180724/examples.json +16 -0
- tccli/services/mrs/v20200910/api.json +1 -1
- tccli/services/oceanus/v20190422/api.json +15 -5
- tccli/services/oceanus/v20190422/examples.json +8 -2
- tccli/services/privatedns/privatedns_client.py +53 -0
- tccli/services/privatedns/v20201028/api.json +179 -0
- tccli/services/privatedns/v20201028/examples.json +8 -0
- tccli/services/tcss/v20201101/api.json +190 -32
- tccli/services/tcss/v20201101/examples.json +6 -6
- tccli/services/tms/v20201229/api.json +2 -2
- tccli/services/tms/v20201229/examples.json +1 -1
- tccli/services/vm/v20210922/api.json +13 -13
- tccli/services/vm/v20210922/examples.json +2 -2
- tccli/services/vpc/v20170312/api.json +2 -2
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1327.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1327.1.dist-info}/RECORD +35 -35
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1327.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1327.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1326.1.dist-info → tccli-3.0.1327.1.dist-info}/license_files/LICENSE +0 -0
@@ -164,10 +164,16 @@
|
|
164
164
|
],
|
165
165
|
"DescribeJobEvents": [
|
166
166
|
{
|
167
|
-
"document": "",
|
168
|
-
"input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobEvents\n<公共请求参数>\n\n{\n \"RunningOrderIds\": [\n 1\n ],\n \"Types\": [\n \"1\",\n \"2\"\n ],\n \"EndTimestamp\": 1630933910,\n \"StartTimestamp\": 1630833910,\n \"JobId\": \"cql-
|
167
|
+
"document": "请求参数不包含 \"RunningOrderIds\"时,接口为查询作业事件接口",
|
168
|
+
"input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobEvents\n<公共请求参数>\n\n{\n \"RunningOrderIds\": [\n 1\n ],\n \"Types\": [\n \"1\",\n \"2\"\n ],\n \"EndTimestamp\": 1630933910,\n \"StartTimestamp\": 1630833910,\n \"JobId\": \"cql-xxx\"\n}",
|
169
169
|
"output": "{\n \"Response\": {\n \"RunningOrderIds\": [\n 1\n ],\n \"Events\": [\n {\n \"RunningOrderId\": 1,\n \"Description\": \"作业停止事件\",\n \"Timestamp\": 1630933810,\n \"Type\": \"11\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"123345be-e89b-52f3-a456-426616274040\"\n }\n}",
|
170
170
|
"title": "查询作业事件"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"document": "请求参数不包含 \"RunningOrderIds\"时,接口为查询作业实例ID接口",
|
174
|
+
"input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobEvents\n<公共请求参数>\n\n{\n \"WorkSpaceId\": \"space-xxxx\",\n \"JobId\": \"cql-xxxx\",\n \"StartTimestamp\": 1747994802,\n \"EndTimestamp\": 1748513202\n}",
|
175
|
+
"output": "{\n \"Response\": {\n \"Events\": null,\n \"RequestId\": \"a908a65e-aa94-4406-acc4-2aa64edb40c6\",\n \"RunningOrderIds\": [\n 10,\n 9,\n 8,\n 7\n ],\n \"Versions\": [\n 1,\n 2,\n 3\n ],\n \"TotalCount\": 0\n }\n}",
|
176
|
+
"title": "查询作业运行实例ID"
|
171
177
|
}
|
172
178
|
],
|
173
179
|
"DescribeJobRuntimeInfo": [
|
@@ -953,6 +953,58 @@ def doDescribeAccountVpcList(args, parsed_globals):
|
|
953
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
954
|
|
955
955
|
|
956
|
+
def doDescribeRecord(args, parsed_globals):
|
957
|
+
g_param = parse_global_arg(parsed_globals)
|
958
|
+
|
959
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
960
|
+
cred = credential.CVMRoleCredential()
|
961
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
962
|
+
cred = credential.STSAssumeRoleCredential(
|
963
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
964
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
965
|
+
)
|
966
|
+
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):
|
967
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
968
|
+
else:
|
969
|
+
cred = credential.Credential(
|
970
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
971
|
+
)
|
972
|
+
http_profile = HttpProfile(
|
973
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
974
|
+
reqMethod="POST",
|
975
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
976
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
977
|
+
)
|
978
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
979
|
+
if g_param[OptionsDefine.Language]:
|
980
|
+
profile.language = g_param[OptionsDefine.Language]
|
981
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
982
|
+
client = mod.PrivatednsClient(cred, g_param[OptionsDefine.Region], profile)
|
983
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
984
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
985
|
+
model = models.DescribeRecordRequest()
|
986
|
+
model.from_json_string(json.dumps(args))
|
987
|
+
start_time = time.time()
|
988
|
+
while True:
|
989
|
+
rsp = client.DescribeRecord(model)
|
990
|
+
result = rsp.to_json_string()
|
991
|
+
try:
|
992
|
+
json_obj = json.loads(result)
|
993
|
+
except TypeError as e:
|
994
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
995
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
996
|
+
break
|
997
|
+
cur_time = time.time()
|
998
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
999
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1000
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1001
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1002
|
+
else:
|
1003
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1004
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1005
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1006
|
+
|
1007
|
+
|
956
1008
|
def doModifyRecordsStatus(args, parsed_globals):
|
957
1009
|
g_param = parse_global_arg(parsed_globals)
|
958
1010
|
|
@@ -1294,6 +1346,7 @@ ACTION_MAP = {
|
|
1294
1346
|
"ModifyPrivateZoneVpc": doModifyPrivateZoneVpc,
|
1295
1347
|
"DeletePrivateZone": doDeletePrivateZone,
|
1296
1348
|
"DescribeAccountVpcList": doDescribeAccountVpcList,
|
1349
|
+
"DescribeRecord": doDescribeRecord,
|
1297
1350
|
"ModifyRecordsStatus": doModifyRecordsStatus,
|
1298
1351
|
"DeleteSpecifyPrivateZoneVpc": doDeleteSpecifyPrivateZoneVpc,
|
1299
1352
|
"DescribePrivateZoneService": doDescribePrivateZoneService,
|
@@ -119,6 +119,13 @@
|
|
119
119
|
"output": "DescribeQuotaUsageResponse",
|
120
120
|
"status": "online"
|
121
121
|
},
|
122
|
+
"DescribeRecord": {
|
123
|
+
"document": "获取私有域记录",
|
124
|
+
"input": "DescribeRecordRequest",
|
125
|
+
"name": "根据id获取私有域记录",
|
126
|
+
"output": "DescribeRecordResponse",
|
127
|
+
"status": "online"
|
128
|
+
},
|
122
129
|
"DescribeRequestData": {
|
123
130
|
"document": "获取私有域解析请求量",
|
124
131
|
"input": "DescribeRequestDataRequest",
|
@@ -1448,6 +1455,52 @@
|
|
1448
1455
|
],
|
1449
1456
|
"type": "object"
|
1450
1457
|
},
|
1458
|
+
"DescribeRecordRequest": {
|
1459
|
+
"document": "DescribeRecord请求参数结构体",
|
1460
|
+
"members": [
|
1461
|
+
{
|
1462
|
+
"disabled": false,
|
1463
|
+
"document": "私有域ID",
|
1464
|
+
"example": "zone-abcdef",
|
1465
|
+
"member": "string",
|
1466
|
+
"name": "ZoneId",
|
1467
|
+
"required": true,
|
1468
|
+
"type": "string"
|
1469
|
+
},
|
1470
|
+
{
|
1471
|
+
"disabled": false,
|
1472
|
+
"document": "记录ID",
|
1473
|
+
"example": "10004567",
|
1474
|
+
"member": "string",
|
1475
|
+
"name": "RecordId",
|
1476
|
+
"required": true,
|
1477
|
+
"type": "string"
|
1478
|
+
}
|
1479
|
+
],
|
1480
|
+
"type": "object"
|
1481
|
+
},
|
1482
|
+
"DescribeRecordResponse": {
|
1483
|
+
"document": "DescribeRecord返回参数结构体",
|
1484
|
+
"members": [
|
1485
|
+
{
|
1486
|
+
"disabled": false,
|
1487
|
+
"document": "记录信息",
|
1488
|
+
"example": "无",
|
1489
|
+
"member": "RecordInfo",
|
1490
|
+
"name": "RecordInfo",
|
1491
|
+
"output_required": true,
|
1492
|
+
"type": "object",
|
1493
|
+
"value_allowed_null": false
|
1494
|
+
},
|
1495
|
+
{
|
1496
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1497
|
+
"member": "string",
|
1498
|
+
"name": "RequestId",
|
1499
|
+
"type": "string"
|
1500
|
+
}
|
1501
|
+
],
|
1502
|
+
"type": "object"
|
1503
|
+
},
|
1451
1504
|
"DescribeRequestDataRequest": {
|
1452
1505
|
"document": "DescribeRequestData请求参数结构体",
|
1453
1506
|
"members": [
|
@@ -2369,6 +2422,132 @@
|
|
2369
2422
|
],
|
2370
2423
|
"type": "object"
|
2371
2424
|
},
|
2425
|
+
"RecordInfo": {
|
2426
|
+
"document": "私有域信息",
|
2427
|
+
"members": [
|
2428
|
+
{
|
2429
|
+
"disabled": false,
|
2430
|
+
"document": "记录id",
|
2431
|
+
"example": "12076",
|
2432
|
+
"member": "string",
|
2433
|
+
"name": "RecordId",
|
2434
|
+
"output_required": true,
|
2435
|
+
"type": "string",
|
2436
|
+
"value_allowed_null": false
|
2437
|
+
},
|
2438
|
+
{
|
2439
|
+
"disabled": false,
|
2440
|
+
"document": "私有域id: zone-xxxxxxxx",
|
2441
|
+
"example": "zone-pckv03qy",
|
2442
|
+
"member": "string",
|
2443
|
+
"name": "ZoneId",
|
2444
|
+
"output_required": true,
|
2445
|
+
"type": "string",
|
2446
|
+
"value_allowed_null": false
|
2447
|
+
},
|
2448
|
+
{
|
2449
|
+
"disabled": false,
|
2450
|
+
"document": "子域名",
|
2451
|
+
"example": "www",
|
2452
|
+
"member": "string",
|
2453
|
+
"name": "SubDomain",
|
2454
|
+
"output_required": true,
|
2455
|
+
"type": "string",
|
2456
|
+
"value_allowed_null": false
|
2457
|
+
},
|
2458
|
+
{
|
2459
|
+
"disabled": false,
|
2460
|
+
"document": "记录类型,可选的记录类型为:\"A\", \"AAAA\", \"CNAME\", \"MX\", \"TXT\", \"PTR\"",
|
2461
|
+
"example": "A",
|
2462
|
+
"member": "string",
|
2463
|
+
"name": "RecordType",
|
2464
|
+
"output_required": true,
|
2465
|
+
"type": "string",
|
2466
|
+
"value_allowed_null": false
|
2467
|
+
},
|
2468
|
+
{
|
2469
|
+
"disabled": false,
|
2470
|
+
"document": "记录值",
|
2471
|
+
"example": "1.1.1.1",
|
2472
|
+
"member": "string",
|
2473
|
+
"name": "RecordValue",
|
2474
|
+
"output_required": true,
|
2475
|
+
"type": "string",
|
2476
|
+
"value_allowed_null": false
|
2477
|
+
},
|
2478
|
+
{
|
2479
|
+
"disabled": false,
|
2480
|
+
"document": "记录缓存时间,数值越小生效越快,取值1-86400s, 默认 600",
|
2481
|
+
"example": "300",
|
2482
|
+
"member": "int64",
|
2483
|
+
"name": "TTL",
|
2484
|
+
"output_required": true,
|
2485
|
+
"type": "int",
|
2486
|
+
"value_allowed_null": false
|
2487
|
+
},
|
2488
|
+
{
|
2489
|
+
"disabled": false,
|
2490
|
+
"document": "MX优先级:记录类型为MX时必填。取值范围:5,10,15,20,30,40,50",
|
2491
|
+
"example": "5",
|
2492
|
+
"member": "int64",
|
2493
|
+
"name": "MX",
|
2494
|
+
"output_required": false,
|
2495
|
+
"type": "int",
|
2496
|
+
"value_allowed_null": false
|
2497
|
+
},
|
2498
|
+
{
|
2499
|
+
"disabled": false,
|
2500
|
+
"document": "记录权重,值为1-100",
|
2501
|
+
"example": "1",
|
2502
|
+
"member": "int64",
|
2503
|
+
"name": "Weight",
|
2504
|
+
"output_required": false,
|
2505
|
+
"type": "int",
|
2506
|
+
"value_allowed_null": false
|
2507
|
+
},
|
2508
|
+
{
|
2509
|
+
"disabled": false,
|
2510
|
+
"document": "记录创建时间",
|
2511
|
+
"example": "2021-09-07 19:00:58",
|
2512
|
+
"member": "datetime",
|
2513
|
+
"name": "CreatedOn",
|
2514
|
+
"output_required": true,
|
2515
|
+
"type": "string",
|
2516
|
+
"value_allowed_null": false
|
2517
|
+
},
|
2518
|
+
{
|
2519
|
+
"disabled": false,
|
2520
|
+
"document": "记录更新时间",
|
2521
|
+
"example": "2021-09-07 19:00:58",
|
2522
|
+
"member": "datetime",
|
2523
|
+
"name": "UpdatedOn",
|
2524
|
+
"output_required": true,
|
2525
|
+
"type": "string",
|
2526
|
+
"value_allowed_null": false
|
2527
|
+
},
|
2528
|
+
{
|
2529
|
+
"disabled": false,
|
2530
|
+
"document": "0暂停,1启用",
|
2531
|
+
"example": "1",
|
2532
|
+
"member": "uint64",
|
2533
|
+
"name": "Enabled",
|
2534
|
+
"output_required": false,
|
2535
|
+
"type": "int",
|
2536
|
+
"value_allowed_null": false
|
2537
|
+
},
|
2538
|
+
{
|
2539
|
+
"disabled": false,
|
2540
|
+
"document": "备注",
|
2541
|
+
"example": "这是备注",
|
2542
|
+
"member": "string",
|
2543
|
+
"name": "Remark",
|
2544
|
+
"output_required": false,
|
2545
|
+
"type": "string",
|
2546
|
+
"value_allowed_null": false
|
2547
|
+
}
|
2548
|
+
],
|
2549
|
+
"usage": "out"
|
2550
|
+
},
|
2372
2551
|
"SubscribePrivateZoneServiceRequest": {
|
2373
2552
|
"document": "SubscribePrivateZoneService请求参数结构体",
|
2374
2553
|
"members": [],
|
@@ -160,6 +160,14 @@
|
|
160
160
|
"title": "查询用户额度使用情况"
|
161
161
|
}
|
162
162
|
],
|
163
|
+
"DescribeRecord": [
|
164
|
+
{
|
165
|
+
"document": "",
|
166
|
+
"input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRecord\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-abcd1234\",\n \"RecordId\": \"10008374\"\n}",
|
167
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"9b19115c-8732-4940-9199-98952a13f159\",\n \"RecordInfo\": {\n \"RecordId\": \"716\",\n \"ZoneId\": \"zone-o85nq234g\",\n \"SubDomain\": \"aaaa\",\n \"RecordType\": \"A\",\n \"RecordValue\": \"1.1.1.35\",\n \"TTL\": 300,\n \"MX\": 0,\n \"Enabled\": 1,\n \"CreatedOn\": \"2025-03-17 18:56:16\",\n \"UpdatedOn\": \"2025-05-27 16:25:23\",\n \"Remark\": \"\",\n \"Weight\": 20\n }\n }\n}",
|
168
|
+
"title": "获取私有域记录示例"
|
169
|
+
}
|
170
|
+
],
|
163
171
|
"DescribeRequestData": [
|
164
172
|
{
|
165
173
|
"document": "",
|