tccli 3.0.1123.1__py2.py3-none-any.whl → 3.0.1125.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +2 -2
  3. tccli/services/asr/v20190614/api.json +1 -1
  4. tccli/services/ccc/ccc_client.py +53 -0
  5. tccli/services/ccc/v20200210/api.json +89 -0
  6. tccli/services/ccc/v20200210/examples.json +8 -0
  7. tccli/services/cdb/v20170320/api.json +2 -2
  8. tccli/services/cfw/v20190904/api.json +6 -5
  9. tccli/services/cfw/v20190904/examples.json +1 -1
  10. tccli/services/cls/v20201016/api.json +1 -1
  11. tccli/services/csip/v20221121/api.json +1 -0
  12. tccli/services/cynosdb/v20190107/api.json +56 -26
  13. tccli/services/cynosdb/v20190107/examples.json +7 -7
  14. tccli/services/dlc/dlc_client.py +602 -72
  15. tccli/services/dlc/v20210125/api.json +856 -25
  16. tccli/services/dlc/v20210125/examples.json +86 -0
  17. tccli/services/dts/v20180330/api.json +62 -37
  18. tccli/services/dts/v20180330/examples.json +1 -1
  19. tccli/services/dts/v20211206/api.json +9 -0
  20. tccli/services/eb/v20210416/api.json +63 -45
  21. tccli/services/eb/v20210416/examples.json +3 -9
  22. tccli/services/ess/v20201111/api.json +1 -1
  23. tccli/services/essbasic/v20210526/api.json +1 -1
  24. tccli/services/facefusion/facefusion_client.py +53 -0
  25. tccli/services/facefusion/v20220927/api.json +168 -0
  26. tccli/services/facefusion/v20220927/examples.json +14 -0
  27. tccli/services/hunyuan/v20230901/api.json +15 -15
  28. tccli/services/hunyuan/v20230901/examples.json +5 -5
  29. tccli/services/iotexplorer/iotexplorer_client.py +53 -0
  30. tccli/services/iotexplorer/v20190423/api.json +136 -0
  31. tccli/services/iotexplorer/v20190423/examples.json +8 -0
  32. tccli/services/mongodb/v20190725/api.json +18 -13
  33. tccli/services/monitor/v20180724/api.json +2 -2
  34. tccli/services/mps/v20190612/api.json +22 -22
  35. tccli/services/ocr/v20181119/api.json +4 -4
  36. tccli/services/ocr/v20181119/examples.json +1 -1
  37. tccli/services/postgres/postgres_client.py +57 -4
  38. tccli/services/postgres/v20170312/api.json +404 -273
  39. tccli/services/postgres/v20170312/examples.json +29 -15
  40. tccli/services/pts/v20210728/api.json +1 -1
  41. tccli/services/pts/v20210728/examples.json +1 -1
  42. tccli/services/rum/v20210622/api.json +2 -2
  43. tccli/services/rum/v20210622/examples.json +2 -2
  44. tccli/services/smh/v20210712/api.json +2 -2
  45. tccli/services/sqlserver/v20180328/api.json +41 -29
  46. tccli/services/tcss/v20201101/api.json +3 -2
  47. tccli/services/tcss/v20201101/examples.json +1 -1
  48. tccli/services/teo/v20220901/api.json +5 -5
  49. tccli/services/tione/v20211111/api.json +70 -3
  50. tccli/services/tione/v20211111/examples.json +1 -1
  51. tccli/services/trp/trp_client.py +53 -0
  52. tccli/services/trp/v20210515/api.json +110 -0
  53. tccli/services/trp/v20210515/examples.json +8 -0
  54. tccli/services/vcg/v20240404/api.json +8 -8
  55. tccli/services/vtc/v20240223/api.json +20 -0
  56. tccli/services/waf/v20180125/api.json +11 -1
  57. tccli/services/waf/v20180125/examples.json +2 -2
  58. tccli/services/wedata/v20210820/api.json +60 -7
  59. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/METADATA +2 -2
  60. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/RECORD +63 -63
  61. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/WHEEL +0 -0
  62. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/entry_points.txt +0 -0
  63. {tccli-3.0.1123.1.dist-info → tccli-3.0.1125.1.dist-info}/license_files/LICENSE +0 -0
@@ -2721,7 +2721,7 @@ def doResetAccountPassword(args, parsed_globals):
2721
2721
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2722
2722
 
2723
2723
 
2724
- def doDescribeDBInstanceAttribute(args, parsed_globals):
2724
+ def doRestoreDBInstanceObjects(args, parsed_globals):
2725
2725
  g_param = parse_global_arg(parsed_globals)
2726
2726
 
2727
2727
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2750,11 +2750,11 @@ def doDescribeDBInstanceAttribute(args, parsed_globals):
2750
2750
  client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
2751
2751
  client._sdkVersion += ("_CLI_" + __version__)
2752
2752
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2753
- model = models.DescribeDBInstanceAttributeRequest()
2753
+ model = models.RestoreDBInstanceObjectsRequest()
2754
2754
  model.from_json_string(json.dumps(args))
2755
2755
  start_time = time.time()
2756
2756
  while True:
2757
- rsp = client.DescribeDBInstanceAttribute(model)
2757
+ rsp = client.RestoreDBInstanceObjects(model)
2758
2758
  result = rsp.to_json_string()
2759
2759
  try:
2760
2760
  json_obj = json.loads(result)
@@ -4593,6 +4593,58 @@ def doDescribeReadOnlyGroups(args, parsed_globals):
4593
4593
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4594
4594
 
4595
4595
 
4596
+ def doDescribeDBInstanceAttribute(args, parsed_globals):
4597
+ g_param = parse_global_arg(parsed_globals)
4598
+
4599
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4600
+ cred = credential.CVMRoleCredential()
4601
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4602
+ cred = credential.STSAssumeRoleCredential(
4603
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4604
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4605
+ )
4606
+ 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):
4607
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4608
+ else:
4609
+ cred = credential.Credential(
4610
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4611
+ )
4612
+ http_profile = HttpProfile(
4613
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4614
+ reqMethod="POST",
4615
+ endpoint=g_param[OptionsDefine.Endpoint],
4616
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4617
+ )
4618
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4619
+ if g_param[OptionsDefine.Language]:
4620
+ profile.language = g_param[OptionsDefine.Language]
4621
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4622
+ client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
4623
+ client._sdkVersion += ("_CLI_" + __version__)
4624
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4625
+ model = models.DescribeDBInstanceAttributeRequest()
4626
+ model.from_json_string(json.dumps(args))
4627
+ start_time = time.time()
4628
+ while True:
4629
+ rsp = client.DescribeDBInstanceAttribute(model)
4630
+ result = rsp.to_json_string()
4631
+ try:
4632
+ json_obj = json.loads(result)
4633
+ except TypeError as e:
4634
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4635
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4636
+ break
4637
+ cur_time = time.time()
4638
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4639
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4640
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4641
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4642
+ else:
4643
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4644
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4645
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4646
+
4647
+
4596
4648
  def doUpgradeDBInstance(args, parsed_globals):
4597
4649
  g_param = parse_global_arg(parsed_globals)
4598
4650
 
@@ -4760,7 +4812,7 @@ ACTION_MAP = {
4760
4812
  "DeleteReadOnlyGroup": doDeleteReadOnlyGroup,
4761
4813
  "UpgradeDBInstanceKernelVersion": doUpgradeDBInstanceKernelVersion,
4762
4814
  "ResetAccountPassword": doResetAccountPassword,
4763
- "DescribeDBInstanceAttribute": doDescribeDBInstanceAttribute,
4815
+ "RestoreDBInstanceObjects": doRestoreDBInstanceObjects,
4764
4816
  "DeleteDBInstanceNetworkAccess": doDeleteDBInstanceNetworkAccess,
4765
4817
  "ModifyDBInstancesProject": doModifyDBInstancesProject,
4766
4818
  "DescribeDBXlogs": doDescribeDBXlogs,
@@ -4796,6 +4848,7 @@ ACTION_MAP = {
4796
4848
  "ModifyBackupDownloadRestriction": doModifyBackupDownloadRestriction,
4797
4849
  "DescribeDBVersions": doDescribeDBVersions,
4798
4850
  "DescribeReadOnlyGroups": doDescribeReadOnlyGroups,
4851
+ "DescribeDBInstanceAttribute": doDescribeDBInstanceAttribute,
4799
4852
  "UpgradeDBInstance": doUpgradeDBInstance,
4800
4853
  "CreateInstances": doCreateInstances,
4801
4854