tccli 3.0.1311.1__py2.py3-none-any.whl → 3.0.1313.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/autoscaling/v20180419/api.json +164 -161
- tccli/services/autoscaling/v20180419/examples.json +13 -13
- tccli/services/batch/v20170312/api.json +119 -143
- tccli/services/batch/v20170312/examples.json +5 -5
- tccli/services/bh/v20230418/api.json +152 -1
- tccli/services/bi/v20220105/api.json +19 -0
- tccli/services/cbs/v20170312/api.json +19 -16
- tccli/services/cbs/v20170312/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +30 -9
- tccli/services/cdb/v20170320/examples.json +1 -1
- tccli/services/cfw/v20190904/api.json +5 -7
- tccli/services/clb/v20180317/api.json +36 -36
- tccli/services/clb/v20180317/examples.json +8 -8
- tccli/services/cynosdb/v20190107/api.json +14 -4
- tccli/services/cynosdb/v20190107/examples.json +1 -1
- tccli/services/dbbrain/dbbrain_client.py +147 -41
- tccli/services/dbbrain/v20210527/api.json +224 -0
- tccli/services/dbbrain/v20210527/examples.json +16 -0
- tccli/services/dnspod/dnspod_client.py +53 -0
- tccli/services/dnspod/v20210323/api.json +287 -0
- tccli/services/dnspod/v20210323/examples.json +8 -0
- tccli/services/domain/v20180808/api.json +21 -21
- tccli/services/domain/v20180808/examples.json +2 -2
- tccli/services/emr/v20190103/api.json +20 -0
- tccli/services/ess/v20201111/api.json +9 -0
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/essbasic/v20210526/examples.json +6 -0
- tccli/services/goosefs/v20220519/api.json +5 -5
- tccli/services/ims/v20201229/api.json +93 -102
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/mps/v20190612/api.json +96 -1
- tccli/services/postgres/postgres_client.py +0 -53
- tccli/services/postgres/v20170312/api.json +12 -55
- tccli/services/postgres/v20170312/examples.json +0 -14
- tccli/services/tbaas/tbaas_client.py +0 -53
- tccli/services/tbaas/v20180416/api.json +0 -133
- tccli/services/tbaas/v20180416/examples.json +0 -8
- tccli/services/tcb/v20180608/api.json +5 -5
- tccli/services/teo/teo_client.py +53 -0
- tccli/services/teo/v20220901/api.json +464 -100
- tccli/services/teo/v20220901/examples.json +8 -0
- tccli/services/thpc/thpc_client.py +53 -0
- tccli/services/thpc/v20211109/api.json +2 -2
- tccli/services/thpc/v20220401/api.json +3 -3
- tccli/services/thpc/v20230321/api.json +43 -0
- tccli/services/thpc/v20230321/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +106 -82
- tccli/services/tms/v20201229/api.json +47 -59
- tccli/services/tmt/tmt_client.py +61 -8
- tccli/services/tmt/v20180321/api.json +234 -0
- tccli/services/tmt/v20180321/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +61 -61
- tccli/services/vpc/v20170312/examples.json +10 -10
- tccli/services/waf/v20180125/api.json +11 -0
- tccli/services/wedata/v20210820/api.json +907 -0
- tccli/services/wedata/v20210820/examples.json +40 -0
- tccli/services/wedata/wedata_client.py +277 -12
- {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/RECORD +64 -64
- {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1311.1.dist-info → tccli-3.0.1313.1.dist-info}/license_files/LICENSE +0 -0
@@ -5140,8 +5140,8 @@
|
|
5140
5140
|
},
|
5141
5141
|
{
|
5142
5142
|
"disabled": false,
|
5143
|
-
"document": "
|
5144
|
-
"example": "
|
5143
|
+
"document": "Dockerfile的路径",
|
5144
|
+
"example": "Dockerfile",
|
5145
5145
|
"member": "string",
|
5146
5146
|
"name": "DockerfilePath",
|
5147
5147
|
"output_required": true,
|
@@ -6619,8 +6619,8 @@
|
|
6619
6619
|
},
|
6620
6620
|
{
|
6621
6621
|
"disabled": false,
|
6622
|
-
"document": "
|
6623
|
-
"example": "
|
6622
|
+
"document": "Dockerfile的路径",
|
6623
|
+
"example": "Dockerfile",
|
6624
6624
|
"member": "string",
|
6625
6625
|
"name": "DockerfilePath",
|
6626
6626
|
"output_required": true,
|
@@ -6680,7 +6680,7 @@
|
|
6680
6680
|
{
|
6681
6681
|
"disabled": false,
|
6682
6682
|
"document": "策略类型",
|
6683
|
-
"example": "
|
6683
|
+
"example": "Dockerfile",
|
6684
6684
|
"member": "string",
|
6685
6685
|
"name": "PolicyType",
|
6686
6686
|
"output_required": true,
|
tccli/services/teo/teo_client.py
CHANGED
@@ -4491,6 +4491,58 @@ def doDescribeCustomErrorPages(args, parsed_globals):
|
|
4491
4491
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4492
4492
|
|
4493
4493
|
|
4494
|
+
def doDescribePlans(args, parsed_globals):
|
4495
|
+
g_param = parse_global_arg(parsed_globals)
|
4496
|
+
|
4497
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4498
|
+
cred = credential.CVMRoleCredential()
|
4499
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4500
|
+
cred = credential.STSAssumeRoleCredential(
|
4501
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4502
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4503
|
+
)
|
4504
|
+
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):
|
4505
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4506
|
+
else:
|
4507
|
+
cred = credential.Credential(
|
4508
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4509
|
+
)
|
4510
|
+
http_profile = HttpProfile(
|
4511
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4512
|
+
reqMethod="POST",
|
4513
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4514
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4515
|
+
)
|
4516
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4517
|
+
if g_param[OptionsDefine.Language]:
|
4518
|
+
profile.language = g_param[OptionsDefine.Language]
|
4519
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4520
|
+
client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
|
4521
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4522
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4523
|
+
model = models.DescribePlansRequest()
|
4524
|
+
model.from_json_string(json.dumps(args))
|
4525
|
+
start_time = time.time()
|
4526
|
+
while True:
|
4527
|
+
rsp = client.DescribePlans(model)
|
4528
|
+
result = rsp.to_json_string()
|
4529
|
+
try:
|
4530
|
+
json_obj = json.loads(result)
|
4531
|
+
except TypeError as e:
|
4532
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4533
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4534
|
+
break
|
4535
|
+
cur_time = time.time()
|
4536
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4537
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4538
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4539
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4540
|
+
else:
|
4541
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4542
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4543
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4544
|
+
|
4545
|
+
|
4494
4546
|
def doDeleteLoadBalancer(args, parsed_globals):
|
4495
4547
|
g_param = parse_global_arg(parsed_globals)
|
4496
4548
|
|
@@ -7502,6 +7554,7 @@ ACTION_MAP = {
|
|
7502
7554
|
"ModifyFunctionRule": doModifyFunctionRule,
|
7503
7555
|
"DescribeAvailablePlans": doDescribeAvailablePlans,
|
7504
7556
|
"DescribeCustomErrorPages": doDescribeCustomErrorPages,
|
7557
|
+
"DescribePlans": doDescribePlans,
|
7505
7558
|
"DeleteLoadBalancer": doDeleteLoadBalancer,
|
7506
7559
|
"DeleteContentIdentifier": doDeleteContentIdentifier,
|
7507
7560
|
"DescribeRulesSetting": doDescribeRulesSetting,
|