tccli 3.0.1158.1__py2.py3-none-any.whl → 3.0.1160.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 (59) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +11 -14
  3. tccli/services/ams/v20201229/api.json +314 -56
  4. tccli/services/ams/v20201229/examples.json +2 -2
  5. tccli/services/bi/v20220105/api.json +1 -1
  6. tccli/services/cat/v20180409/api.json +9 -0
  7. tccli/services/cdb/v20170320/api.json +33 -4
  8. tccli/services/cdn/v20180606/api.json +86 -0
  9. tccli/services/cfg/cfg_client.py +224 -12
  10. tccli/services/cfg/v20210820/api.json +897 -32
  11. tccli/services/cfg/v20210820/examples.json +32 -0
  12. tccli/services/cfw/cfw_client.py +53 -0
  13. tccli/services/cfw/v20190904/api.json +255 -2
  14. tccli/services/cfw/v20190904/examples.json +8 -0
  15. tccli/services/cls/v20201016/api.json +11 -1
  16. tccli/services/cme/v20191029/api.json +9 -9
  17. tccli/services/cme/v20191029/examples.json +1 -1
  18. tccli/services/csip/csip_client.py +53 -0
  19. tccli/services/csip/v20221121/api.json +134 -0
  20. tccli/services/csip/v20221121/examples.json +8 -0
  21. tccli/services/cwp/v20180228/api.json +66 -46
  22. tccli/services/cwp/v20180228/examples.json +1 -1
  23. tccli/services/cynosdb/v20190107/api.json +91 -0
  24. tccli/services/dnspod/v20210323/api.json +1 -1
  25. tccli/services/ecm/v20190719/api.json +23 -5
  26. tccli/services/emr/emr_client.py +53 -0
  27. tccli/services/emr/v20190103/api.json +351 -98
  28. tccli/services/emr/v20190103/examples.json +11 -3
  29. tccli/services/ess/v20201111/api.json +1 -1
  30. tccli/services/ess/v20201111/examples.json +6 -6
  31. tccli/services/essbasic/v20210526/api.json +10 -1
  32. tccli/services/essbasic/v20210526/examples.json +7 -1
  33. tccli/services/hunyuan/v20230901/api.json +114 -3
  34. tccli/services/iotexplorer/v20190423/api.json +25 -25
  35. tccli/services/iotexplorer/v20190423/examples.json +10 -4
  36. tccli/services/lcic/lcic_client.py +57 -4
  37. tccli/services/lcic/v20220817/api.json +52 -0
  38. tccli/services/lcic/v20220817/examples.json +8 -0
  39. tccli/services/live/v20180801/api.json +1 -1
  40. tccli/services/lke/v20231130/api.json +7 -7
  41. tccli/services/ocr/v20181119/api.json +10 -0
  42. tccli/services/tke/tke_client.py +53 -0
  43. tccli/services/tke/v20180525/api.json +188 -0
  44. tccli/services/tke/v20180525/examples.json +8 -0
  45. tccli/services/trtc/trtc_client.py +53 -0
  46. tccli/services/trtc/v20190722/api.json +76 -0
  47. tccli/services/trtc/v20190722/examples.json +8 -0
  48. tccli/services/vclm/v20240523/api.json +136 -0
  49. tccli/services/vclm/v20240523/examples.json +46 -0
  50. tccli/services/vclm/vclm_client.py +106 -0
  51. tccli/services/vm/v20201229/api.json +209 -45
  52. tccli/services/vm/v20201229/examples.json +1 -1
  53. tccli/services/vm/v20210922/api.json +25 -25
  54. tccli/services/vpc/v20170312/api.json +1 -1
  55. {tccli-3.0.1158.1.dist-info → tccli-3.0.1160.1.dist-info}/METADATA +2 -2
  56. {tccli-3.0.1158.1.dist-info → tccli-3.0.1160.1.dist-info}/RECORD +59 -59
  57. {tccli-3.0.1158.1.dist-info → tccli-3.0.1160.1.dist-info}/WHEEL +0 -0
  58. {tccli-3.0.1158.1.dist-info → tccli-3.0.1160.1.dist-info}/entry_points.txt +0 -0
  59. {tccli-3.0.1158.1.dist-info → tccli-3.0.1160.1.dist-info}/license_files/LICENSE +0 -0
@@ -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"
@@ -120,7 +120,7 @@
120
120
  "status": "online"
121
121
  },
122
122
  "DeleteRecordBatch": {
123
- "document": "批量删除解析记录",
123
+ "document": "批量删除解析记录\n备注:因存储限制, 建议一次批量删除最多2000条",
124
124
  "input": "DeleteRecordBatchRequest",
125
125
  "name": "批量删除解析记录",
126
126
  "output": "DeleteRecordBatchResponse",
@@ -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,