@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 +4 -4
- package/dist/client.js +13 -5
- 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/DescribeInstancesResponseBody.d.ts +6 -0
- package/dist/models/DescribeInstancesResponseBody.js +4 -0
- package/dist/models/DescribeInstancesResponseBody.js.map +1 -1
- 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 +15 -5
- package/src/models/CreateDiagnosticReportRequest.ts +6 -0
- package/src/models/CreateDiagnosticReportShrinkRequest.ts +81 -0
- package/src/models/DescribeInstancesResponseBody.ts +10 -0
- package/src/models/model.ts +1 -0
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
|
|
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
|
@@ -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
|
|
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
|
}
|