tccli 3.0.1300.3__py2.py3-none-any.whl → 3.0.1302.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 +2 -1
- tccli/services/asr/v20190614/api.json +18 -18
- tccli/services/batch/v20170312/api.json +14 -14
- tccli/services/bh/bh_client.py +623 -93
- tccli/services/bh/v20230418/api.json +1054 -32
- tccli/services/bh/v20230418/examples.json +93 -1
- tccli/services/billing/billing_client.py +4 -57
- tccli/services/billing/v20180709/api.json +3 -305
- tccli/services/billing/v20180709/examples.json +2 -10
- tccli/services/bpaas/v20181217/api.json +56 -56
- tccli/services/cat/cat_client.py +61 -8
- tccli/services/cat/v20180409/api.json +115 -0
- tccli/services/cat/v20180409/examples.json +20 -0
- tccli/services/cbs/v20170312/api.json +9 -7
- tccli/services/cbs/v20170312/examples.json +2 -2
- tccli/services/ccc/ccc_client.py +216 -4
- tccli/services/ccc/v20200210/api.json +364 -6
- tccli/services/ccc/v20200210/examples.json +32 -0
- tccli/services/cdb/v20170320/api.json +23 -14
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdc/cdc_client.py +173 -67
- tccli/services/cdc/v20201214/api.json +96 -0
- tccli/services/cdc/v20201214/examples.json +16 -0
- tccli/services/cdn/v20180606/api.json +365 -279
- tccli/services/cdwch/v20200915/api.json +21 -21
- tccli/services/cdwdoris/v20211228/api.json +21 -1
- tccli/services/cdwdoris/v20211228/examples.json +4 -4
- tccli/services/cdwpg/v20201230/api.json +375 -360
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +201 -5
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/chc/chc_client.py +57 -4
- tccli/services/chc/v20230418/api.json +108 -1
- tccli/services/chc/v20230418/examples.json +8 -0
- tccli/services/ckafka/ckafka_client.py +408 -302
- tccli/services/ckafka/v20190819/api.json +197 -2
- tccli/services/ckafka/v20190819/examples.json +16 -0
- tccli/services/clb/v20180317/api.json +439 -379
- tccli/services/clb/v20180317/examples.json +7 -7
- tccli/services/cls/cls_client.py +53 -0
- tccli/services/cls/v20201016/api.json +86 -3
- tccli/services/cls/v20201016/examples.json +11 -3
- tccli/services/cvm/v20170312/api.json +165 -147
- tccli/services/cvm/v20170312/examples.json +6 -6
- tccli/services/cwp/v20180228/api.json +93 -14
- tccli/services/cwp/v20180228/examples.json +7 -7
- tccli/services/cynosdb/cynosdb_client.py +171 -12
- tccli/services/cynosdb/v20190107/api.json +252 -3
- tccli/services/cynosdb/v20190107/examples.json +24 -0
- tccli/services/dbbrain/dbbrain_client.py +57 -4
- tccli/services/dbbrain/v20210527/api.json +62 -0
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dc/v20180410/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +816 -655
- tccli/services/dlc/v20210125/examples.json +73 -59
- tccli/services/dsgc/v20190723/api.json +18 -0
- tccli/services/dts/v20211206/api.json +4 -4
- tccli/services/dts/v20211206/examples.json +6 -0
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +127 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/es_client.py +686 -151
- tccli/services/es/v20180416/api.json +509 -436
- tccli/services/es/v20180416/examples.json +43 -49
- tccli/services/es/v20250101/api.json +1391 -0
- tccli/services/es/v20250101/examples.json +85 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +142 -21
- tccli/services/ess/v20201111/examples.json +14 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +112 -9
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/gaap/v20180529/api.json +321 -312
- tccli/services/gaap/v20180529/examples.json +2 -2
- tccli/services/gs/gs_client.py +538 -8
- tccli/services/gs/v20191118/api.json +947 -44
- tccli/services/gs/v20191118/examples.json +87 -1
- tccli/services/gwlb/v20240906/api.json +56 -37
- tccli/services/gwlb/v20240906/examples.json +11 -5
- tccli/services/hunyuan/hunyuan_client.py +175 -69
- tccli/services/hunyuan/v20230901/api.json +191 -1
- tccli/services/hunyuan/v20230901/examples.json +17 -1
- tccli/services/ioa/ioa_client.py +227 -15
- tccli/services/ioa/v20220601/api.json +479 -0
- tccli/services/ioa/v20220601/examples.json +44 -0
- tccli/services/iotexplorer/iotexplorer_client.py +322 -4
- tccli/services/iotexplorer/v20190423/api.json +865 -52
- tccli/services/iotexplorer/v20190423/examples.json +64 -16
- tccli/services/iotvideo/iotvideo_client.py +57 -4
- tccli/services/iotvideo/v20211125/api.json +146 -0
- tccli/services/iotvideo/v20211125/examples.json +8 -0
- tccli/services/iotvideoindustry/v20201201/api.json +1 -1
- tccli/services/kms/v20190118/api.json +38 -2
- tccli/services/lcic/v20220817/api.json +66 -1
- tccli/services/lcic/v20220817/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +0 -106
- tccli/services/lighthouse/v20200324/api.json +11 -98
- tccli/services/lighthouse/v20200324/examples.json +0 -16
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +208 -10
- tccli/services/lke/v20231130/examples.json +10 -10
- tccli/services/lkeap/lkeap_client.py +53 -0
- tccli/services/lkeap/v20240522/api.json +48 -4
- tccli/services/lkeap/v20240522/examples.json +8 -0
- tccli/services/mna/mna_client.py +4 -163
- tccli/services/mna/v20210119/api.json +0 -524
- tccli/services/mna/v20210119/examples.json +0 -24
- tccli/services/monitor/monitor_client.py +114 -8
- tccli/services/monitor/v20180724/api.json +129 -18
- tccli/services/monitor/v20180724/examples.json +17 -1
- tccli/services/mps/v20190612/api.json +1223 -1031
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/nlp/v20190408/examples.json +1 -1
- tccli/services/oceanus/v20190422/api.json +12 -12
- tccli/services/oceanus/v20190422/examples.json +15 -3
- tccli/services/ocr/v20181119/api.json +13 -3
- tccli/services/postgres/v20170312/api.json +2 -2
- tccli/services/privatedns/v20201028/api.json +30 -11
- tccli/services/privatedns/v20201028/examples.json +10 -10
- tccli/services/rce/v20201103/api.json +3 -3
- tccli/services/ses/v20201002/api.json +10 -1
- tccli/services/smop/v20201203/api.json +2 -2
- tccli/services/sqlserver/v20180328/api.json +1 -1
- tccli/services/ssm/v20190923/api.json +27 -0
- tccli/services/sts/sts_client.py +53 -0
- tccli/services/sts/v20180813/api.json +101 -1
- tccli/services/sts/v20180813/examples.json +8 -0
- tccli/services/taf/taf_client.py +0 -53
- tccli/services/taf/v20200210/api.json +0 -138
- tccli/services/taf/v20200210/examples.json +0 -8
- tccli/services/tan/v20220420/api.json +2 -2
- tccli/services/tat/v20201028/api.json +2 -2
- tccli/services/tcb/v20180608/api.json +29 -1
- tccli/services/tcbr/v20220217/api.json +32 -0
- tccli/services/tccatalog/v20241024/api.json +1 -1
- tccli/services/tccatalog/v20241024/examples.json +1 -1
- tccli/services/tcr/v20190924/api.json +5 -5
- tccli/services/tcr/v20190924/examples.json +2 -2
- tccli/services/tcss/v20201101/api.json +84 -34
- tccli/services/tcss/v20201101/examples.json +2809 -0
- tccli/services/tdmq/v20200217/api.json +40 -0
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/tds/tds_client.py +53 -0
- tccli/services/tds/v20220801/api.json +265 -0
- tccli/services/tds/v20220801/examples.json +8 -0
- tccli/services/tem/v20210701/api.json +664 -575
- tccli/services/tem/v20210701/examples.json +2 -2
- tccli/services/teo/v20220901/api.json +236 -208
- tccli/services/teo/v20220901/examples.json +13 -13
- tccli/services/tione/tione_client.py +53 -0
- tccli/services/tione/v20211111/api.json +256 -0
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +1 -1
- tccli/services/trocket/trocket_client.py +489 -12
- tccli/services/trocket/v20230308/api.json +925 -146
- tccli/services/trocket/v20230308/examples.json +72 -0
- tccli/services/trtc/v20190722/api.json +13 -19
- tccli/services/trtc/v20190722/examples.json +8 -8
- tccli/services/tse/v20201207/api.json +1016 -995
- tccli/services/tse/v20201207/examples.json +2 -2
- tccli/services/tsf/v20180326/api.json +510 -465
- tccli/services/tsf/v20180326/examples.json +4 -4
- tccli/services/tts/v20190823/api.json +10 -10
- tccli/services/vclm/v20240523/api.json +2 -2
- tccli/services/vcube/v20220410/api.json +10 -0
- tccli/services/vdb/v20230616/api.json +10 -0
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +824 -254
- tccli/services/vpc/v20170312/examples.json +66 -10
- tccli/services/vpc/vpc_client.py +383 -12
- tccli/services/vrs/v20200824/api.json +9 -0
- tccli/services/waf/v20180125/api.json +8113 -5814
- tccli/services/waf/v20180125/examples.json +90 -0
- tccli/services/waf/waf_client.py +559 -82
- tccli/services/wedata/v20210820/api.json +1379 -24
- tccli/services/wedata/v20210820/examples.json +25 -1
- tccli/services/wedata/wedata_client.py +171 -12
- tccli/services/weilingwith/v20230427/api.json +1 -1
- tccli/services/weilingwith/v20230427/examples.json +3 -3
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/RECORD +187 -184
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/license_files/LICENSE +0 -0
@@ -849,6 +849,58 @@ def doGenerateSignedVideoURL(args, parsed_globals):
|
|
849
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
850
|
|
851
851
|
|
852
|
+
def doCreateTWeSeeRecognitionTask(args, parsed_globals):
|
853
|
+
g_param = parse_global_arg(parsed_globals)
|
854
|
+
|
855
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
856
|
+
cred = credential.CVMRoleCredential()
|
857
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
858
|
+
cred = credential.STSAssumeRoleCredential(
|
859
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
860
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
861
|
+
)
|
862
|
+
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):
|
863
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
864
|
+
else:
|
865
|
+
cred = credential.Credential(
|
866
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
867
|
+
)
|
868
|
+
http_profile = HttpProfile(
|
869
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
870
|
+
reqMethod="POST",
|
871
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
872
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
873
|
+
)
|
874
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
875
|
+
if g_param[OptionsDefine.Language]:
|
876
|
+
profile.language = g_param[OptionsDefine.Language]
|
877
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
878
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
879
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
880
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
881
|
+
model = models.CreateTWeSeeRecognitionTaskRequest()
|
882
|
+
model.from_json_string(json.dumps(args))
|
883
|
+
start_time = time.time()
|
884
|
+
while True:
|
885
|
+
rsp = client.CreateTWeSeeRecognitionTask(model)
|
886
|
+
result = rsp.to_json_string()
|
887
|
+
try:
|
888
|
+
json_obj = json.loads(result)
|
889
|
+
except TypeError as e:
|
890
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
891
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
892
|
+
break
|
893
|
+
cur_time = time.time()
|
894
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
895
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
896
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
897
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
898
|
+
else:
|
899
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
900
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
901
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
|
+
|
903
|
+
|
852
904
|
def doDescribeDeviceBindGateway(args, parsed_globals):
|
853
905
|
g_param = parse_global_arg(parsed_globals)
|
854
906
|
|
@@ -1317,6 +1369,58 @@ def doModifyFenceBind(args, parsed_globals):
|
|
1317
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
1370
|
|
1319
1371
|
|
1372
|
+
def doInvokeAISearchService(args, parsed_globals):
|
1373
|
+
g_param = parse_global_arg(parsed_globals)
|
1374
|
+
|
1375
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1376
|
+
cred = credential.CVMRoleCredential()
|
1377
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1378
|
+
cred = credential.STSAssumeRoleCredential(
|
1379
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1380
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1381
|
+
)
|
1382
|
+
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):
|
1383
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1384
|
+
else:
|
1385
|
+
cred = credential.Credential(
|
1386
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1387
|
+
)
|
1388
|
+
http_profile = HttpProfile(
|
1389
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1390
|
+
reqMethod="POST",
|
1391
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1392
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1393
|
+
)
|
1394
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1395
|
+
if g_param[OptionsDefine.Language]:
|
1396
|
+
profile.language = g_param[OptionsDefine.Language]
|
1397
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1398
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
+
model = models.InvokeAISearchServiceRequest()
|
1402
|
+
model.from_json_string(json.dumps(args))
|
1403
|
+
start_time = time.time()
|
1404
|
+
while True:
|
1405
|
+
rsp = client.InvokeAISearchService(model)
|
1406
|
+
result = rsp.to_json_string()
|
1407
|
+
try:
|
1408
|
+
json_obj = json.loads(result)
|
1409
|
+
except TypeError as e:
|
1410
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1411
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1412
|
+
break
|
1413
|
+
cur_time = time.time()
|
1414
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1415
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1416
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1417
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1418
|
+
else:
|
1419
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1420
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1421
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1422
|
+
|
1423
|
+
|
1320
1424
|
def doDescribeProductCloudStorageAIService(args, parsed_globals):
|
1321
1425
|
g_param = parse_global_arg(parsed_globals)
|
1322
1426
|
|
@@ -1993,6 +2097,58 @@ def doDescribeFenceBindList(args, parsed_globals):
|
|
1993
2097
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
2098
|
|
1995
2099
|
|
2100
|
+
def doCreateLoRaGateway(args, parsed_globals):
|
2101
|
+
g_param = parse_global_arg(parsed_globals)
|
2102
|
+
|
2103
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2104
|
+
cred = credential.CVMRoleCredential()
|
2105
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2106
|
+
cred = credential.STSAssumeRoleCredential(
|
2107
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2108
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2109
|
+
)
|
2110
|
+
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):
|
2111
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2112
|
+
else:
|
2113
|
+
cred = credential.Credential(
|
2114
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2115
|
+
)
|
2116
|
+
http_profile = HttpProfile(
|
2117
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2118
|
+
reqMethod="POST",
|
2119
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2120
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2121
|
+
)
|
2122
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2123
|
+
if g_param[OptionsDefine.Language]:
|
2124
|
+
profile.language = g_param[OptionsDefine.Language]
|
2125
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2126
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
2127
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2128
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2129
|
+
model = models.CreateLoRaGatewayRequest()
|
2130
|
+
model.from_json_string(json.dumps(args))
|
2131
|
+
start_time = time.time()
|
2132
|
+
while True:
|
2133
|
+
rsp = client.CreateLoRaGateway(model)
|
2134
|
+
result = rsp.to_json_string()
|
2135
|
+
try:
|
2136
|
+
json_obj = json.loads(result)
|
2137
|
+
except TypeError as e:
|
2138
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2139
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2140
|
+
break
|
2141
|
+
cur_time = time.time()
|
2142
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2143
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2144
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2145
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2146
|
+
else:
|
2147
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2148
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2149
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
|
+
|
2151
|
+
|
1996
2152
|
def doDeleteLoRaGateway(args, parsed_globals):
|
1997
2153
|
g_param = parse_global_arg(parsed_globals)
|
1998
2154
|
|
@@ -4385,7 +4541,7 @@ def doModifyProductCloudStorageAIService(args, parsed_globals):
|
|
4385
4541
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4386
4542
|
|
4387
4543
|
|
4388
|
-
def
|
4544
|
+
def doModifyTWeSeeConfig(args, parsed_globals):
|
4389
4545
|
g_param = parse_global_arg(parsed_globals)
|
4390
4546
|
|
4391
4547
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -4414,11 +4570,11 @@ def doCreateLoRaGateway(args, parsed_globals):
|
|
4414
4570
|
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
4415
4571
|
client._sdkVersion += ("_CLI_" + __version__)
|
4416
4572
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4417
|
-
model = models.
|
4573
|
+
model = models.ModifyTWeSeeConfigRequest()
|
4418
4574
|
model.from_json_string(json.dumps(args))
|
4419
4575
|
start_time = time.time()
|
4420
4576
|
while True:
|
4421
|
-
rsp = client.
|
4577
|
+
rsp = client.ModifyTWeSeeConfig(model)
|
4422
4578
|
result = rsp.to_json_string()
|
4423
4579
|
try:
|
4424
4580
|
json_obj = json.loads(result)
|
@@ -6881,6 +7037,58 @@ def doModifyPositionFence(args, parsed_globals):
|
|
6881
7037
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6882
7038
|
|
6883
7039
|
|
7040
|
+
def doInvokeTWeSeeRecognitionTask(args, parsed_globals):
|
7041
|
+
g_param = parse_global_arg(parsed_globals)
|
7042
|
+
|
7043
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7044
|
+
cred = credential.CVMRoleCredential()
|
7045
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7046
|
+
cred = credential.STSAssumeRoleCredential(
|
7047
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7048
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7049
|
+
)
|
7050
|
+
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):
|
7051
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7052
|
+
else:
|
7053
|
+
cred = credential.Credential(
|
7054
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7055
|
+
)
|
7056
|
+
http_profile = HttpProfile(
|
7057
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7058
|
+
reqMethod="POST",
|
7059
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7060
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7061
|
+
)
|
7062
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7063
|
+
if g_param[OptionsDefine.Language]:
|
7064
|
+
profile.language = g_param[OptionsDefine.Language]
|
7065
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7066
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
7067
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7068
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7069
|
+
model = models.InvokeTWeSeeRecognitionTaskRequest()
|
7070
|
+
model.from_json_string(json.dumps(args))
|
7071
|
+
start_time = time.time()
|
7072
|
+
while True:
|
7073
|
+
rsp = client.InvokeTWeSeeRecognitionTask(model)
|
7074
|
+
result = rsp.to_json_string()
|
7075
|
+
try:
|
7076
|
+
json_obj = json.loads(result)
|
7077
|
+
except TypeError as e:
|
7078
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7079
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7080
|
+
break
|
7081
|
+
cur_time = time.time()
|
7082
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7083
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7084
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7085
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7086
|
+
else:
|
7087
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7088
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7089
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7090
|
+
|
7091
|
+
|
6884
7092
|
def doDescribeStudioProduct(args, parsed_globals):
|
6885
7093
|
g_param = parse_global_arg(parsed_globals)
|
6886
7094
|
|
@@ -7869,6 +8077,58 @@ def doSearchTopicRule(args, parsed_globals):
|
|
7869
8077
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7870
8078
|
|
7871
8079
|
|
8080
|
+
def doDescribeCsReportCountDataInfo(args, parsed_globals):
|
8081
|
+
g_param = parse_global_arg(parsed_globals)
|
8082
|
+
|
8083
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
8084
|
+
cred = credential.CVMRoleCredential()
|
8085
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
8086
|
+
cred = credential.STSAssumeRoleCredential(
|
8087
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
8088
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
8089
|
+
)
|
8090
|
+
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):
|
8091
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
8092
|
+
else:
|
8093
|
+
cred = credential.Credential(
|
8094
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
8095
|
+
)
|
8096
|
+
http_profile = HttpProfile(
|
8097
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
8098
|
+
reqMethod="POST",
|
8099
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
8100
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
8101
|
+
)
|
8102
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
8103
|
+
if g_param[OptionsDefine.Language]:
|
8104
|
+
profile.language = g_param[OptionsDefine.Language]
|
8105
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8106
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
8107
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
8108
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8109
|
+
model = models.DescribeCsReportCountDataInfoRequest()
|
8110
|
+
model.from_json_string(json.dumps(args))
|
8111
|
+
start_time = time.time()
|
8112
|
+
while True:
|
8113
|
+
rsp = client.DescribeCsReportCountDataInfo(model)
|
8114
|
+
result = rsp.to_json_string()
|
8115
|
+
try:
|
8116
|
+
json_obj = json.loads(result)
|
8117
|
+
except TypeError as e:
|
8118
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8119
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8120
|
+
break
|
8121
|
+
cur_time = time.time()
|
8122
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8123
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8124
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8125
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8126
|
+
else:
|
8127
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8128
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8129
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8130
|
+
|
8131
|
+
|
7872
8132
|
def doDescribeCloudStorageEvents(args, parsed_globals):
|
7873
8133
|
g_param = parse_global_arg(parsed_globals)
|
7874
8134
|
|
@@ -8129,6 +8389,58 @@ def doBindCloudStorageUser(args, parsed_globals):
|
|
8129
8389
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8130
8390
|
|
8131
8391
|
|
8392
|
+
def doDescribeTWeSeeConfig(args, parsed_globals):
|
8393
|
+
g_param = parse_global_arg(parsed_globals)
|
8394
|
+
|
8395
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
8396
|
+
cred = credential.CVMRoleCredential()
|
8397
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
8398
|
+
cred = credential.STSAssumeRoleCredential(
|
8399
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
8400
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
8401
|
+
)
|
8402
|
+
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):
|
8403
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
8404
|
+
else:
|
8405
|
+
cred = credential.Credential(
|
8406
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
8407
|
+
)
|
8408
|
+
http_profile = HttpProfile(
|
8409
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
8410
|
+
reqMethod="POST",
|
8411
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
8412
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
8413
|
+
)
|
8414
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
8415
|
+
if g_param[OptionsDefine.Language]:
|
8416
|
+
profile.language = g_param[OptionsDefine.Language]
|
8417
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8418
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
8419
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
8420
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8421
|
+
model = models.DescribeTWeSeeConfigRequest()
|
8422
|
+
model.from_json_string(json.dumps(args))
|
8423
|
+
start_time = time.time()
|
8424
|
+
while True:
|
8425
|
+
rsp = client.DescribeTWeSeeConfig(model)
|
8426
|
+
result = rsp.to_json_string()
|
8427
|
+
try:
|
8428
|
+
json_obj = json.loads(result)
|
8429
|
+
except TypeError as e:
|
8430
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8431
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8432
|
+
break
|
8433
|
+
cur_time = time.time()
|
8434
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8435
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8436
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8437
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8438
|
+
else:
|
8439
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8440
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8441
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8442
|
+
|
8443
|
+
|
8132
8444
|
def doCreatePositionSpace(args, parsed_globals):
|
8133
8445
|
g_param = parse_global_arg(parsed_globals)
|
8134
8446
|
|
@@ -8364,6 +8676,7 @@ ACTION_MAP = {
|
|
8364
8676
|
"DeleteStudioProduct": doDeleteStudioProduct,
|
8365
8677
|
"DescribeDeviceLocationSolve": doDescribeDeviceLocationSolve,
|
8366
8678
|
"GenerateSignedVideoURL": doGenerateSignedVideoURL,
|
8679
|
+
"CreateTWeSeeRecognitionTask": doCreateTWeSeeRecognitionTask,
|
8367
8680
|
"DescribeDeviceBindGateway": doDescribeDeviceBindGateway,
|
8368
8681
|
"GetDeviceLocationHistory": doGetDeviceLocationHistory,
|
8369
8682
|
"ListEventHistory": doListEventHistory,
|
@@ -8373,6 +8686,7 @@ ACTION_MAP = {
|
|
8373
8686
|
"DescribeCloudStorageThumbnailList": doDescribeCloudStorageThumbnailList,
|
8374
8687
|
"CreateTRTCSignaturesWithRoomId": doCreateTRTCSignaturesWithRoomId,
|
8375
8688
|
"ModifyFenceBind": doModifyFenceBind,
|
8689
|
+
"InvokeAISearchService": doInvokeAISearchService,
|
8376
8690
|
"DescribeProductCloudStorageAIService": doDescribeProductCloudStorageAIService,
|
8377
8691
|
"DescribePackageConsumeTasks": doDescribePackageConsumeTasks,
|
8378
8692
|
"DescribeCloudStoragePackageConsumeStats": doDescribeCloudStoragePackageConsumeStats,
|
@@ -8386,6 +8700,7 @@ ACTION_MAP = {
|
|
8386
8700
|
"DeleteTopicRule": doDeleteTopicRule,
|
8387
8701
|
"DescribeCloudStorageAIService": doDescribeCloudStorageAIService,
|
8388
8702
|
"DescribeFenceBindList": doDescribeFenceBindList,
|
8703
|
+
"CreateLoRaGateway": doCreateLoRaGateway,
|
8389
8704
|
"DeleteLoRaGateway": doDeleteLoRaGateway,
|
8390
8705
|
"CancelAssignTWeCallLicense": doCancelAssignTWeCallLicense,
|
8391
8706
|
"CreateStudioProduct": doCreateStudioProduct,
|
@@ -8432,7 +8747,7 @@ ACTION_MAP = {
|
|
8432
8747
|
"DismissRoomByStrRoomIdFromTRTC": doDismissRoomByStrRoomIdFromTRTC,
|
8433
8748
|
"CreatePositionFence": doCreatePositionFence,
|
8434
8749
|
"ModifyProductCloudStorageAIService": doModifyProductCloudStorageAIService,
|
8435
|
-
"
|
8750
|
+
"ModifyTWeSeeConfig": doModifyTWeSeeConfig,
|
8436
8751
|
"CreateTopicRule": doCreateTopicRule,
|
8437
8752
|
"CreateLoRaFrequency": doCreateLoRaFrequency,
|
8438
8753
|
"CreateTopicPolicy": doCreateTopicPolicy,
|
@@ -8480,6 +8795,7 @@ ACTION_MAP = {
|
|
8480
8795
|
"PublishMessage": doPublishMessage,
|
8481
8796
|
"DescribeDeviceDataHistory": doDescribeDeviceDataHistory,
|
8482
8797
|
"ModifyPositionFence": doModifyPositionFence,
|
8798
|
+
"InvokeTWeSeeRecognitionTask": doInvokeTWeSeeRecognitionTask,
|
8483
8799
|
"DescribeStudioProduct": doDescribeStudioProduct,
|
8484
8800
|
"DescribePositionFenceList": doDescribePositionFenceList,
|
8485
8801
|
"DeleteLoRaFrequency": doDeleteLoRaFrequency,
|
@@ -8499,11 +8815,13 @@ ACTION_MAP = {
|
|
8499
8815
|
"ModifyCloudStorageAIServiceCallback": doModifyCloudStorageAIServiceCallback,
|
8500
8816
|
"DescribeCloudStorageAIServiceTasks": doDescribeCloudStorageAIServiceTasks,
|
8501
8817
|
"SearchTopicRule": doSearchTopicRule,
|
8818
|
+
"DescribeCsReportCountDataInfo": doDescribeCsReportCountDataInfo,
|
8502
8819
|
"DescribeCloudStorageEvents": doDescribeCloudStorageEvents,
|
8503
8820
|
"ModifyModelDefinition": doModifyModelDefinition,
|
8504
8821
|
"UnbindDevices": doUnbindDevices,
|
8505
8822
|
"ResumeWeCallDevice": doResumeWeCallDevice,
|
8506
8823
|
"BindCloudStorageUser": doBindCloudStorageUser,
|
8824
|
+
"DescribeTWeSeeConfig": doDescribeTWeSeeConfig,
|
8507
8825
|
"CreatePositionSpace": doCreatePositionSpace,
|
8508
8826
|
"DescribeDeviceFirmWare": doDescribeDeviceFirmWare,
|
8509
8827
|
"CreateFenceBind": doCreateFenceBind,
|