tccli 3.0.1268.1__py2.py3-none-any.whl → 3.0.1269.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 +5 -1
- tccli/services/aiart/aiart_client.py +106 -0
- tccli/services/aiart/v20221229/api.json +275 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/billing/billing_client.py +4 -163
- tccli/services/billing/v20180709/api.json +0 -489
- tccli/services/billing/v20180709/examples.json +0 -24
- tccli/services/cat/v20180409/api.json +3 -1
- tccli/services/cbs/v20170312/api.json +9 -0
- tccli/services/ccc/v20200210/api.json +11 -11
- tccli/services/ccc/v20200210/examples.json +2 -2
- tccli/services/cdb/v20170320/api.json +48 -18
- tccli/services/cfw/v20190904/api.json +30 -30
- tccli/services/ckafka/v20190819/api.json +10 -0
- tccli/services/csip/v20221121/api.json +38 -38
- tccli/services/cwp/cwp_client.py +4 -57
- tccli/services/cwp/v20180228/api.json +0 -184
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +1 -1
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dcdb/dcdb_client.py +122 -16
- tccli/services/dcdb/v20180411/api.json +222 -0
- tccli/services/dcdb/v20180411/examples.json +16 -0
- tccli/services/dlc/v20210125/api.json +145 -26
- tccli/services/dlc/v20210125/examples.json +18 -18
- tccli/services/domain/v20180808/api.json +8 -8
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/es/v20180416/api.json +9 -9
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +5 -5
- tccli/services/faceid/v20180301/examples.json +6 -0
- tccli/services/gme/v20180711/api.json +118 -115
- tccli/services/gme/v20180711/examples.json +6 -6
- tccli/services/hunyuan/v20230901/api.json +9 -0
- tccli/services/iotexplorer/v20190423/api.json +4 -4
- tccli/services/iotexplorer/v20190423/examples.json +5 -5
- tccli/services/keewidb/v20220308/api.json +2 -2
- tccli/services/lcic/v20220817/api.json +177 -177
- tccli/services/lcic/v20220817/examples.json +2 -2
- tccli/services/lighthouse/v20200324/api.json +76 -67
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +31 -0
- tccli/services/lkeap/v20240522/api.json +55 -9
- tccli/services/lkeap/v20240522/examples.json +1 -1
- tccli/services/mna/mna_client.py +106 -0
- tccli/services/mna/v20210119/api.json +246 -0
- tccli/services/mna/v20210119/examples.json +16 -0
- tccli/services/monitor/monitor_client.py +62 -57
- tccli/services/monitor/v20230616/api.json +266 -0
- tccli/services/monitor/v20230616/examples.json +19 -0
- tccli/services/mqtt/mqtt_client.py +489 -12
- tccli/services/mqtt/v20240516/api.json +864 -3
- tccli/services/mqtt/v20240516/examples.json +72 -0
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +246 -1
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/postgres/postgres_client.py +334 -16
- tccli/services/postgres/v20170312/api.json +717 -34
- tccli/services/postgres/v20170312/examples.json +72 -0
- tccli/services/ssl/v20191205/api.json +496 -493
- tccli/services/ssl/v20191205/examples.json +144 -24
- tccli/services/taf/taf_client.py +0 -159
- tccli/services/taf/v20200210/api.json +0 -665
- tccli/services/taf/v20200210/examples.json +0 -24
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/tione/v20211111/api.json +14 -3
- tccli/services/trabbit/__init__.py +4 -0
- tccli/services/trabbit/trabbit_client.py +1691 -0
- tccli/services/trabbit/v20230418/api.json +4773 -0
- tccli/services/trabbit/v20230418/examples.json +237 -0
- tccli/services/trtc/v20190722/api.json +8 -8
- tccli/services/trtc/v20190722/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +0 -450
- tccli/services/vclm/v20240523/examples.json +0 -48
- tccli/services/vclm/vclm_client.py +0 -159
- tccli/services/wedata/v20210820/api.json +211 -33
- tccli/services/wedata/v20210820/examples.json +14 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/RECORD +87 -81
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1268.1.dist-info → tccli-3.0.1269.1.dist-info}/license_files/LICENSE +0 -0
@@ -433,58 +433,6 @@ def doDescribeAllocateConditions(args, parsed_globals):
|
|
433
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
434
434
|
|
435
435
|
|
436
|
-
def doDescribeSavingPlanOverview(args, parsed_globals):
|
437
|
-
g_param = parse_global_arg(parsed_globals)
|
438
|
-
|
439
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
440
|
-
cred = credential.CVMRoleCredential()
|
441
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
442
|
-
cred = credential.STSAssumeRoleCredential(
|
443
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
444
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
445
|
-
)
|
446
|
-
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):
|
447
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
448
|
-
else:
|
449
|
-
cred = credential.Credential(
|
450
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
451
|
-
)
|
452
|
-
http_profile = HttpProfile(
|
453
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
454
|
-
reqMethod="POST",
|
455
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
456
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
457
|
-
)
|
458
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
459
|
-
if g_param[OptionsDefine.Language]:
|
460
|
-
profile.language = g_param[OptionsDefine.Language]
|
461
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
462
|
-
client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
|
463
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
464
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
465
|
-
model = models.DescribeSavingPlanOverviewRequest()
|
466
|
-
model.from_json_string(json.dumps(args))
|
467
|
-
start_time = time.time()
|
468
|
-
while True:
|
469
|
-
rsp = client.DescribeSavingPlanOverview(model)
|
470
|
-
result = rsp.to_json_string()
|
471
|
-
try:
|
472
|
-
json_obj = json.loads(result)
|
473
|
-
except TypeError as e:
|
474
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
475
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
476
|
-
break
|
477
|
-
cur_time = time.time()
|
478
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
479
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
480
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
481
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
482
|
-
else:
|
483
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
484
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
485
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
|
-
|
487
|
-
|
488
436
|
def doDescribeAllocationOverview(args, parsed_globals):
|
489
437
|
g_param = parse_global_arg(parsed_globals)
|
490
438
|
|
@@ -1369,58 +1317,6 @@ def doDescribeDosageDetailByDate(args, parsed_globals):
|
|
1369
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
1318
|
|
1371
1319
|
|
1372
|
-
def doDescribeSavingPlanUsage(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.BillingClient(cred, g_param[OptionsDefine.Region], profile)
|
1399
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1400
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1401
|
-
model = models.DescribeSavingPlanUsageRequest()
|
1402
|
-
model.from_json_string(json.dumps(args))
|
1403
|
-
start_time = time.time()
|
1404
|
-
while True:
|
1405
|
-
rsp = client.DescribeSavingPlanUsage(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
|
-
|
1424
1320
|
def doDescribeBillAdjustInfo(args, parsed_globals):
|
1425
1321
|
g_param = parse_global_arg(parsed_globals)
|
1426
1322
|
|
@@ -1993,7 +1889,7 @@ def doDescribeVoucherUsageDetails(args, parsed_globals):
|
|
1993
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
1890
|
|
1995
1891
|
|
1996
|
-
def
|
1892
|
+
def doDescribeCostSummaryByProduct(args, parsed_globals):
|
1997
1893
|
g_param = parse_global_arg(parsed_globals)
|
1998
1894
|
|
1999
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2022,11 +1918,11 @@ def doCreateSavingPlanOrder(args, parsed_globals):
|
|
2022
1918
|
client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
2024
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
-
model = models.
|
1921
|
+
model = models.DescribeCostSummaryByProductRequest()
|
2026
1922
|
model.from_json_string(json.dumps(args))
|
2027
1923
|
start_time = time.time()
|
2028
1924
|
while True:
|
2029
|
-
rsp = client.
|
1925
|
+
rsp = client.DescribeCostSummaryByProduct(model)
|
2030
1926
|
result = rsp.to_json_string()
|
2031
1927
|
try:
|
2032
1928
|
json_obj = json.loads(result)
|
@@ -2149,58 +2045,6 @@ def doDescribeSavingPlanCoverage(args, parsed_globals):
|
|
2149
2045
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
2046
|
|
2151
2047
|
|
2152
|
-
def doDescribeCostSummaryByProduct(args, parsed_globals):
|
2153
|
-
g_param = parse_global_arg(parsed_globals)
|
2154
|
-
|
2155
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2156
|
-
cred = credential.CVMRoleCredential()
|
2157
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2158
|
-
cred = credential.STSAssumeRoleCredential(
|
2159
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2160
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2161
|
-
)
|
2162
|
-
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):
|
2163
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2164
|
-
else:
|
2165
|
-
cred = credential.Credential(
|
2166
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2167
|
-
)
|
2168
|
-
http_profile = HttpProfile(
|
2169
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2170
|
-
reqMethod="POST",
|
2171
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2172
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2173
|
-
)
|
2174
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2175
|
-
if g_param[OptionsDefine.Language]:
|
2176
|
-
profile.language = g_param[OptionsDefine.Language]
|
2177
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2178
|
-
client = mod.BillingClient(cred, g_param[OptionsDefine.Region], profile)
|
2179
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2180
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2181
|
-
model = models.DescribeCostSummaryByProductRequest()
|
2182
|
-
model.from_json_string(json.dumps(args))
|
2183
|
-
start_time = time.time()
|
2184
|
-
while True:
|
2185
|
-
rsp = client.DescribeCostSummaryByProduct(model)
|
2186
|
-
result = rsp.to_json_string()
|
2187
|
-
try:
|
2188
|
-
json_obj = json.loads(result)
|
2189
|
-
except TypeError as e:
|
2190
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2191
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2192
|
-
break
|
2193
|
-
cur_time = time.time()
|
2194
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2195
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2196
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2197
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2198
|
-
else:
|
2199
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2200
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2201
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
|
-
|
2203
|
-
|
2204
2048
|
def doDescribeAllocationSummaryByItem(args, parsed_globals):
|
2205
2049
|
g_param = parse_global_arg(parsed_globals)
|
2206
2050
|
|
@@ -2428,7 +2272,6 @@ ACTION_MAP = {
|
|
2428
2272
|
"DescribeBillResourceSummary": doDescribeBillResourceSummary,
|
2429
2273
|
"DescribeAllocationSummaryByBusiness": doDescribeAllocationSummaryByBusiness,
|
2430
2274
|
"DescribeAllocateConditions": doDescribeAllocateConditions,
|
2431
|
-
"DescribeSavingPlanOverview": doDescribeSavingPlanOverview,
|
2432
2275
|
"DescribeAllocationOverview": doDescribeAllocationOverview,
|
2433
2276
|
"DescribeDosageDetailList": doDescribeDosageDetailList,
|
2434
2277
|
"CreateAllocationTag": doCreateAllocationTag,
|
@@ -2446,7 +2289,6 @@ ACTION_MAP = {
|
|
2446
2289
|
"DescribeBillDetailForOrganization": doDescribeBillDetailForOrganization,
|
2447
2290
|
"DescribeAccountBalance": doDescribeAccountBalance,
|
2448
2291
|
"DescribeDosageDetailByDate": doDescribeDosageDetailByDate,
|
2449
|
-
"DescribeSavingPlanUsage": doDescribeSavingPlanUsage,
|
2450
2292
|
"DescribeBillAdjustInfo": doDescribeBillAdjustInfo,
|
2451
2293
|
"DescribeAllocationBillDetail": doDescribeAllocationBillDetail,
|
2452
2294
|
"DescribeBillSummaryByRegion": doDescribeBillSummaryByRegion,
|
@@ -2458,10 +2300,9 @@ ACTION_MAP = {
|
|
2458
2300
|
"DescribeSavingPlanResourceInfo": doDescribeSavingPlanResourceInfo,
|
2459
2301
|
"DescribeTagList": doDescribeTagList,
|
2460
2302
|
"DescribeVoucherUsageDetails": doDescribeVoucherUsageDetails,
|
2461
|
-
"
|
2303
|
+
"DescribeCostSummaryByProduct": doDescribeCostSummaryByProduct,
|
2462
2304
|
"DeleteAllocationTag": doDeleteAllocationTag,
|
2463
2305
|
"DescribeSavingPlanCoverage": doDescribeSavingPlanCoverage,
|
2464
|
-
"DescribeCostSummaryByProduct": doDescribeCostSummaryByProduct,
|
2465
2306
|
"DescribeAllocationSummaryByItem": doDescribeAllocationSummaryByItem,
|
2466
2307
|
"DescribeBillSummaryByProduct": doDescribeBillSummaryByProduct,
|
2467
2308
|
"DescribeBillSummaryByTag": doDescribeBillSummaryByTag,
|