@alicloud/ecs20140526 3.0.7 → 3.0.9
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 +16 -10
- package/dist/client.js +34 -10
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +44 -10
package/dist/client.d.ts
CHANGED
|
@@ -10195,6 +10195,7 @@ export declare class DescribeSecurityGroupsResponse extends $tea.Model {
|
|
|
10195
10195
|
}
|
|
10196
10196
|
export declare class DescribeSendFileResultsRequest extends $tea.Model {
|
|
10197
10197
|
instanceId?: string;
|
|
10198
|
+
invocationStatus?: string;
|
|
10198
10199
|
invokeId?: string;
|
|
10199
10200
|
name?: string;
|
|
10200
10201
|
ownerAccount?: string;
|
|
@@ -15290,6 +15291,7 @@ export declare class ModifySnapshotAttributeRequest extends $tea.Model {
|
|
|
15290
15291
|
ownerId?: number;
|
|
15291
15292
|
resourceOwnerAccount?: string;
|
|
15292
15293
|
resourceOwnerId?: number;
|
|
15294
|
+
retentionDays?: number;
|
|
15293
15295
|
snapshotId?: string;
|
|
15294
15296
|
snapshotName?: string;
|
|
15295
15297
|
static names(): {
|
|
@@ -17428,6 +17430,7 @@ export declare class StartInstancesResponse extends $tea.Model {
|
|
|
17428
17430
|
});
|
|
17429
17431
|
}
|
|
17430
17432
|
export declare class StartTerminalSessionRequest extends $tea.Model {
|
|
17433
|
+
commandLine?: string;
|
|
17431
17434
|
instanceId?: string[];
|
|
17432
17435
|
ownerAccount?: string;
|
|
17433
17436
|
ownerId?: number;
|
|
@@ -17435,6 +17438,7 @@ export declare class StartTerminalSessionRequest extends $tea.Model {
|
|
|
17435
17438
|
regionId?: string;
|
|
17436
17439
|
resourceOwnerAccount?: string;
|
|
17437
17440
|
resourceOwnerId?: number;
|
|
17441
|
+
targetServer?: string;
|
|
17438
17442
|
static names(): {
|
|
17439
17443
|
[key: string]: string;
|
|
17440
17444
|
};
|
|
@@ -26348,6 +26352,7 @@ export declare class DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGro
|
|
|
26348
26352
|
});
|
|
26349
26353
|
}
|
|
26350
26354
|
export declare class DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnapshot extends $tea.Model {
|
|
26355
|
+
available?: boolean;
|
|
26351
26356
|
instantAccess?: boolean;
|
|
26352
26357
|
instantAccessRetentionDays?: number;
|
|
26353
26358
|
progress?: string;
|
|
@@ -26574,6 +26579,7 @@ export declare class DescribeSnapshotsResponseBodySnapshotsSnapshotTags extends
|
|
|
26574
26579
|
});
|
|
26575
26580
|
}
|
|
26576
26581
|
export declare class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $tea.Model {
|
|
26582
|
+
available?: boolean;
|
|
26577
26583
|
category?: string;
|
|
26578
26584
|
creationTime?: string;
|
|
26579
26585
|
description?: string;
|
|
@@ -28790,7 +28796,7 @@ export default class Client extends OpenApi {
|
|
|
28790
28796
|
*/
|
|
28791
28797
|
assignPrivateIpAddresses(request: AssignPrivateIpAddressesRequest): Promise<AssignPrivateIpAddressesResponse>;
|
|
28792
28798
|
/**
|
|
28793
|
-
* @deprecated
|
|
28799
|
+
* @deprecated : AssociateEipAddress is deprecated, please use Vpc::2016-04-28::AssociateEipAddress instead.
|
|
28794
28800
|
*
|
|
28795
28801
|
* @param request AssociateEipAddressRequest
|
|
28796
28802
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -28798,7 +28804,7 @@ export default class Client extends OpenApi {
|
|
|
28798
28804
|
*/
|
|
28799
28805
|
associateEipAddressWithOptions(request: AssociateEipAddressRequest, runtime: $Util.RuntimeOptions): Promise<AssociateEipAddressResponse>;
|
|
28800
28806
|
/**
|
|
28801
|
-
* @deprecated
|
|
28807
|
+
* @deprecated : AssociateEipAddress is deprecated, please use Vpc::2016-04-28::AssociateEipAddress instead.
|
|
28802
28808
|
*
|
|
28803
28809
|
* @param request AssociateEipAddressRequest
|
|
28804
28810
|
* @return AssociateEipAddressResponse
|
|
@@ -29253,9 +29259,9 @@ export default class Client extends OpenApi {
|
|
|
29253
29259
|
copyImage(request: CopyImageRequest): Promise<CopyImageResponse>;
|
|
29254
29260
|
/**
|
|
29255
29261
|
* When you call this operation, take note of the following items:
|
|
29256
|
-
*
|
|
29257
|
-
*
|
|
29258
|
-
*
|
|
29262
|
+
* - New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
29263
|
+
* - Encrypted snapshots cannot be copied.
|
|
29264
|
+
* - Local snapshots cannot be copied.
|
|
29259
29265
|
*
|
|
29260
29266
|
* @param request CopySnapshotRequest
|
|
29261
29267
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -29264,9 +29270,9 @@ export default class Client extends OpenApi {
|
|
|
29264
29270
|
copySnapshotWithOptions(request: CopySnapshotRequest, runtime: $Util.RuntimeOptions): Promise<CopySnapshotResponse>;
|
|
29265
29271
|
/**
|
|
29266
29272
|
* When you call this operation, take note of the following items:
|
|
29267
|
-
*
|
|
29268
|
-
*
|
|
29269
|
-
*
|
|
29273
|
+
* - New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
29274
|
+
* - Encrypted snapshots cannot be copied.
|
|
29275
|
+
* - Local snapshots cannot be copied.
|
|
29270
29276
|
*
|
|
29271
29277
|
* @param request CopySnapshotRequest
|
|
29272
29278
|
* @return CopySnapshotResponse
|
|
@@ -30311,7 +30317,7 @@ export default class Client extends OpenApi {
|
|
|
30311
30317
|
*/
|
|
30312
30318
|
deleteNetworkInterface(request: DeleteNetworkInterfaceRequest): Promise<DeleteNetworkInterfaceResponse>;
|
|
30313
30319
|
/**
|
|
30314
|
-
* @deprecated
|
|
30320
|
+
* @deprecated : DeleteNetworkInterfacePermission is deprecated, please use Ecs::2014-05-26::DeleteNetworkInterface instead.
|
|
30315
30321
|
*
|
|
30316
30322
|
* @param request DeleteNetworkInterfacePermissionRequest
|
|
30317
30323
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -30319,7 +30325,7 @@ export default class Client extends OpenApi {
|
|
|
30319
30325
|
*/
|
|
30320
30326
|
deleteNetworkInterfacePermissionWithOptions(request: DeleteNetworkInterfacePermissionRequest, runtime: $Util.RuntimeOptions): Promise<DeleteNetworkInterfacePermissionResponse>;
|
|
30321
30327
|
/**
|
|
30322
|
-
* @deprecated
|
|
30328
|
+
* @deprecated : DeleteNetworkInterfacePermission is deprecated, please use Ecs::2014-05-26::DeleteNetworkInterface instead.
|
|
30323
30329
|
*
|
|
30324
30330
|
* @param request DeleteNetworkInterfacePermissionRequest
|
|
30325
30331
|
* @return DeleteNetworkInterfacePermissionResponse
|
package/dist/client.js
CHANGED
|
@@ -14972,6 +14972,7 @@ class DescribeSendFileResultsRequest extends $tea.Model {
|
|
|
14972
14972
|
static names() {
|
|
14973
14973
|
return {
|
|
14974
14974
|
instanceId: 'InstanceId',
|
|
14975
|
+
invocationStatus: 'InvocationStatus',
|
|
14975
14976
|
invokeId: 'InvokeId',
|
|
14976
14977
|
name: 'Name',
|
|
14977
14978
|
ownerAccount: 'OwnerAccount',
|
|
@@ -14988,6 +14989,7 @@ class DescribeSendFileResultsRequest extends $tea.Model {
|
|
|
14988
14989
|
static types() {
|
|
14989
14990
|
return {
|
|
14990
14991
|
instanceId: 'string',
|
|
14992
|
+
invocationStatus: 'string',
|
|
14991
14993
|
invokeId: 'string',
|
|
14992
14994
|
name: 'string',
|
|
14993
14995
|
ownerAccount: 'string',
|
|
@@ -22345,6 +22347,7 @@ class ModifySnapshotAttributeRequest extends $tea.Model {
|
|
|
22345
22347
|
ownerId: 'OwnerId',
|
|
22346
22348
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
22347
22349
|
resourceOwnerId: 'ResourceOwnerId',
|
|
22350
|
+
retentionDays: 'RetentionDays',
|
|
22348
22351
|
snapshotId: 'SnapshotId',
|
|
22349
22352
|
snapshotName: 'SnapshotName',
|
|
22350
22353
|
};
|
|
@@ -22357,6 +22360,7 @@ class ModifySnapshotAttributeRequest extends $tea.Model {
|
|
|
22357
22360
|
ownerId: 'number',
|
|
22358
22361
|
resourceOwnerAccount: 'string',
|
|
22359
22362
|
resourceOwnerId: 'number',
|
|
22363
|
+
retentionDays: 'number',
|
|
22360
22364
|
snapshotId: 'string',
|
|
22361
22365
|
snapshotName: 'string',
|
|
22362
22366
|
};
|
|
@@ -25467,6 +25471,7 @@ class StartTerminalSessionRequest extends $tea.Model {
|
|
|
25467
25471
|
}
|
|
25468
25472
|
static names() {
|
|
25469
25473
|
return {
|
|
25474
|
+
commandLine: 'CommandLine',
|
|
25470
25475
|
instanceId: 'InstanceId',
|
|
25471
25476
|
ownerAccount: 'OwnerAccount',
|
|
25472
25477
|
ownerId: 'OwnerId',
|
|
@@ -25474,10 +25479,12 @@ class StartTerminalSessionRequest extends $tea.Model {
|
|
|
25474
25479
|
regionId: 'RegionId',
|
|
25475
25480
|
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
25476
25481
|
resourceOwnerId: 'ResourceOwnerId',
|
|
25482
|
+
targetServer: 'TargetServer',
|
|
25477
25483
|
};
|
|
25478
25484
|
}
|
|
25479
25485
|
static types() {
|
|
25480
25486
|
return {
|
|
25487
|
+
commandLine: 'string',
|
|
25481
25488
|
instanceId: { 'type': 'array', 'itemType': 'string' },
|
|
25482
25489
|
ownerAccount: 'string',
|
|
25483
25490
|
ownerId: 'number',
|
|
@@ -25485,6 +25492,7 @@ class StartTerminalSessionRequest extends $tea.Model {
|
|
|
25485
25492
|
regionId: 'string',
|
|
25486
25493
|
resourceOwnerAccount: 'string',
|
|
25487
25494
|
resourceOwnerId: 'number',
|
|
25495
|
+
targetServer: 'string',
|
|
25488
25496
|
};
|
|
25489
25497
|
}
|
|
25490
25498
|
}
|
|
@@ -38403,6 +38411,7 @@ class DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnap
|
|
|
38403
38411
|
}
|
|
38404
38412
|
static names() {
|
|
38405
38413
|
return {
|
|
38414
|
+
available: 'Available',
|
|
38406
38415
|
instantAccess: 'InstantAccess',
|
|
38407
38416
|
instantAccessRetentionDays: 'InstantAccessRetentionDays',
|
|
38408
38417
|
progress: 'Progress',
|
|
@@ -38414,6 +38423,7 @@ class DescribeSnapshotGroupsResponseBodySnapshotGroupsSnapshotGroupSnapshotsSnap
|
|
|
38414
38423
|
}
|
|
38415
38424
|
static types() {
|
|
38416
38425
|
return {
|
|
38426
|
+
available: 'boolean',
|
|
38417
38427
|
instantAccess: 'boolean',
|
|
38418
38428
|
instantAccessRetentionDays: 'number',
|
|
38419
38429
|
progress: 'string',
|
|
@@ -38727,6 +38737,7 @@ class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $tea.Model {
|
|
|
38727
38737
|
}
|
|
38728
38738
|
static names() {
|
|
38729
38739
|
return {
|
|
38740
|
+
available: 'Available',
|
|
38730
38741
|
category: 'Category',
|
|
38731
38742
|
creationTime: 'CreationTime',
|
|
38732
38743
|
description: 'Description',
|
|
@@ -38757,6 +38768,7 @@ class DescribeSnapshotsResponseBodySnapshotsSnapshot extends $tea.Model {
|
|
|
38757
38768
|
}
|
|
38758
38769
|
static types() {
|
|
38759
38770
|
return {
|
|
38771
|
+
available: 'boolean',
|
|
38760
38772
|
category: 'string',
|
|
38761
38773
|
creationTime: 'string',
|
|
38762
38774
|
description: 'string',
|
|
@@ -42386,7 +42398,7 @@ class Client extends openapi_client_1.default {
|
|
|
42386
42398
|
return await this.assignPrivateIpAddressesWithOptions(request, runtime);
|
|
42387
42399
|
}
|
|
42388
42400
|
/**
|
|
42389
|
-
* @deprecated
|
|
42401
|
+
* @deprecated : AssociateEipAddress is deprecated, please use Vpc::2016-04-28::AssociateEipAddress instead.
|
|
42390
42402
|
*
|
|
42391
42403
|
* @param request AssociateEipAddressRequest
|
|
42392
42404
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -42437,7 +42449,7 @@ class Client extends openapi_client_1.default {
|
|
|
42437
42449
|
return $tea.cast(await this.callApi(params, req, runtime), new AssociateEipAddressResponse({}));
|
|
42438
42450
|
}
|
|
42439
42451
|
/**
|
|
42440
|
-
* @deprecated
|
|
42452
|
+
* @deprecated : AssociateEipAddress is deprecated, please use Vpc::2016-04-28::AssociateEipAddress instead.
|
|
42441
42453
|
*
|
|
42442
42454
|
* @param request AssociateEipAddressRequest
|
|
42443
42455
|
* @return AssociateEipAddressResponse
|
|
@@ -43757,9 +43769,9 @@ class Client extends openapi_client_1.default {
|
|
|
43757
43769
|
}
|
|
43758
43770
|
/**
|
|
43759
43771
|
* When you call this operation, take note of the following items:
|
|
43760
|
-
*
|
|
43761
|
-
*
|
|
43762
|
-
*
|
|
43772
|
+
* - New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
43773
|
+
* - Encrypted snapshots cannot be copied.
|
|
43774
|
+
* - Local snapshots cannot be copied.
|
|
43763
43775
|
*
|
|
43764
43776
|
* @param request CopySnapshotRequest
|
|
43765
43777
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -43831,9 +43843,9 @@ class Client extends openapi_client_1.default {
|
|
|
43831
43843
|
}
|
|
43832
43844
|
/**
|
|
43833
43845
|
* When you call this operation, take note of the following items:
|
|
43834
|
-
*
|
|
43835
|
-
*
|
|
43836
|
-
*
|
|
43846
|
+
* - New snapshots (copies) cannot be used to roll back disks from which the source snapshots (originals) were created.
|
|
43847
|
+
* - Encrypted snapshots cannot be copied.
|
|
43848
|
+
* - Local snapshots cannot be copied.
|
|
43837
43849
|
*
|
|
43838
43850
|
* @param request CopySnapshotRequest
|
|
43839
43851
|
* @return CopySnapshotResponse
|
|
@@ -48632,7 +48644,7 @@ class Client extends openapi_client_1.default {
|
|
|
48632
48644
|
return await this.deleteNetworkInterfaceWithOptions(request, runtime);
|
|
48633
48645
|
}
|
|
48634
48646
|
/**
|
|
48635
|
-
* @deprecated
|
|
48647
|
+
* @deprecated : DeleteNetworkInterfacePermission is deprecated, please use Ecs::2014-05-26::DeleteNetworkInterface instead.
|
|
48636
48648
|
*
|
|
48637
48649
|
* @param request DeleteNetworkInterfacePermissionRequest
|
|
48638
48650
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -48683,7 +48695,7 @@ class Client extends openapi_client_1.default {
|
|
|
48683
48695
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteNetworkInterfacePermissionResponse({}));
|
|
48684
48696
|
}
|
|
48685
48697
|
/**
|
|
48686
|
-
* @deprecated
|
|
48698
|
+
* @deprecated : DeleteNetworkInterfacePermission is deprecated, please use Ecs::2014-05-26::DeleteNetworkInterface instead.
|
|
48687
48699
|
*
|
|
48688
48700
|
* @param request DeleteNetworkInterfacePermissionRequest
|
|
48689
48701
|
* @return DeleteNetworkInterfacePermissionResponse
|
|
@@ -55601,6 +55613,9 @@ class Client extends openapi_client_1.default {
|
|
|
55601
55613
|
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
55602
55614
|
query["InstanceId"] = request.instanceId;
|
|
55603
55615
|
}
|
|
55616
|
+
if (!tea_util_1.default.isUnset(request.invocationStatus)) {
|
|
55617
|
+
query["InvocationStatus"] = request.invocationStatus;
|
|
55618
|
+
}
|
|
55604
55619
|
if (!tea_util_1.default.isUnset(request.invokeId)) {
|
|
55605
55620
|
query["InvokeId"] = request.invokeId;
|
|
55606
55621
|
}
|
|
@@ -62679,6 +62694,9 @@ class Client extends openapi_client_1.default {
|
|
|
62679
62694
|
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
62680
62695
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
62681
62696
|
}
|
|
62697
|
+
if (!tea_util_1.default.isUnset(request.retentionDays)) {
|
|
62698
|
+
query["RetentionDays"] = request.retentionDays;
|
|
62699
|
+
}
|
|
62682
62700
|
if (!tea_util_1.default.isUnset(request.snapshotId)) {
|
|
62683
62701
|
query["SnapshotId"] = request.snapshotId;
|
|
62684
62702
|
}
|
|
@@ -65855,6 +65873,9 @@ class Client extends openapi_client_1.default {
|
|
|
65855
65873
|
async startTerminalSessionWithOptions(request, runtime) {
|
|
65856
65874
|
tea_util_1.default.validateModel(request);
|
|
65857
65875
|
let query = {};
|
|
65876
|
+
if (!tea_util_1.default.isUnset(request.commandLine)) {
|
|
65877
|
+
query["CommandLine"] = request.commandLine;
|
|
65878
|
+
}
|
|
65858
65879
|
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
65859
65880
|
query["InstanceId"] = request.instanceId;
|
|
65860
65881
|
}
|
|
@@ -65879,6 +65900,9 @@ class Client extends openapi_client_1.default {
|
|
|
65879
65900
|
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
65880
65901
|
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
65881
65902
|
}
|
|
65903
|
+
if (!tea_util_1.default.isUnset(request.targetServer)) {
|
|
65904
|
+
query["TargetServer"] = request.targetServer;
|
|
65905
|
+
}
|
|
65882
65906
|
let req = new $OpenApi.OpenApiRequest({
|
|
65883
65907
|
query: openapi_util_1.default.query(query),
|
|
65884
65908
|
});
|