tccli 3.0.1158.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.
@@ -3824,6 +3824,24 @@
3824
3824
  "name": "CLSInfoList",
3825
3825
  "required": true,
3826
3826
  "type": "list"
3827
+ },
3828
+ {
3829
+ "disabled": false,
3830
+ "document": "日志类型",
3831
+ "example": "无",
3832
+ "member": "string",
3833
+ "name": "LogType",
3834
+ "required": false,
3835
+ "type": "string"
3836
+ },
3837
+ {
3838
+ "disabled": false,
3839
+ "document": "是否维护时间运行",
3840
+ "example": "无",
3841
+ "member": "string",
3842
+ "name": "IsInMaintainPeriod",
3843
+ "required": false,
3844
+ "type": "string"
3827
3845
  }
3828
3846
  ],
3829
3847
  "type": "object"
@@ -7678,6 +7696,24 @@
7678
7696
  "name": "CLSTopicIds",
7679
7697
  "required": true,
7680
7698
  "type": "list"
7699
+ },
7700
+ {
7701
+ "disabled": false,
7702
+ "document": "日志类型",
7703
+ "example": "无",
7704
+ "member": "string",
7705
+ "name": "LogType",
7706
+ "required": false,
7707
+ "type": "string"
7708
+ },
7709
+ {
7710
+ "disabled": false,
7711
+ "document": "是否维护时间运行",
7712
+ "example": "无",
7713
+ "member": "string",
7714
+ "name": "IsInMaintainPeriod",
7715
+ "required": false,
7716
+ "type": "string"
7681
7717
  }
7682
7718
  ],
7683
7719
  "type": "object"
@@ -9708,6 +9744,15 @@
9708
9744
  "name": "InstanceId",
9709
9745
  "required": true,
9710
9746
  "type": "string"
9747
+ },
9748
+ {
9749
+ "disabled": false,
9750
+ "document": "日志类型",
9751
+ "example": "无",
9752
+ "member": "string",
9753
+ "name": "LogType",
9754
+ "required": false,
9755
+ "type": "string"
9711
9756
  }
9712
9757
  ],
9713
9758
  "type": "object"
@@ -12638,6 +12683,16 @@
12638
12683
  "output_required": false,
12639
12684
  "type": "string",
12640
12685
  "value_allowed_null": true
12686
+ },
12687
+ {
12688
+ "disabled": false,
12689
+ "document": "日志类型\n注意:此字段可能返回 null,表示取不到有效值。",
12690
+ "example": "无",
12691
+ "member": "string",
12692
+ "name": "LogType",
12693
+ "output_required": false,
12694
+ "type": "string",
12695
+ "value_allowed_null": true
12641
12696
  }
12642
12697
  ],
12643
12698
  "usage": "out"
@@ -19656,6 +19711,24 @@
19656
19711
  "name": "CLSTopicIds",
19657
19712
  "required": true,
19658
19713
  "type": "list"
19714
+ },
19715
+ {
19716
+ "disabled": false,
19717
+ "document": "日志类型",
19718
+ "example": "无",
19719
+ "member": "string",
19720
+ "name": "LogType",
19721
+ "required": false,
19722
+ "type": "string"
19723
+ },
19724
+ {
19725
+ "disabled": false,
19726
+ "document": "是否维护时间运行",
19727
+ "example": "无",
19728
+ "member": "string",
19729
+ "name": "IsInMaintainPeriod",
19730
+ "required": false,
19731
+ "type": "string"
19659
19732
  }
19660
19733
  ],
19661
19734
  "type": "object"
@@ -19702,6 +19775,24 @@
19702
19775
  "name": "CLSTopicIds",
19703
19776
  "required": true,
19704
19777
  "type": "list"
19778
+ },
19779
+ {
19780
+ "disabled": false,
19781
+ "document": "日志类型",
19782
+ "example": "无",
19783
+ "member": "string",
19784
+ "name": "LogType",
19785
+ "required": false,
19786
+ "type": "string"
19787
+ },
19788
+ {
19789
+ "disabled": false,
19790
+ "document": "是否维护时间运行",
19791
+ "example": "无",
19792
+ "member": "string",
19793
+ "name": "IsInMaintainPeriod",
19794
+ "required": false,
19795
+ "type": "string"
19705
19796
  }
19706
19797
  ],
19707
19798
  "type": "object"
@@ -10657,7 +10657,7 @@
10657
10657
  {
10658
10658
  "disabled": false,
10659
10659
  "document": "VPC实例ID。形如:vpc-f49l6u0z。",
10660
- "example": "",
10660
+ "example": "vpc-m7sr81gh",
10661
10661
  "member": "string",
10662
10662
  "name": "VpcId",
10663
10663
  "required": true,
@@ -10666,7 +10666,7 @@
10666
10666
  {
10667
10667
  "disabled": false,
10668
10668
  "document": "ECM 地域",
10669
- "example": "",
10669
+ "example": "ap-shenyang-ecm-cu",
10670
10670
  "member": "string",
10671
10671
  "name": "EcmRegion",
10672
10672
  "required": true,
@@ -10675,7 +10675,7 @@
10675
10675
  {
10676
10676
  "disabled": false,
10677
10677
  "document": "私有网络名称,可任意命名,但不得超过60个字符。",
10678
- "example": "",
10678
+ "example": "TEST",
10679
10679
  "member": "string",
10680
10680
  "name": "VpcName",
10681
10681
  "required": false,
@@ -10684,7 +10684,7 @@
10684
10684
  {
10685
10685
  "disabled": false,
10686
10686
  "document": "标签",
10687
- "example": "",
10687
+ "example": "",
10688
10688
  "member": "Tag",
10689
10689
  "name": "Tags",
10690
10690
  "required": false,
@@ -10693,11 +10693,29 @@
10693
10693
  {
10694
10694
  "disabled": false,
10695
10695
  "document": "私有网络描述",
10696
- "example": "",
10696
+ "example": "TEST",
10697
10697
  "member": "string",
10698
10698
  "name": "Description",
10699
10699
  "required": false,
10700
10700
  "type": "string"
10701
+ },
10702
+ {
10703
+ "disabled": false,
10704
+ "document": "DNS地址,最多支持4个,第1个默认为主,其余为备。\t",
10705
+ "example": "['183.60.83.19']",
10706
+ "member": "string",
10707
+ "name": "DnsServers",
10708
+ "required": false,
10709
+ "type": "list"
10710
+ },
10711
+ {
10712
+ "disabled": false,
10713
+ "document": "域名。",
10714
+ "example": "TEST",
10715
+ "member": "string",
10716
+ "name": "DomainName",
10717
+ "required": false,
10718
+ "type": "string"
10701
10719
  }
10702
10720
  ],
10703
10721
  "type": "object"
@@ -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,