tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1393.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/ai3d/v20250513/api.json +2 -2
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/cdb/v20170320/api.json +1 -1
- tccli/services/cdn/v20180606/api.json +46 -9
- tccli/services/clb/v20180317/api.json +9 -0
- tccli/services/csip/v20221121/api.json +1 -1
- tccli/services/dbbrain/dbbrain_client.py +136 -30
- tccli/services/dbbrain/v20210527/api.json +243 -0
- tccli/services/dbbrain/v20210527/examples.json +16 -0
- tccli/services/dsgc/v20190723/api.json +73 -15
- tccli/services/eb/v20210416/api.json +28 -1
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +182 -0
- tccli/services/es/v20180416/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +2 -2
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/gwlb/v20240906/api.json +70 -0
- tccli/services/lcic/v20220817/api.json +49 -3
- tccli/services/lke/lke_client.py +53 -0
- tccli/services/lke/v20231130/api.json +669 -206
- tccli/services/lke/v20231130/examples.json +14 -6
- tccli/services/mps/v20190612/api.json +288 -8
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/oceanus/oceanus_client.py +212 -0
- tccli/services/oceanus/v20190422/api.json +294 -0
- tccli/services/oceanus/v20190422/examples.json +32 -0
- tccli/services/redis/v20180412/api.json +80 -50
- tccli/services/redis/v20180412/examples.json +2 -2
- tccli/services/sms/v20190711/api.json +1 -1
- tccli/services/sms/v20210111/api.json +1 -1
- tccli/services/tat/v20201028/api.json +12 -2
- tccli/services/tcss/v20201101/api.json +6 -6
- tccli/services/tcss/v20201101/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +4 -4
- tccli/services/tione/v20211111/examples.json +2 -2
- tccli/services/vod/v20180717/api.json +6 -6
- tccli/services/vtc/v20240223/api.json +13 -13
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/RECORD +44 -44
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/es/es_client.py
CHANGED
@@ -3191,6 +3191,58 @@ def doDeleteLogstashPipelines(args, parsed_globals):
|
|
3191
3191
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3192
3192
|
|
3193
3193
|
|
3194
|
+
def doExportIpTraceLog(args, parsed_globals):
|
3195
|
+
g_param = parse_global_arg(parsed_globals)
|
3196
|
+
|
3197
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3198
|
+
cred = credential.CVMRoleCredential()
|
3199
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3200
|
+
cred = credential.STSAssumeRoleCredential(
|
3201
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3202
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3203
|
+
)
|
3204
|
+
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):
|
3205
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3206
|
+
else:
|
3207
|
+
cred = credential.Credential(
|
3208
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3209
|
+
)
|
3210
|
+
http_profile = HttpProfile(
|
3211
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3212
|
+
reqMethod="POST",
|
3213
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3214
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3215
|
+
)
|
3216
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3217
|
+
if g_param[OptionsDefine.Language]:
|
3218
|
+
profile.language = g_param[OptionsDefine.Language]
|
3219
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3220
|
+
client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
|
3221
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3222
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3223
|
+
model = models.ExportIpTraceLogRequest()
|
3224
|
+
model.from_json_string(json.dumps(args))
|
3225
|
+
start_time = time.time()
|
3226
|
+
while True:
|
3227
|
+
rsp = client.ExportIpTraceLog(model)
|
3228
|
+
result = rsp.to_json_string()
|
3229
|
+
try:
|
3230
|
+
json_obj = json.loads(result)
|
3231
|
+
except TypeError as e:
|
3232
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3233
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3234
|
+
break
|
3235
|
+
cur_time = time.time()
|
3236
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3237
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3238
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3239
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3240
|
+
else:
|
3241
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3242
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3243
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3244
|
+
|
3245
|
+
|
3194
3246
|
def doUpgradeLicense(args, parsed_globals):
|
3195
3247
|
g_param = parse_global_arg(parsed_globals)
|
3196
3248
|
|
@@ -3733,6 +3785,7 @@ ACTION_MAP = {
|
|
3733
3785
|
"DeleteIndex": doDeleteIndex,
|
3734
3786
|
"SaveAndDeployLogstashPipeline": doSaveAndDeployLogstashPipeline,
|
3735
3787
|
"DeleteLogstashPipelines": doDeleteLogstashPipelines,
|
3788
|
+
"ExportIpTraceLog": doExportIpTraceLog,
|
3736
3789
|
"UpgradeLicense": doUpgradeLicense,
|
3737
3790
|
"DescribeInstancePluginList": doDescribeInstancePluginList,
|
3738
3791
|
"DescribeServerlessInstances": doDescribeServerlessInstances,
|
@@ -245,6 +245,13 @@
|
|
245
245
|
"output": "DiagnoseInstanceResponse",
|
246
246
|
"status": "online"
|
247
247
|
},
|
248
|
+
"ExportIpTraceLog": {
|
249
|
+
"document": "查询IP溯源日志原始数据",
|
250
|
+
"input": "ExportIpTraceLogRequest",
|
251
|
+
"name": "导出IP溯源日志",
|
252
|
+
"output": "ExportIpTraceLogResponse",
|
253
|
+
"status": "online"
|
254
|
+
},
|
248
255
|
"GetDiagnoseSettings": {
|
249
256
|
"document": "查看智能运维配置",
|
250
257
|
"input": "GetDiagnoseSettingsRequest",
|
@@ -5351,6 +5358,142 @@
|
|
5351
5358
|
],
|
5352
5359
|
"usage": "in"
|
5353
5360
|
},
|
5361
|
+
"ExportIpTraceLogRequest": {
|
5362
|
+
"document": "ExportIpTraceLog请求参数结构体",
|
5363
|
+
"members": [
|
5364
|
+
{
|
5365
|
+
"disabled": false,
|
5366
|
+
"document": "ES集群ID",
|
5367
|
+
"example": "es-xasdsfsa",
|
5368
|
+
"member": "string",
|
5369
|
+
"name": "InstanceId",
|
5370
|
+
"required": true,
|
5371
|
+
"type": "string"
|
5372
|
+
},
|
5373
|
+
{
|
5374
|
+
"disabled": false,
|
5375
|
+
"document": "开始时间",
|
5376
|
+
"example": "2020-12-28 14:37:36",
|
5377
|
+
"member": "string",
|
5378
|
+
"name": "StartTime",
|
5379
|
+
"required": false,
|
5380
|
+
"type": "string"
|
5381
|
+
},
|
5382
|
+
{
|
5383
|
+
"disabled": false,
|
5384
|
+
"document": "结束时间",
|
5385
|
+
"example": "2020-12-28 14:37:36",
|
5386
|
+
"member": "string",
|
5387
|
+
"name": "EndTime",
|
5388
|
+
"required": false,
|
5389
|
+
"type": "string"
|
5390
|
+
},
|
5391
|
+
{
|
5392
|
+
"disabled": false,
|
5393
|
+
"document": "起始偏移量",
|
5394
|
+
"example": "0",
|
5395
|
+
"member": "int64",
|
5396
|
+
"name": "Offset",
|
5397
|
+
"required": false,
|
5398
|
+
"type": "int"
|
5399
|
+
},
|
5400
|
+
{
|
5401
|
+
"disabled": false,
|
5402
|
+
"document": "数据条数",
|
5403
|
+
"example": "10",
|
5404
|
+
"member": "int64",
|
5405
|
+
"name": "Limit",
|
5406
|
+
"required": false,
|
5407
|
+
"type": "int"
|
5408
|
+
},
|
5409
|
+
{
|
5410
|
+
"disabled": false,
|
5411
|
+
"document": "访问IP",
|
5412
|
+
"example": "[\"127.0.0.1\"]",
|
5413
|
+
"member": "string",
|
5414
|
+
"name": "RemoteIp",
|
5415
|
+
"required": false,
|
5416
|
+
"type": "list"
|
5417
|
+
},
|
5418
|
+
{
|
5419
|
+
"disabled": false,
|
5420
|
+
"document": "Request/Response 请求/返回, 非必填",
|
5421
|
+
"example": "[\"Request\"]",
|
5422
|
+
"member": "string",
|
5423
|
+
"name": "TraceType",
|
5424
|
+
"required": false,
|
5425
|
+
"type": "list"
|
5426
|
+
},
|
5427
|
+
{
|
5428
|
+
"disabled": false,
|
5429
|
+
"document": "Public/Private 公网访问/内网访问, 非必填",
|
5430
|
+
"example": "[\"Public\"]",
|
5431
|
+
"member": "string",
|
5432
|
+
"name": "NetType",
|
5433
|
+
"required": false,
|
5434
|
+
"type": "list"
|
5435
|
+
},
|
5436
|
+
{
|
5437
|
+
"disabled": false,
|
5438
|
+
"document": "POST/GET/PUT/DELETE/HEAD/OPTIONS/PATCH/CONNECT/TRACE/CONNECT等, 非必填",
|
5439
|
+
"example": "[\"OK\",\"GET\"]",
|
5440
|
+
"member": "string",
|
5441
|
+
"name": "ReqTypeOrRspStatus",
|
5442
|
+
"required": false,
|
5443
|
+
"type": "list"
|
5444
|
+
},
|
5445
|
+
{
|
5446
|
+
"disabled": false,
|
5447
|
+
"document": "关键字模糊查询,支持Lucene Query String",
|
5448
|
+
"example": "message:abc",
|
5449
|
+
"member": "string",
|
5450
|
+
"name": "SearchKey",
|
5451
|
+
"required": false,
|
5452
|
+
"type": "string"
|
5453
|
+
},
|
5454
|
+
{
|
5455
|
+
"disabled": false,
|
5456
|
+
"document": "uri搜索",
|
5457
|
+
"example": "/index/_search",
|
5458
|
+
"member": "string",
|
5459
|
+
"name": "Uri",
|
5460
|
+
"required": false,
|
5461
|
+
"type": "string"
|
5462
|
+
},
|
5463
|
+
{
|
5464
|
+
"disabled": false,
|
5465
|
+
"document": "集群节点IP",
|
5466
|
+
"example": "[\"127.0.0.1\"]",
|
5467
|
+
"member": "string",
|
5468
|
+
"name": "NodeIp",
|
5469
|
+
"required": false,
|
5470
|
+
"type": "list"
|
5471
|
+
}
|
5472
|
+
],
|
5473
|
+
"type": "object"
|
5474
|
+
},
|
5475
|
+
"ExportIpTraceLogResponse": {
|
5476
|
+
"document": "ExportIpTraceLog返回参数结构体",
|
5477
|
+
"members": [
|
5478
|
+
{
|
5479
|
+
"disabled": false,
|
5480
|
+
"document": "IP时间列表",
|
5481
|
+
"example": "无",
|
5482
|
+
"member": "IpTimePair",
|
5483
|
+
"name": "IpTraceList",
|
5484
|
+
"output_required": false,
|
5485
|
+
"type": "list",
|
5486
|
+
"value_allowed_null": false
|
5487
|
+
},
|
5488
|
+
{
|
5489
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5490
|
+
"member": "string",
|
5491
|
+
"name": "RequestId",
|
5492
|
+
"type": "string"
|
5493
|
+
}
|
5494
|
+
],
|
5495
|
+
"type": "object"
|
5496
|
+
},
|
5354
5497
|
"Failures": {
|
5355
5498
|
"document": "索引备份失败的数据结构",
|
5356
5499
|
"members": [
|
@@ -7077,6 +7220,45 @@
|
|
7077
7220
|
],
|
7078
7221
|
"usage": "out"
|
7079
7222
|
},
|
7223
|
+
"IpTimePair": {
|
7224
|
+
"document": "节点IP、访问IP、访问时间",
|
7225
|
+
"members": [
|
7226
|
+
{
|
7227
|
+
"disabled": false,
|
7228
|
+
"document": "IP地址",
|
7229
|
+
"example": "127.0.0.1",
|
7230
|
+
"member": "string",
|
7231
|
+
"name": "Ip",
|
7232
|
+
"output_required": false,
|
7233
|
+
"required": false,
|
7234
|
+
"type": "string",
|
7235
|
+
"value_allowed_null": false
|
7236
|
+
},
|
7237
|
+
{
|
7238
|
+
"disabled": false,
|
7239
|
+
"document": "时间戳,毫秒",
|
7240
|
+
"example": "173122344",
|
7241
|
+
"member": "int64",
|
7242
|
+
"name": "Timestamp",
|
7243
|
+
"output_required": false,
|
7244
|
+
"required": false,
|
7245
|
+
"type": "int",
|
7246
|
+
"value_allowed_null": false
|
7247
|
+
},
|
7248
|
+
{
|
7249
|
+
"disabled": false,
|
7250
|
+
"document": "集群节点IP",
|
7251
|
+
"example": "127.0.0.1",
|
7252
|
+
"member": "string",
|
7253
|
+
"name": "NodeIp",
|
7254
|
+
"output_required": false,
|
7255
|
+
"required": false,
|
7256
|
+
"type": "string",
|
7257
|
+
"value_allowed_null": false
|
7258
|
+
}
|
7259
|
+
],
|
7260
|
+
"usage": "both"
|
7261
|
+
},
|
7080
7262
|
"JobParam": {
|
7081
7263
|
"document": "智能运维诊断参数",
|
7082
7264
|
"members": [
|
@@ -280,6 +280,14 @@
|
|
280
280
|
"title": "智能运维诊断集群"
|
281
281
|
}
|
282
282
|
],
|
283
|
+
"ExportIpTraceLog": [
|
284
|
+
{
|
285
|
+
"document": "只返回IP和访问时间",
|
286
|
+
"input": "POST / HTTP/1.1\nHost: xxx.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExportIpTraceLog\n<公共请求参数>\n\n{\n \"InstanceId\": \"es-xxxxxxxx\",\n \"StartTime\": \"2024-08-11 12:00:00\",\n \"EndTime\": \"2024-08-11 12:10:00\",\n \"Offset\": 1,\n \"Limit\": 100,\n \"RemoteIp\": [\n \"127.0.0.1\"\n ],\n \"TraceType\": [\n \"Request\"\n ],\n \"NetType\": [\n \"Public\"\n ],\n \"ReqTypeOrRspStatus\": [\n \"POST\"\n ],\n \"SearchKey\": \"idx-abc\",\n \"NodeIp\": [\n \"127.0.0.1\"\n ]\n}",
|
287
|
+
"output": "{\n \"Response\": {\n \"IpTraceList\": [\n {\n \"NodeIp\": \"127.0.0.1\",\n \"Ip\": \"127.0.0.1\",\n \"Timestamp\": 171939488883\n }\n ],\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
288
|
+
"title": "导出IP溯源日志原始数据"
|
289
|
+
}
|
290
|
+
],
|
283
291
|
"GetDiagnoseSettings": [
|
284
292
|
{
|
285
293
|
"document": "查看智能运维配置",
|
@@ -16678,7 +16678,7 @@
|
|
16678
16678
|
"members": [
|
16679
16679
|
{
|
16680
16680
|
"disabled": false,
|
16681
|
-
"document": "
|
16681
|
+
"document": "法人姓名",
|
16682
16682
|
"example": "张三",
|
16683
16683
|
"member": "string",
|
16684
16684
|
"name": "LegalName",
|
@@ -16700,7 +16700,7 @@
|
|
16700
16700
|
},
|
16701
16701
|
{
|
16702
16702
|
"disabled": false,
|
16703
|
-
"document": "
|
16703
|
+
"document": "社会统一信用代码",
|
16704
16704
|
"example": "91110108772551611J",
|
16705
16705
|
"member": "string",
|
16706
16706
|
"name": "UnifiedSocialCreditCode",
|
@@ -449,7 +449,7 @@
|
|
449
449
|
"status": "online"
|
450
450
|
},
|
451
451
|
"CreateModifyAdminAuthorizationUrl": {
|
452
|
-
"document": "本接口(CreateModifyAdminAuthorizationUrl)用于重新上传超管授权书。\n\n注意:\n1. 重新上传超管授权书,必须是审核失败的情况下才能重新上传,可以通过回调[
|
452
|
+
"document": "本接口(CreateModifyAdminAuthorizationUrl)用于重新上传超管授权书。\n\n注意:\n1. 重新上传超管授权书,必须是审核失败的情况下才能重新上传,可以通过回调[!授权书失效回调](https://qian.tencent.com/developers/partner/callback_types_staffs#%E5%9B%9B-%E6%8E%88%E6%9D%83%E4%B9%A6%E5%AE%A1%E6%A0%B8%E7%BB%93%E6%9E%9C%E5%9B%9E%E8%B0%83)得到",
|
453
453
|
"input": "CreateModifyAdminAuthorizationUrlRequest",
|
454
454
|
"name": "生成变更超管授权书链接",
|
455
455
|
"output": "CreateModifyAdminAuthorizationUrlResponse",
|
@@ -1894,6 +1894,76 @@
|
|
1894
1894
|
"output_required": false,
|
1895
1895
|
"type": "list",
|
1896
1896
|
"value_allowed_null": false
|
1897
|
+
},
|
1898
|
+
{
|
1899
|
+
"disabled": false,
|
1900
|
+
"document": "流量分发方式\n\n- STATELESS:无状态\n- STATEFUL: 有状态",
|
1901
|
+
"example": "STATEFUL",
|
1902
|
+
"member": "string",
|
1903
|
+
"name": "ForwardingMode",
|
1904
|
+
"output_required": false,
|
1905
|
+
"type": "string",
|
1906
|
+
"value_allowed_null": false
|
1907
|
+
},
|
1908
|
+
{
|
1909
|
+
"disabled": false,
|
1910
|
+
"document": "TCP协议连接空闲超时时间,可配置60s-6000s,默认350s。",
|
1911
|
+
"example": "100",
|
1912
|
+
"member": "int64",
|
1913
|
+
"name": "TcpIdleConnectTimeout",
|
1914
|
+
"output_required": false,
|
1915
|
+
"type": "int",
|
1916
|
+
"value_allowed_null": false
|
1917
|
+
},
|
1918
|
+
{
|
1919
|
+
"disabled": false,
|
1920
|
+
"document": "其他协议连接空闲超时时间,可配置5s-180s,默认120s",
|
1921
|
+
"example": "100",
|
1922
|
+
"member": "int64",
|
1923
|
+
"name": "OthersIdleConnectTimeout",
|
1924
|
+
"output_required": false,
|
1925
|
+
"type": "int",
|
1926
|
+
"value_allowed_null": false
|
1927
|
+
},
|
1928
|
+
{
|
1929
|
+
"disabled": false,
|
1930
|
+
"document": "重新调度功能内的解绑后端服务开关,开关打开后解绑后端服务会触发重新调度。",
|
1931
|
+
"example": "True",
|
1932
|
+
"member": "bool",
|
1933
|
+
"name": "RescheduleUnbindRs",
|
1934
|
+
"output_required": false,
|
1935
|
+
"type": "bool",
|
1936
|
+
"value_allowed_null": false
|
1937
|
+
},
|
1938
|
+
{
|
1939
|
+
"disabled": false,
|
1940
|
+
"document": "解绑RS后开启重调度的时间,可配置0s-3600s,默认0s",
|
1941
|
+
"example": "100",
|
1942
|
+
"member": "int64",
|
1943
|
+
"name": "RescheduleUnbindRsStartTime",
|
1944
|
+
"output_required": false,
|
1945
|
+
"type": "int",
|
1946
|
+
"value_allowed_null": false
|
1947
|
+
},
|
1948
|
+
{
|
1949
|
+
"disabled": false,
|
1950
|
+
"document": "重新调度功能内的后端服务健康探测异常开关,开关打开后后端服务健康检查异常会触发重新调度。",
|
1951
|
+
"example": "True",
|
1952
|
+
"member": "bool",
|
1953
|
+
"name": "RescheduleUnhealthy",
|
1954
|
+
"output_required": false,
|
1955
|
+
"type": "bool",
|
1956
|
+
"value_allowed_null": false
|
1957
|
+
},
|
1958
|
+
{
|
1959
|
+
"disabled": false,
|
1960
|
+
"document": "后端服务健康探测异常后开启重调度的时间,可配置0s-3600s,默认0s",
|
1961
|
+
"example": "100",
|
1962
|
+
"member": "int64",
|
1963
|
+
"name": "RescheduleUnhealthyStartTime",
|
1964
|
+
"output_required": false,
|
1965
|
+
"type": "int",
|
1966
|
+
"value_allowed_null": false
|
1897
1967
|
}
|
1898
1968
|
],
|
1899
1969
|
"usage": "out"
|
@@ -1874,6 +1874,15 @@
|
|
1874
1874
|
"name": "SubtitlesTranscription",
|
1875
1875
|
"required": false,
|
1876
1876
|
"type": "int"
|
1877
|
+
},
|
1878
|
+
{
|
1879
|
+
"disabled": false,
|
1880
|
+
"document": "录制文件合并开关。0 关闭 1 开启 注:只有在一节课多次启用手动录制时,此功能才有效",
|
1881
|
+
"example": "0",
|
1882
|
+
"member": "uint64",
|
1883
|
+
"name": "RecordMerge",
|
1884
|
+
"required": false,
|
1885
|
+
"type": "int"
|
1877
1886
|
}
|
1878
1887
|
],
|
1879
1888
|
"type": "object"
|
@@ -4062,6 +4071,16 @@
|
|
4062
4071
|
"type": "list",
|
4063
4072
|
"value_allowed_null": false
|
4064
4073
|
},
|
4074
|
+
{
|
4075
|
+
"disabled": false,
|
4076
|
+
"document": "录制文件合并开关。0 关闭 1 开启 注:只有在一节课多次启用手动录制时,此功能才有效",
|
4077
|
+
"example": "0",
|
4078
|
+
"member": "uint64",
|
4079
|
+
"name": "RecordMerge",
|
4080
|
+
"output_required": false,
|
4081
|
+
"type": "int",
|
4082
|
+
"value_allowed_null": false
|
4083
|
+
},
|
4065
4084
|
{
|
4066
4085
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4067
4086
|
"member": "string",
|
@@ -6217,7 +6236,7 @@
|
|
6217
6236
|
{
|
6218
6237
|
"disabled": false,
|
6219
6238
|
"document": "助教Id列表。直播开始后不允许修改。",
|
6220
|
-
"example": "\t[azsdasfsdfsd
|
6239
|
+
"example": "\t[\"azsdasfsdfsd\",\"asefawefewf\"]",
|
6221
6240
|
"member": "string",
|
6222
6241
|
"name": "Assistants",
|
6223
6242
|
"required": false,
|
@@ -6226,7 +6245,7 @@
|
|
6226
6245
|
{
|
6227
6246
|
"disabled": false,
|
6228
6247
|
"document": "房间绑定的群组ID。直播开始后不允许修改。",
|
6229
|
-
"example": "
|
6248
|
+
"example": "7230232",
|
6230
6249
|
"member": "string",
|
6231
6250
|
"name": "GroupId",
|
6232
6251
|
"required": false,
|
@@ -6307,7 +6326,7 @@
|
|
6307
6326
|
{
|
6308
6327
|
"disabled": false,
|
6309
6328
|
"document": "伪直播链接",
|
6310
|
-
"example": "https://
|
6329
|
+
"example": "https://791263.vod-qcloud.com/425sfabhs7814/e9049470840ghjk739827/1INCKHSY9QMA.mp4",
|
6311
6330
|
"member": "string",
|
6312
6331
|
"name": "RecordLiveUrl",
|
6313
6332
|
"required": false,
|
@@ -6357,6 +6376,24 @@
|
|
6357
6376
|
"name": "SubtitlesTranscription",
|
6358
6377
|
"required": false,
|
6359
6378
|
"type": "int"
|
6379
|
+
},
|
6380
|
+
{
|
6381
|
+
"disabled": false,
|
6382
|
+
"document": "嘉宾Id列表。当圆桌会议模式(RoomType==3)时生效",
|
6383
|
+
"example": "\t[\"azsdasfsdfsd\",\"asefawefewf\"]",
|
6384
|
+
"member": "string",
|
6385
|
+
"name": "Guests",
|
6386
|
+
"required": false,
|
6387
|
+
"type": "list"
|
6388
|
+
},
|
6389
|
+
{
|
6390
|
+
"disabled": false,
|
6391
|
+
"document": "录制文件合并开关。0 关闭 1 开启 注:只有在一节课多次启用手动录制时,此功能才有效",
|
6392
|
+
"example": "0",
|
6393
|
+
"member": "uint64",
|
6394
|
+
"name": "RecordMerge",
|
6395
|
+
"required": false,
|
6396
|
+
"type": "int"
|
6360
6397
|
}
|
6361
6398
|
],
|
6362
6399
|
"type": "object"
|
@@ -6915,6 +6952,15 @@
|
|
6915
6952
|
"name": "Guests",
|
6916
6953
|
"required": false,
|
6917
6954
|
"type": "list"
|
6955
|
+
},
|
6956
|
+
{
|
6957
|
+
"disabled": false,
|
6958
|
+
"document": "录制文件合并开关。0 关闭 1 开启 注:只有在一节课多次启用手动录制时,此功能才有效",
|
6959
|
+
"example": "0",
|
6960
|
+
"member": "uint64",
|
6961
|
+
"name": "RecordMerge",
|
6962
|
+
"required": false,
|
6963
|
+
"type": "int"
|
6918
6964
|
}
|
6919
6965
|
],
|
6920
6966
|
"usage": "in"
|
tccli/services/lke/lke_client.py
CHANGED
@@ -2825,6 +2825,58 @@ def doUpdateSharedKnowledge(args, parsed_globals):
|
|
2825
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
2826
|
|
2827
2827
|
|
2828
|
+
def doListChannel(args, parsed_globals):
|
2829
|
+
g_param = parse_global_arg(parsed_globals)
|
2830
|
+
|
2831
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2832
|
+
cred = credential.CVMRoleCredential()
|
2833
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2834
|
+
cred = credential.STSAssumeRoleCredential(
|
2835
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2836
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2837
|
+
)
|
2838
|
+
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):
|
2839
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2840
|
+
else:
|
2841
|
+
cred = credential.Credential(
|
2842
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2843
|
+
)
|
2844
|
+
http_profile = HttpProfile(
|
2845
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2846
|
+
reqMethod="POST",
|
2847
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2848
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2849
|
+
)
|
2850
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2851
|
+
if g_param[OptionsDefine.Language]:
|
2852
|
+
profile.language = g_param[OptionsDefine.Language]
|
2853
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2854
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2856
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
+
model = models.ListChannelRequest()
|
2858
|
+
model.from_json_string(json.dumps(args))
|
2859
|
+
start_time = time.time()
|
2860
|
+
while True:
|
2861
|
+
rsp = client.ListChannel(model)
|
2862
|
+
result = rsp.to_json_string()
|
2863
|
+
try:
|
2864
|
+
json_obj = json.loads(result)
|
2865
|
+
except TypeError as e:
|
2866
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2867
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2868
|
+
break
|
2869
|
+
cur_time = time.time()
|
2870
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2871
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2872
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2873
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2874
|
+
else:
|
2875
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2876
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2877
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
|
+
|
2879
|
+
|
2828
2880
|
def doExportAttributeLabel(args, parsed_globals):
|
2829
2881
|
g_param = parse_global_arg(parsed_globals)
|
2830
2882
|
|
@@ -5594,6 +5646,7 @@ ACTION_MAP = {
|
|
5594
5646
|
"DeleteAgent": doDeleteAgent,
|
5595
5647
|
"CreateQACate": doCreateQACate,
|
5596
5648
|
"UpdateSharedKnowledge": doUpdateSharedKnowledge,
|
5649
|
+
"ListChannel": doListChannel,
|
5597
5650
|
"ExportAttributeLabel": doExportAttributeLabel,
|
5598
5651
|
"DescribeRefer": doDescribeRefer,
|
5599
5652
|
"DescribeKnowledgeUsage": doDescribeKnowledgeUsage,
|