tccli 3.0.1312.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.
Files changed (40) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +164 -161
  3. tccli/services/autoscaling/v20180419/examples.json +13 -13
  4. tccli/services/batch/v20170312/api.json +1 -1
  5. tccli/services/bh/v20230418/api.json +152 -1
  6. tccli/services/bi/v20220105/api.json +19 -0
  7. tccli/services/cdb/v20170320/api.json +30 -9
  8. tccli/services/cdb/v20170320/examples.json +1 -1
  9. tccli/services/cfw/v20190904/api.json +5 -7
  10. tccli/services/clb/v20180317/api.json +4 -4
  11. tccli/services/cynosdb/v20190107/api.json +14 -4
  12. tccli/services/emr/v20190103/api.json +20 -0
  13. tccli/services/ess/v20201111/api.json +9 -0
  14. tccli/services/essbasic/v20210526/api.json +1 -1
  15. tccli/services/essbasic/v20210526/examples.json +6 -0
  16. tccli/services/mps/v20190612/api.json +1 -1
  17. tccli/services/postgres/postgres_client.py +0 -53
  18. tccli/services/postgres/v20170312/api.json +8 -51
  19. tccli/services/postgres/v20170312/examples.json +0 -14
  20. tccli/services/tbaas/tbaas_client.py +0 -53
  21. tccli/services/tbaas/v20180416/api.json +0 -133
  22. tccli/services/tbaas/v20180416/examples.json +0 -8
  23. tccli/services/teo/teo_client.py +53 -0
  24. tccli/services/teo/v20220901/api.json +464 -100
  25. tccli/services/teo/v20220901/examples.json +8 -0
  26. tccli/services/tke/v20180525/api.json +106 -82
  27. tccli/services/tms/v20201229/api.json +47 -59
  28. tccli/services/tmt/v20180321/api.json +68 -0
  29. tccli/services/tmt/v20180321/examples.json +2 -8
  30. tccli/services/trtc/v20190722/api.json +2 -2
  31. tccli/services/vpc/v20170312/api.json +52 -52
  32. tccli/services/vpc/v20170312/examples.json +4 -4
  33. tccli/services/wedata/v20210820/api.json +305 -1
  34. tccli/services/wedata/v20210820/examples.json +24 -0
  35. tccli/services/wedata/wedata_client.py +171 -12
  36. {tccli-3.0.1312.1.dist-info → tccli-3.0.1313.1.dist-info}/METADATA +2 -2
  37. {tccli-3.0.1312.1.dist-info → tccli-3.0.1313.1.dist-info}/RECORD +40 -40
  38. {tccli-3.0.1312.1.dist-info → tccli-3.0.1313.1.dist-info}/WHEEL +0 -0
  39. {tccli-3.0.1312.1.dist-info → tccli-3.0.1313.1.dist-info}/entry_points.txt +0 -0
  40. {tccli-3.0.1312.1.dist-info → tccli-3.0.1313.1.dist-info}/license_files/LICENSE +0 -0
@@ -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,