tccli 3.0.1348.1__py2.py3-none-any.whl → 3.0.1350.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/__init__.py +0 -76
- tccli/services/ai3d/v20250513/api.json +1 -1
- tccli/services/aiart/v20221229/api.json +2 -2
- tccli/services/autoscaling/v20180419/api.json +11 -0
- tccli/services/batch/v20170312/api.json +44 -0
- tccli/services/cdb/v20170320/api.json +8 -8
- tccli/services/cdb/v20170320/examples.json +1 -1
- tccli/services/cdn/v20180606/api.json +5 -5
- tccli/services/cdwch/v20200915/api.json +11 -1
- tccli/services/cdwdoris/v20211228/api.json +145 -7
- tccli/services/cfg/v20210820/api.json +20 -0
- tccli/services/cfs/v20190719/api.json +10 -10
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +272 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/ckafka/ckafka_client.py +0 -53
- tccli/services/ckafka/v20190819/api.json +0 -215
- tccli/services/ckafka/v20190819/examples.json +0 -8
- tccli/services/csip/csip_client.py +833 -144
- tccli/services/csip/v20221121/api.json +3304 -1436
- tccli/services/csip/v20221121/examples.json +105 -7
- tccli/services/ctem/v20231128/api.json +20 -0
- tccli/services/cvm/v20170312/api.json +3 -3
- tccli/services/cwp/v20180228/api.json +9 -0
- tccli/services/cwp/v20180228/examples.json +6 -0
- tccli/services/dts/v20211206/api.json +21 -1
- tccli/services/emr/v20190103/api.json +219 -4
- tccli/services/es/v20250101/api.json +22 -0
- tccli/services/ess/v20201111/api.json +10 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/faceid/v20180301/api.json +3 -3
- tccli/services/gs/v20191118/api.json +38 -0
- tccli/services/igtm/igtm_client.py +159 -0
- tccli/services/igtm/v20231024/api.json +577 -0
- tccli/services/igtm/v20231024/examples.json +24 -0
- tccli/services/iotexplorer/v20190423/api.json +3 -3
- tccli/services/lcic/lcic_client.py +53 -0
- tccli/services/lcic/v20220817/api.json +53 -0
- tccli/services/lcic/v20220817/examples.json +8 -0
- tccli/services/live/live_client.py +224 -65
- tccli/services/live/v20180801/api.json +275 -1
- tccli/services/live/v20180801/examples.json +25 -1
- tccli/services/lke/v20231130/api.json +248 -2
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/mrs/v20200910/api.json +10 -0
- tccli/services/nlp/nlp_client.py +4 -322
- tccli/services/nlp/v20190408/api.json +0 -459
- tccli/services/nlp/v20190408/examples.json +0 -48
- tccli/services/ocr/v20181119/api.json +60 -5
- tccli/services/omics/v20221128/api.json +41 -3
- tccli/services/redis/v20180412/api.json +6 -6
- tccli/services/redis/v20180412/examples.json +1 -1
- tccli/services/ses/v20201002/api.json +100 -5
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcb/v20180608/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +19 -0
- tccli/services/teo/teo_client.py +281 -16
- tccli/services/teo/v20220901/api.json +611 -6
- tccli/services/teo/v20220901/examples.json +48 -2
- tccli/services/tione/v20211111/api.json +16 -0
- tccli/services/tke/tke_client.py +57 -4
- tccli/services/tke/v20180525/api.json +24 -24
- tccli/services/tke/v20220501/api.json +52 -0
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tmt/v20180321/api.json +4 -4
- tccli/services/tsf/v20180326/api.json +4 -4
- tccli/services/vclm/v20240523/api.json +2 -2
- tccli/services/vod/v20180717/api.json +5 -5
- tccli/services/vod/v20180717/examples.json +9 -9
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/vrs/v20200824/api.json +1 -1
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/RECORD +78 -180
- tccli/services/cis/__init__.py +0 -4
- tccli/services/cis/cis_client.py +0 -525
- tccli/services/cis/v20180408/api.json +0 -737
- tccli/services/cis/v20180408/examples.json +0 -93
- tccli/services/dataintegration/__init__.py +0 -4
- tccli/services/dataintegration/dataintegration_client.py +0 -207
- tccli/services/dataintegration/v20220613/api.json +0 -87
- tccli/services/dataintegration/v20220613/examples.json +0 -13
- tccli/services/dtf/__init__.py +0 -4
- tccli/services/dtf/dtf_client.py +0 -207
- tccli/services/dtf/v20200506/api.json +0 -274
- tccli/services/dtf/v20200506/examples.json +0 -13
- tccli/services/gpm/__init__.py +0 -4
- tccli/services/gpm/gpm_client.py +0 -1108
- tccli/services/gpm/v20200820/api.json +0 -1959
- tccli/services/gpm/v20200820/examples.json +0 -149
- tccli/services/gse/__init__.py +0 -4
- tccli/services/gse/gse_client.py +0 -4076
- tccli/services/gse/v20191112/api.json +0 -7095
- tccli/services/gse/v20191112/examples.json +0 -615
- tccli/services/iecp/__init__.py +0 -4
- tccli/services/iecp/iecp_client.py +0 -4500
- tccli/services/iecp/v20210914/api.json +0 -9770
- tccli/services/iecp/v20210914/examples.json +0 -691
- tccli/services/iir/__init__.py +0 -4
- tccli/services/iir/iir_client.py +0 -207
- tccli/services/iir/v20200417/api.json +0 -204
- tccli/services/iir/v20200417/examples.json +0 -13
- tccli/services/iottid/__init__.py +0 -4
- tccli/services/iottid/iottid_client.py +0 -631
- tccli/services/iottid/v20190411/api.json +0 -553
- tccli/services/iottid/v20190411/examples.json +0 -95
- tccli/services/mgobe/__init__.py +0 -4
- tccli/services/mgobe/mgobe_client.py +0 -530
- tccli/services/mgobe/v20190929/api.json +0 -52
- tccli/services/mgobe/v20190929/examples.json +0 -13
- tccli/services/mgobe/v20201014/api.json +0 -671
- tccli/services/mgobe/v20201014/examples.json +0 -61
- tccli/services/mvj/__init__.py +0 -4
- tccli/services/mvj/mvj_client.py +0 -207
- tccli/services/mvj/v20190926/api.json +0 -123
- tccli/services/mvj/v20190926/examples.json +0 -19
- tccli/services/pds/__init__.py +0 -4
- tccli/services/pds/pds_client.py +0 -260
- tccli/services/pds/v20210701/api.json +0 -193
- tccli/services/pds/v20210701/examples.json +0 -21
- tccli/services/smpn/__init__.py +0 -4
- tccli/services/smpn/smpn_client.py +0 -260
- tccli/services/smpn/v20190822/api.json +0 -191
- tccli/services/smpn/v20190822/examples.json +0 -21
- tccli/services/solar/__init__.py +0 -4
- tccli/services/solar/solar_client.py +0 -1055
- tccli/services/solar/v20181011/api.json +0 -1760
- tccli/services/solar/v20181011/examples.json +0 -125
- tccli/services/tan/__init__.py +0 -4
- tccli/services/tan/tan_client.py +0 -207
- tccli/services/tan/v20220420/api.json +0 -65
- tccli/services/tan/v20220420/examples.json +0 -19
- tccli/services/tav/__init__.py +0 -4
- tccli/services/tav/tav_client.py +0 -366
- tccli/services/tav/v20190118/api.json +0 -262
- tccli/services/tav/v20190118/examples.json +0 -37
- tccli/services/tbm/__init__.py +0 -4
- tccli/services/tbm/tbm_client.py +0 -631
- tccli/services/tbm/v20180129/api.json +0 -1037
- tccli/services/tbm/v20180129/examples.json +0 -77
- tccli/services/tcex/__init__.py +0 -4
- tccli/services/tcex/tcex_client.py +0 -260
- tccli/services/tcex/v20200727/api.json +0 -158
- tccli/services/tcex/v20200727/examples.json +0 -21
- tccli/services/tci/__init__.py +0 -4
- tccli/services/tci/tci_client.py +0 -2327
- tccli/services/tci/v20190318/api.json +0 -4958
- tccli/services/tci/v20190318/examples.json +0 -333
- tccli/services/tic/__init__.py +0 -4
- tccli/services/tic/tic_client.py +0 -843
- tccli/services/tic/v20201117/api.json +0 -1067
- tccli/services/tic/v20201117/examples.json +0 -121
- tccli/services/ticm/__init__.py +0 -4
- tccli/services/ticm/ticm_client.py +0 -313
- tccli/services/ticm/v20181127/api.json +0 -1391
- tccli/services/ticm/v20181127/examples.json +0 -53
- tccli/services/tics/__init__.py +0 -4
- tccli/services/tics/tics_client.py +0 -366
- tccli/services/tics/v20181115/api.json +0 -694
- tccli/services/tics/v20181115/examples.json +0 -37
- tccli/services/tiems/__init__.py +0 -4
- tccli/services/tiems/tiems_client.py +0 -1479
- tccli/services/tiems/v20190416/api.json +0 -3144
- tccli/services/tiems/v20190416/examples.json +0 -217
- tccli/services/trdp/__init__.py +0 -4
- tccli/services/trdp/trdp_client.py +0 -207
- tccli/services/trdp/v20220726/api.json +0 -843
- tccli/services/trdp/v20220726/examples.json +0 -13
- tccli/services/ump/__init__.py +0 -4
- tccli/services/ump/ump_client.py +0 -1055
- tccli/services/ump/v20200918/api.json +0 -2168
- tccli/services/ump/v20200918/examples.json +0 -141
- tccli/services/youmall/__init__.py +0 -4
- tccli/services/youmall/v20180228/api.json +0 -3572
- tccli/services/youmall/v20180228/examples.json +0 -313
- tccli/services/youmall/youmall_client.py +0 -1797
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1348.1.dist-info → tccli-3.0.1350.1.dist-info}/license_files/LICENSE +0 -0
@@ -43,11 +43,11 @@
|
|
43
43
|
"status": "online"
|
44
44
|
},
|
45
45
|
"CancelAssignTWeCallLicense": {
|
46
|
-
"document": "取消分配",
|
46
|
+
"document": "业务已下线\n\n取消分配",
|
47
47
|
"input": "CancelAssignTWeCallLicenseRequest",
|
48
48
|
"name": "取消分配TWeCall",
|
49
49
|
"output": "CancelAssignTWeCallLicenseResponse",
|
50
|
-
"status": "
|
50
|
+
"status": "deprecated"
|
51
51
|
},
|
52
52
|
"ChangeP2PRoute": {
|
53
53
|
"document": "p2p路线切换(此接口目前处于内测接口,可以联系申请加白 )",
|
@@ -127,7 +127,7 @@
|
|
127
127
|
"status": "online"
|
128
128
|
},
|
129
129
|
"CreateFreeCloudStorage": {
|
130
|
-
"document": "
|
130
|
+
"document": "开通云存卡服务",
|
131
131
|
"input": "CreateFreeCloudStorageRequest",
|
132
132
|
"name": "开通云存卡服务",
|
133
133
|
"output": "CreateFreeCloudStorageResponse",
|
@@ -1681,6 +1681,58 @@ def doDescribeRoom(args, parsed_globals):
|
|
1681
1681
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1682
|
|
1683
1683
|
|
1684
|
+
def doDescribeUserDetail(args, parsed_globals):
|
1685
|
+
g_param = parse_global_arg(parsed_globals)
|
1686
|
+
|
1687
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1688
|
+
cred = credential.CVMRoleCredential()
|
1689
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1690
|
+
cred = credential.STSAssumeRoleCredential(
|
1691
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1692
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1693
|
+
)
|
1694
|
+
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):
|
1695
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1696
|
+
else:
|
1697
|
+
cred = credential.Credential(
|
1698
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1699
|
+
)
|
1700
|
+
http_profile = HttpProfile(
|
1701
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1702
|
+
reqMethod="POST",
|
1703
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1704
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1705
|
+
)
|
1706
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1707
|
+
if g_param[OptionsDefine.Language]:
|
1708
|
+
profile.language = g_param[OptionsDefine.Language]
|
1709
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1710
|
+
client = mod.LcicClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1712
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
+
model = models.DescribeUserDetailRequest()
|
1714
|
+
model.from_json_string(json.dumps(args))
|
1715
|
+
start_time = time.time()
|
1716
|
+
while True:
|
1717
|
+
rsp = client.DescribeUserDetail(model)
|
1718
|
+
result = rsp.to_json_string()
|
1719
|
+
try:
|
1720
|
+
json_obj = json.loads(result)
|
1721
|
+
except TypeError as e:
|
1722
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1723
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1724
|
+
break
|
1725
|
+
cur_time = time.time()
|
1726
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1727
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1728
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1729
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1730
|
+
else:
|
1731
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1732
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1733
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
|
+
|
1735
|
+
|
1684
1736
|
def doDescribeDocuments(args, parsed_globals):
|
1685
1737
|
g_param = parse_global_arg(parsed_globals)
|
1686
1738
|
|
@@ -3700,6 +3752,7 @@ ACTION_MAP = {
|
|
3700
3752
|
"GetRoomEvent": doGetRoomEvent,
|
3701
3753
|
"DeleteUser": doDeleteUser,
|
3702
3754
|
"DescribeRoom": doDescribeRoom,
|
3755
|
+
"DescribeUserDetail": doDescribeUserDetail,
|
3703
3756
|
"DescribeDocuments": doDescribeDocuments,
|
3704
3757
|
"SendRoomNormalMessage": doSendRoomNormalMessage,
|
3705
3758
|
"DescribeRecord": doDescribeRecord,
|
@@ -315,6 +315,13 @@
|
|
315
315
|
"output": "DescribeUserResponse",
|
316
316
|
"status": "online"
|
317
317
|
},
|
318
|
+
"DescribeUserDetail": {
|
319
|
+
"document": "获取用户信息",
|
320
|
+
"input": "DescribeUserDetailRequest",
|
321
|
+
"name": "获取用户信息(新)",
|
322
|
+
"output": "DescribeUserDetailResponse",
|
323
|
+
"status": "online"
|
324
|
+
},
|
318
325
|
"DescribeWhiteBoardSnapshot": {
|
319
326
|
"document": "查询白板板书截图",
|
320
327
|
"input": "DescribeWhiteBoardSnapshotRequest",
|
@@ -4385,6 +4392,52 @@
|
|
4385
4392
|
],
|
4386
4393
|
"type": "object"
|
4387
4394
|
},
|
4395
|
+
"DescribeUserDetailRequest": {
|
4396
|
+
"document": "DescribeUserDetail请求参数结构体",
|
4397
|
+
"members": [
|
4398
|
+
{
|
4399
|
+
"disabled": false,
|
4400
|
+
"document": "用户id。支持通过 user_id 或 OriginId 查询用户信息,优先使用 user_id 进行查询。",
|
4401
|
+
"example": "2kJJBH6G1dfBFUJqXLh0Mg3ELLk",
|
4402
|
+
"member": "string",
|
4403
|
+
"name": "UserId",
|
4404
|
+
"required": false,
|
4405
|
+
"type": "string"
|
4406
|
+
},
|
4407
|
+
{
|
4408
|
+
"disabled": false,
|
4409
|
+
"document": "用户在客户系统的Id。支持通过 user_id 或 OriginId 查询用户信息,优先使用 user_id 进行查询(UserId不为空时,OriginId不生效)。",
|
4410
|
+
"example": "46528c8696ca",
|
4411
|
+
"member": "string",
|
4412
|
+
"name": "OriginId",
|
4413
|
+
"required": false,
|
4414
|
+
"type": "string"
|
4415
|
+
}
|
4416
|
+
],
|
4417
|
+
"type": "object"
|
4418
|
+
},
|
4419
|
+
"DescribeUserDetailResponse": {
|
4420
|
+
"document": "DescribeUserDetail返回参数结构体",
|
4421
|
+
"members": [
|
4422
|
+
{
|
4423
|
+
"disabled": false,
|
4424
|
+
"document": "当前获取用户信息数组列表",
|
4425
|
+
"example": "无",
|
4426
|
+
"member": "UserInfo",
|
4427
|
+
"name": "Users",
|
4428
|
+
"output_required": true,
|
4429
|
+
"type": "list",
|
4430
|
+
"value_allowed_null": false
|
4431
|
+
},
|
4432
|
+
{
|
4433
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4434
|
+
"member": "string",
|
4435
|
+
"name": "RequestId",
|
4436
|
+
"type": "string"
|
4437
|
+
}
|
4438
|
+
],
|
4439
|
+
"type": "object"
|
4440
|
+
},
|
4388
4441
|
"DescribeUserRequest": {
|
4389
4442
|
"document": "DescribeUser请求参数结构体",
|
4390
4443
|
"members": [
|
@@ -384,6 +384,14 @@
|
|
384
384
|
"title": "获取用户信息"
|
385
385
|
}
|
386
386
|
],
|
387
|
+
"DescribeUserDetail": [
|
388
|
+
{
|
389
|
+
"document": "",
|
390
|
+
"input": "POST / HTTP/1.1\nHost: lcic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserDetail\n\n{\n \"UserId\": \"2jatnsjdosdnjuT8l60980Rh50FP\",\n \"OriginId\": \"teacher8383\"\n}",
|
391
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"865810-31a6-4378-a6ea-d9b719552\",\n \"Users\": [\n {\n \"Avatar\": \"\",\n \"Name\": \"teacher8383\",\n \"OriginId\": \"teacher8383\",\n \"SdkAppId\": 39234193,\n \"UserId\": \"2jatnsjdosdnjuT8l60980Rh50FP\"\n }\n ]\n }\n}",
|
392
|
+
"title": "DescribeUserDetail"
|
393
|
+
}
|
394
|
+
],
|
387
395
|
"DescribeWhiteBoardSnapshot": [
|
388
396
|
{
|
389
397
|
"document": "",
|
@@ -3449,6 +3449,58 @@ def doDescribeLiveDomainCertBindings(args, parsed_globals):
|
|
3449
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3450
3450
|
|
3451
3451
|
|
3452
|
+
def doCreateAuditKeywords(args, parsed_globals):
|
3453
|
+
g_param = parse_global_arg(parsed_globals)
|
3454
|
+
|
3455
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3456
|
+
cred = credential.CVMRoleCredential()
|
3457
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3458
|
+
cred = credential.STSAssumeRoleCredential(
|
3459
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3460
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3461
|
+
)
|
3462
|
+
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):
|
3463
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3464
|
+
else:
|
3465
|
+
cred = credential.Credential(
|
3466
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3467
|
+
)
|
3468
|
+
http_profile = HttpProfile(
|
3469
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3470
|
+
reqMethod="POST",
|
3471
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3472
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3473
|
+
)
|
3474
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3475
|
+
if g_param[OptionsDefine.Language]:
|
3476
|
+
profile.language = g_param[OptionsDefine.Language]
|
3477
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3478
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
3479
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3480
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3481
|
+
model = models.CreateAuditKeywordsRequest()
|
3482
|
+
model.from_json_string(json.dumps(args))
|
3483
|
+
start_time = time.time()
|
3484
|
+
while True:
|
3485
|
+
rsp = client.CreateAuditKeywords(model)
|
3486
|
+
result = rsp.to_json_string()
|
3487
|
+
try:
|
3488
|
+
json_obj = json.loads(result)
|
3489
|
+
except TypeError as e:
|
3490
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3491
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3492
|
+
break
|
3493
|
+
cur_time = time.time()
|
3494
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3495
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3496
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3497
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3498
|
+
else:
|
3499
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3500
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3501
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
|
+
|
3503
|
+
|
3452
3504
|
def doDescribePlayErrorCodeSumInfoList(args, parsed_globals):
|
3453
3505
|
g_param = parse_global_arg(parsed_globals)
|
3454
3506
|
|
@@ -4489,6 +4541,58 @@ def doCreateLiveCallbackTemplate(args, parsed_globals):
|
|
4489
4541
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4490
4542
|
|
4491
4543
|
|
4544
|
+
def doDeleteAuditKeywords(args, parsed_globals):
|
4545
|
+
g_param = parse_global_arg(parsed_globals)
|
4546
|
+
|
4547
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4548
|
+
cred = credential.CVMRoleCredential()
|
4549
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4550
|
+
cred = credential.STSAssumeRoleCredential(
|
4551
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4552
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4553
|
+
)
|
4554
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
4555
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4556
|
+
else:
|
4557
|
+
cred = credential.Credential(
|
4558
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4559
|
+
)
|
4560
|
+
http_profile = HttpProfile(
|
4561
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4562
|
+
reqMethod="POST",
|
4563
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4564
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4565
|
+
)
|
4566
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4567
|
+
if g_param[OptionsDefine.Language]:
|
4568
|
+
profile.language = g_param[OptionsDefine.Language]
|
4569
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4570
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4571
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4572
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4573
|
+
model = models.DeleteAuditKeywordsRequest()
|
4574
|
+
model.from_json_string(json.dumps(args))
|
4575
|
+
start_time = time.time()
|
4576
|
+
while True:
|
4577
|
+
rsp = client.DeleteAuditKeywords(model)
|
4578
|
+
result = rsp.to_json_string()
|
4579
|
+
try:
|
4580
|
+
json_obj = json.loads(result)
|
4581
|
+
except TypeError as e:
|
4582
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4583
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4584
|
+
break
|
4585
|
+
cur_time = time.time()
|
4586
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4587
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4588
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4589
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4590
|
+
else:
|
4591
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4592
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4593
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4594
|
+
|
4595
|
+
|
4492
4596
|
def doDescribeLiveDomains(args, parsed_globals):
|
4493
4597
|
g_param = parse_global_arg(parsed_globals)
|
4494
4598
|
|
@@ -4593,6 +4697,58 @@ def doModifyCasterOutputInfo(args, parsed_globals):
|
|
4593
4697
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4594
4698
|
|
4595
4699
|
|
4700
|
+
def doCreateRecordTask(args, parsed_globals):
|
4701
|
+
g_param = parse_global_arg(parsed_globals)
|
4702
|
+
|
4703
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4704
|
+
cred = credential.CVMRoleCredential()
|
4705
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4706
|
+
cred = credential.STSAssumeRoleCredential(
|
4707
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4708
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4709
|
+
)
|
4710
|
+
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):
|
4711
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4712
|
+
else:
|
4713
|
+
cred = credential.Credential(
|
4714
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4715
|
+
)
|
4716
|
+
http_profile = HttpProfile(
|
4717
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4718
|
+
reqMethod="POST",
|
4719
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4720
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4721
|
+
)
|
4722
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4723
|
+
if g_param[OptionsDefine.Language]:
|
4724
|
+
profile.language = g_param[OptionsDefine.Language]
|
4725
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4726
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
4727
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4728
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4729
|
+
model = models.CreateRecordTaskRequest()
|
4730
|
+
model.from_json_string(json.dumps(args))
|
4731
|
+
start_time = time.time()
|
4732
|
+
while True:
|
4733
|
+
rsp = client.CreateRecordTask(model)
|
4734
|
+
result = rsp.to_json_string()
|
4735
|
+
try:
|
4736
|
+
json_obj = json.loads(result)
|
4737
|
+
except TypeError as e:
|
4738
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4739
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4740
|
+
break
|
4741
|
+
cur_time = time.time()
|
4742
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4743
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4744
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4745
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4746
|
+
else:
|
4747
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4748
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4749
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4750
|
+
|
4751
|
+
|
4596
4752
|
def doCreateCasterPvw(args, parsed_globals):
|
4597
4753
|
g_param = parse_global_arg(parsed_globals)
|
4598
4754
|
|
@@ -7089,58 +7245,6 @@ def doDescribeLiveCallbackTemplate(args, parsed_globals):
|
|
7089
7245
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7090
7246
|
|
7091
7247
|
|
7092
|
-
def doDescribeCasterUserStatus(args, parsed_globals):
|
7093
|
-
g_param = parse_global_arg(parsed_globals)
|
7094
|
-
|
7095
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7096
|
-
cred = credential.CVMRoleCredential()
|
7097
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7098
|
-
cred = credential.STSAssumeRoleCredential(
|
7099
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7100
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7101
|
-
)
|
7102
|
-
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):
|
7103
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7104
|
-
else:
|
7105
|
-
cred = credential.Credential(
|
7106
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7107
|
-
)
|
7108
|
-
http_profile = HttpProfile(
|
7109
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7110
|
-
reqMethod="POST",
|
7111
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
7112
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7113
|
-
)
|
7114
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7115
|
-
if g_param[OptionsDefine.Language]:
|
7116
|
-
profile.language = g_param[OptionsDefine.Language]
|
7117
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7118
|
-
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
7119
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
7120
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7121
|
-
model = models.DescribeCasterUserStatusRequest()
|
7122
|
-
model.from_json_string(json.dumps(args))
|
7123
|
-
start_time = time.time()
|
7124
|
-
while True:
|
7125
|
-
rsp = client.DescribeCasterUserStatus(model)
|
7126
|
-
result = rsp.to_json_string()
|
7127
|
-
try:
|
7128
|
-
json_obj = json.loads(result)
|
7129
|
-
except TypeError as e:
|
7130
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7131
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7132
|
-
break
|
7133
|
-
cur_time = time.time()
|
7134
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7135
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7136
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7137
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7138
|
-
else:
|
7139
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7140
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7141
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7142
|
-
|
7143
|
-
|
7144
7248
|
def doDescribeLivePackageInfo(args, parsed_globals):
|
7145
7249
|
g_param = parse_global_arg(parsed_globals)
|
7146
7250
|
|
@@ -8701,7 +8805,7 @@ def doDeleteLiveStreamMonitor(args, parsed_globals):
|
|
8701
8805
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8702
8806
|
|
8703
8807
|
|
8704
|
-
def
|
8808
|
+
def doDescribeAuditKeywords(args, parsed_globals):
|
8705
8809
|
g_param = parse_global_arg(parsed_globals)
|
8706
8810
|
|
8707
8811
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -8730,11 +8834,11 @@ def doDescribeCaster(args, parsed_globals):
|
|
8730
8834
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
8731
8835
|
client._sdkVersion += ("_CLI_" + __version__)
|
8732
8836
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8733
|
-
model = models.
|
8837
|
+
model = models.DescribeAuditKeywordsRequest()
|
8734
8838
|
model.from_json_string(json.dumps(args))
|
8735
8839
|
start_time = time.time()
|
8736
8840
|
while True:
|
8737
|
-
rsp = client.
|
8841
|
+
rsp = client.DescribeAuditKeywords(model)
|
8738
8842
|
result = rsp.to_json_string()
|
8739
8843
|
try:
|
8740
8844
|
json_obj = json.loads(result)
|
@@ -9169,7 +9273,7 @@ def doModifyLiveStreamMonitor(args, parsed_globals):
|
|
9169
9273
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9170
9274
|
|
9171
9275
|
|
9172
|
-
def
|
9276
|
+
def doDescribeCasterUserStatus(args, parsed_globals):
|
9173
9277
|
g_param = parse_global_arg(parsed_globals)
|
9174
9278
|
|
9175
9279
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -9198,11 +9302,11 @@ def doCreateCaster(args, parsed_globals):
|
|
9198
9302
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
9199
9303
|
client._sdkVersion += ("_CLI_" + __version__)
|
9200
9304
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9201
|
-
model = models.
|
9305
|
+
model = models.DescribeCasterUserStatusRequest()
|
9202
9306
|
model.from_json_string(json.dumps(args))
|
9203
9307
|
start_time = time.time()
|
9204
9308
|
while True:
|
9205
|
-
rsp = client.
|
9309
|
+
rsp = client.DescribeCasterUserStatus(model)
|
9206
9310
|
result = rsp.to_json_string()
|
9207
9311
|
try:
|
9208
9312
|
json_obj = json.loads(result)
|
@@ -9689,7 +9793,7 @@ def doResumeDelayLiveStream(args, parsed_globals):
|
|
9689
9793
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9690
9794
|
|
9691
9795
|
|
9692
|
-
def
|
9796
|
+
def doCreateCaster(args, parsed_globals):
|
9693
9797
|
g_param = parse_global_arg(parsed_globals)
|
9694
9798
|
|
9695
9799
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -9718,11 +9822,11 @@ def doCreateRecordTask(args, parsed_globals):
|
|
9718
9822
|
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
9719
9823
|
client._sdkVersion += ("_CLI_" + __version__)
|
9720
9824
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9721
|
-
model = models.
|
9825
|
+
model = models.CreateCasterRequest()
|
9722
9826
|
model.from_json_string(json.dumps(args))
|
9723
9827
|
start_time = time.time()
|
9724
9828
|
while True:
|
9725
|
-
rsp = client.
|
9829
|
+
rsp = client.CreateCaster(model)
|
9726
9830
|
result = rsp.to_json_string()
|
9727
9831
|
try:
|
9728
9832
|
json_obj = json.loads(result)
|
@@ -10001,6 +10105,58 @@ def doDeleteCasterOutputInfo(args, parsed_globals):
|
|
10001
10105
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10002
10106
|
|
10003
10107
|
|
10108
|
+
def doDescribeCaster(args, parsed_globals):
|
10109
|
+
g_param = parse_global_arg(parsed_globals)
|
10110
|
+
|
10111
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
10112
|
+
cred = credential.CVMRoleCredential()
|
10113
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
10114
|
+
cred = credential.STSAssumeRoleCredential(
|
10115
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
10116
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
10117
|
+
)
|
10118
|
+
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):
|
10119
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
10120
|
+
else:
|
10121
|
+
cred = credential.Credential(
|
10122
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
10123
|
+
)
|
10124
|
+
http_profile = HttpProfile(
|
10125
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
10126
|
+
reqMethod="POST",
|
10127
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
10128
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
10129
|
+
)
|
10130
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
10131
|
+
if g_param[OptionsDefine.Language]:
|
10132
|
+
profile.language = g_param[OptionsDefine.Language]
|
10133
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
10134
|
+
client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
|
10135
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
10136
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
10137
|
+
model = models.DescribeCasterRequest()
|
10138
|
+
model.from_json_string(json.dumps(args))
|
10139
|
+
start_time = time.time()
|
10140
|
+
while True:
|
10141
|
+
rsp = client.DescribeCaster(model)
|
10142
|
+
result = rsp.to_json_string()
|
10143
|
+
try:
|
10144
|
+
json_obj = json.loads(result)
|
10145
|
+
except TypeError as e:
|
10146
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
10147
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
10148
|
+
break
|
10149
|
+
cur_time = time.time()
|
10150
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
10151
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
10152
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
10153
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
10154
|
+
else:
|
10155
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
10156
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
10157
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10158
|
+
|
10159
|
+
|
10004
10160
|
def doDeleteLiveTranscodeTemplate(args, parsed_globals):
|
10005
10161
|
g_param = parse_global_arg(parsed_globals)
|
10006
10162
|
|
@@ -10390,6 +10546,7 @@ ACTION_MAP = {
|
|
10390
10546
|
"DeleteLiveWatermark": doDeleteLiveWatermark,
|
10391
10547
|
"ModifyCaster": doModifyCaster,
|
10392
10548
|
"DescribeLiveDomainCertBindings": doDescribeLiveDomainCertBindings,
|
10549
|
+
"CreateAuditKeywords": doCreateAuditKeywords,
|
10393
10550
|
"DescribePlayErrorCodeSumInfoList": doDescribePlayErrorCodeSumInfoList,
|
10394
10551
|
"AddDelayLiveStream": doAddDelayLiveStream,
|
10395
10552
|
"DescribeUploadStreamNums": doDescribeUploadStreamNums,
|
@@ -10410,8 +10567,10 @@ ACTION_MAP = {
|
|
10410
10567
|
"DescribeLiveEnhanceInfoList": doDescribeLiveEnhanceInfoList,
|
10411
10568
|
"DescribePullTransformPushInfo": doDescribePullTransformPushInfo,
|
10412
10569
|
"CreateLiveCallbackTemplate": doCreateLiveCallbackTemplate,
|
10570
|
+
"DeleteAuditKeywords": doDeleteAuditKeywords,
|
10413
10571
|
"DescribeLiveDomains": doDescribeLiveDomains,
|
10414
10572
|
"ModifyCasterOutputInfo": doModifyCasterOutputInfo,
|
10573
|
+
"CreateRecordTask": doCreateRecordTask,
|
10415
10574
|
"CreateCasterPvw": doCreateCasterPvw,
|
10416
10575
|
"ResumeLiveStream": doResumeLiveStream,
|
10417
10576
|
"DescribeCasterMarkPicInfos": doDescribeCasterMarkPicInfos,
|
@@ -10460,7 +10619,6 @@ ACTION_MAP = {
|
|
10460
10619
|
"DescribeScreenshotTask": doDescribeScreenshotTask,
|
10461
10620
|
"DescribePushBandwidthAndFluxList": doDescribePushBandwidthAndFluxList,
|
10462
10621
|
"DescribeLiveCallbackTemplate": doDescribeLiveCallbackTemplate,
|
10463
|
-
"DescribeCasterUserStatus": doDescribeCasterUserStatus,
|
10464
10622
|
"DescribeLivePackageInfo": doDescribeLivePackageInfo,
|
10465
10623
|
"DescribeLiveTimeShiftWriteSizeInfoList": doDescribeLiveTimeShiftWriteSizeInfoList,
|
10466
10624
|
"ForbidLiveStream": doForbidLiveStream,
|
@@ -10491,7 +10649,7 @@ ACTION_MAP = {
|
|
10491
10649
|
"CreateLiveSnapshotRule": doCreateLiveSnapshotRule,
|
10492
10650
|
"CreateLiveTimeShiftTemplate": doCreateLiveTimeShiftTemplate,
|
10493
10651
|
"DeleteLiveStreamMonitor": doDeleteLiveStreamMonitor,
|
10494
|
-
"
|
10652
|
+
"DescribeAuditKeywords": doDescribeAuditKeywords,
|
10495
10653
|
"DescribeLivePullStreamTasks": doDescribeLivePullStreamTasks,
|
10496
10654
|
"DescribeProIspPlaySumInfoList": doDescribeProIspPlaySumInfoList,
|
10497
10655
|
"DescribeAllStreamPlayInfoList": doDescribeAllStreamPlayInfoList,
|
@@ -10500,7 +10658,7 @@ ACTION_MAP = {
|
|
10500
10658
|
"DescribeCasterTransitionTypes": doDescribeCasterTransitionTypes,
|
10501
10659
|
"DescribeCasterDisplayInfo": doDescribeCasterDisplayInfo,
|
10502
10660
|
"ModifyLiveStreamMonitor": doModifyLiveStreamMonitor,
|
10503
|
-
"
|
10661
|
+
"DescribeCasterUserStatus": doDescribeCasterUserStatus,
|
10504
10662
|
"DescribeLiveStreamState": doDescribeLiveStreamState,
|
10505
10663
|
"ModifyLiveDomainReferer": doModifyLiveDomainReferer,
|
10506
10664
|
"DeleteLiveRecordTemplate": doDeleteLiveRecordTemplate,
|
@@ -10510,12 +10668,13 @@ ACTION_MAP = {
|
|
10510
10668
|
"DeleteCasterMarkWordInfo": doDeleteCasterMarkWordInfo,
|
10511
10669
|
"DescribeBackupStreamList": doDescribeBackupStreamList,
|
10512
10670
|
"ResumeDelayLiveStream": doResumeDelayLiveStream,
|
10513
|
-
"
|
10671
|
+
"CreateCaster": doCreateCaster,
|
10514
10672
|
"CreateLiveTranscodeTemplate": doCreateLiveTranscodeTemplate,
|
10515
10673
|
"DescribeLiveCerts": doDescribeLiveCerts,
|
10516
10674
|
"StopCasterPgm": doStopCasterPgm,
|
10517
10675
|
"EnableLiveDomain": doEnableLiveDomain,
|
10518
10676
|
"DeleteCasterOutputInfo": doDeleteCasterOutputInfo,
|
10677
|
+
"DescribeCaster": doDescribeCaster,
|
10519
10678
|
"DeleteLiveTranscodeTemplate": doDeleteLiveTranscodeTemplate,
|
10520
10679
|
"DescribeLivePadTemplates": doDescribeLivePadTemplates,
|
10521
10680
|
"DescribeTranscodeTaskNum": doDescribeTranscodeTaskNum,
|