@alicloud/ecs20140526 7.4.1 → 7.5.0
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 +59 -2
- package/dist/client.js +212 -2
- package/dist/client.js.map +1 -1
- package/dist/models/AuthorizeSecurityGroupEgressRequest.d.ts +48 -31
- package/dist/models/AuthorizeSecurityGroupEgressRequest.js.map +1 -1
- package/dist/models/AuthorizeSecurityGroupRequest.d.ts +41 -32
- package/dist/models/AuthorizeSecurityGroupRequest.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupRequest.d.ts +1 -0
- package/dist/models/CreateAutoProvisioningGroupRequest.js +2 -0
- package/dist/models/CreateAutoProvisioningGroupRequest.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.d.ts +1 -0
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.js +2 -0
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.js.map +1 -1
- package/dist/models/DescribeInstanceAutoRenewAttributeResponseBody.d.ts +1 -0
- package/dist/models/DescribeInstanceAutoRenewAttributeResponseBody.js +2 -0
- package/dist/models/DescribeInstanceAutoRenewAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeLockedSnapshotsRequest.d.ts +92 -0
- package/dist/models/DescribeLockedSnapshotsRequest.js +79 -0
- package/dist/models/DescribeLockedSnapshotsRequest.js.map +1 -0
- package/dist/models/DescribeLockedSnapshotsResponse.d.ts +19 -0
- package/dist/models/DescribeLockedSnapshotsResponse.js +69 -0
- package/dist/models/DescribeLockedSnapshotsResponse.js.map +1 -0
- package/dist/models/DescribeLockedSnapshotsResponseBody.d.ts +114 -0
- package/dist/models/DescribeLockedSnapshotsResponseBody.js +98 -0
- package/dist/models/DescribeLockedSnapshotsResponseBody.js.map +1 -0
- package/dist/models/DescribeManagedInstancesRequest.d.ts +4 -0
- package/dist/models/DescribeManagedInstancesRequest.js.map +1 -1
- package/dist/models/DescribeNetworkInterfaceAttributeResponseBody.d.ts +27 -0
- package/dist/models/DescribeNetworkInterfaceAttributeResponseBody.js.map +1 -1
- package/dist/models/DisableNetworkInterfaceQoSrequest.d.ts +4 -0
- package/dist/models/DisableNetworkInterfaceQoSrequest.js.map +1 -1
- package/dist/models/DisableNetworkInterfaceQoSresponseBody.d.ts +3 -0
- package/dist/models/DisableNetworkInterfaceQoSresponseBody.js.map +1 -1
- package/dist/models/EnableNetworkInterfaceQoSrequest.d.ts +29 -0
- package/dist/models/EnableNetworkInterfaceQoSrequest.js.map +1 -1
- package/dist/models/LockSnapshotRequest.d.ts +118 -0
- package/dist/models/LockSnapshotRequest.js +78 -0
- package/dist/models/LockSnapshotRequest.js.map +1 -0
- package/dist/models/LockSnapshotResponse.d.ts +19 -0
- package/dist/models/LockSnapshotResponse.js +69 -0
- package/dist/models/LockSnapshotResponse.js.map +1 -0
- package/dist/models/LockSnapshotResponseBody.d.ts +106 -0
- package/dist/models/LockSnapshotResponseBody.js +96 -0
- package/dist/models/LockSnapshotResponseBody.js.map +1 -0
- package/dist/models/ModifySnapshotCategoryRequest.d.ts +1 -1
- package/dist/models/ResizeDiskRequest.d.ts +3 -3
- package/dist/models/StopInstanceRequest.d.ts +8 -7
- package/dist/models/StopInstanceRequest.js.map +1 -1
- package/dist/models/StopInstancesRequest.d.ts +10 -9
- package/dist/models/StopInstancesRequest.js.map +1 -1
- package/dist/models/UnlockSnapshotRequest.d.ts +72 -0
- package/dist/models/UnlockSnapshotRequest.js +72 -0
- package/dist/models/UnlockSnapshotRequest.js.map +1 -0
- package/dist/models/UnlockSnapshotResponse.d.ts +19 -0
- package/dist/models/UnlockSnapshotResponse.js +69 -0
- package/dist/models/UnlockSnapshotResponse.js.map +1 -0
- package/dist/models/UnlockSnapshotResponseBody.d.ts +21 -0
- package/dist/models/UnlockSnapshotResponseBody.js +58 -0
- package/dist/models/UnlockSnapshotResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +11 -0
- package/dist/models/model.js +53 -30
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +248 -2
- package/src/models/AuthorizeSecurityGroupEgressRequest.ts +48 -31
- package/src/models/AuthorizeSecurityGroupRequest.ts +41 -32
- package/src/models/CreateAutoProvisioningGroupRequest.ts +3 -0
- package/src/models/CreateAutoProvisioningGroupShrinkRequest.ts +3 -0
- package/src/models/DescribeInstanceAutoRenewAttributeResponseBody.ts +3 -0
- package/src/models/DescribeLockedSnapshotsRequest.ts +126 -0
- package/src/models/DescribeLockedSnapshotsResponse.ts +40 -0
- package/src/models/DescribeLockedSnapshotsResponseBody.ts +158 -0
- package/src/models/DescribeManagedInstancesRequest.ts +4 -0
- package/src/models/DescribeNetworkInterfaceAttributeResponseBody.ts +27 -0
- package/src/models/DisableNetworkInterfaceQoSrequest.ts +4 -0
- package/src/models/DisableNetworkInterfaceQoSresponseBody.ts +3 -0
- package/src/models/EnableNetworkInterfaceQoSrequest.ts +29 -0
- package/src/models/LockSnapshotRequest.ts +151 -0
- package/src/models/LockSnapshotResponse.ts +40 -0
- package/src/models/LockSnapshotResponseBody.ts +148 -0
- package/src/models/ModifySnapshotCategoryRequest.ts +1 -1
- package/src/models/ResizeDiskRequest.ts +3 -3
- package/src/models/StopInstanceRequest.ts +8 -7
- package/src/models/StopInstancesRequest.ts +10 -9
- package/src/models/UnlockSnapshotRequest.ts +99 -0
- package/src/models/UnlockSnapshotResponse.ts +40 -0
- package/src/models/UnlockSnapshotResponseBody.ts +34 -0
- package/src/models/model.ts +11 -0
package/dist/client.d.ts
CHANGED
|
@@ -4297,6 +4297,21 @@ export default class Client extends OpenApi {
|
|
|
4297
4297
|
* @returns DescribeLimitationResponse
|
|
4298
4298
|
*/
|
|
4299
4299
|
describeLimitation(request: $_model.DescribeLimitationRequest): Promise<$_model.DescribeLimitationResponse>;
|
|
4300
|
+
/**
|
|
4301
|
+
* Queries the lock information of a snapshot, such as snapshot lock status and lock configuration.
|
|
4302
|
+
*
|
|
4303
|
+
* @param request - DescribeLockedSnapshotsRequest
|
|
4304
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4305
|
+
* @returns DescribeLockedSnapshotsResponse
|
|
4306
|
+
*/
|
|
4307
|
+
describeLockedSnapshotsWithOptions(request: $_model.DescribeLockedSnapshotsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeLockedSnapshotsResponse>;
|
|
4308
|
+
/**
|
|
4309
|
+
* Queries the lock information of a snapshot, such as snapshot lock status and lock configuration.
|
|
4310
|
+
*
|
|
4311
|
+
* @param request - DescribeLockedSnapshotsRequest
|
|
4312
|
+
* @returns DescribeLockedSnapshotsResponse
|
|
4313
|
+
*/
|
|
4314
|
+
describeLockedSnapshots(request: $_model.DescribeLockedSnapshotsRequest): Promise<$_model.DescribeLockedSnapshotsResponse>;
|
|
4300
4315
|
/**
|
|
4301
4316
|
* Queries managed instances.
|
|
4302
4317
|
*
|
|
@@ -5611,7 +5626,7 @@ export default class Client extends OpenApi {
|
|
|
5611
5626
|
*/
|
|
5612
5627
|
disableDiskEncryptionByDefault(request: $_model.DisableDiskEncryptionByDefaultRequest): Promise<$_model.DisableDiskEncryptionByDefaultResponse>;
|
|
5613
5628
|
/**
|
|
5614
|
-
*
|
|
5629
|
+
* Disables Elastic Network Interface (ENI) QoS speed setting.
|
|
5615
5630
|
*
|
|
5616
5631
|
* @param request - DisableNetworkInterfaceQoSRequest
|
|
5617
5632
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5619,7 +5634,7 @@ export default class Client extends OpenApi {
|
|
|
5619
5634
|
*/
|
|
5620
5635
|
disableNetworkInterfaceQoSWithOptions(request: $_model.DisableNetworkInterfaceQoSRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DisableNetworkInterfaceQoSResponse>;
|
|
5621
5636
|
/**
|
|
5622
|
-
*
|
|
5637
|
+
* Disables Elastic Network Interface (ENI) QoS speed setting.
|
|
5623
5638
|
*
|
|
5624
5639
|
* @param request - DisableNetworkInterfaceQoSRequest
|
|
5625
5640
|
* @returns DisableNetworkInterfaceQoSResponse
|
|
@@ -6356,6 +6371,33 @@ export default class Client extends OpenApi {
|
|
|
6356
6371
|
* @returns ListTagResourcesResponse
|
|
6357
6372
|
*/
|
|
6358
6373
|
listTagResources(request: $_model.ListTagResourcesRequest): Promise<$_model.ListTagResourcesResponse>;
|
|
6374
|
+
/**
|
|
6375
|
+
* Lock the snapshot in compliance mode to prevent it from being accidentally or maliciously deleted. During the snapshot lock period, no user can delete it.
|
|
6376
|
+
*
|
|
6377
|
+
* @remarks
|
|
6378
|
+
* You can also use this operation to reconfigure locked snapshots. The configurable items depend on the lock mode and lock status:
|
|
6379
|
+
* * If a snapshot is locked in compliance mode and is in a cooling-off period, you can extend or shorten the cooling-off period and extend or shorten the lock duration.
|
|
6380
|
+
* * If the snapshot is locked in compliance mode and the cooling-off period has expired, you can only extend the lock duration.
|
|
6381
|
+
* > If you reconfigure a locked snapshot during the cooling-off period, the system will be regarded as a relock operation, and all lock parameters will be reset instead of individual adjustments.
|
|
6382
|
+
*
|
|
6383
|
+
* @param request - LockSnapshotRequest
|
|
6384
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6385
|
+
* @returns LockSnapshotResponse
|
|
6386
|
+
*/
|
|
6387
|
+
lockSnapshotWithOptions(request: $_model.LockSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.LockSnapshotResponse>;
|
|
6388
|
+
/**
|
|
6389
|
+
* Lock the snapshot in compliance mode to prevent it from being accidentally or maliciously deleted. During the snapshot lock period, no user can delete it.
|
|
6390
|
+
*
|
|
6391
|
+
* @remarks
|
|
6392
|
+
* You can also use this operation to reconfigure locked snapshots. The configurable items depend on the lock mode and lock status:
|
|
6393
|
+
* * If a snapshot is locked in compliance mode and is in a cooling-off period, you can extend or shorten the cooling-off period and extend or shorten the lock duration.
|
|
6394
|
+
* * If the snapshot is locked in compliance mode and the cooling-off period has expired, you can only extend the lock duration.
|
|
6395
|
+
* > If you reconfigure a locked snapshot during the cooling-off period, the system will be regarded as a relock operation, and all lock parameters will be reset instead of individual adjustments.
|
|
6396
|
+
*
|
|
6397
|
+
* @param request - LockSnapshotRequest
|
|
6398
|
+
* @returns LockSnapshotResponse
|
|
6399
|
+
*/
|
|
6400
|
+
lockSnapshot(request: $_model.LockSnapshotRequest): Promise<$_model.LockSnapshotResponse>;
|
|
6359
6401
|
/**
|
|
6360
6402
|
* Modifies the configurations of an auto provisioning group.
|
|
6361
6403
|
*
|
|
@@ -9612,6 +9654,21 @@ export default class Client extends OpenApi {
|
|
|
9612
9654
|
* @returns UnassociateHaVipResponse
|
|
9613
9655
|
*/
|
|
9614
9656
|
unassociateHaVip(request: $_model.UnassociateHaVipRequest): Promise<$_model.UnassociateHaVipResponse>;
|
|
9657
|
+
/**
|
|
9658
|
+
* Unlock snapshots that are locked in compliance mode but are still in a cooling-off period. If the snapshot is locked in compliance mode and the cooling-off period has ended, it cannot be unlocked.
|
|
9659
|
+
*
|
|
9660
|
+
* @param request - UnlockSnapshotRequest
|
|
9661
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
9662
|
+
* @returns UnlockSnapshotResponse
|
|
9663
|
+
*/
|
|
9664
|
+
unlockSnapshotWithOptions(request: $_model.UnlockSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UnlockSnapshotResponse>;
|
|
9665
|
+
/**
|
|
9666
|
+
* Unlock snapshots that are locked in compliance mode but are still in a cooling-off period. If the snapshot is locked in compliance mode and the cooling-off period has ended, it cannot be unlocked.
|
|
9667
|
+
*
|
|
9668
|
+
* @param request - UnlockSnapshotRequest
|
|
9669
|
+
* @returns UnlockSnapshotResponse
|
|
9670
|
+
*/
|
|
9671
|
+
unlockSnapshot(request: $_model.UnlockSnapshotRequest): Promise<$_model.UnlockSnapshotResponse>;
|
|
9615
9672
|
/**
|
|
9616
9673
|
* Removes tags from Elastic Compute Service (ECS) resources. After a tag is removed from a resource, the tag is automatically deleted if it is not added to other resources.
|
|
9617
9674
|
*
|
package/dist/client.js
CHANGED
|
@@ -2668,6 +2668,9 @@ class Client extends openapi_core_1.default {
|
|
|
2668
2668
|
if (!$dara.isNull(request.excessCapacityTerminationPolicy)) {
|
|
2669
2669
|
query["ExcessCapacityTerminationPolicy"] = request.excessCapacityTerminationPolicy;
|
|
2670
2670
|
}
|
|
2671
|
+
if (!$dara.isNull(request.executionMode)) {
|
|
2672
|
+
query["ExecutionMode"] = request.executionMode;
|
|
2673
|
+
}
|
|
2671
2674
|
if (!$dara.isNull(request.hibernationOptionsConfigured)) {
|
|
2672
2675
|
query["HibernationOptionsConfigured"] = request.hibernationOptionsConfigured;
|
|
2673
2676
|
}
|
|
@@ -14302,6 +14305,72 @@ class Client extends openapi_core_1.default {
|
|
|
14302
14305
|
let runtime = new $dara.RuntimeOptions({});
|
|
14303
14306
|
return await this.describeLimitationWithOptions(request, runtime);
|
|
14304
14307
|
}
|
|
14308
|
+
/**
|
|
14309
|
+
* Queries the lock information of a snapshot, such as snapshot lock status and lock configuration.
|
|
14310
|
+
*
|
|
14311
|
+
* @param request - DescribeLockedSnapshotsRequest
|
|
14312
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
14313
|
+
* @returns DescribeLockedSnapshotsResponse
|
|
14314
|
+
*/
|
|
14315
|
+
async describeLockedSnapshotsWithOptions(request, runtime) {
|
|
14316
|
+
request.validate();
|
|
14317
|
+
let query = {};
|
|
14318
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
14319
|
+
query["DryRun"] = request.dryRun;
|
|
14320
|
+
}
|
|
14321
|
+
if (!$dara.isNull(request.lockStatus)) {
|
|
14322
|
+
query["LockStatus"] = request.lockStatus;
|
|
14323
|
+
}
|
|
14324
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
14325
|
+
query["MaxResults"] = request.maxResults;
|
|
14326
|
+
}
|
|
14327
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
14328
|
+
query["NextToken"] = request.nextToken;
|
|
14329
|
+
}
|
|
14330
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
14331
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
14332
|
+
}
|
|
14333
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
14334
|
+
query["OwnerId"] = request.ownerId;
|
|
14335
|
+
}
|
|
14336
|
+
if (!$dara.isNull(request.regionId)) {
|
|
14337
|
+
query["RegionId"] = request.regionId;
|
|
14338
|
+
}
|
|
14339
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
14340
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
14341
|
+
}
|
|
14342
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
14343
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
14344
|
+
}
|
|
14345
|
+
if (!$dara.isNull(request.snapshotIds)) {
|
|
14346
|
+
query["SnapshotIds"] = request.snapshotIds;
|
|
14347
|
+
}
|
|
14348
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
14349
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
14350
|
+
});
|
|
14351
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
14352
|
+
action: "DescribeLockedSnapshots",
|
|
14353
|
+
version: "2014-05-26",
|
|
14354
|
+
protocol: "HTTPS",
|
|
14355
|
+
pathname: "/",
|
|
14356
|
+
method: "POST",
|
|
14357
|
+
authType: "AK",
|
|
14358
|
+
style: "RPC",
|
|
14359
|
+
reqBodyType: "formData",
|
|
14360
|
+
bodyType: "json",
|
|
14361
|
+
});
|
|
14362
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeLockedSnapshotsResponse({}));
|
|
14363
|
+
}
|
|
14364
|
+
/**
|
|
14365
|
+
* Queries the lock information of a snapshot, such as snapshot lock status and lock configuration.
|
|
14366
|
+
*
|
|
14367
|
+
* @param request - DescribeLockedSnapshotsRequest
|
|
14368
|
+
* @returns DescribeLockedSnapshotsResponse
|
|
14369
|
+
*/
|
|
14370
|
+
async describeLockedSnapshots(request) {
|
|
14371
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
14372
|
+
return await this.describeLockedSnapshotsWithOptions(request, runtime);
|
|
14373
|
+
}
|
|
14305
14374
|
/**
|
|
14306
14375
|
* Queries managed instances.
|
|
14307
14376
|
*
|
|
@@ -18779,7 +18848,7 @@ class Client extends openapi_core_1.default {
|
|
|
18779
18848
|
return await this.disableDiskEncryptionByDefaultWithOptions(request, runtime);
|
|
18780
18849
|
}
|
|
18781
18850
|
/**
|
|
18782
|
-
*
|
|
18851
|
+
* Disables Elastic Network Interface (ENI) QoS speed setting.
|
|
18783
18852
|
*
|
|
18784
18853
|
* @param request - DisableNetworkInterfaceQoSRequest
|
|
18785
18854
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -18826,7 +18895,7 @@ class Client extends openapi_core_1.default {
|
|
|
18826
18895
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DisableNetworkInterfaceQoSResponse({}));
|
|
18827
18896
|
}
|
|
18828
18897
|
/**
|
|
18829
|
-
*
|
|
18898
|
+
* Disables Elastic Network Interface (ENI) QoS speed setting.
|
|
18830
18899
|
*
|
|
18831
18900
|
* @param request - DisableNetworkInterfaceQoSRequest
|
|
18832
18901
|
* @returns DisableNetworkInterfaceQoSResponse
|
|
@@ -20431,6 +20500,87 @@ class Client extends openapi_core_1.default {
|
|
|
20431
20500
|
let runtime = new $dara.RuntimeOptions({});
|
|
20432
20501
|
return await this.listTagResourcesWithOptions(request, runtime);
|
|
20433
20502
|
}
|
|
20503
|
+
/**
|
|
20504
|
+
* Lock the snapshot in compliance mode to prevent it from being accidentally or maliciously deleted. During the snapshot lock period, no user can delete it.
|
|
20505
|
+
*
|
|
20506
|
+
* @remarks
|
|
20507
|
+
* You can also use this operation to reconfigure locked snapshots. The configurable items depend on the lock mode and lock status:
|
|
20508
|
+
* * If a snapshot is locked in compliance mode and is in a cooling-off period, you can extend or shorten the cooling-off period and extend or shorten the lock duration.
|
|
20509
|
+
* * If the snapshot is locked in compliance mode and the cooling-off period has expired, you can only extend the lock duration.
|
|
20510
|
+
* > If you reconfigure a locked snapshot during the cooling-off period, the system will be regarded as a relock operation, and all lock parameters will be reset instead of individual adjustments.
|
|
20511
|
+
*
|
|
20512
|
+
* @param request - LockSnapshotRequest
|
|
20513
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
20514
|
+
* @returns LockSnapshotResponse
|
|
20515
|
+
*/
|
|
20516
|
+
async lockSnapshotWithOptions(request, runtime) {
|
|
20517
|
+
request.validate();
|
|
20518
|
+
let query = {};
|
|
20519
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
20520
|
+
query["ClientToken"] = request.clientToken;
|
|
20521
|
+
}
|
|
20522
|
+
if (!$dara.isNull(request.coolOffPeriod)) {
|
|
20523
|
+
query["CoolOffPeriod"] = request.coolOffPeriod;
|
|
20524
|
+
}
|
|
20525
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
20526
|
+
query["DryRun"] = request.dryRun;
|
|
20527
|
+
}
|
|
20528
|
+
if (!$dara.isNull(request.lockDuration)) {
|
|
20529
|
+
query["LockDuration"] = request.lockDuration;
|
|
20530
|
+
}
|
|
20531
|
+
if (!$dara.isNull(request.lockMode)) {
|
|
20532
|
+
query["LockMode"] = request.lockMode;
|
|
20533
|
+
}
|
|
20534
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
20535
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
20536
|
+
}
|
|
20537
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
20538
|
+
query["OwnerId"] = request.ownerId;
|
|
20539
|
+
}
|
|
20540
|
+
if (!$dara.isNull(request.regionId)) {
|
|
20541
|
+
query["RegionId"] = request.regionId;
|
|
20542
|
+
}
|
|
20543
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
20544
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
20545
|
+
}
|
|
20546
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
20547
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
20548
|
+
}
|
|
20549
|
+
if (!$dara.isNull(request.snapshotId)) {
|
|
20550
|
+
query["SnapshotId"] = request.snapshotId;
|
|
20551
|
+
}
|
|
20552
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
20553
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
20554
|
+
});
|
|
20555
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
20556
|
+
action: "LockSnapshot",
|
|
20557
|
+
version: "2014-05-26",
|
|
20558
|
+
protocol: "HTTPS",
|
|
20559
|
+
pathname: "/",
|
|
20560
|
+
method: "POST",
|
|
20561
|
+
authType: "AK",
|
|
20562
|
+
style: "RPC",
|
|
20563
|
+
reqBodyType: "formData",
|
|
20564
|
+
bodyType: "json",
|
|
20565
|
+
});
|
|
20566
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.LockSnapshotResponse({}));
|
|
20567
|
+
}
|
|
20568
|
+
/**
|
|
20569
|
+
* Lock the snapshot in compliance mode to prevent it from being accidentally or maliciously deleted. During the snapshot lock period, no user can delete it.
|
|
20570
|
+
*
|
|
20571
|
+
* @remarks
|
|
20572
|
+
* You can also use this operation to reconfigure locked snapshots. The configurable items depend on the lock mode and lock status:
|
|
20573
|
+
* * If a snapshot is locked in compliance mode and is in a cooling-off period, you can extend or shorten the cooling-off period and extend or shorten the lock duration.
|
|
20574
|
+
* * If the snapshot is locked in compliance mode and the cooling-off period has expired, you can only extend the lock duration.
|
|
20575
|
+
* > If you reconfigure a locked snapshot during the cooling-off period, the system will be regarded as a relock operation, and all lock parameters will be reset instead of individual adjustments.
|
|
20576
|
+
*
|
|
20577
|
+
* @param request - LockSnapshotRequest
|
|
20578
|
+
* @returns LockSnapshotResponse
|
|
20579
|
+
*/
|
|
20580
|
+
async lockSnapshot(request) {
|
|
20581
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
20582
|
+
return await this.lockSnapshotWithOptions(request, runtime);
|
|
20583
|
+
}
|
|
20434
20584
|
/**
|
|
20435
20585
|
* Modifies the configurations of an auto provisioning group.
|
|
20436
20586
|
*
|
|
@@ -29975,6 +30125,66 @@ class Client extends openapi_core_1.default {
|
|
|
29975
30125
|
let runtime = new $dara.RuntimeOptions({});
|
|
29976
30126
|
return await this.unassociateHaVipWithOptions(request, runtime);
|
|
29977
30127
|
}
|
|
30128
|
+
/**
|
|
30129
|
+
* Unlock snapshots that are locked in compliance mode but are still in a cooling-off period. If the snapshot is locked in compliance mode and the cooling-off period has ended, it cannot be unlocked.
|
|
30130
|
+
*
|
|
30131
|
+
* @param request - UnlockSnapshotRequest
|
|
30132
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
30133
|
+
* @returns UnlockSnapshotResponse
|
|
30134
|
+
*/
|
|
30135
|
+
async unlockSnapshotWithOptions(request, runtime) {
|
|
30136
|
+
request.validate();
|
|
30137
|
+
let query = {};
|
|
30138
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
30139
|
+
query["ClientToken"] = request.clientToken;
|
|
30140
|
+
}
|
|
30141
|
+
if (!$dara.isNull(request.dryRun)) {
|
|
30142
|
+
query["DryRun"] = request.dryRun;
|
|
30143
|
+
}
|
|
30144
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
30145
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
30146
|
+
}
|
|
30147
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
30148
|
+
query["OwnerId"] = request.ownerId;
|
|
30149
|
+
}
|
|
30150
|
+
if (!$dara.isNull(request.regionId)) {
|
|
30151
|
+
query["RegionId"] = request.regionId;
|
|
30152
|
+
}
|
|
30153
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
30154
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
30155
|
+
}
|
|
30156
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
30157
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
30158
|
+
}
|
|
30159
|
+
if (!$dara.isNull(request.snapshotId)) {
|
|
30160
|
+
query["SnapshotId"] = request.snapshotId;
|
|
30161
|
+
}
|
|
30162
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
30163
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
30164
|
+
});
|
|
30165
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
30166
|
+
action: "UnlockSnapshot",
|
|
30167
|
+
version: "2014-05-26",
|
|
30168
|
+
protocol: "HTTPS",
|
|
30169
|
+
pathname: "/",
|
|
30170
|
+
method: "POST",
|
|
30171
|
+
authType: "AK",
|
|
30172
|
+
style: "RPC",
|
|
30173
|
+
reqBodyType: "formData",
|
|
30174
|
+
bodyType: "json",
|
|
30175
|
+
});
|
|
30176
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UnlockSnapshotResponse({}));
|
|
30177
|
+
}
|
|
30178
|
+
/**
|
|
30179
|
+
* Unlock snapshots that are locked in compliance mode but are still in a cooling-off period. If the snapshot is locked in compliance mode and the cooling-off period has ended, it cannot be unlocked.
|
|
30180
|
+
*
|
|
30181
|
+
* @param request - UnlockSnapshotRequest
|
|
30182
|
+
* @returns UnlockSnapshotResponse
|
|
30183
|
+
*/
|
|
30184
|
+
async unlockSnapshot(request) {
|
|
30185
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
30186
|
+
return await this.unlockSnapshotWithOptions(request, runtime);
|
|
30187
|
+
}
|
|
29978
30188
|
/**
|
|
29979
30189
|
* Removes tags from Elastic Compute Service (ECS) resources. After a tag is removed from a resource, the tag is automatically deleted if it is not added to other resources.
|
|
29980
30190
|
*
|