@alicloud/ecs20140526 7.7.2 → 7.7.4

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
@@ -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
@@ -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
  }