tccli 3.0.1157.1__py2.py3-none-any.whl → 3.0.1159.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 (46) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ams/v20201229/api.json +328 -70
  3. tccli/services/ams/v20201229/examples.json +3 -3
  4. tccli/services/bi/v20220105/api.json +1 -1
  5. tccli/services/cat/v20180409/api.json +9 -0
  6. tccli/services/ccc/v20200210/api.json +3 -3
  7. tccli/services/cdb/v20170320/api.json +30 -3
  8. tccli/services/cdn/v20180606/api.json +86 -0
  9. tccli/services/cfw/cfw_client.py +53 -0
  10. tccli/services/cfw/v20190904/api.json +277 -0
  11. tccli/services/cfw/v20190904/examples.json +8 -0
  12. tccli/services/cls/v20201016/api.json +3 -3
  13. tccli/services/cls/v20201016/examples.json +1 -1
  14. tccli/services/cynosdb/v20190107/api.json +91 -0
  15. tccli/services/dbbrain/v20210527/api.json +10 -1
  16. tccli/services/ecm/v20190719/api.json +23 -5
  17. tccli/services/emr/emr_client.py +53 -0
  18. tccli/services/emr/v20190103/api.json +351 -98
  19. tccli/services/emr/v20190103/examples.json +11 -3
  20. tccli/services/ess/v20201111/api.json +32 -14
  21. tccli/services/ess/v20201111/examples.json +8 -2
  22. tccli/services/essbasic/v20210526/api.json +1 -1
  23. tccli/services/hunyuan/v20230901/api.json +114 -3
  24. tccli/services/mongodb/mongodb_client.py +53 -0
  25. tccli/services/mongodb/v20190725/api.json +71 -0
  26. tccli/services/mongodb/v20190725/examples.json +8 -0
  27. tccli/services/monitor/v20180724/api.json +8 -8
  28. tccli/services/ocr/v20181119/api.json +27 -0
  29. tccli/services/redis/v20180412/api.json +3 -3
  30. tccli/services/tke/tke_client.py +53 -0
  31. tccli/services/tke/v20180525/api.json +188 -0
  32. tccli/services/tke/v20180525/examples.json +8 -0
  33. tccli/services/trtc/v20190722/api.json +3 -3
  34. tccli/services/trtc/v20190722/examples.json +2 -2
  35. tccli/services/vm/v20201229/api.json +209 -45
  36. tccli/services/vm/v20201229/examples.json +1 -1
  37. tccli/services/vm/v20210922/api.json +25 -25
  38. tccli/services/vpc/v20170312/api.json +2 -1
  39. tccli/services/vpc/v20170312/examples.json +3 -3
  40. tccli/services/waf/v20180125/api.json +13 -13
  41. tccli/services/wedata/v20210820/api.json +10 -0
  42. {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/METADATA +2 -2
  43. {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/RECORD +46 -46
  44. {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/WHEEL +0 -0
  45. {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/entry_points.txt +0 -0
  46. {tccli-3.0.1157.1.dist-info → tccli-3.0.1159.1.dist-info}/license_files/LICENSE +0 -0
@@ -2097,6 +2097,58 @@ def doDescribeClusterNodes(args, parsed_globals):
2097
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2098
2098
 
2099
2099
 
2100
+ def doDescribeTrinoQueryInfo(args, parsed_globals):
2101
+ g_param = parse_global_arg(parsed_globals)
2102
+
2103
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2104
+ cred = credential.CVMRoleCredential()
2105
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2106
+ cred = credential.STSAssumeRoleCredential(
2107
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2108
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2109
+ )
2110
+ 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):
2111
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2112
+ else:
2113
+ cred = credential.Credential(
2114
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2115
+ )
2116
+ http_profile = HttpProfile(
2117
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2118
+ reqMethod="POST",
2119
+ endpoint=g_param[OptionsDefine.Endpoint],
2120
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2121
+ )
2122
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2123
+ if g_param[OptionsDefine.Language]:
2124
+ profile.language = g_param[OptionsDefine.Language]
2125
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2126
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
2127
+ client._sdkVersion += ("_CLI_" + __version__)
2128
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2129
+ model = models.DescribeTrinoQueryInfoRequest()
2130
+ model.from_json_string(json.dumps(args))
2131
+ start_time = time.time()
2132
+ while True:
2133
+ rsp = client.DescribeTrinoQueryInfo(model)
2134
+ result = rsp.to_json_string()
2135
+ try:
2136
+ json_obj = json.loads(result)
2137
+ except TypeError as e:
2138
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2139
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2140
+ break
2141
+ cur_time = time.time()
2142
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2143
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2144
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2145
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2146
+ else:
2147
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2148
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2149
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2150
+
2151
+
2100
2152
  def doDescribeInstancesList(args, parsed_globals):
2101
2153
  g_param = parse_global_arg(parsed_globals)
2102
2154
 
@@ -2356,6 +2408,7 @@ ACTION_MAP = {
2356
2408
  "DescribeResourceSchedule": doDescribeResourceSchedule,
2357
2409
  "DescribeAutoScaleGroupGlobalConf": doDescribeAutoScaleGroupGlobalConf,
2358
2410
  "DescribeClusterNodes": doDescribeClusterNodes,
2411
+ "DescribeTrinoQueryInfo": doDescribeTrinoQueryInfo,
2359
2412
  "DescribeInstancesList": doDescribeInstancesList,
2360
2413
  "ModifyResourcePools": doModifyResourcePools,
2361
2414
  "DescribeInsightList": doDescribeInsightList,