@alicloud/ecs20140526 7.7.1 → 7.7.3

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/dist/client.d.ts CHANGED
@@ -814,7 +814,7 @@ export default class Client extends OpenApi {
814
814
  */
815
815
  cancelTask(request: $_model.CancelTaskRequest): Promise<$_model.CancelTaskResponse>;
816
816
  /**
817
- * 使用一块已有的磁盘克隆出新磁盘
817
+ * Disk cloning allows you to quickly create a new disk with the same data as the source disk in the same zone. The cloned disk supports custom capacity, type, and encryption properties. After being mounted to an instance, you can quickly copy business data or scale out services.
818
818
  *
819
819
  * @param request - CloneDisksRequest
820
820
  * @param runtime - runtime options for this request RuntimeOptions
@@ -822,7 +822,7 @@ export default class Client extends OpenApi {
822
822
  */
823
823
  cloneDisksWithOptions(request: $_model.CloneDisksRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CloneDisksResponse>;
824
824
  /**
825
- * 使用一块已有的磁盘克隆出新磁盘
825
+ * Disk cloning allows you to quickly create a new disk with the same data as the source disk in the same zone. The cloned disk supports custom capacity, type, and encryption properties. After being mounted to an instance, you can quickly copy business data or scale out services.
826
826
  *
827
827
  * @param request - CloneDisksRequest
828
828
  * @returns CloneDisksResponse
@@ -1177,11 +1177,11 @@ export default class Client extends OpenApi {
1177
1177
  /**
1178
1178
  * Creates a diagnostic report for a resource. When you call this operation, you can configure the MetricSetId parameter to create a diagnostic report based on the specified diagnostic metric set. Then, you can call the DescribeDiagnosticReportAttributes operation based on the returned diagnostic report ID to view the details of the diagnostic report.
1179
1179
  *
1180
- * @param request - CreateDiagnosticReportRequest
1180
+ * @param tmpReq - CreateDiagnosticReportRequest
1181
1181
  * @param runtime - runtime options for this request RuntimeOptions
1182
1182
  * @returns CreateDiagnosticReportResponse
1183
1183
  */
1184
- createDiagnosticReportWithOptions(request: $_model.CreateDiagnosticReportRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDiagnosticReportResponse>;
1184
+ createDiagnosticReportWithOptions(tmpReq: $_model.CreateDiagnosticReportRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateDiagnosticReportResponse>;
1185
1185
  /**
1186
1186
  * Creates a diagnostic report for a resource. When you call this operation, you can configure the MetricSetId parameter to create a diagnostic report based on the specified diagnostic metric set. Then, you can call the DescribeDiagnosticReportAttributes operation based on the returned diagnostic report ID to view the details of the diagnostic report.
1187
1187
  *
package/dist/client.js CHANGED
@@ -2192,7 +2192,7 @@ class Client extends openapi_core_1.default {
2192
2192
  return await this.cancelTaskWithOptions(request, runtime);
2193
2193
  }
2194
2194
  /**
2195
- * 使用一块已有的磁盘克隆出新磁盘
2195
+ * Disk cloning allows you to quickly create a new disk with the same data as the source disk in the same zone. The cloned disk supports custom capacity, type, and encryption properties. After being mounted to an instance, you can quickly copy business data or scale out services.
2196
2196
  *
2197
2197
  * @param request - CloneDisksRequest
2198
2198
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2272,7 +2272,7 @@ class Client extends openapi_core_1.default {
2272
2272
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CloneDisksResponse({}));
2273
2273
  }
2274
2274
  /**
2275
- * 使用一块已有的磁盘克隆出新磁盘
2275
+ * Disk cloning allows you to quickly create a new disk with the same data as the source disk in the same zone. The cloned disk supports custom capacity, type, and encryption properties. After being mounted to an instance, you can quickly copy business data or scale out services.
2276
2276
  *
2277
2277
  * @param request - CloneDisksRequest
2278
2278
  * @returns CloneDisksResponse
@@ -3404,13 +3404,21 @@ class Client extends openapi_core_1.default {
3404
3404
  /**
3405
3405
  * Creates a diagnostic report for a resource. When you call this operation, you can configure the MetricSetId parameter to create a diagnostic report based on the specified diagnostic metric set. Then, you can call the DescribeDiagnosticReportAttributes operation based on the returned diagnostic report ID to view the details of the diagnostic report.
3406
3406
  *
3407
- * @param request - CreateDiagnosticReportRequest
3407
+ * @param tmpReq - CreateDiagnosticReportRequest
3408
3408
  * @param runtime - runtime options for this request RuntimeOptions
3409
3409
  * @returns CreateDiagnosticReportResponse
3410
3410
  */
3411
- async createDiagnosticReportWithOptions(request, runtime) {
3412
- request.validate();
3411
+ async createDiagnosticReportWithOptions(tmpReq, runtime) {
3412
+ tmpReq.validate();
3413
+ let request = new $_model.CreateDiagnosticReportShrinkRequest({});
3414
+ openapi_core_2.OpenApiUtil.convert(tmpReq, request);
3415
+ if (!$dara.isNull(tmpReq.additionalOptions)) {
3416
+ request.additionalOptionsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.additionalOptions, "AdditionalOptions", "json");
3417
+ }
3413
3418
  let query = {};
3419
+ if (!$dara.isNull(request.additionalOptionsShrink)) {
3420
+ query["AdditionalOptions"] = request.additionalOptionsShrink;
3421
+ }
3414
3422
  if (!$dara.isNull(request.endTime)) {
3415
3423
  query["EndTime"] = request.endTime;
3416
3424
  }