@alicloud/ecs20140526 7.7.2 → 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 +2 -2
- package/dist/client.js +11 -3
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDiagnosticReportRequest.d.ts +3 -0
- package/dist/models/CreateDiagnosticReportRequest.js +5 -0
- package/dist/models/CreateDiagnosticReportRequest.js.map +1 -1
- package/dist/models/CreateDiagnosticReportShrinkRequest.d.ts +58 -0
- package/dist/models/CreateDiagnosticReportShrinkRequest.js +68 -0
- package/dist/models/CreateDiagnosticReportShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +1 -0
- package/dist/models/model.js +23 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +13 -3
- package/src/models/CreateDiagnosticReportRequest.ts +6 -0
- package/src/models/CreateDiagnosticReportShrinkRequest.ts +81 -0
- package/src/models/model.ts +1 -0
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
|
|
1180
|
+
* @param tmpReq - CreateDiagnosticReportRequest
|
|
1181
1181
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1182
1182
|
* @returns CreateDiagnosticReportResponse
|
|
1183
1183
|
*/
|
|
1184
|
-
createDiagnosticReportWithOptions(
|
|
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
|
|
3407
|
+
* @param tmpReq - CreateDiagnosticReportRequest
|
|
3408
3408
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3409
3409
|
* @returns CreateDiagnosticReportResponse
|
|
3410
3410
|
*/
|
|
3411
|
-
async createDiagnosticReportWithOptions(
|
|
3412
|
-
|
|
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
|
}
|