tccli 3.0.1394.1__py2.py3-none-any.whl → 3.0.1396.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 +3 -3
- tccli/services/billing/v20180709/api.json +36 -24
- tccli/services/cam/v20190116/api.json +1 -1
- tccli/services/ccc/ccc_client.py +125 -72
- tccli/services/ccc/v20200210/api.json +97 -0
- tccli/services/ccc/v20200210/examples.json +8 -0
- tccli/services/cdn/cdn_client.py +4 -163
- tccli/services/cdn/v20180606/api.json +0 -297
- tccli/services/cdn/v20180606/examples.json +0 -24
- tccli/services/cfw/v20190904/api.json +121 -9
- tccli/services/ckafka/v20190819/api.json +21 -1
- tccli/services/ckafka/v20190819/examples.json +1 -1
- tccli/services/ctem/v20231128/api.json +290 -0
- tccli/services/ctem/v20231128/examples.json +3 -3
- tccli/services/emr/v20190103/api.json +36 -7
- tccli/services/ess/v20201111/api.json +7 -7
- tccli/services/ess/v20201111/examples.json +6 -6
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/iai/v20180301/api.json +131 -118
- tccli/services/iai/v20180301/examples.json +22 -22
- tccli/services/iai/v20200303/api.json +3 -3
- tccli/services/iai/v20200303/examples.json +1 -1
- tccli/services/iotexplorer/iotexplorer_client.py +57 -4
- tccli/services/iotexplorer/v20190423/api.json +87 -0
- tccli/services/iotexplorer/v20190423/examples.json +8 -0
- tccli/services/lcic/v20220817/api.json +6 -6
- tccli/services/lighthouse/v20200324/api.json +113 -9
- tccli/services/lighthouse/v20200324/examples.json +2 -2
- tccli/services/lke/lke_client.py +0 -106
- tccli/services/lke/v20231130/api.json +0 -106
- tccli/services/lke/v20231130/examples.json +0 -16
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/mongodb/v20190725/api.json +38 -36
- tccli/services/mongodb/v20190725/examples.json +3 -3
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +420 -3
- tccli/services/mps/v20190612/examples.json +50 -0
- tccli/services/organization/v20210331/api.json +6 -6
- tccli/services/redis/v20180412/api.json +12 -12
- tccli/services/tcss/v20201101/api.json +21 -1
- tccli/services/teo/v20220901/api.json +10 -0
- tccli/services/trtc/v20190722/api.json +10 -10
- tccli/services/tse/v20201207/api.json +39 -1
- tccli/services/tse/v20201207/examples.json +3 -3
- tccli/services/vpc/v20170312/api.json +3 -3
- tccli/services/waf/v20180125/api.json +792 -142
- tccli/services/waf/v20180125/examples.json +1 -1
- tccli/services/wedata/v20250806/api.json +5 -5
- {tccli-3.0.1394.1.dist-info → tccli-3.0.1396.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1394.1.dist-info → tccli-3.0.1396.1.dist-info}/RECORD +55 -55
- {tccli-3.0.1394.1.dist-info → tccli-3.0.1396.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1394.1.dist-info → tccli-3.0.1396.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1394.1.dist-info → tccli-3.0.1396.1.dist-info}/license_files/LICENSE +0 -0
@@ -182,6 +182,13 @@
|
|
182
182
|
"output": "DeleteStaffResponse",
|
183
183
|
"status": "online"
|
184
184
|
},
|
185
|
+
"DescribeAIAnalysisResult": {
|
186
|
+
"document": "获取 AI 会话分析结果",
|
187
|
+
"input": "DescribeAIAnalysisResultRequest",
|
188
|
+
"name": "获取 AI 会话分析结果",
|
189
|
+
"output": "DescribeAIAnalysisResultResponse",
|
190
|
+
"status": "online"
|
191
|
+
},
|
185
192
|
"DescribeAICallExtractResult": {
|
186
193
|
"document": "获取 AI 通话内容提取结果。",
|
187
194
|
"input": "DescribeAICallExtractResultRequest",
|
@@ -540,6 +547,32 @@
|
|
540
547
|
"serviceShortName": "ccc"
|
541
548
|
},
|
542
549
|
"objects": {
|
550
|
+
"AIAnalysisResult": {
|
551
|
+
"document": "AI会话分析结果",
|
552
|
+
"members": [
|
553
|
+
{
|
554
|
+
"disabled": false,
|
555
|
+
"document": "summary: 会话小结\nmood: 情绪分析\nintention: 意向提取",
|
556
|
+
"example": "summary",
|
557
|
+
"member": "string",
|
558
|
+
"name": "Type",
|
559
|
+
"output_required": true,
|
560
|
+
"type": "string",
|
561
|
+
"value_allowed_null": false
|
562
|
+
},
|
563
|
+
{
|
564
|
+
"disabled": false,
|
565
|
+
"document": "AI会话分析结果",
|
566
|
+
"example": "会话小结结果",
|
567
|
+
"member": "string",
|
568
|
+
"name": "Result",
|
569
|
+
"output_required": true,
|
570
|
+
"type": "string",
|
571
|
+
"value_allowed_null": false
|
572
|
+
}
|
573
|
+
],
|
574
|
+
"usage": "out"
|
575
|
+
},
|
543
576
|
"AICallExtractConfigElement": {
|
544
577
|
"document": "AI 通话提取配置项",
|
545
578
|
"members": [
|
@@ -3874,6 +3907,70 @@
|
|
3874
3907
|
],
|
3875
3908
|
"type": "object"
|
3876
3909
|
},
|
3910
|
+
"DescribeAIAnalysisResultRequest": {
|
3911
|
+
"document": "DescribeAIAnalysisResult请求参数结构体",
|
3912
|
+
"members": [
|
3913
|
+
{
|
3914
|
+
"disabled": false,
|
3915
|
+
"document": "应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc",
|
3916
|
+
"example": "1400000000",
|
3917
|
+
"member": "int64",
|
3918
|
+
"name": "SdkAppId",
|
3919
|
+
"required": true,
|
3920
|
+
"type": "int"
|
3921
|
+
},
|
3922
|
+
{
|
3923
|
+
"disabled": false,
|
3924
|
+
"document": "会话 ID",
|
3925
|
+
"example": "6bb56a09-2787-40bc-80c5-dc6dab783eff",
|
3926
|
+
"member": "string",
|
3927
|
+
"name": "SessionId",
|
3928
|
+
"required": true,
|
3929
|
+
"type": "string"
|
3930
|
+
},
|
3931
|
+
{
|
3932
|
+
"disabled": false,
|
3933
|
+
"document": "查找起始时间\t",
|
3934
|
+
"example": "1737350008",
|
3935
|
+
"member": "int64",
|
3936
|
+
"name": "StartTime",
|
3937
|
+
"required": true,
|
3938
|
+
"type": "int"
|
3939
|
+
},
|
3940
|
+
{
|
3941
|
+
"disabled": false,
|
3942
|
+
"document": "1737350008",
|
3943
|
+
"example": "1737350008",
|
3944
|
+
"member": "int64",
|
3945
|
+
"name": "EndTime",
|
3946
|
+
"required": true,
|
3947
|
+
"type": "int"
|
3948
|
+
}
|
3949
|
+
],
|
3950
|
+
"type": "object"
|
3951
|
+
},
|
3952
|
+
"DescribeAIAnalysisResultResponse": {
|
3953
|
+
"document": "DescribeAIAnalysisResult返回参数结构体",
|
3954
|
+
"members": [
|
3955
|
+
{
|
3956
|
+
"disabled": false,
|
3957
|
+
"document": "AI会话分析结果",
|
3958
|
+
"example": "无",
|
3959
|
+
"member": "AIAnalysisResult",
|
3960
|
+
"name": "ResultList",
|
3961
|
+
"output_required": false,
|
3962
|
+
"type": "list",
|
3963
|
+
"value_allowed_null": false
|
3964
|
+
},
|
3965
|
+
{
|
3966
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3967
|
+
"member": "string",
|
3968
|
+
"name": "RequestId",
|
3969
|
+
"type": "string"
|
3970
|
+
}
|
3971
|
+
],
|
3972
|
+
"type": "object"
|
3973
|
+
},
|
3877
3974
|
"DescribeAICallExtractResultRequest": {
|
3878
3975
|
"document": "DescribeAICallExtractResult请求参数结构体",
|
3879
3976
|
"members": [
|
@@ -208,6 +208,14 @@
|
|
208
208
|
"title": "删除坐席信息示例"
|
209
209
|
}
|
210
210
|
],
|
211
|
+
"DescribeAIAnalysisResult": [
|
212
|
+
{
|
213
|
+
"document": "",
|
214
|
+
"input": "POST / HTTP/1.1\nHost: ccc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAILatency\n<公共请求参数>\n\n{\n \"SdkAppId\": 1400000000,\n \"SessionId\": \"adcf61b8-dbb9-4c20-87bf-c0744c04bade\",\n \"StartTime\": 1737350008,\n \"EndTime\": 1737356008\n}",
|
215
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx\",\n \"ResultList\": [\n {\n \"Type\": \"summary\",\n \"Result\": \"会话小结\"\n },\n {\n \"Type\": \"mood\",\n \"Result\": \"中性\"\n },\n {\n \"Type\": \"intention\",\n \"Result\": \"待跟进\"\n }\n ]\n }\n}",
|
216
|
+
"title": "获取 AI 会话分析结果"
|
217
|
+
}
|
218
|
+
],
|
211
219
|
"DescribeAICallExtractResult": [
|
212
220
|
{
|
213
221
|
"document": "查询 AI 通话内容提取结果示例",
|
tccli/services/cdn/cdn_client.py
CHANGED
@@ -693,7 +693,7 @@ def doDescribeCdnData(args, parsed_globals):
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
694
|
|
695
695
|
|
696
|
-
def
|
696
|
+
def doDescribeHttpsPackages(args, parsed_globals):
|
697
697
|
g_param = parse_global_arg(parsed_globals)
|
698
698
|
|
699
699
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -722,11 +722,11 @@ def doDisableCaches(args, parsed_globals):
|
|
722
722
|
client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
|
723
723
|
client._sdkVersion += ("_CLI_" + __version__)
|
724
724
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
-
model = models.
|
725
|
+
model = models.DescribeHttpsPackagesRequest()
|
726
726
|
model.from_json_string(json.dumps(args))
|
727
727
|
start_time = time.time()
|
728
728
|
while True:
|
729
|
-
rsp = client.
|
729
|
+
rsp = client.DescribeHttpsPackages(model)
|
730
730
|
result = rsp.to_json_string()
|
731
731
|
try:
|
732
732
|
json_obj = json.loads(result)
|
@@ -1733,58 +1733,6 @@ def doDescribePurgeTasks(args, parsed_globals):
|
|
1733
1733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
1734
|
|
1735
1735
|
|
1736
|
-
def doDescribeHttpsPackages(args, parsed_globals):
|
1737
|
-
g_param = parse_global_arg(parsed_globals)
|
1738
|
-
|
1739
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1740
|
-
cred = credential.CVMRoleCredential()
|
1741
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1742
|
-
cred = credential.STSAssumeRoleCredential(
|
1743
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1744
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1745
|
-
)
|
1746
|
-
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):
|
1747
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1748
|
-
else:
|
1749
|
-
cred = credential.Credential(
|
1750
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1751
|
-
)
|
1752
|
-
http_profile = HttpProfile(
|
1753
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1754
|
-
reqMethod="POST",
|
1755
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
1756
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1757
|
-
)
|
1758
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1759
|
-
if g_param[OptionsDefine.Language]:
|
1760
|
-
profile.language = g_param[OptionsDefine.Language]
|
1761
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1762
|
-
client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1764
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
-
model = models.DescribeHttpsPackagesRequest()
|
1766
|
-
model.from_json_string(json.dumps(args))
|
1767
|
-
start_time = time.time()
|
1768
|
-
while True:
|
1769
|
-
rsp = client.DescribeHttpsPackages(model)
|
1770
|
-
result = rsp.to_json_string()
|
1771
|
-
try:
|
1772
|
-
json_obj = json.loads(result)
|
1773
|
-
except TypeError as e:
|
1774
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1775
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1776
|
-
break
|
1777
|
-
cur_time = time.time()
|
1778
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1779
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1780
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1781
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1782
|
-
else:
|
1783
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1784
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1785
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
|
-
|
1787
|
-
|
1788
1736
|
def doDescribeUrlViolations(args, parsed_globals):
|
1789
1737
|
g_param = parse_global_arg(parsed_globals)
|
1790
1738
|
|
@@ -2513,58 +2461,6 @@ def doListClsLogTopics(args, parsed_globals):
|
|
2513
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
2462
|
|
2515
2463
|
|
2516
|
-
def doGetDisableRecords(args, parsed_globals):
|
2517
|
-
g_param = parse_global_arg(parsed_globals)
|
2518
|
-
|
2519
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2520
|
-
cred = credential.CVMRoleCredential()
|
2521
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2522
|
-
cred = credential.STSAssumeRoleCredential(
|
2523
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2524
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2525
|
-
)
|
2526
|
-
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):
|
2527
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2528
|
-
else:
|
2529
|
-
cred = credential.Credential(
|
2530
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2531
|
-
)
|
2532
|
-
http_profile = HttpProfile(
|
2533
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2534
|
-
reqMethod="POST",
|
2535
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2536
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2537
|
-
)
|
2538
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2539
|
-
if g_param[OptionsDefine.Language]:
|
2540
|
-
profile.language = g_param[OptionsDefine.Language]
|
2541
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2542
|
-
client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
|
2543
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2544
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2545
|
-
model = models.GetDisableRecordsRequest()
|
2546
|
-
model.from_json_string(json.dumps(args))
|
2547
|
-
start_time = time.time()
|
2548
|
-
while True:
|
2549
|
-
rsp = client.GetDisableRecords(model)
|
2550
|
-
result = rsp.to_json_string()
|
2551
|
-
try:
|
2552
|
-
json_obj = json.loads(result)
|
2553
|
-
except TypeError as e:
|
2554
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2555
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2556
|
-
break
|
2557
|
-
cur_time = time.time()
|
2558
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2559
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2560
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2561
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2562
|
-
else:
|
2563
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2564
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2565
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2566
|
-
|
2567
|
-
|
2568
2464
|
def doDeleteClsLogTopic(args, parsed_globals):
|
2569
2465
|
g_param = parse_global_arg(parsed_globals)
|
2570
2466
|
|
@@ -2981,58 +2877,6 @@ def doUpdatePayType(args, parsed_globals):
|
|
2981
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2982
2878
|
|
2983
2879
|
|
2984
|
-
def doEnableCaches(args, parsed_globals):
|
2985
|
-
g_param = parse_global_arg(parsed_globals)
|
2986
|
-
|
2987
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2988
|
-
cred = credential.CVMRoleCredential()
|
2989
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2990
|
-
cred = credential.STSAssumeRoleCredential(
|
2991
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2992
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2993
|
-
)
|
2994
|
-
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):
|
2995
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2996
|
-
else:
|
2997
|
-
cred = credential.Credential(
|
2998
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2999
|
-
)
|
3000
|
-
http_profile = HttpProfile(
|
3001
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3002
|
-
reqMethod="POST",
|
3003
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3004
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3005
|
-
)
|
3006
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3007
|
-
if g_param[OptionsDefine.Language]:
|
3008
|
-
profile.language = g_param[OptionsDefine.Language]
|
3009
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3010
|
-
client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
|
3011
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
3012
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3013
|
-
model = models.EnableCachesRequest()
|
3014
|
-
model.from_json_string(json.dumps(args))
|
3015
|
-
start_time = time.time()
|
3016
|
-
while True:
|
3017
|
-
rsp = client.EnableCaches(model)
|
3018
|
-
result = rsp.to_json_string()
|
3019
|
-
try:
|
3020
|
-
json_obj = json.loads(result)
|
3021
|
-
except TypeError as e:
|
3022
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3023
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3024
|
-
break
|
3025
|
-
cur_time = time.time()
|
3026
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3027
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3028
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3029
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3030
|
-
else:
|
3031
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3032
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3033
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
|
-
|
3035
|
-
|
3036
2880
|
CLIENT_MAP = {
|
3037
2881
|
"v20180606": cdn_client_v20180606,
|
3038
2882
|
|
@@ -3057,7 +2901,7 @@ ACTION_MAP = {
|
|
3057
2901
|
"AddCdnDomain": doAddCdnDomain,
|
3058
2902
|
"DescribeIpVisit": doDescribeIpVisit,
|
3059
2903
|
"DescribeCdnData": doDescribeCdnData,
|
3060
|
-
"
|
2904
|
+
"DescribeHttpsPackages": doDescribeHttpsPackages,
|
3061
2905
|
"DescribeDomains": doDescribeDomains,
|
3062
2906
|
"CreateVerifyRecord": doCreateVerifyRecord,
|
3063
2907
|
"SearchClsLog": doSearchClsLog,
|
@@ -3077,7 +2921,6 @@ ACTION_MAP = {
|
|
3077
2921
|
"DescribeCdnIp": doDescribeCdnIp,
|
3078
2922
|
"PurgePathCache": doPurgePathCache,
|
3079
2923
|
"DescribePurgeTasks": doDescribePurgeTasks,
|
3080
|
-
"DescribeHttpsPackages": doDescribeHttpsPackages,
|
3081
2924
|
"DescribeUrlViolations": doDescribeUrlViolations,
|
3082
2925
|
"PurgeUrlsCache": doPurgeUrlsCache,
|
3083
2926
|
"DescribeTrafficPackages": doDescribeTrafficPackages,
|
@@ -3092,7 +2935,6 @@ ACTION_MAP = {
|
|
3092
2935
|
"PushUrlsCache": doPushUrlsCache,
|
3093
2936
|
"ListClsTopicDomains": doListClsTopicDomains,
|
3094
2937
|
"ListClsLogTopics": doListClsLogTopics,
|
3095
|
-
"GetDisableRecords": doGetDisableRecords,
|
3096
2938
|
"DeleteClsLogTopic": doDeleteClsLogTopic,
|
3097
2939
|
"DescribeCdnOriginIp": doDescribeCdnOriginIp,
|
3098
2940
|
"DescribeBillingData": doDescribeBillingData,
|
@@ -3101,7 +2943,6 @@ ACTION_MAP = {
|
|
3101
2943
|
"DescribeReportData": doDescribeReportData,
|
3102
2944
|
"DescribeDistrictIspData": doDescribeDistrictIspData,
|
3103
2945
|
"UpdatePayType": doUpdatePayType,
|
3104
|
-
"EnableCaches": doEnableCaches,
|
3105
2946
|
|
3106
2947
|
}
|
3107
2948
|
|