@alicloud/ecs20140526 3.0.7 → 3.0.8
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 +15 -10
- package/dist/client.js +29 -10
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +37 -10
package/dist/client.d.ts
CHANGED
|
@@ -15290,6 +15290,7 @@ export declare class ModifySnapshotAttributeRequest extends $tea.Model {
|
|
|
15290
15290
|
ownerId?: number;
|
|
15291
15291
|
resourceOwnerAccount?: string;
|
|
15292
15292
|
resourceOwnerId?: number;
|
|
15293
|
+
retentionDays?: number;
|
|
15293
15294
|
snapshotId?: string;
|
|
15294
15295
|
snapshotName?: string;
|
|
15295
15296
|
static names(): {
|
|
@@ -17428,6 +17429,7 @@ export declare class StartInstancesResponse extends $tea.Model {
|
|
|
17428
17429
|
});
|
|
17429
17430
|
}
|
|
17430
17431
|
export declare class StartTerminalSessionRequest extends $tea.Model {
|
|
17432
|
+
commandLine?: string;
|
|
17431
17433
|
instanceId?: string[];
|
|
17432
17434
|
ownerAccount?: string;
|
|
17433
17435
|
ownerId?: number;
|
|
@@ -17435,6 +17437,7 @@ export declare class StartTerminalSessionRequest extends $tea.Model {
|
|
|
17435
17437
|
regionId?: string;
|
|
17436
17438
|
resourceOwnerAccount?: string;
|
|
17437
17439
|
resourceOwnerId?: number;
|
|
17440
|
+
targetServer?: string;
|
|
17438
17441
|
static names(): {
|
|
17439
17442
|
[key: string]: string;
|
|
17440
17443
|
};
|
|
@@ -26348,6 +26351,7 @@ export declare class DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGro
|
|
|
26348
26351
|
});
|
|
26349
26352
|
}
|
|
26350
26353
|
export declare class DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot extends $tea.Model {
|
|
26354
|
+
available?: boolean;
|
|
26351
26355
|
instantAccess?: boolean;
|
|
26352
26356
|
instantAccessRetentionDays?: number;
|
|
26353
26357
|
progress?: string;
|
|
@@ -26574,6 +26578,7 @@ export declare class DescribeSnapshotsResponseBodySnapshotsSnapshotTags extends
|
|
|
26574
26578
|
});
|
|
26575
26579
|
}
|
|
26576
26580
|
export declare class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $tea.Model {
|
|
26581
|
+
available?: boolean;
|
|
26577
26582
|
category?: string;
|
|
26578
26583
|
creationTime?: string;
|
|
26579
26584
|
description?: string;
|
|
@@ -28790,7 +28795,7 @@ export default class Client extends OpenApi {
|
|
|
28790
28795
|
*/
|
|
28791
28796
|
assignPrivateIpAddresses(request: AssignPrivateIpAddressesRequest): Promise<AssignPrivateIpAddressesResponse>;
|
|
28792
28797
|
/**
|
|
28793
|
-
* @deprecated
|
|
28798
|
+
* @deprecated : AssociateEipAddress is deprecated, please use Vpc::2016-04-28::AssociateEipAddress instead.
|
|
28794
28799
|
*
|
|
28795
28800
|
* @param request AssociateEipAddressRequest
|
|
28796
28801
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28798,7 +28803,7 @@ export default class Client extends OpenApi {
|
|
|
28798
28803
|
*/
|
|
28799
28804
|
associateEipAddressWithOptions(request: AssociateEipAddressRequest, runtime: $Util.RuntimeOptions): Promise<AssociateEipAddressResponse>;
|
|
28800
28805
|
/**
|
|
28801
|
-
* @deprecated
|
|
28806
|
+
* @deprecated : AssociateEipAddress is deprecated, please use Vpc::2016-04-28::AssociateEipAddress instead.
|
|
28802
28807
|
*
|
|
28803
28808
|
* @param request AssociateEipAddressRequest
|
|
28804
28809
|
* @return AssociateEipAddressResponse
|
|
@@ -29253,9 +29258,9 @@ export default class Client extends OpenApi {
|
|
|
29253
29258
|
copyImage(request: CopyImageRequest): Promise<CopyImageResponse>;
|
|
29254
29259
|
/**
|
|
29255
29260
|
* When you call this operation, take note of the following items:
|
|
29256
|
-
*
|
|
29257
|
-
*
|
|
29258
|
-
*
|
|
29261
|
+
* - New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
29262
|
+
* - Encrypted snapshots cannot be copied.
|
|
29263
|
+
* - Local snapshots cannot be copied.
|
|
29259
29264
|
*
|
|
29260
29265
|
* @param request CopySnapshotRequest
|
|
29261
29266
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29264,9 +29269,9 @@ export default class Client extends OpenApi {
|
|
|
29264
29269
|
copySnapshotWithOptions(request: CopySnapshotRequest, runtime: $Util.RuntimeOptions): Promise<CopySnapshotResponse>;
|
|
29265
29270
|
/**
|
|
29266
29271
|
* When you call this operation, take note of the following items:
|
|
29267
|
-
*
|
|
29268
|
-
*
|
|
29269
|
-
*
|
|
29272
|
+
* - New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
29273
|
+
* - Encrypted snapshots cannot be copied.
|
|
29274
|
+
* - Local snapshots cannot be copied.
|
|
29270
29275
|
*
|
|
29271
29276
|
* @param request CopySnapshotRequest
|
|
29272
29277
|
* @return CopySnapshotResponse
|
|
@@ -30311,7 +30316,7 @@ export default class Client extends OpenApi {
|
|
|
30311
30316
|
*/
|
|
30312
30317
|
deleteNetworkInterface(request: DeleteNetworkInterfaceRequest): Promise<DeleteNetworkInterfaceResponse>;
|
|
30313
30318
|
/**
|
|
30314
|
-
* @deprecated
|
|
30319
|
+
* @deprecated : DeleteNetworkInterfacePermission is deprecated, please use Ecs::2014-05-26::DeleteNetworkInterface instead.
|
|
30315
30320
|
*
|
|
30316
30321
|
* @param request DeleteNetworkInterfacePermissionRequest
|
|
30317
30322
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30319,7 +30324,7 @@ export default class Client extends OpenApi {
|
|
|
30319
30324
|
*/
|
|
30320
30325
|
deleteNetworkInterfacePermissionWithOptions(request: DeleteNetworkInterfacePermissionRequest, runtime: $Util.RuntimeOptions): Promise<DeleteNetworkInterfacePermissionResponse>;
|
|
30321
30326
|
/**
|
|
30322
|
-
* @deprecated
|
|
30327
|
+
* @deprecated : DeleteNetworkInterfacePermission is deprecated, please use Ecs::2014-05-26::DeleteNetworkInterface instead.
|
|
30323
30328
|
*
|
|
30324
30329
|
* @param request DeleteNetworkInterfacePermissionRequest
|
|
30325
30330
|
* @return DeleteNetworkInterfacePermissionResponse
|
package/dist/client.js
CHANGED
|
@@ -22345,6 +22345,7 @@ class ModifySnapshotAttributeRequest extends $tea.Model {
|
|
|
22345
22345
|
ownerId: 'OwnerId',
|
|
22346
22346
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
22347
22347
|
resourceOwnerId: 'ResourceOwnerId',
|
|
22348
|
+
retentionDays: 'RetentionDays',
|
|
22348
22349
|
snapshotId: 'SnapshotId',
|
|
22349
22350
|
snapshotName: 'SnapshotName',
|
|
22350
22351
|
};
|
|
@@ -22357,6 +22358,7 @@ class ModifySnapshotAttributeRequest extends $tea.Model {
|
|
|
22357
22358
|
ownerId: 'number',
|
|
22358
22359
|
resourceOwnerAccount: 'string',
|
|
22359
22360
|
resourceOwnerId: 'number',
|
|
22361
|
+
retentionDays: 'number',
|
|
22360
22362
|
snapshotId: 'string',
|
|
22361
22363
|
snapshotName: 'string',
|
|
22362
22364
|
};
|
|
@@ -25467,6 +25469,7 @@ class StartTerminalSessionRequest extends $tea.Model {
|
|
|
25467
25469
|
}
|
|
25468
25470
|
static names() {
|
|
25469
25471
|
return {
|
|
25472
|
+
commandLine: 'CommandLine',
|
|
25470
25473
|
instanceId: 'InstanceId',
|
|
25471
25474
|
ownerAccount: 'OwnerAccount',
|
|
25472
25475
|
ownerId: 'OwnerId',
|
|
@@ -25474,10 +25477,12 @@ class StartTerminalSessionRequest extends $tea.Model {
|
|
|
25474
25477
|
regionId: 'RegionId',
|
|
25475
25478
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
25476
25479
|
resourceOwnerId: 'ResourceOwnerId',
|
|
25480
|
+
targetServer: 'TargetServer',
|
|
25477
25481
|
};
|
|
25478
25482
|
}
|
|
25479
25483
|
static types() {
|
|
25480
25484
|
return {
|
|
25485
|
+
commandLine: 'string',
|
|
25481
25486
|
instanceId: { 'type': 'array', 'itemType': 'string' },
|
|
25482
25487
|
ownerAccount: 'string',
|
|
25483
25488
|
ownerId: 'number',
|
|
@@ -25485,6 +25490,7 @@ class StartTerminalSessionRequest extends $tea.Model {
|
|
|
25485
25490
|
regionId: 'string',
|
|
25486
25491
|
resourceOwnerAccount: 'string',
|
|
25487
25492
|
resourceOwnerId: 'number',
|
|
25493
|
+
targetServer: 'string',
|
|
25488
25494
|
};
|
|
25489
25495
|
}
|
|
25490
25496
|
}
|
|
@@ -38403,6 +38409,7 @@ class DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnap
|
|
|
38403
38409
|
}
|
|
38404
38410
|
static names() {
|
|
38405
38411
|
return {
|
|
38412
|
+
available: 'Available',
|
|
38406
38413
|
instantAccess: 'InstantAccess',
|
|
38407
38414
|
instantAccessRetentionDays: 'InstantAccessRetentionDays',
|
|
38408
38415
|
progress: 'Progress',
|
|
@@ -38414,6 +38421,7 @@ class DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnap
|
|
|
38414
38421
|
}
|
|
38415
38422
|
static types() {
|
|
38416
38423
|
return {
|
|
38424
|
+
available: 'boolean',
|
|
38417
38425
|
instantAccess: 'boolean',
|
|
38418
38426
|
instantAccessRetentionDays: 'number',
|
|
38419
38427
|
progress: 'string',
|
|
@@ -38727,6 +38735,7 @@ class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $tea.Model {
|
|
|
38727
38735
|
}
|
|
38728
38736
|
static names() {
|
|
38729
38737
|
return {
|
|
38738
|
+
available: 'Available',
|
|
38730
38739
|
category: 'Category',
|
|
38731
38740
|
creationTime: 'CreationTime',
|
|
38732
38741
|
description: 'Description',
|
|
@@ -38757,6 +38766,7 @@ class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $tea.Model {
|
|
|
38757
38766
|
}
|
|
38758
38767
|
static types() {
|
|
38759
38768
|
return {
|
|
38769
|
+
available: 'boolean',
|
|
38760
38770
|
category: 'string',
|
|
38761
38771
|
creationTime: 'string',
|
|
38762
38772
|
description: 'string',
|
|
@@ -42386,7 +42396,7 @@ class Client extends openapi_client_1.default {
|
|
|
42386
42396
|
return await this.assignPrivateIpAddressesWithOptions(request, runtime);
|
|
42387
42397
|
}
|
|
42388
42398
|
/**
|
|
42389
|
-
* @deprecated
|
|
42399
|
+
* @deprecated : AssociateEipAddress is deprecated, please use Vpc::2016-04-28::AssociateEipAddress instead.
|
|
42390
42400
|
*
|
|
42391
42401
|
* @param request AssociateEipAddressRequest
|
|
42392
42402
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -42437,7 +42447,7 @@ class Client extends openapi_client_1.default {
|
|
|
42437
42447
|
return $tea.cast(await this.callApi(params, req, runtime), new AssociateEipAddressResponse({}));
|
|
42438
42448
|
}
|
|
42439
42449
|
/**
|
|
42440
|
-
* @deprecated
|
|
42450
|
+
* @deprecated : AssociateEipAddress is deprecated, please use Vpc::2016-04-28::AssociateEipAddress instead.
|
|
42441
42451
|
*
|
|
42442
42452
|
* @param request AssociateEipAddressRequest
|
|
42443
42453
|
* @return AssociateEipAddressResponse
|
|
@@ -43757,9 +43767,9 @@ class Client extends openapi_client_1.default {
|
|
|
43757
43767
|
}
|
|
43758
43768
|
/**
|
|
43759
43769
|
* When you call this operation, take note of the following items:
|
|
43760
|
-
*
|
|
43761
|
-
*
|
|
43762
|
-
*
|
|
43770
|
+
* - New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
43771
|
+
* - Encrypted snapshots cannot be copied.
|
|
43772
|
+
* - Local snapshots cannot be copied.
|
|
43763
43773
|
*
|
|
43764
43774
|
* @param request CopySnapshotRequest
|
|
43765
43775
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -43831,9 +43841,9 @@ class Client extends openapi_client_1.default {
|
|
|
43831
43841
|
}
|
|
43832
43842
|
/**
|
|
43833
43843
|
* When you call this operation, take note of the following items:
|
|
43834
|
-
*
|
|
43835
|
-
*
|
|
43836
|
-
*
|
|
43844
|
+
* - New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
43845
|
+
* - Encrypted snapshots cannot be copied.
|
|
43846
|
+
* - Local snapshots cannot be copied.
|
|
43837
43847
|
*
|
|
43838
43848
|
* @param request CopySnapshotRequest
|
|
43839
43849
|
* @return CopySnapshotResponse
|
|
@@ -48632,7 +48642,7 @@ class Client extends openapi_client_1.default {
|
|
|
48632
48642
|
return await this.deleteNetworkInterfaceWithOptions(request, runtime);
|
|
48633
48643
|
}
|
|
48634
48644
|
/**
|
|
48635
|
-
* @deprecated
|
|
48645
|
+
* @deprecated : DeleteNetworkInterfacePermission is deprecated, please use Ecs::2014-05-26::DeleteNetworkInterface instead.
|
|
48636
48646
|
*
|
|
48637
48647
|
* @param request DeleteNetworkInterfacePermissionRequest
|
|
48638
48648
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -48683,7 +48693,7 @@ class Client extends openapi_client_1.default {
|
|
|
48683
48693
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteNetworkInterfacePermissionResponse({}));
|
|
48684
48694
|
}
|
|
48685
48695
|
/**
|
|
48686
|
-
* @deprecated
|
|
48696
|
+
* @deprecated : DeleteNetworkInterfacePermission is deprecated, please use Ecs::2014-05-26::DeleteNetworkInterface instead.
|
|
48687
48697
|
*
|
|
48688
48698
|
* @param request DeleteNetworkInterfacePermissionRequest
|
|
48689
48699
|
* @return DeleteNetworkInterfacePermissionResponse
|
|
@@ -62679,6 +62689,9 @@ class Client extends openapi_client_1.default {
|
|
|
62679
62689
|
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
62680
62690
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
62681
62691
|
}
|
|
62692
|
+
if (!tea_util_1.default.isUnset(request.retentionDays)) {
|
|
62693
|
+
query["RetentionDays"] = request.retentionDays;
|
|
62694
|
+
}
|
|
62682
62695
|
if (!tea_util_1.default.isUnset(request.snapshotId)) {
|
|
62683
62696
|
query["SnapshotId"] = request.snapshotId;
|
|
62684
62697
|
}
|
|
@@ -65855,6 +65868,9 @@ class Client extends openapi_client_1.default {
|
|
|
65855
65868
|
async startTerminalSessionWithOptions(request, runtime) {
|
|
65856
65869
|
tea_util_1.default.validateModel(request);
|
|
65857
65870
|
let query = {};
|
|
65871
|
+
if (!tea_util_1.default.isUnset(request.commandLine)) {
|
|
65872
|
+
query["CommandLine"] = request.commandLine;
|
|
65873
|
+
}
|
|
65858
65874
|
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
65859
65875
|
query["InstanceId"] = request.instanceId;
|
|
65860
65876
|
}
|
|
@@ -65879,6 +65895,9 @@ class Client extends openapi_client_1.default {
|
|
|
65879
65895
|
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
65880
65896
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
65881
65897
|
}
|
|
65898
|
+
if (!tea_util_1.default.isUnset(request.targetServer)) {
|
|
65899
|
+
query["TargetServer"] = request.targetServer;
|
|
65900
|
+
}
|
|
65882
65901
|
let req = new $OpenApi.OpenApiRequest({
|
|
65883
65902
|
query: openapi_util_1.default.query(query),
|
|
65884
65903
|
});
|