tccli 3.0.1240.1__py2.py3-none-any.whl → 3.0.1242.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/apm/v20210622/api.json +276 -279
- tccli/services/apm/v20210622/examples.json +30 -30
- tccli/services/autoscaling/v20180419/api.json +12 -1
- tccli/services/batch/v20170312/api.json +11 -11
- tccli/services/bh/v20230418/api.json +9 -0
- tccli/services/bh/v20230418/examples.json +2 -2
- tccli/services/billing/v20180709/api.json +20 -0
- tccli/services/cam/v20190116/api.json +1 -1
- tccli/services/car/v20220110/api.json +1 -1
- tccli/services/car/v20220110/examples.json +3 -3
- tccli/services/cdb/v20170320/api.json +582 -579
- tccli/services/cdb/v20170320/examples.json +9 -9
- tccli/services/cdwdoris/v20211228/api.json +40 -0
- tccli/services/cfg/v20210820/api.json +11 -0
- tccli/services/cfs/v20190719/api.json +20 -20
- tccli/services/cfs/v20190719/examples.json +5 -5
- tccli/services/chdfs/v20201112/api.json +10 -10
- tccli/services/chdfs/v20201112/examples.json +1 -1
- tccli/services/ckafka/v20190819/api.json +27 -0
- tccli/services/clb/v20180317/api.json +84 -64
- tccli/services/cls/cls_client.py +220 -8
- tccli/services/cls/v20201016/api.json +418 -40
- tccli/services/cls/v20201016/examples.json +89 -45
- tccli/services/cmq/v20190304/api.json +77 -77
- tccli/services/cvm/cvm_client.py +60 -325
- tccli/services/cvm/v20170312/api.json +618 -1401
- tccli/services/cvm/v20170312/examples.json +8 -48
- tccli/services/cwp/cwp_client.py +0 -53
- tccli/services/cwp/v20180228/api.json +3 -37
- tccli/services/cwp/v20180228/examples.json +2 -10
- tccli/services/cynosdb/v20190107/api.json +470 -476
- tccli/services/cynosdb/v20190107/examples.json +23 -23
- tccli/services/dbbrain/v20191016/api.json +16 -4
- tccli/services/dbbrain/v20191016/examples.json +5 -5
- tccli/services/dbbrain/v20210527/api.json +45 -45
- tccli/services/dbbrain/v20210527/examples.json +8 -8
- tccli/services/dnspod/v20210323/api.json +173 -119
- tccli/services/dnspod/v20210323/examples.json +18 -18
- tccli/services/dts/v20180330/api.json +30 -30
- tccli/services/dts/v20180330/examples.json +4 -4
- tccli/services/dts/v20211206/api.json +19 -9
- tccli/services/dts/v20211206/examples.json +5 -5
- tccli/services/ecm/v20190719/api.json +55 -48
- tccli/services/ecm/v20190719/examples.json +7 -7
- tccli/services/emr/emr_client.py +493 -16
- tccli/services/emr/v20190103/api.json +1323 -246
- tccli/services/emr/v20190103/examples.json +72 -0
- tccli/services/ess/v20201111/api.json +29 -11
- tccli/services/ess/v20201111/examples.json +6 -0
- tccli/services/essbasic/v20210526/api.json +89 -2
- tccli/services/essbasic/v20210526/examples.json +12 -0
- tccli/services/faceid/v20180301/api.json +3 -3
- tccli/services/gaap/v20180529/api.json +194 -196
- tccli/services/gaap/v20180529/examples.json +31 -37
- tccli/services/goosefs/v20220519/api.json +17 -17
- tccli/services/goosefs/v20220519/examples.json +4 -4
- tccli/services/gs/v20191118/api.json +3 -3
- tccli/services/gs/v20191118/examples.json +3 -3
- tccli/services/iai/iai_client.py +53 -0
- tccli/services/iai/v20200303/api.json +80 -0
- tccli/services/iai/v20200303/examples.json +14 -0
- tccli/services/iotexplorer/v20190423/api.json +10 -0
- tccli/services/iotvideoindustry/v20201201/api.json +84 -84
- tccli/services/iotvideoindustry/v20201201/examples.json +29 -29
- tccli/services/keewidb/v20220308/api.json +188 -190
- tccli/services/live/v20180801/api.json +324 -223
- tccli/services/live/v20180801/examples.json +79 -79
- tccli/services/mna/v20210119/api.json +52 -49
- tccli/services/mna/v20210119/examples.json +49 -49
- tccli/services/mps/v20190612/api.json +49 -0
- tccli/services/oceanus/v20190422/api.json +407 -39
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/ocr/ocr_client.py +110 -4
- tccli/services/ocr/v20181119/api.json +410 -6
- tccli/services/ocr/v20181119/examples.json +18 -2
- tccli/services/pts/v20210728/api.json +1 -1
- tccli/services/pts/v20210728/examples.json +1 -1
- tccli/services/sqlserver/v20180328/api.json +273 -144
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +829 -829
- tccli/services/ssl/v20191205/examples.json +14 -14
- tccli/services/tbaas/v20180416/api.json +127 -88
- tccli/services/tbaas/v20180416/examples.json +9 -9
- tccli/services/tcb/v20180608/api.json +229 -189
- tccli/services/tcb/v20180608/examples.json +23 -23
- tccli/services/tcm/v20210413/api.json +6 -6
- tccli/services/tcm/v20210413/examples.json +3 -3
- tccli/services/tcr/v20190924/api.json +25 -20
- tccli/services/tcr/v20190924/examples.json +4 -4
- tccli/services/tdmq/tdmq_client.py +167 -8
- tccli/services/tdmq/v20200217/api.json +325 -0
- tccli/services/tdmq/v20200217/examples.json +24 -0
- tccli/services/tem/v20210701/api.json +439 -280
- tccli/services/tem/v20210701/examples.json +39 -39
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/teo/v20220901/examples.json +3 -3
- tccli/services/thpc/v20211109/api.json +46 -58
- tccli/services/thpc/v20211109/examples.json +2 -2
- tccli/services/thpc/v20220401/api.json +168 -181
- tccli/services/thpc/v20220401/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +99 -102
- tccli/services/thpc/v20230321/examples.json +3 -3
- tccli/services/tke/v20180525/api.json +50 -39
- tccli/services/tke/v20180525/examples.json +51 -21
- tccli/services/tke/v20220501/api.json +146 -97
- tccli/services/tke/v20220501/examples.json +15 -21
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +219 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trro/v20220325/api.json +27 -27
- tccli/services/trro/v20220325/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +31 -20
- tccli/services/trtc/v20190722/examples.json +11 -11
- tccli/services/tse/v20201207/api.json +187 -122
- tccli/services/tse/v20201207/examples.json +36 -36
- tccli/services/tsf/v20180326/api.json +448 -434
- tccli/services/tsf/v20180326/examples.json +122 -122
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +582 -291
- tccli/services/vpc/v20170312/examples.json +75 -27
- tccli/services/vpc/vpc_client.py +159 -0
- tccli/services/waf/v20180125/api.json +305 -6
- tccli/services/waf/v20180125/examples.json +25 -1
- tccli/services/waf/waf_client.py +163 -4
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/RECORD +130 -130
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1240.1.dist-info → tccli-3.0.1242.1.dist-info}/license_files/LICENSE +0 -0
@@ -122,7 +122,7 @@
|
|
122
122
|
{
|
123
123
|
"document": "",
|
124
124
|
"input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteWorkSpace\n<公共请求参数>\n\n{\n \"WorkSpaceId\": \"space-1327\"\n}",
|
125
|
-
"output": "{\n \"Response\": {\n \"Delete\": true,\n \"RequestId\": \"
|
125
|
+
"output": "{\n \"Response\": {\n \"Delete\": true,\n \"RequestId\": \"a123\"\n }\n}",
|
126
126
|
"title": "删除空间"
|
127
127
|
}
|
128
128
|
],
|
tccli/services/ocr/ocr_client.py
CHANGED
@@ -1213,6 +1213,58 @@ def doQuotaInvoiceOCR(args, parsed_globals):
|
|
1213
1213
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1214
|
|
1215
1215
|
|
1216
|
+
def doBankSlipOCR(args, parsed_globals):
|
1217
|
+
g_param = parse_global_arg(parsed_globals)
|
1218
|
+
|
1219
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1220
|
+
cred = credential.CVMRoleCredential()
|
1221
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1222
|
+
cred = credential.STSAssumeRoleCredential(
|
1223
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1224
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1225
|
+
)
|
1226
|
+
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):
|
1227
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1228
|
+
else:
|
1229
|
+
cred = credential.Credential(
|
1230
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1231
|
+
)
|
1232
|
+
http_profile = HttpProfile(
|
1233
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1234
|
+
reqMethod="POST",
|
1235
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1236
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1237
|
+
)
|
1238
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1239
|
+
if g_param[OptionsDefine.Language]:
|
1240
|
+
profile.language = g_param[OptionsDefine.Language]
|
1241
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1242
|
+
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
1243
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1244
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1245
|
+
model = models.BankSlipOCRRequest()
|
1246
|
+
model.from_json_string(json.dumps(args))
|
1247
|
+
start_time = time.time()
|
1248
|
+
while True:
|
1249
|
+
rsp = client.BankSlipOCR(model)
|
1250
|
+
result = rsp.to_json_string()
|
1251
|
+
try:
|
1252
|
+
json_obj = json.loads(result)
|
1253
|
+
except TypeError as e:
|
1254
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1255
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1256
|
+
break
|
1257
|
+
cur_time = time.time()
|
1258
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1259
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1260
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1261
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1262
|
+
else:
|
1263
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1264
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1265
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
|
+
|
1267
|
+
|
1216
1268
|
def doGeneralFastOCR(args, parsed_globals):
|
1217
1269
|
g_param = parse_global_arg(parsed_globals)
|
1218
1270
|
|
@@ -2929,7 +2981,7 @@ def doClassifyStoreName(args, parsed_globals):
|
|
2929
2981
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
2982
|
|
2931
2983
|
|
2932
|
-
def
|
2984
|
+
def doGetOCRResult(args, parsed_globals):
|
2933
2985
|
g_param = parse_global_arg(parsed_globals)
|
2934
2986
|
|
2935
2987
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2958,11 +3010,11 @@ def doBankSlipOCR(args, parsed_globals):
|
|
2958
3010
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
2959
3011
|
client._sdkVersion += ("_CLI_" + __version__)
|
2960
3012
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2961
|
-
model = models.
|
3013
|
+
model = models.GetOCRResultRequest()
|
2962
3014
|
model.from_json_string(json.dumps(args))
|
2963
3015
|
start_time = time.time()
|
2964
3016
|
while True:
|
2965
|
-
rsp = client.
|
3017
|
+
rsp = client.GetOCRResult(model)
|
2966
3018
|
result = rsp.to_json_string()
|
2967
3019
|
try:
|
2968
3020
|
json_obj = json.loads(result)
|
@@ -3865,6 +3917,58 @@ def doShipInvoiceOCR(args, parsed_globals):
|
|
3865
3917
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
3918
|
|
3867
3919
|
|
3920
|
+
def doGetOCRToken(args, parsed_globals):
|
3921
|
+
g_param = parse_global_arg(parsed_globals)
|
3922
|
+
|
3923
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3924
|
+
cred = credential.CVMRoleCredential()
|
3925
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3926
|
+
cred = credential.STSAssumeRoleCredential(
|
3927
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3928
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3929
|
+
)
|
3930
|
+
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):
|
3931
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3932
|
+
else:
|
3933
|
+
cred = credential.Credential(
|
3934
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3935
|
+
)
|
3936
|
+
http_profile = HttpProfile(
|
3937
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3938
|
+
reqMethod="POST",
|
3939
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3940
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3941
|
+
)
|
3942
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3943
|
+
if g_param[OptionsDefine.Language]:
|
3944
|
+
profile.language = g_param[OptionsDefine.Language]
|
3945
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3946
|
+
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3948
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
+
model = models.GetOCRTokenRequest()
|
3950
|
+
model.from_json_string(json.dumps(args))
|
3951
|
+
start_time = time.time()
|
3952
|
+
while True:
|
3953
|
+
rsp = client.GetOCRToken(model)
|
3954
|
+
result = rsp.to_json_string()
|
3955
|
+
try:
|
3956
|
+
json_obj = json.loads(result)
|
3957
|
+
except TypeError as e:
|
3958
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3959
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3960
|
+
break
|
3961
|
+
cur_time = time.time()
|
3962
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3963
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3964
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3965
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3966
|
+
else:
|
3967
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3968
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3969
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
|
+
|
3971
|
+
|
3868
3972
|
def doVerifyOfdVatInvoiceOCR(args, parsed_globals):
|
3869
3973
|
g_param = parse_global_arg(parsed_globals)
|
3870
3974
|
|
@@ -4367,6 +4471,7 @@ ACTION_MAP = {
|
|
4367
4471
|
"MLIDPassportOCR": doMLIDPassportOCR,
|
4368
4472
|
"VatRollInvoiceOCR": doVatRollInvoiceOCR,
|
4369
4473
|
"QuotaInvoiceOCR": doQuotaInvoiceOCR,
|
4474
|
+
"BankSlipOCR": doBankSlipOCR,
|
4370
4475
|
"GeneralFastOCR": doGeneralFastOCR,
|
4371
4476
|
"PropOwnerCertOCR": doPropOwnerCertOCR,
|
4372
4477
|
"RecognizeThaiIDCardOCR": doRecognizeThaiIDCardOCR,
|
@@ -4400,7 +4505,7 @@ ACTION_MAP = {
|
|
4400
4505
|
"SealOCR": doSealOCR,
|
4401
4506
|
"FinanBillOCR": doFinanBillOCR,
|
4402
4507
|
"ClassifyStoreName": doClassifyStoreName,
|
4403
|
-
"
|
4508
|
+
"GetOCRResult": doGetOCRResult,
|
4404
4509
|
"GeneralEfficientOCR": doGeneralEfficientOCR,
|
4405
4510
|
"TaxiInvoiceOCR": doTaxiInvoiceOCR,
|
4406
4511
|
"TrainTicketOCR": doTrainTicketOCR,
|
@@ -4418,6 +4523,7 @@ ACTION_MAP = {
|
|
4418
4523
|
"VatInvoiceVerify": doVatInvoiceVerify,
|
4419
4524
|
"InstitutionOCR": doInstitutionOCR,
|
4420
4525
|
"ShipInvoiceOCR": doShipInvoiceOCR,
|
4526
|
+
"GetOCRToken": doGetOCRToken,
|
4421
4527
|
"VerifyOfdVatInvoiceOCR": doVerifyOfdVatInvoiceOCR,
|
4422
4528
|
"RecognizeHealthCodeOCR": doRecognizeHealthCodeOCR,
|
4423
4529
|
"SmartStructuralPro": doSmartStructuralPro,
|