tccli 3.0.1288.1__py2.py3-none-any.whl → 3.0.1290.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/plugins/sso/__init__.py +11 -1
- tccli/plugins/sso/login.py +3 -3
- tccli/services/asr/v20190614/api.json +6 -6
- tccli/services/asr/v20190614/examples.json +4 -4
- tccli/services/bi/v20220105/api.json +43 -0
- tccli/services/billing/v20180709/api.json +326 -266
- tccli/services/billing/v20180709/examples.json +1 -1
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +64 -0
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/cdwpg/v20201230/api.json +5 -5
- tccli/services/cdwpg/v20201230/examples.json +6 -6
- tccli/services/cdz/v20221123/api.json +4 -4
- tccli/services/cfg/v20210820/api.json +197 -197
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +21 -16
- tccli/services/cls/v20201016/api.json +230 -198
- tccli/services/cls/v20201016/examples.json +2 -2
- tccli/services/cwp/v20180228/api.json +39 -9
- tccli/services/cynosdb/v20190107/api.json +2 -2
- tccli/services/dbbrain/dbbrain_client.py +383 -12
- tccli/services/dbbrain/v20191016/api.json +24 -21
- tccli/services/dbbrain/v20210527/api.json +851 -68
- tccli/services/dbbrain/v20210527/examples.json +56 -0
- tccli/services/domain/v20180808/api.json +11 -11
- tccli/services/dts/v20180330/api.json +34 -34
- tccli/services/dts/v20180330/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +225 -223
- tccli/services/dts/v20211206/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +30 -3
- tccli/services/essbasic/v20210526/api.json +29 -2
- tccli/services/fmu/v20191213/api.json +2 -2
- tccli/services/goosefs/v20220519/api.json +2 -2
- tccli/services/gwlb/v20240906/api.json +1 -1
- tccli/services/iotcloud/v20210408/api.json +66 -66
- tccli/services/iotcloud/v20210408/examples.json +13 -13
- tccli/services/iotexplorer/iotexplorer_client.py +159 -0
- tccli/services/iotexplorer/v20190423/api.json +561 -0
- tccli/services/iotexplorer/v20190423/examples.json +24 -0
- tccli/services/iotvideo/iotvideo_client.py +106 -0
- tccli/services/iotvideo/v20211125/api.json +105 -0
- tccli/services/iotvideo/v20211125/examples.json +16 -0
- tccli/services/lighthouse/v20200324/api.json +53 -53
- tccli/services/lighthouse/v20200324/examples.json +2 -2
- tccli/services/lke/v20231130/api.json +12 -2
- tccli/services/lkeap/v20240522/api.json +2 -2
- tccli/services/lowcode/v20210108/api.json +2 -2
- tccli/services/monitor/monitor_client.py +53 -0
- tccli/services/monitor/v20180724/api.json +144 -0
- tccli/services/monitor/v20180724/examples.json +8 -0
- tccli/services/mps/mps_client.py +501 -24
- tccli/services/mps/v20190612/api.json +2118 -247
- tccli/services/mps/v20190612/examples.json +72 -0
- tccli/services/mqtt/v20240516/api.json +4 -4
- tccli/services/mqtt/v20240516/examples.json +5 -11
- tccli/services/organization/v20210331/api.json +113 -113
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +34 -0
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/svp/v20240125/api.json +1 -1
- tccli/services/tcb/tcb_client.py +53 -0
- tccli/services/tcb/v20180608/api.json +224 -157
- tccli/services/tcb/v20180608/examples.json +8 -0
- tccli/services/tcbr/v20220217/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +379 -285
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +541 -5
- tccli/services/teo/v20220901/examples.json +21 -3
- tccli/services/tione/v20211111/api.json +64 -6
- tccli/services/vdb/v20230616/api.json +31 -2
- tccli/services/vdb/v20230616/examples.json +8 -2
- tccli/services/vrs/v20200824/api.json +14 -2
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +102 -0
- tccli/services/weilingwith/v20230427/api.json +997 -997
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/RECORD +81 -81
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/license_files/LICENSE +0 -0
@@ -329,6 +329,58 @@ def doDescribeDevice(args, parsed_globals):
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
330
|
|
331
331
|
|
332
|
+
def doDescribeP2PRoute(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.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
359
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
360
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
+
model = models.DescribeP2PRouteRequest()
|
362
|
+
model.from_json_string(json.dumps(args))
|
363
|
+
start_time = time.time()
|
364
|
+
while True:
|
365
|
+
rsp = client.DescribeP2PRoute(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
|
+
|
332
384
|
def doDescribeCloudStorageEventsWithAITasks(args, parsed_globals):
|
333
385
|
g_param = parse_global_arg(parsed_globals)
|
334
386
|
|
@@ -2409,6 +2461,58 @@ def doDescribeVideoLicense(args, parsed_globals):
|
|
2409
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2410
2462
|
|
2411
2463
|
|
2464
|
+
def doChangeP2PRoute(args, parsed_globals):
|
2465
|
+
g_param = parse_global_arg(parsed_globals)
|
2466
|
+
|
2467
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2468
|
+
cred = credential.CVMRoleCredential()
|
2469
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2470
|
+
cred = credential.STSAssumeRoleCredential(
|
2471
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2472
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2473
|
+
)
|
2474
|
+
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):
|
2475
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2476
|
+
else:
|
2477
|
+
cred = credential.Credential(
|
2478
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2479
|
+
)
|
2480
|
+
http_profile = HttpProfile(
|
2481
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2482
|
+
reqMethod="POST",
|
2483
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2484
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2485
|
+
)
|
2486
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2487
|
+
if g_param[OptionsDefine.Language]:
|
2488
|
+
profile.language = g_param[OptionsDefine.Language]
|
2489
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2490
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
2491
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2492
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2493
|
+
model = models.ChangeP2PRouteRequest()
|
2494
|
+
model.from_json_string(json.dumps(args))
|
2495
|
+
start_time = time.time()
|
2496
|
+
while True:
|
2497
|
+
rsp = client.ChangeP2PRoute(model)
|
2498
|
+
result = rsp.to_json_string()
|
2499
|
+
try:
|
2500
|
+
json_obj = json.loads(result)
|
2501
|
+
except TypeError as e:
|
2502
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2503
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2504
|
+
break
|
2505
|
+
cur_time = time.time()
|
2506
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2507
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2508
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2509
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2510
|
+
else:
|
2511
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2512
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2513
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
|
+
|
2515
|
+
|
2412
2516
|
def doSearchStudioProduct(args, parsed_globals):
|
2413
2517
|
g_param = parse_global_arg(parsed_globals)
|
2414
2518
|
|
@@ -4749,6 +4853,58 @@ def doCreateFreeCloudStorage(args, parsed_globals):
|
|
4749
4853
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4750
4854
|
|
4751
4855
|
|
4856
|
+
def doModifyApplication(args, parsed_globals):
|
4857
|
+
g_param = parse_global_arg(parsed_globals)
|
4858
|
+
|
4859
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4860
|
+
cred = credential.CVMRoleCredential()
|
4861
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4862
|
+
cred = credential.STSAssumeRoleCredential(
|
4863
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4864
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4865
|
+
)
|
4866
|
+
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):
|
4867
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4868
|
+
else:
|
4869
|
+
cred = credential.Credential(
|
4870
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4871
|
+
)
|
4872
|
+
http_profile = HttpProfile(
|
4873
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4874
|
+
reqMethod="POST",
|
4875
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4876
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4877
|
+
)
|
4878
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4879
|
+
if g_param[OptionsDefine.Language]:
|
4880
|
+
profile.language = g_param[OptionsDefine.Language]
|
4881
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4882
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
4883
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4884
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4885
|
+
model = models.ModifyApplicationRequest()
|
4886
|
+
model.from_json_string(json.dumps(args))
|
4887
|
+
start_time = time.time()
|
4888
|
+
while True:
|
4889
|
+
rsp = client.ModifyApplication(model)
|
4890
|
+
result = rsp.to_json_string()
|
4891
|
+
try:
|
4892
|
+
json_obj = json.loads(result)
|
4893
|
+
except TypeError as e:
|
4894
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4895
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4896
|
+
break
|
4897
|
+
cur_time = time.time()
|
4898
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4899
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4900
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4901
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4902
|
+
else:
|
4903
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4904
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4905
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4906
|
+
|
4907
|
+
|
4752
4908
|
def doUpdateDevicesEnableState(args, parsed_globals):
|
4753
4909
|
g_param = parse_global_arg(parsed_globals)
|
4754
4910
|
|
@@ -8146,6 +8302,7 @@ ACTION_MAP = {
|
|
8146
8302
|
"DescribeDevicePackages": doDescribeDevicePackages,
|
8147
8303
|
"DescribeFirmwareUpdateStatus": doDescribeFirmwareUpdateStatus,
|
8148
8304
|
"DescribeDevice": doDescribeDevice,
|
8305
|
+
"DescribeP2PRoute": doDescribeP2PRoute,
|
8149
8306
|
"DescribeCloudStorageEventsWithAITasks": doDescribeCloudStorageEventsWithAITasks,
|
8150
8307
|
"DescribeTopicPolicy": doDescribeTopicPolicy,
|
8151
8308
|
"CreateCloudStorageAIService": doCreateCloudStorageAIService,
|
@@ -8186,6 +8343,7 @@ ACTION_MAP = {
|
|
8186
8343
|
"DescribeCloudStorageUsers": doDescribeCloudStorageUsers,
|
8187
8344
|
"TransferCloudStorage": doTransferCloudStorage,
|
8188
8345
|
"DescribeVideoLicense": doDescribeVideoLicense,
|
8346
|
+
"ChangeP2PRoute": doChangeP2PRoute,
|
8189
8347
|
"SearchStudioProduct": doSearchStudioProduct,
|
8190
8348
|
"ModifyTopicRule": doModifyTopicRule,
|
8191
8349
|
"InheritCloudStorageUser": doInheritCloudStorageUser,
|
@@ -8231,6 +8389,7 @@ ACTION_MAP = {
|
|
8231
8389
|
"InvokeCloudStorageAIServiceTask": doInvokeCloudStorageAIServiceTask,
|
8232
8390
|
"DescribeActivateLicenseService": doDescribeActivateLicenseService,
|
8233
8391
|
"CreateFreeCloudStorage": doCreateFreeCloudStorage,
|
8392
|
+
"ModifyApplication": doModifyApplication,
|
8234
8393
|
"UpdateDevicesEnableState": doUpdateDevicesEnableState,
|
8235
8394
|
"ModifyProject": doModifyProject,
|
8236
8395
|
"BindProducts": doBindProducts,
|