@ucloud-sdks/ucloud-sdk-js 0.0.5 → 0.2.1
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.
- package/lib/core/middlewares.js +1 -1
- package/lib/services/cube/index.d.ts +141 -1
- package/lib/services/cube/index.js +36 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.js +14 -0
- package/lib/services/ipsecvpn/index.d.ts +13 -5
- package/lib/services/pathx/index.d.ts +986 -60
- package/lib/services/pathx/index.js +144 -0
- package/lib/services/uaccount/index.d.ts +0 -24
- package/lib/services/uaccount/index.js +0 -9
- package/lib/services/ubill/index.d.ts +284 -4
- package/lib/services/ubill/index.js +18 -0
- package/lib/services/ucdn/index.d.ts +1085 -946
- package/lib/services/ucdn/index.js +72 -45
- package/lib/services/udb/index.d.ts +89 -12
- package/lib/services/udb/index.js +21 -3
- package/lib/services/udisk/index.d.ts +32 -8
- package/lib/services/uec/index.d.ts +68 -8
- package/lib/services/uec/index.js +9 -0
- package/lib/services/ufile/index.d.ts +288 -0
- package/lib/services/ufile/index.js +45 -0
- package/lib/services/ufs/index.d.ts +201 -3
- package/lib/services/ufs/index.js +45 -0
- package/lib/services/uhost/index.d.ts +201 -99
- package/lib/services/uhost/index.js +9 -0
- package/lib/services/uk8s/index.d.ts +690 -9
- package/lib/services/uk8s/index.js +45 -0
- package/lib/services/ulb/index.d.ts +45 -5
- package/lib/services/ulb/index.js +9 -0
- package/lib/services/umem/index.d.ts +337 -9
- package/lib/services/umem/index.js +27 -0
- package/lib/services/unet/index.d.ts +175 -6
- package/lib/services/unet/index.js +36 -0
- package/lib/services/uphone/index.d.ts +1986 -0
- package/lib/services/uphone/index.js +352 -0
- package/lib/services/uphost/index.d.ts +221 -25
- package/lib/services/uphost/index.js +36 -0
- package/lib/services/usms/index.d.ts +23 -3
- package/lib/services/uvms/index.d.ts +64 -0
- package/lib/services/uvms/index.js +25 -0
- package/lib/services/vpc/index.d.ts +390 -19
- package/lib/services/vpc/index.js +54 -0
- package/package.json +7 -7
|
@@ -15,6 +15,12 @@ export default class UK8SClient extends Client {
|
|
|
15
15
|
* See also: https://docs.ucloud.cn/api/uk8s-api/add_uk8s_existing_uhost
|
|
16
16
|
*/
|
|
17
17
|
addUK8SExistingUHost(request?: AddUK8SExistingUHostRequest): Promise<AddUK8SExistingUHostResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* AddUK8SNodeGroup - 添加UK8S节点池
|
|
20
|
+
*
|
|
21
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/add_uk8s_node_group
|
|
22
|
+
*/
|
|
23
|
+
addUK8SNodeGroup(request?: AddUK8SNodeGroupRequest): Promise<AddUK8SNodeGroupResponse>;
|
|
18
24
|
/**
|
|
19
25
|
* AddUK8SPHostNode - 为UK8S集群添加一台或多台物理云主机类型的节点。
|
|
20
26
|
*
|
|
@@ -45,12 +51,24 @@ export default class UK8SClient extends Client {
|
|
|
45
51
|
* See also: https://docs.ucloud.cn/api/uk8s-api/del_uk8s_cluster_node_v2
|
|
46
52
|
*/
|
|
47
53
|
delUK8SClusterNodeV2(request?: DelUK8SClusterNodeV2Request): Promise<DelUK8SClusterNodeV2Response>;
|
|
54
|
+
/**
|
|
55
|
+
* DescribeUK8SCluster - 获取集群信息
|
|
56
|
+
*
|
|
57
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/describe_uk8s_cluster
|
|
58
|
+
*/
|
|
59
|
+
describeUK8SCluster(request?: DescribeUK8SClusterRequest): Promise<DescribeUK8SClusterResponse>;
|
|
48
60
|
/**
|
|
49
61
|
* DescribeUK8SImage - 获取UK8S支持的Node节点操作系统,可基于该操作系统制定自定义镜像
|
|
50
62
|
*
|
|
51
63
|
* See also: https://docs.ucloud.cn/api/uk8s-api/describe_uk8s_image
|
|
52
64
|
*/
|
|
53
65
|
describeUK8SImage(request?: DescribeUK8SImageRequest): Promise<DescribeUK8SImageResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* DescribeUK8SNode - 用于获取 UK8S 节点详情
|
|
68
|
+
*
|
|
69
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/describe_uk8s_node
|
|
70
|
+
*/
|
|
71
|
+
describeUK8SNode(request?: DescribeUK8SNodeRequest): Promise<DescribeUK8SNodeResponse>;
|
|
54
72
|
/**
|
|
55
73
|
* ListUK8SClusterNodeV2 - 获取UK8S集群节点信息
|
|
56
74
|
*
|
|
@@ -63,6 +81,18 @@ export default class UK8SClient extends Client {
|
|
|
63
81
|
* See also: https://docs.ucloud.cn/api/uk8s-api/list_uk8s_cluster_v2
|
|
64
82
|
*/
|
|
65
83
|
listUK8SClusterV2(request?: ListUK8SClusterV2Request): Promise<ListUK8SClusterV2Response>;
|
|
84
|
+
/**
|
|
85
|
+
* ListUK8SNodeGroup - 列出UK8S节点池
|
|
86
|
+
*
|
|
87
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/list_uk8s_node_group
|
|
88
|
+
*/
|
|
89
|
+
listUK8SNodeGroup(request?: ListUK8SNodeGroupRequest): Promise<ListUK8SNodeGroupResponse>;
|
|
90
|
+
/**
|
|
91
|
+
* RemoveUK8SNodeGroup - 删除UK8S节点池
|
|
92
|
+
*
|
|
93
|
+
* See also: https://docs.ucloud.cn/api/uk8s-api/remove_uk8s_node_group
|
|
94
|
+
*/
|
|
95
|
+
removeUK8SNodeGroup(request?: RemoveUK8SNodeGroupRequest): Promise<RemoveUK8SNodeGroupResponse>;
|
|
66
96
|
}
|
|
67
97
|
/**
|
|
68
98
|
* AddUK8SExistingUHost - 将预先创建好的云主机加入到UK8S集群,需要注意的是,该云主机依然会执行重装系统的操作。
|
|
@@ -118,6 +148,80 @@ export interface AddUK8SExistingUHostRequest {
|
|
|
118
148
|
*/
|
|
119
149
|
export interface AddUK8SExistingUHostResponse {
|
|
120
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* AddUK8SNodeGroup - 添加UK8S节点池
|
|
153
|
+
*/
|
|
154
|
+
export interface AddUK8SNodeGroupRequest {
|
|
155
|
+
/**
|
|
156
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
157
|
+
*/
|
|
158
|
+
Zone?: string;
|
|
159
|
+
/**
|
|
160
|
+
* 节点池名字
|
|
161
|
+
*/
|
|
162
|
+
NodeGroupName: string;
|
|
163
|
+
/**
|
|
164
|
+
* 集群ID
|
|
165
|
+
*/
|
|
166
|
+
ClusterId: string;
|
|
167
|
+
/**
|
|
168
|
+
* 镜像ID
|
|
169
|
+
*/
|
|
170
|
+
ImageId?: string;
|
|
171
|
+
/**
|
|
172
|
+
* 云主机机型。枚举值["N", "C", "G", "O", "OS"]。参考[[api:uhost-api:uhost_type|云主机机型说明]]。
|
|
173
|
+
*/
|
|
174
|
+
MachineType?: string;
|
|
175
|
+
/**
|
|
176
|
+
* 最低cpu平台,枚举值["Intel/Auto", "Intel/IvyBridge", "Intel/Haswell", "Intel/Broadwell", "Intel/Skylake", "Intel/Cascadelake";"Intel/CascadelakeR"; “Amd/Epyc2”,"Amd/Auto"],默认值是"Intel/Auto"
|
|
177
|
+
*/
|
|
178
|
+
MinimalCpuPlatform?: string;
|
|
179
|
+
/**
|
|
180
|
+
* GPU卡核心数。仅GPU机型支持此字段(可选范围与MachineType+GpuType相关)
|
|
181
|
+
*/
|
|
182
|
+
CPU?: number;
|
|
183
|
+
/**
|
|
184
|
+
* 内存大小。单位:MB
|
|
185
|
+
*/
|
|
186
|
+
Mem?: number;
|
|
187
|
+
/**
|
|
188
|
+
* GPU类型
|
|
189
|
+
*/
|
|
190
|
+
GpuType?: string;
|
|
191
|
+
/**
|
|
192
|
+
* GPU卡核心数
|
|
193
|
+
*/
|
|
194
|
+
GPU?: number;
|
|
195
|
+
/**
|
|
196
|
+
* 磁盘类型
|
|
197
|
+
*/
|
|
198
|
+
BootDiskType?: string;
|
|
199
|
+
/**
|
|
200
|
+
* 数据磁盘大小
|
|
201
|
+
*/
|
|
202
|
+
DataDiskSize?: number;
|
|
203
|
+
/**
|
|
204
|
+
* 磁盘类型
|
|
205
|
+
*/
|
|
206
|
+
DataDiskType?: string;
|
|
207
|
+
/**
|
|
208
|
+
* 业务组
|
|
209
|
+
*/
|
|
210
|
+
Tag?: string;
|
|
211
|
+
/**
|
|
212
|
+
* 计费模式
|
|
213
|
+
*/
|
|
214
|
+
ChargeType?: string;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* AddUK8SNodeGroup - 添加UK8S节点池
|
|
218
|
+
*/
|
|
219
|
+
export interface AddUK8SNodeGroupResponse {
|
|
220
|
+
/**
|
|
221
|
+
* 节点池ID
|
|
222
|
+
*/
|
|
223
|
+
NodeGroupId: string;
|
|
224
|
+
}
|
|
121
225
|
/**
|
|
122
226
|
* AddUK8SPHostNode - 为UK8S集群添加一台或多台物理云主机类型的节点。
|
|
123
227
|
*/
|
|
@@ -193,7 +297,7 @@ export interface AddUK8SPHostNodeResponse {
|
|
|
193
297
|
*/
|
|
194
298
|
export interface AddUK8SUHostNodeRequest {
|
|
195
299
|
/**
|
|
196
|
-
* 可用区。参见 [可用区列表](
|
|
300
|
+
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
|
|
197
301
|
*/
|
|
198
302
|
Zone: string;
|
|
199
303
|
/**
|
|
@@ -205,7 +309,7 @@ export interface AddUK8SUHostNodeRequest {
|
|
|
205
309
|
*/
|
|
206
310
|
CPU: number;
|
|
207
311
|
/**
|
|
208
|
-
*
|
|
312
|
+
* 创建Node节点数量,取值范围是[1,50]。
|
|
209
313
|
*/
|
|
210
314
|
Count: number;
|
|
211
315
|
/**
|
|
@@ -231,7 +335,7 @@ export interface AddUK8SUHostNodeRequest {
|
|
|
231
335
|
/**
|
|
232
336
|
* 数据磁盘大小,单位GB。默认0。范围 :[20, 1000]
|
|
233
337
|
*/
|
|
234
|
-
DataDiskSize?:
|
|
338
|
+
DataDiskSize?: number;
|
|
235
339
|
/**
|
|
236
340
|
* 购买时长。默认: 1。按小时购买(Dynamic)时无需此参数。 月付时,此参数传0,代表了购买至月末。
|
|
237
341
|
*/
|
|
@@ -507,6 +611,331 @@ export interface DelUK8SClusterNodeV2Request {
|
|
|
507
611
|
*/
|
|
508
612
|
export interface DelUK8SClusterNodeV2Response {
|
|
509
613
|
}
|
|
614
|
+
/**
|
|
615
|
+
* DescribeUK8SCluster - 获取集群信息
|
|
616
|
+
*/
|
|
617
|
+
export interface DescribeUK8SClusterRequest {
|
|
618
|
+
/**
|
|
619
|
+
* k8s集群ID
|
|
620
|
+
*/
|
|
621
|
+
ClusterId: string;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* DescribeUK8SCluster - 获取集群信息
|
|
625
|
+
*/
|
|
626
|
+
export interface DescribeUK8SClusterResponse {
|
|
627
|
+
/**
|
|
628
|
+
* 资源名字
|
|
629
|
+
*/
|
|
630
|
+
ClusterName: string;
|
|
631
|
+
/**
|
|
632
|
+
* 集群ID
|
|
633
|
+
*/
|
|
634
|
+
ClusterId: string;
|
|
635
|
+
/**
|
|
636
|
+
* 所属VPC
|
|
637
|
+
*/
|
|
638
|
+
VPCId: string;
|
|
639
|
+
/**
|
|
640
|
+
* 所属子网
|
|
641
|
+
*/
|
|
642
|
+
SubnetId: string;
|
|
643
|
+
/**
|
|
644
|
+
* Pod网段
|
|
645
|
+
*/
|
|
646
|
+
PodCIDR: string;
|
|
647
|
+
/**
|
|
648
|
+
* 服务网段
|
|
649
|
+
*/
|
|
650
|
+
ServiceCIDR: string;
|
|
651
|
+
/**
|
|
652
|
+
* Master 节点数量
|
|
653
|
+
*/
|
|
654
|
+
MasterCount: number;
|
|
655
|
+
/**
|
|
656
|
+
* Master节点配置信息,具体参考UhostInfo。托管版不返回该信息
|
|
657
|
+
*/
|
|
658
|
+
MasterList?: {
|
|
659
|
+
/**
|
|
660
|
+
* 所在机房
|
|
661
|
+
*/
|
|
662
|
+
Zone: string;
|
|
663
|
+
/**
|
|
664
|
+
* 主机名称
|
|
665
|
+
*/
|
|
666
|
+
Name: string;
|
|
667
|
+
/**
|
|
668
|
+
* Cpu数量
|
|
669
|
+
*/
|
|
670
|
+
CPU: number;
|
|
671
|
+
/**
|
|
672
|
+
* 内存
|
|
673
|
+
*/
|
|
674
|
+
Memory: number;
|
|
675
|
+
/**
|
|
676
|
+
* 节点IP信息
|
|
677
|
+
*/
|
|
678
|
+
IPSet: {
|
|
679
|
+
/**
|
|
680
|
+
* 国际: Internation,BGP: Bgp,内网: Private
|
|
681
|
+
*/
|
|
682
|
+
Type?: string;
|
|
683
|
+
/**
|
|
684
|
+
* IP资源ID (内网IP无对应的资源ID)
|
|
685
|
+
*/
|
|
686
|
+
IPId?: string;
|
|
687
|
+
/**
|
|
688
|
+
* IP地址
|
|
689
|
+
*/
|
|
690
|
+
IP?: string;
|
|
691
|
+
/**
|
|
692
|
+
* IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
|
|
693
|
+
*/
|
|
694
|
+
Bandwidth?: number;
|
|
695
|
+
/**
|
|
696
|
+
* 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。
|
|
697
|
+
*/
|
|
698
|
+
Default?: string;
|
|
699
|
+
}[];
|
|
700
|
+
/**
|
|
701
|
+
* 节点磁盘信息
|
|
702
|
+
*/
|
|
703
|
+
DiskSet: {
|
|
704
|
+
/**
|
|
705
|
+
* 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
|
|
706
|
+
*/
|
|
707
|
+
Type?: string;
|
|
708
|
+
/**
|
|
709
|
+
* 磁盘长ID
|
|
710
|
+
*/
|
|
711
|
+
DiskId?: string;
|
|
712
|
+
/**
|
|
713
|
+
* UDisk名字(仅当磁盘是UDisk时返回)
|
|
714
|
+
*/
|
|
715
|
+
Name?: string;
|
|
716
|
+
/**
|
|
717
|
+
* 磁盘盘符
|
|
718
|
+
*/
|
|
719
|
+
Drive?: string;
|
|
720
|
+
/**
|
|
721
|
+
* 磁盘大小,单位: GB
|
|
722
|
+
*/
|
|
723
|
+
Size?: number;
|
|
724
|
+
/**
|
|
725
|
+
* 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。
|
|
726
|
+
*/
|
|
727
|
+
BackupType?: string;
|
|
728
|
+
/**
|
|
729
|
+
* 当前主机的IOPS值
|
|
730
|
+
*/
|
|
731
|
+
IOPS?: number;
|
|
732
|
+
/**
|
|
733
|
+
* Yes: 加密 No: 非加密
|
|
734
|
+
*/
|
|
735
|
+
Encrypted?: string;
|
|
736
|
+
/**
|
|
737
|
+
* LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK
|
|
738
|
+
*/
|
|
739
|
+
DiskType?: string;
|
|
740
|
+
/**
|
|
741
|
+
* True| False
|
|
742
|
+
*/
|
|
743
|
+
IsBoot?: string;
|
|
744
|
+
}[];
|
|
745
|
+
/**
|
|
746
|
+
* 主机ID
|
|
747
|
+
*/
|
|
748
|
+
NodeId: string;
|
|
749
|
+
/**
|
|
750
|
+
* 镜像信息
|
|
751
|
+
*/
|
|
752
|
+
OsName: string;
|
|
753
|
+
/**
|
|
754
|
+
* 创建时间
|
|
755
|
+
*/
|
|
756
|
+
CreateTime: number;
|
|
757
|
+
/**
|
|
758
|
+
* 到期时间
|
|
759
|
+
*/
|
|
760
|
+
ExpireTime: number;
|
|
761
|
+
/**
|
|
762
|
+
* 主机状态
|
|
763
|
+
*/
|
|
764
|
+
State: string;
|
|
765
|
+
/**
|
|
766
|
+
* 节点类型:uhost表示云主机;uphost表示物理云主机
|
|
767
|
+
*/
|
|
768
|
+
NodeType: string;
|
|
769
|
+
}[];
|
|
770
|
+
/**
|
|
771
|
+
* Node节点配置信息,具体参考UhostInfo
|
|
772
|
+
*/
|
|
773
|
+
NodeList?: {
|
|
774
|
+
/**
|
|
775
|
+
* 所在机房
|
|
776
|
+
*/
|
|
777
|
+
Zone: string;
|
|
778
|
+
/**
|
|
779
|
+
* 主机名称
|
|
780
|
+
*/
|
|
781
|
+
Name: string;
|
|
782
|
+
/**
|
|
783
|
+
* Cpu数量
|
|
784
|
+
*/
|
|
785
|
+
CPU: number;
|
|
786
|
+
/**
|
|
787
|
+
* 内存
|
|
788
|
+
*/
|
|
789
|
+
Memory: number;
|
|
790
|
+
/**
|
|
791
|
+
* 节点IP信息
|
|
792
|
+
*/
|
|
793
|
+
IPSet: {
|
|
794
|
+
/**
|
|
795
|
+
* 国际: Internation,BGP: Bgp,内网: Private
|
|
796
|
+
*/
|
|
797
|
+
Type?: string;
|
|
798
|
+
/**
|
|
799
|
+
* IP资源ID (内网IP无对应的资源ID)
|
|
800
|
+
*/
|
|
801
|
+
IPId?: string;
|
|
802
|
+
/**
|
|
803
|
+
* IP地址
|
|
804
|
+
*/
|
|
805
|
+
IP?: string;
|
|
806
|
+
/**
|
|
807
|
+
* IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
|
|
808
|
+
*/
|
|
809
|
+
Bandwidth?: number;
|
|
810
|
+
/**
|
|
811
|
+
* 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。
|
|
812
|
+
*/
|
|
813
|
+
Default?: string;
|
|
814
|
+
}[];
|
|
815
|
+
/**
|
|
816
|
+
* 节点磁盘信息
|
|
817
|
+
*/
|
|
818
|
+
DiskSet: {
|
|
819
|
+
/**
|
|
820
|
+
* 磁盘类型。系统盘: Boot,数据盘: Data,网络盘:Udisk
|
|
821
|
+
*/
|
|
822
|
+
Type?: string;
|
|
823
|
+
/**
|
|
824
|
+
* 磁盘长ID
|
|
825
|
+
*/
|
|
826
|
+
DiskId?: string;
|
|
827
|
+
/**
|
|
828
|
+
* UDisk名字(仅当磁盘是UDisk时返回)
|
|
829
|
+
*/
|
|
830
|
+
Name?: string;
|
|
831
|
+
/**
|
|
832
|
+
* 磁盘盘符
|
|
833
|
+
*/
|
|
834
|
+
Drive?: string;
|
|
835
|
+
/**
|
|
836
|
+
* 磁盘大小,单位: GB
|
|
837
|
+
*/
|
|
838
|
+
Size?: number;
|
|
839
|
+
/**
|
|
840
|
+
* 备份方案,枚举类型:BASIC_SNAPSHOT,普通快照;DATAARK,方舟。无快照则不返回该字段。
|
|
841
|
+
*/
|
|
842
|
+
BackupType?: string;
|
|
843
|
+
/**
|
|
844
|
+
* 当前主机的IOPS值
|
|
845
|
+
*/
|
|
846
|
+
IOPS?: number;
|
|
847
|
+
/**
|
|
848
|
+
* Yes: 加密 No: 非加密
|
|
849
|
+
*/
|
|
850
|
+
Encrypted?: string;
|
|
851
|
+
/**
|
|
852
|
+
* LOCAL_NOMAL| CLOUD_NORMAL| LOCAL_SSD| CLOUD_SSD|EXCLUSIVE_LOCAL_DISK
|
|
853
|
+
*/
|
|
854
|
+
DiskType?: string;
|
|
855
|
+
/**
|
|
856
|
+
* True| False
|
|
857
|
+
*/
|
|
858
|
+
IsBoot?: string;
|
|
859
|
+
}[];
|
|
860
|
+
/**
|
|
861
|
+
* 主机ID
|
|
862
|
+
*/
|
|
863
|
+
NodeId: string;
|
|
864
|
+
/**
|
|
865
|
+
* 镜像信息
|
|
866
|
+
*/
|
|
867
|
+
OsName: string;
|
|
868
|
+
/**
|
|
869
|
+
* 创建时间
|
|
870
|
+
*/
|
|
871
|
+
CreateTime: number;
|
|
872
|
+
/**
|
|
873
|
+
* 到期时间
|
|
874
|
+
*/
|
|
875
|
+
ExpireTime: number;
|
|
876
|
+
/**
|
|
877
|
+
* 主机状态
|
|
878
|
+
*/
|
|
879
|
+
State: string;
|
|
880
|
+
/**
|
|
881
|
+
* 节点类型:uhost表示云主机;uphost表示物理云主机
|
|
882
|
+
*/
|
|
883
|
+
NodeType: string;
|
|
884
|
+
}[];
|
|
885
|
+
/**
|
|
886
|
+
* 创建时间
|
|
887
|
+
*/
|
|
888
|
+
CreateTime?: number;
|
|
889
|
+
/**
|
|
890
|
+
* Node节点数量
|
|
891
|
+
*/
|
|
892
|
+
NodeCount?: number;
|
|
893
|
+
/**
|
|
894
|
+
* 集群apiserver地址
|
|
895
|
+
*/
|
|
896
|
+
ApiServer?: string;
|
|
897
|
+
/**
|
|
898
|
+
* 状态
|
|
899
|
+
*/
|
|
900
|
+
Status?: string;
|
|
901
|
+
/**
|
|
902
|
+
* 集群外部apiserver地址
|
|
903
|
+
*/
|
|
904
|
+
ExternalApiServer?: string;
|
|
905
|
+
/**
|
|
906
|
+
* kube-proxy配置
|
|
907
|
+
*/
|
|
908
|
+
KubeProxy?: {
|
|
909
|
+
/**
|
|
910
|
+
* KubeProxy模式,枚举值为[ipvs,iptables]
|
|
911
|
+
*/
|
|
912
|
+
Mode?: string;
|
|
913
|
+
};
|
|
914
|
+
/**
|
|
915
|
+
* K8S版本
|
|
916
|
+
*/
|
|
917
|
+
Version?: string;
|
|
918
|
+
/**
|
|
919
|
+
* 自定义或者默认的clusterdomain
|
|
920
|
+
*/
|
|
921
|
+
ClusterDomain?: string;
|
|
922
|
+
/**
|
|
923
|
+
* 集群etcd服务证书
|
|
924
|
+
*/
|
|
925
|
+
EtcdCert?: string;
|
|
926
|
+
/**
|
|
927
|
+
* 集群etcd服务密钥
|
|
928
|
+
*/
|
|
929
|
+
EtcdKey?: string;
|
|
930
|
+
/**
|
|
931
|
+
* 集群CA根证书
|
|
932
|
+
*/
|
|
933
|
+
CACert?: string;
|
|
934
|
+
/**
|
|
935
|
+
* Master配置预警:Normal正常;Warning 需要升级;Error 需要紧急升级;
|
|
936
|
+
*/
|
|
937
|
+
MasterResourceStatus?: string;
|
|
938
|
+
}
|
|
510
939
|
/**
|
|
511
940
|
* DescribeUK8SImage - 获取UK8S支持的Node节点操作系统,可基于该操作系统制定自定义镜像
|
|
512
941
|
*/
|
|
@@ -563,6 +992,161 @@ export interface DescribeUK8SImageResponse {
|
|
|
563
992
|
NotSupportGPU: boolean;
|
|
564
993
|
}[];
|
|
565
994
|
}
|
|
995
|
+
/**
|
|
996
|
+
* DescribeUK8SNode - 用于获取 UK8S 节点详情
|
|
997
|
+
*/
|
|
998
|
+
export interface DescribeUK8SNodeRequest {
|
|
999
|
+
/**
|
|
1000
|
+
* UK8S 集群 Id
|
|
1001
|
+
*/
|
|
1002
|
+
ClusterId: string;
|
|
1003
|
+
/**
|
|
1004
|
+
* K8S 节点IP或者节点ID
|
|
1005
|
+
*/
|
|
1006
|
+
Name: string;
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* DescribeUK8SNode - 用于获取 UK8S 节点详情
|
|
1010
|
+
*/
|
|
1011
|
+
export interface DescribeUK8SNodeResponse {
|
|
1012
|
+
/**
|
|
1013
|
+
* 节点名称
|
|
1014
|
+
*/
|
|
1015
|
+
Name: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* 字符串数组,每一项是类似 "kubernetes.io/arch=amd64" 的标签
|
|
1018
|
+
*/
|
|
1019
|
+
Labels: string[];
|
|
1020
|
+
/**
|
|
1021
|
+
* 字符串数组,每一项是类似 "node.alpha.kubernetes.io/ttl=0" 的注解
|
|
1022
|
+
*/
|
|
1023
|
+
Annotations: string[];
|
|
1024
|
+
/**
|
|
1025
|
+
* 时间戳,单位是 秒
|
|
1026
|
+
*/
|
|
1027
|
+
CreationTimestamp: number;
|
|
1028
|
+
/**
|
|
1029
|
+
* 字符串,如:"UCloud://cn-sh2-02//uk8s-vsc0vgob-n-mpzxc"
|
|
1030
|
+
*/
|
|
1031
|
+
ProviderID: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* 内核版本,如:"4.19.0-6.el7.ucloud.x86_64"
|
|
1034
|
+
*/
|
|
1035
|
+
KernelVersion: string;
|
|
1036
|
+
/**
|
|
1037
|
+
* 操作系统类型,如:"CentOS Linux 7 (Core)"
|
|
1038
|
+
*/
|
|
1039
|
+
OSImage: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* 容器运行时版本,如:"docker://18.9.9"
|
|
1042
|
+
*/
|
|
1043
|
+
ContainerRuntimeVersion: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* kubelet 版本
|
|
1046
|
+
*/
|
|
1047
|
+
KubeletVersion: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* kubeproxy 版本
|
|
1050
|
+
*/
|
|
1051
|
+
KubeProxyVersion: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* 内部 IP 地址
|
|
1054
|
+
*/
|
|
1055
|
+
InternalIP: string;
|
|
1056
|
+
/**
|
|
1057
|
+
* 主机名
|
|
1058
|
+
*/
|
|
1059
|
+
Hostname: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* 已分配到当前节点的 Pod 数量
|
|
1062
|
+
*/
|
|
1063
|
+
AllocatedPodCount: number;
|
|
1064
|
+
/**
|
|
1065
|
+
* 节点允许的可分配 Pod 最大数量
|
|
1066
|
+
*/
|
|
1067
|
+
PodCapacity: number;
|
|
1068
|
+
/**
|
|
1069
|
+
* 是否禁止调度
|
|
1070
|
+
*/
|
|
1071
|
+
Unschedulable: boolean;
|
|
1072
|
+
/**
|
|
1073
|
+
* 节点 CPU 总量
|
|
1074
|
+
*/
|
|
1075
|
+
CPUCapacity: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* 节点内存总量
|
|
1078
|
+
*/
|
|
1079
|
+
MemoryCapacity: string;
|
|
1080
|
+
/**
|
|
1081
|
+
* 节点上已分配 Pod 的内存请求量
|
|
1082
|
+
*/
|
|
1083
|
+
MemoryRequests: string;
|
|
1084
|
+
/**
|
|
1085
|
+
* 节点上已分配 Pod 的内存请求量占内存总量的比例,如返回值为 "4.5",则意味着请求量占总量的 4.5%
|
|
1086
|
+
*/
|
|
1087
|
+
MemoryRequestsFraction: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* 节点上已分配 Pod 的内存限制量
|
|
1090
|
+
*/
|
|
1091
|
+
MemoryLimits: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* 节点上已分配 Pod 的内存限制量占内存总量的比例,如返回值为 "18",则意味着限制量占总量的 18%
|
|
1094
|
+
*/
|
|
1095
|
+
MemoryLimitsFraction: string;
|
|
1096
|
+
/**
|
|
1097
|
+
* 节点上已分配 Pod 的 CPU 请求量
|
|
1098
|
+
*/
|
|
1099
|
+
CPURequests: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* 节点上已分配 Pod 的 CPU 请求量占 CPU 总量的比例
|
|
1102
|
+
*/
|
|
1103
|
+
CPURequestsFraction: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* 节点上已分配 Pod 的 CPU 限制值
|
|
1106
|
+
*/
|
|
1107
|
+
CPULimits: string;
|
|
1108
|
+
/**
|
|
1109
|
+
* 节点上已分配 Pod 的 CPU 限制值占 CPU 总量的比例
|
|
1110
|
+
*/
|
|
1111
|
+
CPULimitsFraction: string;
|
|
1112
|
+
/**
|
|
1113
|
+
* 节点状态数组
|
|
1114
|
+
*/
|
|
1115
|
+
Conditions: {
|
|
1116
|
+
/**
|
|
1117
|
+
* Condition 类型,如 MemoryPressure、DiskPressure、PIDPressure、Ready
|
|
1118
|
+
*/
|
|
1119
|
+
Type?: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* 状态,False、True
|
|
1122
|
+
*/
|
|
1123
|
+
Status?: string;
|
|
1124
|
+
/**
|
|
1125
|
+
* 最后一次上报状态的时间
|
|
1126
|
+
*/
|
|
1127
|
+
LastProbeTime?: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* 最后一次状态转变时间
|
|
1130
|
+
*/
|
|
1131
|
+
LastTransitionTime?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* 状态变化的原因
|
|
1134
|
+
*/
|
|
1135
|
+
Reason?: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* 状态变化的描述信息
|
|
1138
|
+
*/
|
|
1139
|
+
Message?: string;
|
|
1140
|
+
}[];
|
|
1141
|
+
/**
|
|
1142
|
+
* 节点上镜像名称数组
|
|
1143
|
+
*/
|
|
1144
|
+
ContainerImages: string[];
|
|
1145
|
+
/**
|
|
1146
|
+
* 字符串数组,每一项是类似 "node-role.kubernetes.io/master:NoSchedule" 的污点
|
|
1147
|
+
*/
|
|
1148
|
+
Taints?: string[];
|
|
1149
|
+
}
|
|
566
1150
|
/**
|
|
567
1151
|
* ListUK8SClusterNodeV2 - 获取UK8S集群节点信息
|
|
568
1152
|
*/
|
|
@@ -593,7 +1177,7 @@ export interface ListUK8SClusterNodeV2Response {
|
|
|
593
1177
|
*/
|
|
594
1178
|
NodeRole: string;
|
|
595
1179
|
/**
|
|
596
|
-
* Node
|
|
1180
|
+
* Node的状态:枚举值:初始化:"Initializing";启动中:"Starting";运行:"Running";停止中:"Stopping";停止:"Stopped";待删除:"ToBeDeleted";删除中:"Deleting";异常:"Error";安装失败:"Install Fail";
|
|
597
1181
|
*/
|
|
598
1182
|
NodeStatus: string;
|
|
599
1183
|
/**
|
|
@@ -648,10 +1232,6 @@ export interface ListUK8SClusterNodeV2Response {
|
|
|
648
1232
|
* IP对应的带宽, 单位: Mb (内网IP不显示带宽信息)
|
|
649
1233
|
*/
|
|
650
1234
|
Bandwidth?: number;
|
|
651
|
-
/**
|
|
652
|
-
* 是否默认的弹性网卡的信息。true: 是默认弹性网卡;其他值:不是。
|
|
653
|
-
*/
|
|
654
|
-
Default?: string;
|
|
655
1235
|
/**
|
|
656
1236
|
* IP地址对应的VPC ID
|
|
657
1237
|
*/
|
|
@@ -769,6 +1349,10 @@ export interface ListUK8SClusterV2Response {
|
|
|
769
1349
|
* 集群版本
|
|
770
1350
|
*/
|
|
771
1351
|
K8sVersion: string;
|
|
1352
|
+
/**
|
|
1353
|
+
* 创建集群时判断如果为NORESOURCE则为没资源,否则为空
|
|
1354
|
+
*/
|
|
1355
|
+
ClusterLogInfo?: string;
|
|
772
1356
|
/**
|
|
773
1357
|
* 创建时间
|
|
774
1358
|
*/
|
|
@@ -782,8 +1366,105 @@ export interface ListUK8SClusterV2Response {
|
|
|
782
1366
|
*/
|
|
783
1367
|
ExternalApiServer?: string;
|
|
784
1368
|
/**
|
|
785
|
-
*
|
|
1369
|
+
* 集群状态,枚举值:初始化:"INITIALIZING";启动中:"STARTING";创建失败:"CREATEFAILED";正常运行:"RUNNING";添加节点:"ADDNODE";删除节点:"DELNODE";删除中:"DELETING";删除失败:"DELETEFAILED";错误:"ERROR";升级插件:"UPDATE_PLUGIN";更新插件信息:"UPDATE_PLUGIN_INFO";异常:"ABNORMAL";升级集群中:"UPGRADING";容器运行时切换:"CONVERTING"
|
|
786
1370
|
*/
|
|
787
1371
|
Status?: string;
|
|
788
1372
|
}[];
|
|
789
1373
|
}
|
|
1374
|
+
/**
|
|
1375
|
+
* ListUK8SNodeGroup - 列出UK8S节点池
|
|
1376
|
+
*/
|
|
1377
|
+
export interface ListUK8SNodeGroupRequest {
|
|
1378
|
+
/**
|
|
1379
|
+
* 集群ID
|
|
1380
|
+
*/
|
|
1381
|
+
ClusterId: string;
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* ListUK8SNodeGroup - 列出UK8S节点池
|
|
1385
|
+
*/
|
|
1386
|
+
export interface ListUK8SNodeGroupResponse {
|
|
1387
|
+
/**
|
|
1388
|
+
* 节点池列表
|
|
1389
|
+
*/
|
|
1390
|
+
NodeGroupList?: {
|
|
1391
|
+
/**
|
|
1392
|
+
* 节点池ID
|
|
1393
|
+
*/
|
|
1394
|
+
NodeGroupId?: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* 节点池名字
|
|
1397
|
+
*/
|
|
1398
|
+
NodeGroupName?: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* 镜像ID
|
|
1401
|
+
*/
|
|
1402
|
+
ImageId?: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* 机型
|
|
1405
|
+
*/
|
|
1406
|
+
MachineType?: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* cpu平台
|
|
1409
|
+
*/
|
|
1410
|
+
MinimalCpuPlatform?: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* 虚拟CPU核数
|
|
1413
|
+
*/
|
|
1414
|
+
CPU?: number;
|
|
1415
|
+
/**
|
|
1416
|
+
* 内存大小
|
|
1417
|
+
*/
|
|
1418
|
+
Mem?: number;
|
|
1419
|
+
/**
|
|
1420
|
+
* GPU类型
|
|
1421
|
+
*/
|
|
1422
|
+
GpuType?: string;
|
|
1423
|
+
/**
|
|
1424
|
+
* GPU卡核心数
|
|
1425
|
+
*/
|
|
1426
|
+
GPU?: number;
|
|
1427
|
+
/**
|
|
1428
|
+
* 系统盘类型
|
|
1429
|
+
*/
|
|
1430
|
+
BootDiskType?: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* 数据盘大小
|
|
1433
|
+
*/
|
|
1434
|
+
DataDiskSize?: number;
|
|
1435
|
+
/**
|
|
1436
|
+
* 数据盘类型
|
|
1437
|
+
*/
|
|
1438
|
+
DataDiskType?: string;
|
|
1439
|
+
/**
|
|
1440
|
+
* 业务组
|
|
1441
|
+
*/
|
|
1442
|
+
Tag?: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* 付费方式
|
|
1445
|
+
*/
|
|
1446
|
+
ChargeType?: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* 节点id列表
|
|
1449
|
+
*/
|
|
1450
|
+
NodeList?: string[];
|
|
1451
|
+
}[];
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* RemoveUK8SNodeGroup - 删除UK8S节点池
|
|
1455
|
+
*/
|
|
1456
|
+
export interface RemoveUK8SNodeGroupRequest {
|
|
1457
|
+
/**
|
|
1458
|
+
* 节点池Id
|
|
1459
|
+
*/
|
|
1460
|
+
NodeGroupId: string;
|
|
1461
|
+
/**
|
|
1462
|
+
* 集群id
|
|
1463
|
+
*/
|
|
1464
|
+
ClusterId: string;
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* RemoveUK8SNodeGroup - 删除UK8S节点池
|
|
1468
|
+
*/
|
|
1469
|
+
export interface RemoveUK8SNodeGroupResponse {
|
|
1470
|
+
}
|