@alicloud/ecs20140526 7.2.0 → 7.2.1
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 +17 -3
- package/dist/client.js.map +1 -1
- package/dist/models/CreateLaunchTemplateRequest.d.ts +14 -0
- package/dist/models/CreateLaunchTemplateRequest.js +25 -1
- package/dist/models/CreateLaunchTemplateRequest.js.map +1 -1
- package/dist/models/CreateLaunchTemplateVersionRequest.d.ts +14 -0
- package/dist/models/CreateLaunchTemplateVersionRequest.js +25 -1
- package/dist/models/CreateLaunchTemplateVersionRequest.js.map +1 -1
- package/dist/models/DescribeImagesResponseBody.d.ts +1 -0
- package/dist/models/DescribeImagesResponseBody.js +2 -0
- package/dist/models/DescribeImagesResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceAttributeResponseBody.d.ts +18 -0
- package/dist/models/DescribeInstanceAttributeResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.d.ts +2 -0
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.js +4 -0
- package/dist/models/DescribeInstanceHistoryEventsResponseBody.js.map +1 -1
- package/dist/models/DescribeLaunchTemplateVersionsResponseBody.d.ts +14 -0
- package/dist/models/DescribeLaunchTemplateVersionsResponseBody.js +25 -1
- package/dist/models/DescribeLaunchTemplateVersionsResponseBody.js.map +1 -1
- package/dist/models/StartTerminalSessionRequest.d.ts +16 -0
- package/dist/models/StartTerminalSessionRequest.js +29 -1
- package/dist/models/StartTerminalSessionRequest.js.map +1 -1
- package/dist/models/StartTerminalSessionShrinkRequest.d.ts +85 -0
- package/dist/models/StartTerminalSessionShrinkRequest.js +85 -0
- package/dist/models/StartTerminalSessionShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +65 -55
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +21 -3
- package/src/models/CreateLaunchTemplateRequest.ts +29 -0
- package/src/models/CreateLaunchTemplateVersionRequest.ts +29 -0
- package/src/models/DescribeImagesResponseBody.ts +3 -0
- package/src/models/DescribeInstanceAttributeResponseBody.ts +18 -0
- package/src/models/DescribeInstanceHistoryEventsResponseBody.ts +6 -0
- package/src/models/DescribeLaunchTemplateVersionsResponseBody.ts +29 -0
- package/src/models/StartTerminalSessionRequest.ts +35 -0
- package/src/models/StartTerminalSessionShrinkRequest.ts +125 -0
- package/src/models/model.ts +5 -0
|
@@ -482,6 +482,29 @@ export class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets
|
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
+
export class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityOptions extends $dara.Model {
|
|
486
|
+
trustedSystemMode?: string;
|
|
487
|
+
static names(): { [key: string]: string } {
|
|
488
|
+
return {
|
|
489
|
+
trustedSystemMode: 'TrustedSystemMode',
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
static types(): { [key: string]: any } {
|
|
494
|
+
return {
|
|
495
|
+
trustedSystemMode: 'string',
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
validate() {
|
|
500
|
+
super.validate();
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
constructor(map?: { [key: string]: any }) {
|
|
504
|
+
super(map);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
485
508
|
export class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag extends $dara.Model {
|
|
486
509
|
/**
|
|
487
510
|
* @remarks
|
|
@@ -876,6 +899,7 @@ export class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets
|
|
|
876
899
|
* > `SecurityGroupId` and `SecurityGroupIds` are mutually exclusive in the response.
|
|
877
900
|
*/
|
|
878
901
|
securityGroupIds?: DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds;
|
|
902
|
+
securityOptions?: DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityOptions;
|
|
879
903
|
/**
|
|
880
904
|
* @remarks
|
|
881
905
|
* The protection period of the spot instance. Unit: hours. Valid values:
|
|
@@ -987,6 +1011,7 @@ export class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets
|
|
|
987
1011
|
securityEnhancementStrategy: 'SecurityEnhancementStrategy',
|
|
988
1012
|
securityGroupId: 'SecurityGroupId',
|
|
989
1013
|
securityGroupIds: 'SecurityGroupIds',
|
|
1014
|
+
securityOptions: 'SecurityOptions',
|
|
990
1015
|
spotDuration: 'SpotDuration',
|
|
991
1016
|
spotPriceLimit: 'SpotPriceLimit',
|
|
992
1017
|
spotStrategy: 'SpotStrategy',
|
|
@@ -1037,6 +1062,7 @@ export class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets
|
|
|
1037
1062
|
securityEnhancementStrategy: 'string',
|
|
1038
1063
|
securityGroupId: 'string',
|
|
1039
1064
|
securityGroupIds: DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds,
|
|
1065
|
+
securityOptions: DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityOptions,
|
|
1040
1066
|
spotDuration: 'number',
|
|
1041
1067
|
spotPriceLimit: 'number',
|
|
1042
1068
|
spotStrategy: 'string',
|
|
@@ -1064,6 +1090,9 @@ export class DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSets
|
|
|
1064
1090
|
if(this.securityGroupIds && typeof (this.securityGroupIds as any).validate === 'function') {
|
|
1065
1091
|
(this.securityGroupIds as any).validate();
|
|
1066
1092
|
}
|
|
1093
|
+
if(this.securityOptions && typeof (this.securityOptions as any).validate === 'function') {
|
|
1094
|
+
(this.securityOptions as any).validate();
|
|
1095
|
+
}
|
|
1067
1096
|
if(this.tags && typeof (this.tags as any).validate === 'function') {
|
|
1068
1097
|
(this.tags as any).validate();
|
|
1069
1098
|
}
|
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class StartTerminalSessionRequestEncryptionOptions extends $dara.Model {
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
KMSKeyId?: string;
|
|
8
|
+
mode?: string;
|
|
9
|
+
static names(): { [key: string]: string } {
|
|
10
|
+
return {
|
|
11
|
+
enabled: 'Enabled',
|
|
12
|
+
KMSKeyId: 'KMSKeyId',
|
|
13
|
+
mode: 'Mode',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
enabled: 'boolean',
|
|
20
|
+
KMSKeyId: 'string',
|
|
21
|
+
mode: 'string',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
validate() {
|
|
26
|
+
super.validate();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
constructor(map?: { [key: string]: any }) {
|
|
30
|
+
super(map);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
5
34
|
export class StartTerminalSessionRequest extends $dara.Model {
|
|
6
35
|
/**
|
|
7
36
|
* @remarks
|
|
@@ -24,6 +53,7 @@ export class StartTerminalSessionRequest extends $dara.Model {
|
|
|
24
53
|
* Intranet
|
|
25
54
|
*/
|
|
26
55
|
connectionType?: string;
|
|
56
|
+
encryptionOptions?: StartTerminalSessionRequestEncryptionOptions;
|
|
27
57
|
/**
|
|
28
58
|
* @remarks
|
|
29
59
|
* The instance IDs.
|
|
@@ -78,6 +108,7 @@ export class StartTerminalSessionRequest extends $dara.Model {
|
|
|
78
108
|
return {
|
|
79
109
|
commandLine: 'CommandLine',
|
|
80
110
|
connectionType: 'ConnectionType',
|
|
111
|
+
encryptionOptions: 'EncryptionOptions',
|
|
81
112
|
instanceId: 'InstanceId',
|
|
82
113
|
ownerAccount: 'OwnerAccount',
|
|
83
114
|
ownerId: 'OwnerId',
|
|
@@ -95,6 +126,7 @@ export class StartTerminalSessionRequest extends $dara.Model {
|
|
|
95
126
|
return {
|
|
96
127
|
commandLine: 'string',
|
|
97
128
|
connectionType: 'string',
|
|
129
|
+
encryptionOptions: StartTerminalSessionRequestEncryptionOptions,
|
|
98
130
|
instanceId: { 'type': 'array', 'itemType': 'string' },
|
|
99
131
|
ownerAccount: 'string',
|
|
100
132
|
ownerId: 'number',
|
|
@@ -109,6 +141,9 @@ export class StartTerminalSessionRequest extends $dara.Model {
|
|
|
109
141
|
}
|
|
110
142
|
|
|
111
143
|
validate() {
|
|
144
|
+
if(this.encryptionOptions && typeof (this.encryptionOptions as any).validate === 'function') {
|
|
145
|
+
(this.encryptionOptions as any).validate();
|
|
146
|
+
}
|
|
112
147
|
if(Array.isArray(this.instanceId)) {
|
|
113
148
|
$dara.Model.validateArray(this.instanceId);
|
|
114
149
|
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class StartTerminalSessionShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The command to run after the session is initiated. The command length cannot exceed 512 characters.
|
|
9
|
+
*
|
|
10
|
+
* > If you specify the `CommandLine` parameter, you cannot specify the `PortNumber` or `TargetServer` parameter.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ssh root@192.168.0.246
|
|
14
|
+
*/
|
|
15
|
+
commandLine?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The network type of the WebSocket URL required to connect to the instance. Valid values:
|
|
19
|
+
*
|
|
20
|
+
* * Internet (default)
|
|
21
|
+
* * Intranet
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* Intranet
|
|
25
|
+
*/
|
|
26
|
+
connectionType?: string;
|
|
27
|
+
encryptionOptionsShrink?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @remarks
|
|
30
|
+
* The instance IDs.
|
|
31
|
+
*
|
|
32
|
+
* This parameter is required.
|
|
33
|
+
*/
|
|
34
|
+
instanceId?: string[];
|
|
35
|
+
ownerAccount?: string;
|
|
36
|
+
ownerId?: number;
|
|
37
|
+
passwordName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The port number of the ECS instance. The port is used to forward data. After this parameter is configured, Cloud Assistant Agent forwards data to the specified port. For example, you can set this parameter to 22 for data forwarding over SSH.
|
|
41
|
+
*
|
|
42
|
+
* This parameter is empty by default, which indicates that no port is configured to forward data.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* 22
|
|
46
|
+
*/
|
|
47
|
+
portNumber?: number;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) operation to query the most recent region list.
|
|
51
|
+
*
|
|
52
|
+
* This parameter is required.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* cn-hangzhou
|
|
56
|
+
*/
|
|
57
|
+
regionId?: string;
|
|
58
|
+
resourceOwnerAccount?: string;
|
|
59
|
+
resourceOwnerId?: number;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* The IP address of the instance. You can use the IP address to access the destination service in a virtual private cloud (VPC).
|
|
63
|
+
*
|
|
64
|
+
* > If this parameter is not empty, `PortNumber` specifies the port number that is used by the managed instance to access the destination service in the VPC.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 192.168.0.246
|
|
68
|
+
*/
|
|
69
|
+
targetServer?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The username used for connection establishment.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* testUser
|
|
76
|
+
*/
|
|
77
|
+
username?: string;
|
|
78
|
+
static names(): { [key: string]: string } {
|
|
79
|
+
return {
|
|
80
|
+
commandLine: 'CommandLine',
|
|
81
|
+
connectionType: 'ConnectionType',
|
|
82
|
+
encryptionOptionsShrink: 'EncryptionOptions',
|
|
83
|
+
instanceId: 'InstanceId',
|
|
84
|
+
ownerAccount: 'OwnerAccount',
|
|
85
|
+
ownerId: 'OwnerId',
|
|
86
|
+
passwordName: 'PasswordName',
|
|
87
|
+
portNumber: 'PortNumber',
|
|
88
|
+
regionId: 'RegionId',
|
|
89
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
90
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
91
|
+
targetServer: 'TargetServer',
|
|
92
|
+
username: 'Username',
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
static types(): { [key: string]: any } {
|
|
97
|
+
return {
|
|
98
|
+
commandLine: 'string',
|
|
99
|
+
connectionType: 'string',
|
|
100
|
+
encryptionOptionsShrink: 'string',
|
|
101
|
+
instanceId: { 'type': 'array', 'itemType': 'string' },
|
|
102
|
+
ownerAccount: 'string',
|
|
103
|
+
ownerId: 'number',
|
|
104
|
+
passwordName: 'string',
|
|
105
|
+
portNumber: 'number',
|
|
106
|
+
regionId: 'string',
|
|
107
|
+
resourceOwnerAccount: 'string',
|
|
108
|
+
resourceOwnerId: 'number',
|
|
109
|
+
targetServer: 'string',
|
|
110
|
+
username: 'string',
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
validate() {
|
|
115
|
+
if(Array.isArray(this.instanceId)) {
|
|
116
|
+
$dara.Model.validateArray(this.instanceId);
|
|
117
|
+
}
|
|
118
|
+
super.validate();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
constructor(map?: { [key: string]: any }) {
|
|
122
|
+
super(map);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -83,12 +83,14 @@ export { CreateLaunchTemplateRequestSystemDisk } from './CreateLaunchTemplateReq
|
|
|
83
83
|
export { CreateLaunchTemplateRequestDataDisk } from './CreateLaunchTemplateRequest';
|
|
84
84
|
export { CreateLaunchTemplateRequestImageOptions } from './CreateLaunchTemplateRequest';
|
|
85
85
|
export { CreateLaunchTemplateRequestNetworkInterface } from './CreateLaunchTemplateRequest';
|
|
86
|
+
export { CreateLaunchTemplateRequestSecurityOptions } from './CreateLaunchTemplateRequest';
|
|
86
87
|
export { CreateLaunchTemplateRequestTag } from './CreateLaunchTemplateRequest';
|
|
87
88
|
export { CreateLaunchTemplateRequestTemplateTag } from './CreateLaunchTemplateRequest';
|
|
88
89
|
export { CreateLaunchTemplateVersionRequestSystemDisk } from './CreateLaunchTemplateVersionRequest';
|
|
89
90
|
export { CreateLaunchTemplateVersionRequestDataDisk } from './CreateLaunchTemplateVersionRequest';
|
|
90
91
|
export { CreateLaunchTemplateVersionRequestImageOptions } from './CreateLaunchTemplateVersionRequest';
|
|
91
92
|
export { CreateLaunchTemplateVersionRequestNetworkInterface } from './CreateLaunchTemplateVersionRequest';
|
|
93
|
+
export { CreateLaunchTemplateVersionRequestSecurityOptions } from './CreateLaunchTemplateVersionRequest';
|
|
92
94
|
export { CreateLaunchTemplateVersionRequestTag } from './CreateLaunchTemplateVersionRequest';
|
|
93
95
|
export { CreateNatGatewayRequestBandwidthPackage } from './CreateNatGatewayRequest';
|
|
94
96
|
export { CreateNatGatewayResponseBodyBandwidthPackageIds } from './CreateNatGatewayResponseBody';
|
|
@@ -514,6 +516,7 @@ export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaun
|
|
|
514
516
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
515
517
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfaces } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
516
518
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
519
|
+
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityOptions } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
517
520
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
518
521
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTags } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
519
522
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
@@ -865,6 +868,7 @@ export { StartImagePipelineExecutionRequestTag } from './StartImagePipelineExecu
|
|
|
865
868
|
export { StartImagePipelineExecutionRequestTemplateTag } from './StartImagePipelineExecutionRequest';
|
|
866
869
|
export { StartInstancesResponseBodyInstanceResponsesInstanceResponse } from './StartInstancesResponseBody';
|
|
867
870
|
export { StartInstancesResponseBodyInstanceResponses } from './StartInstancesResponseBody';
|
|
871
|
+
export { StartTerminalSessionRequestEncryptionOptions } from './StartTerminalSessionRequest';
|
|
868
872
|
export { StopInstancesResponseBodyInstanceResponsesInstanceResponse } from './StopInstancesResponseBody';
|
|
869
873
|
export { StopInstancesResponseBodyInstanceResponses } from './StopInstancesResponseBody';
|
|
870
874
|
export { TagResourcesRequestTag } from './TagResourcesRequest';
|
|
@@ -1930,6 +1934,7 @@ export { StartInstancesRequest } from './StartInstancesRequest';
|
|
|
1930
1934
|
export { StartInstancesResponseBody } from './StartInstancesResponseBody';
|
|
1931
1935
|
export { StartInstancesResponse } from './StartInstancesResponse';
|
|
1932
1936
|
export { StartTerminalSessionRequest } from './StartTerminalSessionRequest';
|
|
1937
|
+
export { StartTerminalSessionShrinkRequest } from './StartTerminalSessionShrinkRequest';
|
|
1933
1938
|
export { StartTerminalSessionResponseBody } from './StartTerminalSessionResponseBody';
|
|
1934
1939
|
export { StartTerminalSessionResponse } from './StartTerminalSessionResponse';
|
|
1935
1940
|
export { StopInstanceRequest } from './StopInstanceRequest';
|