@ucloud-sdks/ucloud-sdk-js 0.2.34 → 0.2.36

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.
@@ -57,6 +57,15 @@ class UK8SClient extends client_1.default {
57
57
  const args = Object.assign({ Action: 'CreateUK8SClusterV2' }, (request || {}));
58
58
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
59
59
  }
60
+ /**
61
+ * CreateUK8SULSConfig - 创建 LogConfig 自定义资源,用于声明式地定义日志采集规则
62
+ *
63
+ * See also: https://docs.ucloud.cn/api/uk8s-api/create_uk8s_uls_config
64
+ */
65
+ createUK8SULSConfig(request) {
66
+ const args = Object.assign({ Action: 'CreateUK8SULSConfig' }, (request || {}));
67
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
68
+ }
60
69
  /**
61
70
  * DelUK8SCluster - 删除UK8S集群
62
71
  *
@@ -75,6 +84,15 @@ class UK8SClient extends client_1.default {
75
84
  const args = Object.assign({ Action: 'DelUK8SClusterNodeV2' }, (request || {}));
76
85
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
77
86
  }
87
+ /**
88
+ * DeleteUK8SULSConfig - 删除指定UK8S集群的日志采集规则。
89
+ *
90
+ * See also: https://docs.ucloud.cn/api/uk8s-api/delete_uk8s_uls_config
91
+ */
92
+ deleteUK8SULSConfig(request) {
93
+ const args = Object.assign({ Action: 'DeleteUK8SULSConfig' }, (request || {}));
94
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
95
+ }
78
96
  /**
79
97
  * DescribeUK8SCluster - 获取集群信息
80
98
  *
@@ -147,6 +165,15 @@ class UK8SClient extends client_1.default {
147
165
  const args = Object.assign({ Action: 'ListUK8SNodeGroup' }, (request || {}));
148
166
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
149
167
  }
168
+ /**
169
+ * ListUK8SULSConfig - 查询 UK8S 的 ULSConfig
170
+ *
171
+ * See also: https://docs.ucloud.cn/api/uk8s-api/list_uk8s_uls_config
172
+ */
173
+ listUK8SULSConfig(request) {
174
+ const args = Object.assign({ Action: 'ListUK8SULSConfig' }, (request || {}));
175
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
176
+ }
150
177
  /**
151
178
  * RemoveUK8SNodeGroup - 删除UK8S节点池
152
179
  *
@@ -156,5 +183,14 @@ class UK8SClient extends client_1.default {
156
183
  const args = Object.assign({ Action: 'RemoveUK8SNodeGroup' }, (request || {}));
157
184
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
158
185
  }
186
+ /**
187
+ * UpdateUK8SULSConfig - 更新指定UK8S集群的日志采集规则。
188
+ *
189
+ * See also: https://docs.ucloud.cn/api/uk8s-api/update_uk8s_uls_config
190
+ */
191
+ updateUK8SULSConfig(request) {
192
+ const args = Object.assign({ Action: 'UpdateUK8SULSConfig' }, (request || {}));
193
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
194
+ }
159
195
  }
160
196
  exports.default = UK8SClient;
@@ -716,7 +716,7 @@ export interface GetKeyRotationStatusRequest {
716
716
  /**
717
717
  * UKMS 实例资源 ID。
718
718
  */
719
- ResourceId?: string;
719
+ ResourceId: string;
720
720
  }
721
721
  /**
722
722
  * GetKeyRotationStatus - 查询密钥自动轮转状态。
@@ -742,6 +742,10 @@ export interface GetKeyRotationStatusResponse {
742
742
  * 按需轮转开始时间,Unix 时间戳。
743
743
  */
744
744
  OnDemandRotationStartDate?: number;
745
+ /**
746
+ * 最后一次轮转时间,Unix 时间戳。
747
+ */
748
+ LastRotationDate?: number;
745
749
  }
746
750
  /**
747
751
  * GetPublicKey - 获取非对称密钥的公钥。
@@ -0,0 +1,342 @@
1
+ import Client from '../../core/client';
2
+ import { ConfigOptions } from '../../core/config';
3
+ import { CredentialOptions } from '../../core/credential';
4
+ /**
5
+ * This client is used to call actions of **upfs** service
6
+ */
7
+ export default class UPFSClient extends Client {
8
+ constructor({ config, credential, }: {
9
+ config: ConfigOptions;
10
+ credential: CredentialOptions;
11
+ });
12
+ /**
13
+ * CreateUPFSVolume - 创建UPFS文件系统
14
+ *
15
+ * See also: https://docs.ucloud.cn/api/upfs-api/create_upfs_volume
16
+ */
17
+ createUPFSVolume(request?: CreateUPFSVolumeRequest): Promise<CreateUPFSVolumeResponse>;
18
+ /**
19
+ * DescribeUPFSVolume - 获取UPFS文件系统列表
20
+ *
21
+ * See also: https://docs.ucloud.cn/api/upfs-api/describe_upfs_volume
22
+ */
23
+ describeUPFSVolume(request?: DescribeUPFSVolumeRequest): Promise<DescribeUPFSVolumeResponse>;
24
+ /**
25
+ * DescribeUPFSVolumePrice - 获取UPFS文件系统价格
26
+ *
27
+ * See also: https://docs.ucloud.cn/api/upfs-api/describe_upfs_volume_price
28
+ */
29
+ describeUPFSVolumePrice(request?: DescribeUPFSVolumePriceRequest): Promise<DescribeUPFSVolumePriceResponse>;
30
+ /**
31
+ * DescribeUPFSVolumeUpgradePrice - UPFS文件系统扩容价格
32
+ *
33
+ * See also: https://docs.ucloud.cn/api/upfs-api/describe_upfs_volume_upgrade_price
34
+ */
35
+ describeUPFSVolumeUpgradePrice(request?: DescribeUPFSVolumeUpgradePriceRequest): Promise<DescribeUPFSVolumeUpgradePriceResponse>;
36
+ /**
37
+ * ExtendUPFSVolume - UPFS文件系统扩容
38
+ *
39
+ * See also: https://docs.ucloud.cn/api/upfs-api/extend_upfs_volume
40
+ */
41
+ extendUPFSVolume(request?: ExtendUPFSVolumeRequest): Promise<ExtendUPFSVolumeResponse>;
42
+ /**
43
+ * RemoveUPFSVolume - 删除UPFS文件系统
44
+ *
45
+ * See also: https://docs.ucloud.cn/api/upfs-api/remove_upfs_volume
46
+ */
47
+ removeUPFSVolume(request?: RemoveUPFSVolumeRequest): Promise<RemoveUPFSVolumeResponse>;
48
+ /**
49
+ * UpdateUPFSVolumeInfo - 更改UPFS文件系统相关信息(名称/备注)
50
+ *
51
+ * See also: https://docs.ucloud.cn/api/upfs-api/update_upfs_volume_info
52
+ */
53
+ updateUPFSVolumeInfo(request?: UpdateUPFSVolumeInfoRequest): Promise<UpdateUPFSVolumeInfoResponse>;
54
+ }
55
+ /**
56
+ * CreateUPFSVolume - 创建UPFS文件系统
57
+ */
58
+ export interface CreateUPFSVolumeRequest {
59
+ /**
60
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
61
+ */
62
+ Zone: string;
63
+ /**
64
+ * 文件系统大小,单位为GB,必须为100的整数倍,Size最小为500GB
65
+ */
66
+ Size: number;
67
+ /**
68
+ * 文件系统协议,目前仅支持POSIX
69
+ */
70
+ ProtocolType: string;
71
+ /**
72
+ * 文件系统名称
73
+ */
74
+ VolumeName?: string;
75
+ /**
76
+ * 备注
77
+ */
78
+ Remark?: string;
79
+ /**
80
+ * 文件系统所属业务组
81
+ */
82
+ Tag?: string;
83
+ /**
84
+ * 计费模式,枚举值为: Year,按年付费; Month,按月付费
85
+ */
86
+ ChargeType?: string;
87
+ /**
88
+ * 购买时长 默认: 1
89
+ */
90
+ Quantity?: number;
91
+ /**
92
+ * 使用的代金券id
93
+ */
94
+ CouponId?: string;
95
+ }
96
+ /**
97
+ * CreateUPFSVolume - 创建UPFS文件系统
98
+ */
99
+ export interface CreateUPFSVolumeResponse {
100
+ /**
101
+ * UPFS文件系统名称
102
+ */
103
+ VolumeName: string;
104
+ /**
105
+ * UPFS文件系统ID
106
+ */
107
+ VolumeId: string;
108
+ }
109
+ /**
110
+ * DescribeUPFSVolume - 获取UPFS文件系统列表
111
+ */
112
+ export interface DescribeUPFSVolumeRequest {
113
+ /**
114
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
115
+ */
116
+ Zone: string;
117
+ /**
118
+ * 文件系统ID
119
+ */
120
+ VolumeId?: string;
121
+ /**
122
+ * 文件列表起始
123
+ */
124
+ Offset?: number;
125
+ /**
126
+ * 文件列表长度
127
+ */
128
+ Limit?: number;
129
+ }
130
+ /**
131
+ * DescribeUPFSVolume - 获取UPFS文件系统列表
132
+ */
133
+ export interface DescribeUPFSVolumeResponse {
134
+ /**
135
+ * UPFS文件系统总数
136
+ */
137
+ TotalCount: number;
138
+ /**
139
+ * UPFS文件系统详细信息列表
140
+ */
141
+ DataSet: {
142
+ /**
143
+ * 可用区名字
144
+ */
145
+ Zone?: string;
146
+ /**
147
+ * 文件系统名称
148
+ */
149
+ VolumeName?: string;
150
+ /**
151
+ * 文件系统ID
152
+ */
153
+ VolumeId?: string;
154
+ /**
155
+ * 文件系统协议类型
156
+ */
157
+ ProtocolType?: string;
158
+ /**
159
+ * 文件系统备注信息
160
+ */
161
+ Remark?: string;
162
+ /**
163
+ * 文件系统所属业务组
164
+ */
165
+ Tag?: string;
166
+ /**
167
+ * 文件系统创建时间(unix时间戳)
168
+ */
169
+ CreateTime?: number;
170
+ /**
171
+ * 文件系统过期时间(unix时间戳)
172
+ */
173
+ ExpiredTime?: number;
174
+ /**
175
+ * 文件系统大小,单位GB
176
+ */
177
+ Size?: number;
178
+ /**
179
+ * 是否过期
180
+ */
181
+ IsExpired?: string;
182
+ /**
183
+ * 计费类型
184
+ */
185
+ ChargeType?: string;
186
+ /**
187
+ * 文件系统挂载状态
188
+ */
189
+ MountStatus?: number;
190
+ /**
191
+ * 文件系统挂载地址
192
+ */
193
+ MountAddress?: string;
194
+ }[];
195
+ }
196
+ /**
197
+ * DescribeUPFSVolumePrice - 获取UPFS文件系统价格
198
+ */
199
+ export interface DescribeUPFSVolumePriceRequest {
200
+ /**
201
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
202
+ */
203
+ Zone: string;
204
+ /**
205
+ * 文件系统大小,单位为GB,新架构容量型最小容量为500GB,以100GB递增,最大不超过100TB。
206
+ */
207
+ Size: number;
208
+ /**
209
+ * 购买UPFS的时长, 默认为1
210
+ */
211
+ Quantity?: number;
212
+ /**
213
+ * Year, Month默认: Month
214
+ */
215
+ ChargeType?: string;
216
+ /**
217
+ * UPFS文件系统id,第一次创建文件系统时不需要传这个参数
218
+ */
219
+ VolumeId?: string;
220
+ }
221
+ /**
222
+ * DescribeUPFSVolumePrice - 获取UPFS文件系统价格
223
+ */
224
+ export interface DescribeUPFSVolumePriceResponse {
225
+ /**
226
+ * upfs 价格信息
227
+ */
228
+ DataSet?: {
229
+ /**
230
+ * Year, Month
231
+ */
232
+ ChargeType?: string;
233
+ /**
234
+ * 价格 (单位: 分)
235
+ */
236
+ Price?: number;
237
+ /**
238
+ * 原价格 (单位: 分)
239
+ */
240
+ OriginalPrice?: number;
241
+ /**
242
+ * “upfs”
243
+ */
244
+ ChargeName?: string;
245
+ }[];
246
+ }
247
+ /**
248
+ * DescribeUPFSVolumeUpgradePrice - UPFS文件系统扩容价格
249
+ */
250
+ export interface DescribeUPFSVolumeUpgradePriceRequest {
251
+ /**
252
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
253
+ */
254
+ Zone: string;
255
+ /**
256
+ * 文件系统ID
257
+ */
258
+ VolumeId: string;
259
+ /**
260
+ * 文件系统大小
261
+ */
262
+ Size: string;
263
+ }
264
+ /**
265
+ * DescribeUPFSVolumeUpgradePrice - UPFS文件系统扩容价格
266
+ */
267
+ export interface DescribeUPFSVolumeUpgradePriceResponse {
268
+ /**
269
+ * 价格(单位:分)
270
+ */
271
+ Price: number;
272
+ /**
273
+ * 原价格(单位:分)
274
+ */
275
+ OriginalPrice?: number;
276
+ }
277
+ /**
278
+ * ExtendUPFSVolume - UPFS文件系统扩容
279
+ */
280
+ export interface ExtendUPFSVolumeRequest {
281
+ /**
282
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
283
+ */
284
+ Zone: string;
285
+ /**
286
+ * 文件系统ID
287
+ */
288
+ VolumeId: string;
289
+ /**
290
+ * 文件系统大小,单位为GB,最小为6000GB,最大为10PB,必须为1000的整数倍
291
+ */
292
+ Size: number;
293
+ }
294
+ /**
295
+ * ExtendUPFSVolume - UPFS文件系统扩容
296
+ */
297
+ export interface ExtendUPFSVolumeResponse {
298
+ }
299
+ /**
300
+ * RemoveUPFSVolume - 删除UPFS文件系统
301
+ */
302
+ export interface RemoveUPFSVolumeRequest {
303
+ /**
304
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
305
+ */
306
+ Zone: string;
307
+ /**
308
+ * 文件系统ID
309
+ */
310
+ VolumeId: string;
311
+ }
312
+ /**
313
+ * RemoveUPFSVolume - 删除UPFS文件系统
314
+ */
315
+ export interface RemoveUPFSVolumeResponse {
316
+ }
317
+ /**
318
+ * UpdateUPFSVolumeInfo - 更改UPFS文件系统相关信息(名称/备注)
319
+ */
320
+ export interface UpdateUPFSVolumeInfoRequest {
321
+ /**
322
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
323
+ */
324
+ Zone: string;
325
+ /**
326
+ * UPFS文件系统ID
327
+ */
328
+ VolumeId: string;
329
+ /**
330
+ * UPFS文件系统名称(文件系统名称/备注至少传入其中一个)
331
+ */
332
+ VolumeName?: string;
333
+ /**
334
+ * UPFS文件系统备注(文件系统名称/备注至少传入其中一个)
335
+ */
336
+ Remark?: string;
337
+ }
338
+ /**
339
+ * UpdateUPFSVolumeInfo - 更改UPFS文件系统相关信息(名称/备注)
340
+ */
341
+ export interface UpdateUPFSVolumeInfoResponse {
342
+ }
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const client_1 = __importDefault(require("../../core/client"));
7
+ const request_1 = __importDefault(require("../../core/request"));
8
+ /**
9
+ * This client is used to call actions of **upfs** service
10
+ */
11
+ class UPFSClient extends client_1.default {
12
+ constructor({ config, credential, }) {
13
+ super({ config, credential });
14
+ }
15
+ /**
16
+ * CreateUPFSVolume - 创建UPFS文件系统
17
+ *
18
+ * See also: https://docs.ucloud.cn/api/upfs-api/create_upfs_volume
19
+ */
20
+ createUPFSVolume(request) {
21
+ const args = Object.assign({ Action: 'CreateUPFSVolume' }, (request || {}));
22
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
23
+ }
24
+ /**
25
+ * DescribeUPFSVolume - 获取UPFS文件系统列表
26
+ *
27
+ * See also: https://docs.ucloud.cn/api/upfs-api/describe_upfs_volume
28
+ */
29
+ describeUPFSVolume(request) {
30
+ const args = Object.assign({ Action: 'DescribeUPFSVolume' }, (request || {}));
31
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
32
+ }
33
+ /**
34
+ * DescribeUPFSVolumePrice - 获取UPFS文件系统价格
35
+ *
36
+ * See also: https://docs.ucloud.cn/api/upfs-api/describe_upfs_volume_price
37
+ */
38
+ describeUPFSVolumePrice(request) {
39
+ const args = Object.assign({ Action: 'DescribeUPFSVolumePrice' }, (request || {}));
40
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
41
+ }
42
+ /**
43
+ * DescribeUPFSVolumeUpgradePrice - UPFS文件系统扩容价格
44
+ *
45
+ * See also: https://docs.ucloud.cn/api/upfs-api/describe_upfs_volume_upgrade_price
46
+ */
47
+ describeUPFSVolumeUpgradePrice(request) {
48
+ const args = Object.assign({ Action: 'DescribeUPFSVolumeUpgradePrice' }, (request || {}));
49
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
50
+ }
51
+ /**
52
+ * ExtendUPFSVolume - UPFS文件系统扩容
53
+ *
54
+ * See also: https://docs.ucloud.cn/api/upfs-api/extend_upfs_volume
55
+ */
56
+ extendUPFSVolume(request) {
57
+ const args = Object.assign({ Action: 'ExtendUPFSVolume' }, (request || {}));
58
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
59
+ }
60
+ /**
61
+ * RemoveUPFSVolume - 删除UPFS文件系统
62
+ *
63
+ * See also: https://docs.ucloud.cn/api/upfs-api/remove_upfs_volume
64
+ */
65
+ removeUPFSVolume(request) {
66
+ const args = Object.assign({ Action: 'RemoveUPFSVolume' }, (request || {}));
67
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
68
+ }
69
+ /**
70
+ * UpdateUPFSVolumeInfo - 更改UPFS文件系统相关信息(名称/备注)
71
+ *
72
+ * See also: https://docs.ucloud.cn/api/upfs-api/update_upfs_volume_info
73
+ */
74
+ updateUPFSVolumeInfo(request) {
75
+ const args = Object.assign({ Action: 'UpdateUPFSVolumeInfo' }, (request || {}));
76
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
77
+ }
78
+ }
79
+ exports.default = UPFSClient;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.34",
4
+ "version": "0.2.36",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,