tencentcloud-sdk-nodejs 4.0.246 → 4.0.247

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 (68) hide show
  1. package/CHANGELOG.md +282 -10
  2. package/package.json +1 -1
  3. package/products.md +10 -8
  4. package/src/common/sdk_version.ts +1 -1
  5. package/src/services/apm/index.ts +5 -0
  6. package/src/services/apm/v20210622/apm_client.ts +40 -0
  7. package/src/services/apm/v20210622/apm_models.ts +98 -0
  8. package/src/services/apm/v20210622/index.ts +6 -0
  9. package/src/services/ckafka/v20190819/ckafka_models.ts +6 -0
  10. package/src/services/clb/v20180317/clb_client.ts +13 -1
  11. package/src/services/clb/v20180317/clb_models.ts +67 -18
  12. package/src/services/cwp/v20180228/cwp_models.ts +9 -8
  13. package/src/services/index.ts +2 -0
  14. package/src/services/mrs/v20200910/mrs_client.ts +2 -0
  15. package/src/services/mrs/v20200910/mrs_models.ts +81 -5
  16. package/src/services/postgres/v20170312/postgres_models.ts +6 -6
  17. package/src/services/privatedns/v20201028/privatedns_client.ts +40 -3
  18. package/src/services/privatedns/v20201028/privatedns_models.ts +141 -31
  19. package/src/services/thpc/index.ts +5 -0
  20. package/src/services/thpc/v20211109/index.ts +6 -0
  21. package/src/services/thpc/v20211109/thpc_client.ts +64 -0
  22. package/src/services/thpc/v20211109/thpc_models.ts +332 -0
  23. package/src/services/tke/v20180525/tke_client.ts +25 -0
  24. package/src/services/tke/v20180525/tke_models.ts +112 -0
  25. package/src/services/tsf/v20180326/tsf_client.ts +13 -0
  26. package/src/services/tsf/v20180326/tsf_models.ts +85 -0
  27. package/tencentcloud/common/sdk_version.d.ts +1 -1
  28. package/tencentcloud/common/sdk_version.js +1 -1
  29. package/tencentcloud/services/apm/index.d.ts +6 -0
  30. package/tencentcloud/services/apm/index.js +7 -0
  31. package/tencentcloud/services/apm/v20210622/apm_client.d.ts +14 -0
  32. package/tencentcloud/services/apm/v20210622/apm_client.js +37 -0
  33. package/tencentcloud/services/apm/v20210622/apm_models.d.ts +70 -0
  34. package/tencentcloud/services/apm/v20210622/apm_models.js +18 -0
  35. package/tencentcloud/services/apm/v20210622/index.d.ts +6 -0
  36. package/tencentcloud/services/apm/v20210622/index.js +9 -0
  37. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +5 -0
  38. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +5 -1
  39. package/tencentcloud/services/clb/v20180317/clb_client.js +6 -0
  40. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +56 -15
  41. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +9 -8
  42. package/tencentcloud/services/index.d.ts +2 -0
  43. package/tencentcloud/services/index.js +4 -0
  44. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +70 -5
  45. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +6 -6
  46. package/tencentcloud/services/privatedns/v20201028/privatedns_client.d.ts +13 -1
  47. package/tencentcloud/services/privatedns/v20201028/privatedns_client.js +18 -0
  48. package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +123 -28
  49. package/tencentcloud/services/thpc/index.d.ts +6 -0
  50. package/tencentcloud/services/thpc/index.js +7 -0
  51. package/tencentcloud/services/thpc/v20211109/index.d.ts +6 -0
  52. package/tencentcloud/services/thpc/v20211109/index.js +9 -0
  53. package/tencentcloud/services/thpc/v20211109/thpc_client.d.ts +18 -0
  54. package/tencentcloud/services/thpc/v20211109/thpc_client.js +43 -0
  55. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +272 -0
  56. package/tencentcloud/services/thpc/v20211109/thpc_models.js +18 -0
  57. package/tencentcloud/services/tke/v20180525/tke_client.d.ts +9 -1
  58. package/tencentcloud/services/tke/v20180525/tke_client.js +12 -0
  59. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +95 -0
  60. package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +5 -1
  61. package/tencentcloud/services/tsf/v20180326/tsf_client.js +6 -0
  62. package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +73 -0
  63. package/test/apm.v20210622.test.js +31 -0
  64. package/test/clb.v20180317.test.js +10 -0
  65. package/test/privatedns.v20201028.test.js +30 -0
  66. package/test/thpc.v20211109.test.js +41 -0
  67. package/test/tke.v20180525.test.js +20 -0
  68. package/test/tsf.v20180326.test.js +10 -0
@@ -115,6 +115,46 @@ export interface PrivateDNSAccount {
115
115
  Nickname?: string
116
116
  }
117
117
 
118
+ /**
119
+ * DescribePrivateZoneRecordList返回参数结构体
120
+ */
121
+ export interface DescribePrivateZoneRecordListResponse {
122
+ /**
123
+ * 解析记录数量
124
+ */
125
+ TotalCount: number
126
+
127
+ /**
128
+ * 解析记录列表
129
+ */
130
+ RecordSet: Array<PrivateZoneRecord>
131
+
132
+ /**
133
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
134
+ */
135
+ RequestId?: string
136
+ }
137
+
138
+ /**
139
+ * DescribePrivateZoneList返回参数结构体
140
+ */
141
+ export interface DescribePrivateZoneListResponse {
142
+ /**
143
+ * 私有域数量
144
+ */
145
+ TotalCount: number
146
+
147
+ /**
148
+ * 私有域列表
149
+ */
150
+ PrivateZoneSet: Array<PrivateZone>
151
+
152
+ /**
153
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
154
+ */
155
+ RequestId?: string
156
+ }
157
+
118
158
  /**
119
159
  * 关联的VPC出参
120
160
  */
@@ -160,6 +200,26 @@ export interface DatePoint {
160
200
  Value: number
161
201
  }
162
202
 
203
+ /**
204
+ * DescribeAccountVpcList返回参数结构体
205
+ */
206
+ export interface DescribeAccountVpcListResponse {
207
+ /**
208
+ * VPC数量
209
+ */
210
+ TotalCount: number
211
+
212
+ /**
213
+ * VPC 列表
214
+ */
215
+ VpcSet: Array<AccountVpcInfoOut>
216
+
217
+ /**
218
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
219
+ */
220
+ RequestId?: string
221
+ }
222
+
163
223
  /**
164
224
  * DescribePrivateZoneService请求参数结构体
165
225
  */
@@ -284,23 +344,28 @@ export interface ModifyPrivateZoneRecordResponse {
284
344
  }
285
345
 
286
346
  /**
287
- * DescribePrivateZoneRecordList返回参数结构体
347
+ * DescribeAccountVpcList请求参数结构体
288
348
  */
289
- export interface DescribePrivateZoneRecordListResponse {
349
+ export interface DescribeAccountVpcListRequest {
290
350
  /**
291
- * 解析记录数量
351
+ * 关联账号的uin
292
352
  */
293
- TotalCount: number
353
+ AccountUin: string
294
354
 
295
355
  /**
296
- * 解析记录列表
356
+ * 分页偏移量,从0开始
297
357
  */
298
- RecordSet: Array<PrivateZoneRecord>
358
+ Offset?: number
299
359
 
300
360
  /**
301
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
361
+ * 分页限制数目, 最大100,默认20
302
362
  */
303
- RequestId?: string
363
+ Limit?: number
364
+
365
+ /**
366
+ * 过滤参数
367
+ */
368
+ Filters?: Array<Filter>
304
369
  }
305
370
 
306
371
  /**
@@ -398,6 +463,46 @@ export interface CreatePrivateZoneRequest {
398
463
  AccountVpcSet?: Array<AccountVpcInfo>
399
464
  }
400
465
 
466
+ /**
467
+ * Vpc信息
468
+ */
469
+ export interface VpcInfo {
470
+ /**
471
+ * VpcId: vpc-xadsafsdasd
472
+ */
473
+ UniqVpcId: string
474
+
475
+ /**
476
+ * Vpc所属地区: ap-guangzhou, ap-shanghai
477
+ */
478
+ Region: string
479
+ }
480
+
481
+ /**
482
+ * 查询关联账号VPC列表出参
483
+ */
484
+ export interface AccountVpcInfoOut {
485
+ /**
486
+ * VpcId: vpc-xadsafsdasd
487
+ */
488
+ VpcId: string
489
+
490
+ /**
491
+ * Vpc所属地区: ap-guangzhou, ap-shanghai
492
+ */
493
+ Region: string
494
+
495
+ /**
496
+ * Vpc所属账号: 123456789
497
+ */
498
+ Uin: string
499
+
500
+ /**
501
+ * vpc资源名称:testname
502
+ */
503
+ VpcName: string
504
+ }
505
+
401
506
  /**
402
507
  * 私有域解析账号Vpc信息
403
508
  */
@@ -557,18 +662,13 @@ export interface DescribePrivateZoneServiceResponse {
557
662
  }
558
663
 
559
664
  /**
560
- * Vpc信息
665
+ * CreatePrivateDNSAccount返回参数结构体
561
666
  */
562
- export interface VpcInfo {
667
+ export interface CreatePrivateDNSAccountResponse {
563
668
  /**
564
- * VpcId: vpc-xadsafsdasd
565
- */
566
- UniqVpcId: string
567
-
568
- /**
569
- * Vpc所属地区: ap-guangzhou, ap-shanghai
669
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
570
670
  */
571
- Region: string
671
+ RequestId?: string
572
672
  }
573
673
 
574
674
  /**
@@ -661,6 +761,16 @@ export interface SubscribePrivateZoneServiceResponse {
661
761
  RequestId?: string
662
762
  }
663
763
 
764
+ /**
765
+ * DeletePrivateDNSAccount请求参数结构体
766
+ */
767
+ export interface DeletePrivateDNSAccountRequest {
768
+ /**
769
+ * 私有域解析账号
770
+ */
771
+ Account: PrivateDNSAccount
772
+ }
773
+
664
774
  /**
665
775
  * DeletePrivateZoneRecord请求参数结构体
666
776
  */
@@ -707,23 +817,13 @@ export interface DeletePrivateZoneResponse {
707
817
  }
708
818
 
709
819
  /**
710
- * DescribePrivateZoneList返回参数结构体
820
+ * CreatePrivateDNSAccount请求参数结构体
711
821
  */
712
- export interface DescribePrivateZoneListResponse {
713
- /**
714
- * 私有域数量
715
- */
716
- TotalCount: number
717
-
822
+ export interface CreatePrivateDNSAccountRequest {
718
823
  /**
719
- * 私有域列表
720
- */
721
- PrivateZoneSet: Array<PrivateZone>
722
-
723
- /**
724
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
824
+ * 私有域解析账号
725
825
  */
726
- RequestId?: string
826
+ Account: PrivateDNSAccount
727
827
  }
728
828
 
729
829
  /**
@@ -918,6 +1018,16 @@ export interface ModifyPrivateZoneRecordRequest {
918
1018
  TTL?: number
919
1019
  }
920
1020
 
1021
+ /**
1022
+ * DeletePrivateDNSAccount返回参数结构体
1023
+ */
1024
+ export interface DeletePrivateDNSAccountResponse {
1025
+ /**
1026
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1027
+ */
1028
+ RequestId?: string
1029
+ }
1030
+
921
1031
  /**
922
1032
  * 流量包用量
923
1033
  */
@@ -0,0 +1,5 @@
1
+ import { v20211109 } from "./v20211109"
2
+
3
+ export const thpc = {
4
+ v20211109: v20211109,
5
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./thpc_models"
2
+ import { Client } from "./thpc_client"
3
+ export const v20211109 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -0,0 +1,64 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AbstractClient } from "../../../common/abstract_client"
19
+ import { ClientConfig } from "../../../common/interface"
20
+ import {
21
+ DeleteClusterRequest,
22
+ SystemDisk,
23
+ ManagerNode,
24
+ Placement,
25
+ CreateClusterRequest,
26
+ LoginSettings,
27
+ InternetAccessible,
28
+ ComputeNode,
29
+ VirtualPrivateCloud,
30
+ DeleteClusterResponse,
31
+ InstanceChargePrepaid,
32
+ CreateClusterResponse,
33
+ DataDisk,
34
+ } from "./thpc_models"
35
+
36
+ /**
37
+ * thpc client
38
+ * @class
39
+ */
40
+ export class Client extends AbstractClient {
41
+ constructor(clientConfig: ClientConfig) {
42
+ super("thpc.tencentcloudapi.com", "2021-11-09", clientConfig)
43
+ }
44
+
45
+ /**
46
+ * 本接口(DeleteCluster)用于删除一个指定的集群。
47
+ */
48
+ async DeleteCluster(
49
+ req: DeleteClusterRequest,
50
+ cb?: (error: string, rep: DeleteClusterResponse) => void
51
+ ): Promise<DeleteClusterResponse> {
52
+ return this.request("DeleteCluster", req, cb)
53
+ }
54
+
55
+ /**
56
+ * 本接口 (CreateCluster) 用于创建并启动集群。
57
+ */
58
+ async CreateCluster(
59
+ req: CreateClusterRequest,
60
+ cb?: (error: string, rep: CreateClusterResponse) => void
61
+ ): Promise<CreateClusterResponse> {
62
+ return this.request("CreateCluster", req, cb)
63
+ }
64
+ }
@@ -0,0 +1,332 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * DeleteCluster请求参数结构体
20
+ */
21
+ export interface DeleteClusterRequest {
22
+ /**
23
+ * 集群ID。
24
+ */
25
+ ClusterId: string
26
+ }
27
+
28
+ /**
29
+ * 描述了操作系统所在块设备即系统盘的信息
30
+ */
31
+ export interface SystemDisk {
32
+ /**
33
+ * 系统盘类型。系统盘类型限制详见存储概述。取值范围:
34
+ LOCAL_BASIC:本地硬盘
35
+ LOCAL_SSD:本地SSD硬盘
36
+ CLOUD_BASIC:普通云硬盘
37
+ CLOUD_SSD:SSD云硬盘
38
+ CLOUD_PREMIUM:高性能云硬盘
39
+
40
+ 默认取值:当前有库存的硬盘类型。
41
+ */
42
+ DiskType?: string
43
+
44
+ /**
45
+ * 系统盘大小,单位:GB。默认值为 50
46
+ */
47
+ DiskSize?: number
48
+ }
49
+
50
+ /**
51
+ * 管控节点信息
52
+ */
53
+ export interface ManagerNode {
54
+ /**
55
+ * 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br>默认值:POSTPAID_BY_HOUR。
56
+ */
57
+ InstanceChargeType?: string
58
+
59
+ /**
60
+ * 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
61
+ */
62
+ InstanceChargePrepaid?: InstanceChargePrepaid
63
+
64
+ /**
65
+ * 节点机型。不同实例机型指定了不同的资源规格。
66
+ <br><li>对于付费模式为PREPAID或POSTPAID\_BY\_HOUR的实例创建,具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。
67
+ */
68
+ InstanceType?: string
69
+
70
+ /**
71
+ * 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
72
+ */
73
+ SystemDisk?: SystemDisk
74
+
75
+ /**
76
+ * 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
77
+ */
78
+ DataDisks?: Array<DataDisk>
79
+
80
+ /**
81
+ * 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。
82
+ */
83
+ InternetAccessible?: InternetAccessible
84
+
85
+ /**
86
+ * 节点显示名称。<br><li>
87
+ 不指定节点显示名称则默认显示‘未命名’。
88
+ </li><li>购买多个节点,如果指定模式串`{R:x}`,表示生成数字[`[x, x+n-1]`,其中`n`表示购买节点的数量,例如`server_{R:3}`,购买1个时,节点显示名称为`server_3`;购买2个时,节点显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。
89
+ 购买多个节点,如果不指定模式串,则在节点显示名称添加后缀`1、2...n`,其中`n`表示购买节点的数量,例如`server_`,购买2个时,节点显示名称分别为`server_1`,`server_2`。</li><li>
90
+ 最多支持60个字符(包含模式串)。
91
+ */
92
+ InstanceName?: string
93
+ }
94
+
95
+ /**
96
+ * 描述了实例的抽象位置
97
+ */
98
+ export interface Placement {
99
+ /**
100
+ * 实例所属的可用区名称。该参数可以通过调用 [DescribeZones](https://cloud.tencent.com/document/product/213/15707) 的返回值中的Zone字段来获取。
101
+ */
102
+ Zone: string
103
+ }
104
+
105
+ /**
106
+ * CreateCluster请求参数结构体
107
+ */
108
+ export interface CreateClusterRequest {
109
+ /**
110
+ * 集群中实例所在的位置。
111
+ */
112
+ Placement: Placement
113
+
114
+ /**
115
+ * 指定管理节点。
116
+ */
117
+ ManagerNode?: ManagerNode
118
+
119
+ /**
120
+ * 指定管理节点的数量。目前仅支持一个管理节点。
121
+ */
122
+ ManagerNodeCount?: number
123
+
124
+ /**
125
+ * 指定计算节点。
126
+ */
127
+ ComputeNode?: ComputeNode
128
+
129
+ /**
130
+ * 指定计算节点的数量。默认取值:0。
131
+ */
132
+ ComputeNodeCount?: number
133
+
134
+ /**
135
+ * 调度器类型。目前仅支持SGE调度器。
136
+ */
137
+ SchedulerType?: string
138
+
139
+ /**
140
+ * 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-xxx`。目前仅支持公有镜像和自定义镜像。
141
+ */
142
+ ImageId?: string
143
+
144
+ /**
145
+ * 私有网络相关信息配置。
146
+ */
147
+ VirtualPrivateCloud?: VirtualPrivateCloud
148
+
149
+ /**
150
+ * 集群登录设置。
151
+ */
152
+ LoginSettings?: LoginSettings
153
+
154
+ /**
155
+ * 集群中实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。
156
+ */
157
+ SecurityGroupIds?: Array<string>
158
+
159
+ /**
160
+ * 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
161
+ */
162
+ ClientToken?: string
163
+
164
+ /**
165
+ * 是否只预检此次请求。
166
+ true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。
167
+ 如果检查不通过,则返回对应错误码;
168
+ 如果检查通过,则返回RequestId.
169
+ false(默认):发送正常请求,通过检查后直接创建实例
170
+ */
171
+ DryRun?: boolean
172
+
173
+ /**
174
+ * 域名字服务类型。目前仅支持NIS域名字服务。
175
+ */
176
+ AccountType?: string
177
+
178
+ /**
179
+ * 集群显示名称。
180
+ */
181
+ ClusterName?: string
182
+ }
183
+
184
+ /**
185
+ * 描述了实例登录相关配置与信息。
186
+ */
187
+ export interface LoginSettings {
188
+ /**
189
+ * 实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<br><li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。<br><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。<br><br>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。
190
+ */
191
+ Password?: string
192
+ }
193
+
194
+ /**
195
+ * 描述了实例的公网可访问性,声明了实例的公网使用计费模式,最大带宽等
196
+ */
197
+ export interface InternetAccessible {
198
+ /**
199
+ * 网络计费类型。取值范围:
200
+ BANDWIDTH_PREPAID:预付费按带宽结算
201
+ TRAFFIC_POSTPAID_BY_HOUR:流量按小时后付费
202
+ BANDWIDTH_POSTPAID_BY_HOUR:带宽按小时后付费
203
+ BANDWIDTH_PACKAGE:带宽包用户
204
+ 默认取值:非带宽包用户默认与子机付费类型保持一致。
205
+ */
206
+ InternetChargeType?: string
207
+
208
+ /**
209
+ * 公网出带宽上限,单位:Mbps。默认值:0Mbps。不同机型带宽上限范围不一致,具体限制详见购买网络带宽。
210
+ */
211
+ InternetMaxBandwidthOut?: number
212
+ }
213
+
214
+ /**
215
+ * 计算节点信息。
216
+ */
217
+ export interface ComputeNode {
218
+ /**
219
+ * 节点[计费类型](https://cloud.tencent.com/document/product/213/2180)。<br><li>PREPAID:预付费,即包年包月<br><li>POSTPAID_BY_HOUR:按小时后付费<br><li>SPOTPAID:竞价付费<br>默认值:POSTPAID_BY_HOUR。
220
+ */
221
+ InstanceChargeType?: string
222
+
223
+ /**
224
+ * 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月节点的购买时长、是否设置自动续费等属性。若指定节点的付费模式为预付费则该参数必传。
225
+ */
226
+ InstanceChargePrepaid?: InstanceChargePrepaid
227
+
228
+ /**
229
+ * 节点机型。不同实例机型指定了不同的资源规格。
230
+ <br><li>具体取值可通过调用接口[DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例规格](https://cloud.tencent.com/document/product/213/11518)描述。
231
+ */
232
+ InstanceType?: string
233
+
234
+ /**
235
+ * 节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。
236
+ */
237
+ SystemDisk?: SystemDisk
238
+
239
+ /**
240
+ * 节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。
241
+ */
242
+ DataDisks?: Array<DataDisk>
243
+
244
+ /**
245
+ * 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。
246
+ */
247
+ InternetAccessible?: InternetAccessible
248
+
249
+ /**
250
+ * 节点显示名称。<br><li>
251
+ 不指定节点显示名称则默认显示‘未命名’。
252
+ </li><li>购买多个节点,如果指定模式串`{R:x}`,表示生成数字[`[x, x+n-1]`,其中`n`表示购买节点的数量,例如`server_{R:3}`,购买1个时,节点显示名称为`server_3`;购买2个时,节点显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。
253
+ 购买多个节点,如果不指定模式串,则在节点显示名称添加后缀`1、2...n`,其中`n`表示购买节点的数量,例如`server_`,购买2个时,节点显示名称分别为`server_1`,`server_2`。</li><li>
254
+ 最多支持60个字符(包含模式串)。
255
+ */
256
+ InstanceName?: string
257
+ }
258
+
259
+ /**
260
+ * 描述了VPC相关信息
261
+ */
262
+ export interface VirtualPrivateCloud {
263
+ /**
264
+ * 私有网络ID,形如`vpc-xxx`。有效的VpcId可通过登录[控制台](https://console.cloud.tencent.com/vpc/vpc?rid=1)查询;也可以调用接口 [DescribeVpcEx](/document/api/215/1372) ,从接口返回中的`unVpcId`字段获取。若在创建子机时VpcId与SubnetId同时传入`DEFAULT`,则强制使用默认vpc网络。
265
+ */
266
+ VpcId: string
267
+
268
+ /**
269
+ * 私有网络子网ID,形如`subnet-xxx`。有效的私有网络子网ID可通过登录[控制台](https://console.cloud.tencent.com/vpc/subnet?rid=1)查询;也可以调用接口 [DescribeSubnets](/document/api/215/15784) ,从接口返回中的`unSubnetId`字段获取。若在创建子机时SubnetId与VpcId同时传入`DEFAULT`,则强制使用默认vpc网络。
270
+ */
271
+ SubnetId: string
272
+ }
273
+
274
+ /**
275
+ * DeleteCluster返回参数结构体
276
+ */
277
+ export interface DeleteClusterResponse {
278
+ /**
279
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
280
+ */
281
+ RequestId?: string
282
+ }
283
+
284
+ /**
285
+ * 描述了实例的计费模式
286
+ */
287
+ export interface InstanceChargePrepaid {
288
+ /**
289
+ * 购买实例的时长,单位:月。取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60。
290
+ */
291
+ Period: number
292
+
293
+ /**
294
+ * 自动续费标识。取值范围:
295
+ NOTIFY_AND_AUTO_RENEW:通知过期且自动续费
296
+ NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费
297
+ DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费
298
+
299
+ 默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
300
+ */
301
+ RenewFlag?: string
302
+ }
303
+
304
+ /**
305
+ * CreateCluster返回参数结构体
306
+ */
307
+ export interface CreateClusterResponse {
308
+ /**
309
+ * 集群ID。
310
+ */
311
+ ClusterId: string
312
+
313
+ /**
314
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
315
+ */
316
+ RequestId?: string
317
+ }
318
+
319
+ /**
320
+ * 描述了数据盘的信息
321
+ */
322
+ export interface DataDisk {
323
+ /**
324
+ * 数据盘大小,单位:GB。最小调整步长为10G,不同数据盘类型取值范围不同,具体限制详见:[存储概述](https://cloud.tencent.com/document/product/213/4952)。默认值为0,表示不购买数据盘。更多限制详见产品文档。
325
+ */
326
+ DiskSize: number
327
+
328
+ /**
329
+ * 数据盘类型。数据盘类型限制详见[存储概述](https://cloud.tencent.com/document/product/213/4952)。取值范围:<br><li>LOCAL_BASIC:本地硬盘<br><li>LOCAL_SSD:本地SSD硬盘<br><li>LOCAL_NVME:本地NVME硬盘,与InstanceType强相关,不支持指定<br><li>LOCAL_PRO:本地HDD硬盘,与InstanceType强相关,不支持指定<br><li>CLOUD_BASIC:普通云硬盘<br><li>CLOUD_PREMIUM:高性能云硬盘<br><li>CLOUD_SSD:SSD云硬盘<br><li>CLOUD_HSSD:增强型SSD云硬盘<br><li>CLOUD_TSSD:极速型SSD云硬盘<br><br>默认取值:LOCAL_BASIC。
330
+ */
331
+ DiskType?: string
332
+ }