@alicloud/ecs20140526 7.6.2 → 7.7.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.
Files changed (33) hide show
  1. package/dist/client.d.ts +23 -8
  2. package/dist/client.js +98 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CloneDisksRequest.d.ts +151 -0
  5. package/dist/models/CloneDisksRequest.js +142 -0
  6. package/dist/models/CloneDisksRequest.js.map +1 -0
  7. package/dist/models/CloneDisksResponse.d.ts +19 -0
  8. package/dist/models/CloneDisksResponse.js +69 -0
  9. package/dist/models/CloneDisksResponse.js.map +1 -0
  10. package/dist/models/CloneDisksResponseBody.d.ts +23 -0
  11. package/dist/models/CloneDisksResponseBody.js +60 -0
  12. package/dist/models/CloneDisksResponseBody.js.map +1 -0
  13. package/dist/models/DescribeCapacityReservationsResponseBody.d.ts +10 -0
  14. package/dist/models/DescribeCapacityReservationsResponseBody.js +4 -0
  15. package/dist/models/DescribeCapacityReservationsResponseBody.js.map +1 -1
  16. package/dist/models/DescribeElasticityAssurancesResponseBody.d.ts +10 -0
  17. package/dist/models/DescribeElasticityAssurancesResponseBody.js +4 -0
  18. package/dist/models/DescribeElasticityAssurancesResponseBody.js.map +1 -1
  19. package/dist/models/DescribeSnapshotsResponseBody.d.ts +5 -0
  20. package/dist/models/DescribeSnapshotsResponseBody.js +2 -0
  21. package/dist/models/DescribeSnapshotsResponseBody.js.map +1 -1
  22. package/dist/models/model.d.ts +5 -0
  23. package/dist/models/model.js +51 -41
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +118 -8
  27. package/src/models/CloneDisksRequest.ts +230 -0
  28. package/src/models/CloneDisksResponse.ts +40 -0
  29. package/src/models/CloneDisksResponseBody.ts +38 -0
  30. package/src/models/DescribeCapacityReservationsResponseBody.ts +14 -0
  31. package/src/models/DescribeElasticityAssurancesResponseBody.ts +14 -0
  32. package/src/models/DescribeSnapshotsResponseBody.ts +7 -0
  33. package/src/models/model.ts +5 -0
package/dist/client.d.ts CHANGED
@@ -813,6 +813,21 @@ export default class Client extends OpenApi {
813
813
  * @returns CancelTaskResponse
814
814
  */
815
815
  cancelTask(request: $_model.CancelTaskRequest): Promise<$_model.CancelTaskResponse>;
816
+ /**
817
+ * 使用一块已有的磁盘克隆出新磁盘
818
+ *
819
+ * @param request - CloneDisksRequest
820
+ * @param runtime - runtime options for this request RuntimeOptions
821
+ * @returns CloneDisksResponse
822
+ */
823
+ cloneDisksWithOptions(request: $_model.CloneDisksRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CloneDisksResponse>;
824
+ /**
825
+ * 使用一块已有的磁盘克隆出新磁盘
826
+ *
827
+ * @param request - CloneDisksRequest
828
+ * @returns CloneDisksResponse
829
+ */
830
+ cloneDisks(request: $_model.CloneDisksRequest): Promise<$_model.CloneDisksResponse>;
816
831
  /**
817
832
  * ConnectRouterInterface
818
833
  *
@@ -1641,7 +1656,7 @@ export default class Client extends OpenApi {
1641
1656
  */
1642
1657
  createPhysicalConnection(request: $_model.CreatePhysicalConnectionRequest): Promise<$_model.CreatePhysicalConnectionResponse>;
1643
1658
  /**
1644
- * 创建运维窗口
1659
+ * Create an O\\\\\\&M window. If you set the TargetResource parameter in the O\\\\\\&M window to the associated ECS instance and need to schedule O\\\\\\&M to avoid potential hardware problems, the execution time is set based on the interval set by the TimePeriod parameter in the O\\\\\\&M window. When the execution time of an O\\\\\\&M event is reached, the platform automatically executes the response O\\\\\\&M operation based on the type of the O\\\\\\&M event.
1645
1660
  *
1646
1661
  * @param tmpReq - CreatePlanMaintenanceWindowRequest
1647
1662
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1649,7 +1664,7 @@ export default class Client extends OpenApi {
1649
1664
  */
1650
1665
  createPlanMaintenanceWindowWithOptions(tmpReq: $_model.CreatePlanMaintenanceWindowRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreatePlanMaintenanceWindowResponse>;
1651
1666
  /**
1652
- * 创建运维窗口
1667
+ * Create an O\\\\\\&M window. If you set the TargetResource parameter in the O\\\\\\&M window to the associated ECS instance and need to schedule O\\\\\\&M to avoid potential hardware problems, the execution time is set based on the interval set by the TimePeriod parameter in the O\\\\\\&M window. When the execution time of an O\\\\\\&M event is reached, the platform automatically executes the response O\\\\\\&M operation based on the type of the O\\\\\\&M event.
1653
1668
  *
1654
1669
  * @param request - CreatePlanMaintenanceWindowRequest
1655
1670
  * @returns CreatePlanMaintenanceWindowResponse
@@ -4235,7 +4250,7 @@ export default class Client extends OpenApi {
4235
4250
  */
4236
4251
  describeInvocationResults(request: $_model.DescribeInvocationResultsRequest): Promise<$_model.DescribeInvocationResultsResponse>;
4237
4252
  /**
4238
- * Invoke the DescribeInvocations API to query the execution list and status of Cloud Assistant commands.
4253
+ * The command type.
4239
4254
  *
4240
4255
  * @remarks
4241
4256
  * DescribeInvocations
@@ -4246,7 +4261,7 @@ export default class Client extends OpenApi {
4246
4261
  */
4247
4262
  describeInvocationsWithOptions(request: $_model.DescribeInvocationsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeInvocationsResponse>;
4248
4263
  /**
4249
- * Invoke the DescribeInvocations API to query the execution list and status of Cloud Assistant commands.
4264
+ * The command type.
4250
4265
  *
4251
4266
  * @remarks
4252
4267
  * DescribeInvocations
@@ -4478,7 +4493,7 @@ export default class Client extends OpenApi {
4478
4493
  */
4479
4494
  describePhysicalConnections(request: $_model.DescribePhysicalConnectionsRequest): Promise<$_model.DescribePhysicalConnectionsResponse>;
4480
4495
  /**
4481
- * 查询运维窗口
4496
+ * Query O\\\\\\&M window
4482
4497
  *
4483
4498
  * @param tmpReq - DescribePlanMaintenanceWindowsRequest
4484
4499
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4486,7 +4501,7 @@ export default class Client extends OpenApi {
4486
4501
  */
4487
4502
  describePlanMaintenanceWindowsWithOptions(tmpReq: $_model.DescribePlanMaintenanceWindowsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribePlanMaintenanceWindowsResponse>;
4488
4503
  /**
4489
- * 查询运维窗口
4504
+ * Query O\\\\\\&M window
4490
4505
  *
4491
4506
  * @param request - DescribePlanMaintenanceWindowsRequest
4492
4507
  * @returns DescribePlanMaintenanceWindowsResponse
@@ -6507,7 +6522,7 @@ export default class Client extends OpenApi {
6507
6522
  */
6508
6523
  modifyBandwidthPackageSpec(request: $_model.ModifyBandwidthPackageSpecRequest): Promise<$_model.ModifyBandwidthPackageSpecResponse>;
6509
6524
  /**
6510
- * Modifies the information of a capacity reservation, including the name, description, release mode, and the total number of Elastic Compute Service (ECS) instances for which capacity is reserved.
6525
+ * Modifies the information about a capacity reservation, including the name, description, expiration method, and the total number of ECS instances that can be reserved.
6511
6526
  *
6512
6527
  * @param request - ModifyCapacityReservationRequest
6513
6528
  * @param runtime - runtime options for this request RuntimeOptions
@@ -6515,7 +6530,7 @@ export default class Client extends OpenApi {
6515
6530
  */
6516
6531
  modifyCapacityReservationWithOptions(request: $_model.ModifyCapacityReservationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyCapacityReservationResponse>;
6517
6532
  /**
6518
- * Modifies the information of a capacity reservation, including the name, description, release mode, and the total number of Elastic Compute Service (ECS) instances for which capacity is reserved.
6533
+ * Modifies the information about a capacity reservation, including the name, description, expiration method, and the total number of ECS instances that can be reserved.
6519
6534
  *
6520
6535
  * @param request - ModifyCapacityReservationRequest
6521
6536
  * @returns ModifyCapacityReservationResponse
package/dist/client.js CHANGED
@@ -2191,6 +2191,96 @@ class Client extends openapi_core_1.default {
2191
2191
  let runtime = new $dara.RuntimeOptions({});
2192
2192
  return await this.cancelTaskWithOptions(request, runtime);
2193
2193
  }
2194
+ /**
2195
+ * 使用一块已有的磁盘克隆出新磁盘
2196
+ *
2197
+ * @param request - CloneDisksRequest
2198
+ * @param runtime - runtime options for this request RuntimeOptions
2199
+ * @returns CloneDisksResponse
2200
+ */
2201
+ async cloneDisksWithOptions(request, runtime) {
2202
+ request.validate();
2203
+ let query = {};
2204
+ if (!$dara.isNull(request.arn)) {
2205
+ query["Arn"] = request.arn;
2206
+ }
2207
+ if (!$dara.isNull(request.burstingEnabled)) {
2208
+ query["BurstingEnabled"] = request.burstingEnabled;
2209
+ }
2210
+ if (!$dara.isNull(request.clientToken)) {
2211
+ query["ClientToken"] = request.clientToken;
2212
+ }
2213
+ if (!$dara.isNull(request.diskCategory)) {
2214
+ query["DiskCategory"] = request.diskCategory;
2215
+ }
2216
+ if (!$dara.isNull(request.diskName)) {
2217
+ query["DiskName"] = request.diskName;
2218
+ }
2219
+ if (!$dara.isNull(request.dryRun)) {
2220
+ query["DryRun"] = request.dryRun;
2221
+ }
2222
+ if (!$dara.isNull(request.encrypted)) {
2223
+ query["Encrypted"] = request.encrypted;
2224
+ }
2225
+ if (!$dara.isNull(request.kmsKeyId)) {
2226
+ query["KmsKeyId"] = request.kmsKeyId;
2227
+ }
2228
+ if (!$dara.isNull(request.multiAttach)) {
2229
+ query["MultiAttach"] = request.multiAttach;
2230
+ }
2231
+ if (!$dara.isNull(request.ownerId)) {
2232
+ query["OwnerId"] = request.ownerId;
2233
+ }
2234
+ if (!$dara.isNull(request.performanceLevel)) {
2235
+ query["PerformanceLevel"] = request.performanceLevel;
2236
+ }
2237
+ if (!$dara.isNull(request.provisionedIops)) {
2238
+ query["ProvisionedIops"] = request.provisionedIops;
2239
+ }
2240
+ if (!$dara.isNull(request.regionId)) {
2241
+ query["RegionId"] = request.regionId;
2242
+ }
2243
+ if (!$dara.isNull(request.resourceGroupId)) {
2244
+ query["ResourceGroupId"] = request.resourceGroupId;
2245
+ }
2246
+ if (!$dara.isNull(request.resourceOwnerId)) {
2247
+ query["ResourceOwnerId"] = request.resourceOwnerId;
2248
+ }
2249
+ if (!$dara.isNull(request.size)) {
2250
+ query["Size"] = request.size;
2251
+ }
2252
+ if (!$dara.isNull(request.sourceDiskId)) {
2253
+ query["SourceDiskId"] = request.sourceDiskId;
2254
+ }
2255
+ if (!$dara.isNull(request.tag)) {
2256
+ query["Tag"] = request.tag;
2257
+ }
2258
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2259
+ query: openapi_core_2.OpenApiUtil.query(query),
2260
+ });
2261
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2262
+ action: "CloneDisks",
2263
+ version: "2014-05-26",
2264
+ protocol: "HTTPS",
2265
+ pathname: "/",
2266
+ method: "POST",
2267
+ authType: "AK",
2268
+ style: "RPC",
2269
+ reqBodyType: "formData",
2270
+ bodyType: "json",
2271
+ });
2272
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloneDisksResponse({}));
2273
+ }
2274
+ /**
2275
+ * 使用一块已有的磁盘克隆出新磁盘
2276
+ *
2277
+ * @param request - CloneDisksRequest
2278
+ * @returns CloneDisksResponse
2279
+ */
2280
+ async cloneDisks(request) {
2281
+ let runtime = new $dara.RuntimeOptions({});
2282
+ return await this.cloneDisksWithOptions(request, runtime);
2283
+ }
2194
2284
  /**
2195
2285
  * ConnectRouterInterface
2196
2286
  *
@@ -5357,7 +5447,7 @@ class Client extends openapi_core_1.default {
5357
5447
  return await this.createPhysicalConnectionWithOptions(request, runtime);
5358
5448
  }
5359
5449
  /**
5360
- * 创建运维窗口
5450
+ * Create an O\\\\\\&M window. If you set the TargetResource parameter in the O\\\\\\&M window to the associated ECS instance and need to schedule O\\\\\\&M to avoid potential hardware problems, the execution time is set based on the interval set by the TimePeriod parameter in the O\\\\\\&M window. When the execution time of an O\\\\\\&M event is reached, the platform automatically executes the response O\\\\\\&M operation based on the type of the O\\\\\\&M event.
5361
5451
  *
5362
5452
  * @param tmpReq - CreatePlanMaintenanceWindowRequest
5363
5453
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5409,7 +5499,7 @@ class Client extends openapi_core_1.default {
5409
5499
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreatePlanMaintenanceWindowResponse({}));
5410
5500
  }
5411
5501
  /**
5412
- * 创建运维窗口
5502
+ * Create an O\\\\\\&M window. If you set the TargetResource parameter in the O\\\\\\&M window to the associated ECS instance and need to schedule O\\\\\\&M to avoid potential hardware problems, the execution time is set based on the interval set by the TimePeriod parameter in the O\\\\\\&M window. When the execution time of an O\\\\\\&M event is reached, the platform automatically executes the response O\\\\\\&M operation based on the type of the O\\\\\\&M event.
5413
5503
  *
5414
5504
  * @param request - CreatePlanMaintenanceWindowRequest
5415
5505
  * @returns CreatePlanMaintenanceWindowResponse
@@ -14035,7 +14125,7 @@ class Client extends openapi_core_1.default {
14035
14125
  return await this.describeInvocationResultsWithOptions(request, runtime);
14036
14126
  }
14037
14127
  /**
14038
- * Invoke the DescribeInvocations API to query the execution list and status of Cloud Assistant commands.
14128
+ * The command type.
14039
14129
  *
14040
14130
  * @remarks
14041
14131
  * DescribeInvocations
@@ -14130,7 +14220,7 @@ class Client extends openapi_core_1.default {
14130
14220
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeInvocationsResponse({}));
14131
14221
  }
14132
14222
  /**
14133
- * Invoke the DescribeInvocations API to query the execution list and status of Cloud Assistant commands.
14223
+ * The command type.
14134
14224
  *
14135
14225
  * @remarks
14136
14226
  * DescribeInvocations
@@ -15047,7 +15137,7 @@ class Client extends openapi_core_1.default {
15047
15137
  return await this.describePhysicalConnectionsWithOptions(request, runtime);
15048
15138
  }
15049
15139
  /**
15050
- * 查询运维窗口
15140
+ * Query O\\\\\\&M window
15051
15141
  *
15052
15142
  * @param tmpReq - DescribePlanMaintenanceWindowsRequest
15053
15143
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15102,7 +15192,7 @@ class Client extends openapi_core_1.default {
15102
15192
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribePlanMaintenanceWindowsResponse({}));
15103
15193
  }
15104
15194
  /**
15105
- * 查询运维窗口
15195
+ * Query O\\\\\\&M window
15106
15196
  *
15107
15197
  * @param request - DescribePlanMaintenanceWindowsRequest
15108
15198
  * @returns DescribePlanMaintenanceWindowsResponse
@@ -20999,7 +21089,7 @@ class Client extends openapi_core_1.default {
20999
21089
  return await this.modifyBandwidthPackageSpecWithOptions(request, runtime);
21000
21090
  }
21001
21091
  /**
21002
- * Modifies the information of a capacity reservation, including the name, description, release mode, and the total number of Elastic Compute Service (ECS) instances for which capacity is reserved.
21092
+ * Modifies the information about a capacity reservation, including the name, description, expiration method, and the total number of ECS instances that can be reserved.
21003
21093
  *
21004
21094
  * @param request - ModifyCapacityReservationRequest
21005
21095
  * @param runtime - runtime options for this request RuntimeOptions
@@ -21061,7 +21151,7 @@ class Client extends openapi_core_1.default {
21061
21151
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyCapacityReservationResponse({}));
21062
21152
  }
21063
21153
  /**
21064
- * Modifies the information of a capacity reservation, including the name, description, release mode, and the total number of Elastic Compute Service (ECS) instances for which capacity is reserved.
21154
+ * Modifies the information about a capacity reservation, including the name, description, expiration method, and the total number of ECS instances that can be reserved.
21065
21155
  *
21066
21156
  * @param request - ModifyCapacityReservationRequest
21067
21157
  * @returns ModifyCapacityReservationResponse