@ucloud-sdks/ucloud-sdk-js 0.2.33 → 0.2.35
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/services/index.d.ts +2 -0
- package/lib/services/index.js +14 -0
- package/lib/services/ukms/index.d.ts +5 -1
- package/lib/services/ulogservice/index.d.ts +917 -0
- package/lib/services/ulogservice/index.js +169 -0
- package/lib/services/upfs/index.d.ts +342 -0
- package/lib/services/upfs/index.js +79 -0
- package/package.json +1 -1
|
@@ -0,0 +1,169 @@
|
|
|
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 **ulogservice** service
|
|
10
|
+
*/
|
|
11
|
+
class ULogServiceClient extends client_1.default {
|
|
12
|
+
constructor({ config, credential, }) {
|
|
13
|
+
super({ config, credential });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* BindULogServiceGroupToCollectConf - 日志主题采集配置绑定机器组
|
|
17
|
+
*
|
|
18
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/bind_u_log_service_group_to_collect_conf
|
|
19
|
+
*/
|
|
20
|
+
bindULogServiceGroupToCollectConf(request) {
|
|
21
|
+
const args = Object.assign({ Action: 'BindULogServiceGroupToCollectConf' }, (request || {}));
|
|
22
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* CreateULogServiceCollectConf - 创建日志主题采集配置
|
|
26
|
+
*
|
|
27
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_collect_conf
|
|
28
|
+
*/
|
|
29
|
+
createULogServiceCollectConf(request) {
|
|
30
|
+
const args = Object.assign({ Action: 'CreateULogServiceCollectConf' }, (request || {}));
|
|
31
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* CreateULogServiceLogSet - 创建日志集
|
|
35
|
+
*
|
|
36
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_log_set
|
|
37
|
+
*/
|
|
38
|
+
createULogServiceLogSet(request) {
|
|
39
|
+
const args = Object.assign({ Action: 'CreateULogServiceLogSet' }, (request || {}));
|
|
40
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* CreateULogServiceMachineGroup - 创建机器组
|
|
44
|
+
*
|
|
45
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_machine_group
|
|
46
|
+
*/
|
|
47
|
+
createULogServiceMachineGroup(request) {
|
|
48
|
+
const args = Object.assign({ Action: 'CreateULogServiceMachineGroup' }, (request || {}));
|
|
49
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* CreateULogServiceTopic - 创建ULogService主题
|
|
53
|
+
*
|
|
54
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_topic
|
|
55
|
+
*/
|
|
56
|
+
createULogServiceTopic(request) {
|
|
57
|
+
const args = Object.assign({ Action: 'CreateULogServiceTopic' }, (request || {}));
|
|
58
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* DeleteULogServiceCollectConf - 删除日志主题采集配置
|
|
62
|
+
*
|
|
63
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_collect_conf
|
|
64
|
+
*/
|
|
65
|
+
deleteULogServiceCollectConf(request) {
|
|
66
|
+
const args = Object.assign({ Action: 'DeleteULogServiceCollectConf' }, (request || {}));
|
|
67
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* DeleteULogServiceLogSet - 删除日志集
|
|
71
|
+
*
|
|
72
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_log_set
|
|
73
|
+
*/
|
|
74
|
+
deleteULogServiceLogSet(request) {
|
|
75
|
+
const args = Object.assign({ Action: 'DeleteULogServiceLogSet' }, (request || {}));
|
|
76
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* DeleteULogServiceMachineGroup - 删除机器组
|
|
80
|
+
*
|
|
81
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_machine_group
|
|
82
|
+
*/
|
|
83
|
+
deleteULogServiceMachineGroup(request) {
|
|
84
|
+
const args = Object.assign({ Action: 'DeleteULogServiceMachineGroup' }, (request || {}));
|
|
85
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* DeleteULogServiceTopic - 删除ULogService主题
|
|
89
|
+
*
|
|
90
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_topic
|
|
91
|
+
*/
|
|
92
|
+
deleteULogServiceTopic(request) {
|
|
93
|
+
const args = Object.assign({ Action: 'DeleteULogServiceTopic' }, (request || {}));
|
|
94
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* DescribeULogServiceMachineGroup - 查询日志采集机器组
|
|
98
|
+
*
|
|
99
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/describe_u_log_service_machine_group
|
|
100
|
+
*/
|
|
101
|
+
describeULogServiceMachineGroup(request) {
|
|
102
|
+
const args = Object.assign({ Action: 'DescribeULogServiceMachineGroup' }, (request || {}));
|
|
103
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* ListULogServiceCollectConf - 查询日志主题采集配置列表
|
|
107
|
+
*
|
|
108
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_collect_conf
|
|
109
|
+
*/
|
|
110
|
+
listULogServiceCollectConf(request) {
|
|
111
|
+
const args = Object.assign({ Action: 'ListULogServiceCollectConf' }, (request || {}));
|
|
112
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* ListULogServiceLogSet - 查询日志集列表
|
|
116
|
+
*
|
|
117
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_log_set
|
|
118
|
+
*/
|
|
119
|
+
listULogServiceLogSet(request) {
|
|
120
|
+
const args = Object.assign({ Action: 'ListULogServiceLogSet' }, (request || {}));
|
|
121
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* ListULogServiceMachineGroup - 查看机器组列表
|
|
125
|
+
*
|
|
126
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_machine_group
|
|
127
|
+
*/
|
|
128
|
+
listULogServiceMachineGroup(request) {
|
|
129
|
+
const args = Object.assign({ Action: 'ListULogServiceMachineGroup' }, (request || {}));
|
|
130
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* ListULogServiceTopic - 获取ULogService主题
|
|
134
|
+
*
|
|
135
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_topic
|
|
136
|
+
*/
|
|
137
|
+
listULogServiceTopic(request) {
|
|
138
|
+
const args = Object.assign({ Action: 'ListULogServiceTopic' }, (request || {}));
|
|
139
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* QueryULogServiceLog - 查询ULogService日志
|
|
143
|
+
*
|
|
144
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/query_u_log_service_log
|
|
145
|
+
*/
|
|
146
|
+
queryULogServiceLog(request) {
|
|
147
|
+
const args = Object.assign({ Action: 'QueryULogServiceLog' }, (request || {}));
|
|
148
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* UpdateULogServiceCollectConf - 修改日志主题采集配置
|
|
152
|
+
*
|
|
153
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_collect_conf
|
|
154
|
+
*/
|
|
155
|
+
updateULogServiceCollectConf(request) {
|
|
156
|
+
const args = Object.assign({ Action: 'UpdateULogServiceCollectConf' }, (request || {}));
|
|
157
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* UpdateULogServiceMachineGroup - 更新日志机器组
|
|
161
|
+
*
|
|
162
|
+
* See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_machine_group
|
|
163
|
+
*/
|
|
164
|
+
updateULogServiceMachineGroup(request) {
|
|
165
|
+
const args = Object.assign({ Action: 'UpdateULogServiceMachineGroup' }, (request || {}));
|
|
166
|
+
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
exports.default = ULogServiceClient;
|
|
@@ -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;
|