@ucloud-sdks/ucloud-sdk-js 0.2.17 → 0.2.19

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.
@@ -12,6 +12,15 @@ class UHostClient extends client_1.default {
12
12
  constructor({ config, credential, }) {
13
13
  super({ config, credential });
14
14
  }
15
+ /**
16
+ * CheckUHostResourceCapacity - 主机创建资源余量检查
17
+ *
18
+ * See also: https://docs.ucloud.cn/api/uhost-api/check_uhost_resource_capacity
19
+ */
20
+ checkUHostResourceCapacity(request) {
21
+ const args = Object.assign({ Action: 'CheckUHostResourceCapacity' }, (request || {}));
22
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
23
+ }
15
24
  /**
16
25
  * CopyCustomImage - 复制自制镜像
17
26
  *
@@ -84,6 +93,15 @@ class UHostClient extends client_1.default {
84
93
  const args = Object.assign({ Action: 'DescribeAvailableInstanceTypes' }, (request || {}));
85
94
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
86
95
  }
96
+ /**
97
+ * DescribeHostMachineTypeFamilies - 获取实例规格族列表(所有机型的信息)
98
+ *
99
+ * See also: https://docs.ucloud.cn/api/uhost-api/describe_host_machine_type_families
100
+ */
101
+ describeHostMachineTypeFamilies(request) {
102
+ const args = Object.assign({ Action: 'DescribeHostMachineTypeFamilies' }, (request || {}));
103
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
104
+ }
87
105
  /**
88
106
  * DescribeImage - 获取指定数据中心镜像列表,用户可通过指定操作系统类型,镜像Id进行过滤。
89
107
  *
@@ -102,6 +120,15 @@ class UHostClient extends client_1.default {
102
120
  const args = Object.assign({ Action: 'DescribeIsolationGroup' }, (request || {}));
103
121
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
104
122
  }
123
+ /**
124
+ * DescribeUHostAvailableDiskTypes - 获取主机可挂载的磁盘信息
125
+ *
126
+ * See also: https://docs.ucloud.cn/api/uhost-api/describe_uhost_available_disk_types
127
+ */
128
+ describeUHostAvailableDiskTypes(request) {
129
+ const args = Object.assign({ Action: 'DescribeUHostAvailableDiskTypes' }, (request || {}));
130
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
131
+ }
105
132
  /**
106
133
  * DescribeUHostInstance - 获取主机或主机列表信息,并可根据数据中心,主机ID等参数进行过滤。
107
134
  *
@@ -156,6 +183,24 @@ class UHostClient extends client_1.default {
156
183
  const args = Object.assign({ Action: 'GetUHostInstanceVncInfo' }, (request || {}));
157
184
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
158
185
  }
186
+ /**
187
+ * GetUHostRefundPrice - 获取主机删除扣除费用。包括主机、磁盘、快照服务、EIP等资源的费用
188
+ *
189
+ * See also: https://docs.ucloud.cn/api/uhost-api/get_uhost_refund_price
190
+ */
191
+ getUHostRefundPrice(request) {
192
+ const args = Object.assign({ Action: 'GetUHostRefundPrice' }, (request || {}));
193
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
194
+ }
195
+ /**
196
+ * GetUHostRenewPrice - 获取主机续费价格
197
+ *
198
+ * See also: https://docs.ucloud.cn/api/uhost-api/get_uhost_renew_price
199
+ */
200
+ getUHostRenewPrice(request) {
201
+ const args = Object.assign({ Action: 'GetUHostRenewPrice' }, (request || {}));
202
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
203
+ }
159
204
  /**
160
205
  * GetUHostUpgradePrice - 获取UHost实例升级配置的价格。可选配置范围请参考[[api:uhost-api:uhost_type|云主机机型说明]]。
161
206
  *
@@ -318,14 +363,5 @@ class UHostClient extends client_1.default {
318
363
  const args = Object.assign({ Action: 'TerminateUHostInstance' }, (request || {}));
319
364
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
320
365
  }
321
- /**
322
- * UpgradeToArkUHostInstance - 普通升级为方舟机型
323
- *
324
- * See also: https://docs.ucloud.cn/api/uhost-api/upgrade_to_ark_uhost_instance
325
- */
326
- upgradeToArkUHostInstance(request) {
327
- const args = Object.assign({ Action: 'UpgradeToArkUHostInstance' }, (request || {}));
328
- return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
329
- }
330
366
  }
331
367
  exports.default = UHostClient;
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.17",
4
+ "version": "0.2.19",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,