tccli 3.0.1389.1__py2.py3-none-any.whl → 3.0.1390.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 +3 -0
- tccli/services/ai3d/ai3d_client.py +106 -0
- tccli/services/ai3d/v20250513/api.json +172 -0
- tccli/services/ai3d/v20250513/examples.json +16 -0
- tccli/services/batch/v20170312/api.json +3 -3
- tccli/services/batch/v20170312/examples.json +3 -3
- tccli/services/cam/v20190116/api.json +11 -1
- tccli/services/ccc/v20200210/api.json +10 -10
- tccli/services/cdb/v20170320/api.json +40 -2
- tccli/services/cdz/v20221123/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +29 -21
- tccli/services/ckafka/v20190819/examples.json +1 -1
- tccli/services/cloudapp/cloudapp_client.py +53 -0
- tccli/services/cloudapp/v20220530/api.json +68 -0
- tccli/services/cloudapp/v20220530/examples.json +14 -0
- tccli/services/cls/cls_client.py +167 -8
- tccli/services/cls/v20201016/api.json +292 -2
- tccli/services/cls/v20201016/examples.json +24 -0
- tccli/services/dts/v20211206/api.json +15 -15
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/es/v20250101/api.json +99 -5
- tccli/services/ess/v20201111/api.json +145 -4
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/gme/v20180711/api.json +7 -7
- tccli/services/igtm/v20231024/api.json +3 -3
- tccli/services/iotexplorer/v20190423/api.json +19 -1
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +53 -0
- tccli/services/lighthouse/v20200324/api.json +228 -35
- tccli/services/lighthouse/v20200324/examples.json +8 -0
- tccli/services/live/v20180801/api.json +2 -2
- tccli/services/lowcode/lowcode_client.py +163 -4
- tccli/services/lowcode/v20210108/api.json +1373 -96
- tccli/services/lowcode/v20210108/examples.json +24 -0
- tccli/services/mps/v20190612/api.json +804 -47
- tccli/services/ocr/v20181119/api.json +3 -3
- tccli/services/sqlserver/v20180328/api.json +4 -4
- tccli/services/tcbr/v20220217/api.json +51 -0
- tccli/services/tdai/__init__.py +4 -0
- tccli/services/tdai/tdai_client.py +1108 -0
- tccli/services/tdai/v20250717/api.json +1930 -0
- tccli/services/tdai/v20250717/examples.json +149 -0
- tccli/services/teo/teo_client.py +53 -0
- tccli/services/teo/v20220901/api.json +111 -3
- tccli/services/teo/v20220901/examples.json +8 -0
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/tts/v20190823/api.json +11 -11
- tccli/services/vpc/v20170312/api.json +37 -7
- tccli/services/vpc/v20170312/examples.json +7 -7
- tccli/services/vtc/v20240223/api.json +3 -1
- tccli/services/vtc/v20240223/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +6 -6
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1390.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1390.1.dist-info}/RECORD +58 -54
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1390.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1390.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1390.1.dist-info}/license_files/LICENSE +0 -0
@@ -173,7 +173,7 @@ def doUpdateKnowledgeSet(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
-
def
|
176
|
+
def doDescribeApps(args, parsed_globals):
|
177
177
|
g_param = parse_global_arg(parsed_globals)
|
178
178
|
|
179
179
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -202,11 +202,63 @@ def doSearchDocList(args, parsed_globals):
|
|
202
202
|
client = mod.LowcodeClient(cred, g_param[OptionsDefine.Region], profile)
|
203
203
|
client._sdkVersion += ("_CLI_" + __version__)
|
204
204
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
-
model = models.
|
205
|
+
model = models.DescribeAppsRequest()
|
206
206
|
model.from_json_string(json.dumps(args))
|
207
207
|
start_time = time.time()
|
208
208
|
while True:
|
209
|
-
rsp = client.
|
209
|
+
rsp = client.DescribeApps(model)
|
210
|
+
result = rsp.to_json_string()
|
211
|
+
try:
|
212
|
+
json_obj = json.loads(result)
|
213
|
+
except TypeError as e:
|
214
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
215
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
216
|
+
break
|
217
|
+
cur_time = time.time()
|
218
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
219
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
220
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
221
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
222
|
+
else:
|
223
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
224
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
225
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
|
+
|
227
|
+
|
228
|
+
def doDescribeRelatedUsers(args, parsed_globals):
|
229
|
+
g_param = parse_global_arg(parsed_globals)
|
230
|
+
|
231
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
232
|
+
cred = credential.CVMRoleCredential()
|
233
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
234
|
+
cred = credential.STSAssumeRoleCredential(
|
235
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
236
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
237
|
+
)
|
238
|
+
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):
|
239
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
240
|
+
else:
|
241
|
+
cred = credential.Credential(
|
242
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
243
|
+
)
|
244
|
+
http_profile = HttpProfile(
|
245
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
246
|
+
reqMethod="POST",
|
247
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
248
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
249
|
+
)
|
250
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
251
|
+
if g_param[OptionsDefine.Language]:
|
252
|
+
profile.language = g_param[OptionsDefine.Language]
|
253
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
254
|
+
client = mod.LowcodeClient(cred, g_param[OptionsDefine.Region], profile)
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
+
model = models.DescribeRelatedUsersRequest()
|
258
|
+
model.from_json_string(json.dumps(args))
|
259
|
+
start_time = time.time()
|
260
|
+
while True:
|
261
|
+
rsp = client.DescribeRelatedUsers(model)
|
210
262
|
result = rsp.to_json_string()
|
211
263
|
try:
|
212
264
|
json_obj = json.loads(result)
|
@@ -277,6 +329,58 @@ def doDescribeKnowledgeSetList(args, parsed_globals):
|
|
277
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
330
|
|
279
331
|
|
332
|
+
def doSearchDocList(args, parsed_globals):
|
333
|
+
g_param = parse_global_arg(parsed_globals)
|
334
|
+
|
335
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
336
|
+
cred = credential.CVMRoleCredential()
|
337
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
338
|
+
cred = credential.STSAssumeRoleCredential(
|
339
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
340
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
341
|
+
)
|
342
|
+
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):
|
343
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
344
|
+
else:
|
345
|
+
cred = credential.Credential(
|
346
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
347
|
+
)
|
348
|
+
http_profile = HttpProfile(
|
349
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
350
|
+
reqMethod="POST",
|
351
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
352
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
353
|
+
)
|
354
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
355
|
+
if g_param[OptionsDefine.Language]:
|
356
|
+
profile.language = g_param[OptionsDefine.Language]
|
357
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
358
|
+
client = mod.LowcodeClient(cred, g_param[OptionsDefine.Region], profile)
|
359
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
360
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
+
model = models.SearchDocListRequest()
|
362
|
+
model.from_json_string(json.dumps(args))
|
363
|
+
start_time = time.time()
|
364
|
+
while True:
|
365
|
+
rsp = client.SearchDocList(model)
|
366
|
+
result = rsp.to_json_string()
|
367
|
+
try:
|
368
|
+
json_obj = json.loads(result)
|
369
|
+
except TypeError as e:
|
370
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
371
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
372
|
+
break
|
373
|
+
cur_time = time.time()
|
374
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
375
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
376
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
377
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
378
|
+
else:
|
379
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
380
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
381
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
382
|
+
|
383
|
+
|
280
384
|
def doDescribeDataSourceList(args, parsed_globals):
|
281
385
|
g_param = parse_global_arg(parsed_globals)
|
282
386
|
|
@@ -485,6 +589,58 @@ def doUploadKnowledgeDocumentSet(args, parsed_globals):
|
|
485
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
590
|
|
487
591
|
|
592
|
+
def doDescribeResourceRoleList(args, parsed_globals):
|
593
|
+
g_param = parse_global_arg(parsed_globals)
|
594
|
+
|
595
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
596
|
+
cred = credential.CVMRoleCredential()
|
597
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
598
|
+
cred = credential.STSAssumeRoleCredential(
|
599
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
600
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
601
|
+
)
|
602
|
+
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):
|
603
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
604
|
+
else:
|
605
|
+
cred = credential.Credential(
|
606
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
607
|
+
)
|
608
|
+
http_profile = HttpProfile(
|
609
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
610
|
+
reqMethod="POST",
|
611
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
612
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
613
|
+
)
|
614
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
615
|
+
if g_param[OptionsDefine.Language]:
|
616
|
+
profile.language = g_param[OptionsDefine.Language]
|
617
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
618
|
+
client = mod.LowcodeClient(cred, g_param[OptionsDefine.Region], profile)
|
619
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
620
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
621
|
+
model = models.DescribeResourceRoleListRequest()
|
622
|
+
model.from_json_string(json.dumps(args))
|
623
|
+
start_time = time.time()
|
624
|
+
while True:
|
625
|
+
rsp = client.DescribeResourceRoleList(model)
|
626
|
+
result = rsp.to_json_string()
|
627
|
+
try:
|
628
|
+
json_obj = json.loads(result)
|
629
|
+
except TypeError as e:
|
630
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
631
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
632
|
+
break
|
633
|
+
cur_time = time.time()
|
634
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
635
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
636
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
637
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
638
|
+
else:
|
639
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
640
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
641
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
|
+
|
643
|
+
|
488
644
|
def doDeleteAppBindWxApp(args, parsed_globals):
|
489
645
|
g_param = parse_global_arg(parsed_globals)
|
490
646
|
|
@@ -759,12 +915,15 @@ ACTION_MAP = {
|
|
759
915
|
"CreateKnowledgeSet": doCreateKnowledgeSet,
|
760
916
|
"CheckDeployApp": doCheckDeployApp,
|
761
917
|
"UpdateKnowledgeSet": doUpdateKnowledgeSet,
|
762
|
-
"
|
918
|
+
"DescribeApps": doDescribeApps,
|
919
|
+
"DescribeRelatedUsers": doDescribeRelatedUsers,
|
763
920
|
"DescribeKnowledgeSetList": doDescribeKnowledgeSetList,
|
921
|
+
"SearchDocList": doSearchDocList,
|
764
922
|
"DescribeDataSourceList": doDescribeDataSourceList,
|
765
923
|
"DeleteKnowledgeDocumentSet": doDeleteKnowledgeDocumentSet,
|
766
924
|
"DescribeKnowledgeDocumentSetDetail": doDescribeKnowledgeDocumentSetDetail,
|
767
925
|
"UploadKnowledgeDocumentSet": doUploadKnowledgeDocumentSet,
|
926
|
+
"DescribeResourceRoleList": doDescribeResourceRoleList,
|
768
927
|
"DeleteAppBindWxApp": doDeleteAppBindWxApp,
|
769
928
|
"DescribeKnowledgeDocumentSetList": doDescribeKnowledgeDocumentSetList,
|
770
929
|
"DeployApp": doDeployApp,
|