@ucloud-sdks/ucloud-sdk-js 0.2.2 → 0.2.4

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.
@@ -22,6 +22,7 @@ export declare class Client extends BaseClient {
22
22
  uhost(): any;
23
23
  uk8s(): any;
24
24
  ulb(): any;
25
+ ulight_host(): any;
25
26
  umem(): any;
26
27
  unet(): any;
27
28
  uphone(): any;
@@ -18,6 +18,7 @@ const UFSClient = require('./ufs').default;
18
18
  const UHostClient = require('./uhost').default;
19
19
  const UK8SClient = require('./uk8s').default;
20
20
  const ULBClient = require('./ulb').default;
21
+ const ULightHostClient = require('./ulight_host').default;
21
22
  const UMemClient = require('./umem').default;
22
23
  const UNetClient = require('./unet').default;
23
24
  const UPhoneClient = require('./uphone').default;
@@ -30,7 +31,10 @@ class Client extends BaseClient {
30
31
  super({ config, credential });
31
32
  }
32
33
  cube() {
33
- return new CubeClient({ config: this.config, credential: this.credential });
34
+ return new CubeClient({
35
+ config: this.config,
36
+ credential: this.credential,
37
+ });
34
38
  }
35
39
  ipsecvpn() {
36
40
  return new IPSecVPNClient({
@@ -57,13 +61,22 @@ class Client extends BaseClient {
57
61
  });
58
62
  }
59
63
  ucdn() {
60
- return new UCDNClient({ config: this.config, credential: this.credential });
64
+ return new UCDNClient({
65
+ config: this.config,
66
+ credential: this.credential,
67
+ });
61
68
  }
62
69
  udb() {
63
- return new UDBClient({ config: this.config, credential: this.credential });
70
+ return new UDBClient({
71
+ config: this.config,
72
+ credential: this.credential,
73
+ });
64
74
  }
65
75
  uddb() {
66
- return new UDDBClient({ config: this.config, credential: this.credential });
76
+ return new UDDBClient({
77
+ config: this.config,
78
+ credential: this.credential,
79
+ });
67
80
  }
68
81
  udisk() {
69
82
  return new UDiskClient({
@@ -72,10 +85,16 @@ class Client extends BaseClient {
72
85
  });
73
86
  }
74
87
  udpn() {
75
- return new UDPNClient({ config: this.config, credential: this.credential });
88
+ return new UDPNClient({
89
+ config: this.config,
90
+ credential: this.credential,
91
+ });
76
92
  }
77
93
  uec() {
78
- return new UECClient({ config: this.config, credential: this.credential });
94
+ return new UECClient({
95
+ config: this.config,
96
+ credential: this.credential,
97
+ });
79
98
  }
80
99
  ufile() {
81
100
  return new UFileClient({
@@ -84,7 +103,10 @@ class Client extends BaseClient {
84
103
  });
85
104
  }
86
105
  ufs() {
87
- return new UFSClient({ config: this.config, credential: this.credential });
106
+ return new UFSClient({
107
+ config: this.config,
108
+ credential: this.credential,
109
+ });
88
110
  }
89
111
  uhost() {
90
112
  return new UHostClient({
@@ -93,16 +115,34 @@ class Client extends BaseClient {
93
115
  });
94
116
  }
95
117
  uk8s() {
96
- return new UK8SClient({ config: this.config, credential: this.credential });
118
+ return new UK8SClient({
119
+ config: this.config,
120
+ credential: this.credential,
121
+ });
97
122
  }
98
123
  ulb() {
99
- return new ULBClient({ config: this.config, credential: this.credential });
124
+ return new ULBClient({
125
+ config: this.config,
126
+ credential: this.credential,
127
+ });
128
+ }
129
+ ulight_host() {
130
+ return new ULightHostClient({
131
+ config: this.config,
132
+ credential: this.credential,
133
+ });
100
134
  }
101
135
  umem() {
102
- return new UMemClient({ config: this.config, credential: this.credential });
136
+ return new UMemClient({
137
+ config: this.config,
138
+ credential: this.credential,
139
+ });
103
140
  }
104
141
  unet() {
105
- return new UNetClient({ config: this.config, credential: this.credential });
142
+ return new UNetClient({
143
+ config: this.config,
144
+ credential: this.credential,
145
+ });
106
146
  }
107
147
  uphone() {
108
148
  return new UPhoneClient({
@@ -117,13 +157,22 @@ class Client extends BaseClient {
117
157
  });
118
158
  }
119
159
  usms() {
120
- return new USMSClient({ config: this.config, credential: this.credential });
160
+ return new USMSClient({
161
+ config: this.config,
162
+ credential: this.credential,
163
+ });
121
164
  }
122
165
  uvms() {
123
- return new UVMSClient({ config: this.config, credential: this.credential });
166
+ return new UVMSClient({
167
+ config: this.config,
168
+ credential: this.credential,
169
+ });
124
170
  }
125
171
  vpc() {
126
- return new VPCClient({ config: this.config, credential: this.credential });
172
+ return new VPCClient({
173
+ config: this.config,
174
+ credential: this.credential,
175
+ });
127
176
  }
128
177
  }
129
178
  exports.Client = Client;
@@ -656,7 +656,7 @@ export interface DescribeAvailableInstanceTypesResponse {
656
656
  * 返回Arm的CPU平台信息,例如:Ampere: ['Ampere/Altra']
657
657
  */
658
658
  Ampere?: string[];
659
- }[];
659
+ };
660
660
  /**
661
661
  * 磁盘信息。磁盘主要分类如下:云盘|cloudDisk、普通本地盘|normalLocalDisk和SSD本地盘|ssdLocalDisk。其中云盘主要包含普通云盘|CLOUD_NORMAL、SSD云盘|CLOUD_SSD和RSSD云盘|CLOUD_RSSD。普通本地盘只包含普通本地盘|LOCAL_NORMAL一种。SSD本地盘只包含SSD本地盘|LOCAL_SSD一种。MinimalSize为磁盘最小值,如果没有该字段,最小值取基础镜像Size值即可(linux为20G,windows为40G)。MaximalSize为磁盘最大值。InstantResize表示系统盘是否允许扩容,如果是本地盘,则不允许扩容,InstantResize为false。Features为磁盘可支持的服务:数据方舟|DATAARK,快照服务|SNAPSHOT,加密盘|Encrypted。
662
662
  */
@@ -259,7 +259,7 @@ export interface CreatePolicyResponse {
259
259
  */
260
260
  export interface CreateSSLRequest {
261
261
  /**
262
- * SSL证书的名字,默认值为空
262
+ * SSL证书的名字,默认值不为空
263
263
  */
264
264
  SSLName: string;
265
265
  /**
@@ -1483,7 +1483,7 @@ export interface UpdateBackendAttributeRequest {
1483
1483
  */
1484
1484
  Port?: number;
1485
1485
  /**
1486
- * 所添加的后端RS权重(在加权轮询算法下有效),取值范围[0-100],默认为1
1486
+ * 所添加的后端RS权重(在加权轮询算法下有效),取值范围[1-100],默认为1
1487
1487
  */
1488
1488
  Weight?: number;
1489
1489
  /**