@alicloud/ecs20140526 7.2.0 → 7.2.2
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 +14 -14
- package/dist/client.js +32 -15
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupRequest.d.ts +15 -0
- package/dist/models/CreateAutoProvisioningGroupRequest.js +27 -1
- package/dist/models/CreateAutoProvisioningGroupRequest.js.map +1 -1
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.d.ts +15 -0
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.js +27 -1
- package/dist/models/CreateAutoProvisioningGroupShrinkRequest.js.map +1 -1
- package/dist/models/CreateInstanceRequest.d.ts +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/DescribeDisksResponseBody.d.ts +2 -0
- package/dist/models/DescribeDisksResponseBody.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/DescribeManagedInstancesRequest.d.ts +1 -0
- package/dist/models/DescribeManagedInstancesRequest.js +2 -0
- package/dist/models/DescribeManagedInstancesRequest.js.map +1 -1
- package/dist/models/ResizeDiskRequest.d.ts +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 +7 -0
- package/dist/models/model.js +93 -79
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +37 -15
- package/src/models/CreateAutoProvisioningGroupRequest.ts +32 -0
- package/src/models/CreateAutoProvisioningGroupShrinkRequest.ts +32 -0
- package/src/models/CreateInstanceRequest.ts +1 -1
- package/src/models/CreateLaunchTemplateRequest.ts +29 -0
- package/src/models/CreateLaunchTemplateVersionRequest.ts +29 -0
- package/src/models/DescribeDisksResponseBody.ts +2 -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/DescribeManagedInstancesRequest.ts +3 -0
- package/src/models/ResizeDiskRequest.ts +1 -1
- package/src/models/StartTerminalSessionRequest.ts +35 -0
- package/src/models/StartTerminalSessionShrinkRequest.ts +125 -0
- package/src/models/model.ts +7 -0
|
@@ -587,6 +587,29 @@ export class CreateLaunchTemplateRequestNetworkInterface extends $dara.Model {
|
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
+
export class CreateLaunchTemplateRequestSecurityOptions extends $dara.Model {
|
|
591
|
+
trustedSystemMode?: string;
|
|
592
|
+
static names(): { [key: string]: string } {
|
|
593
|
+
return {
|
|
594
|
+
trustedSystemMode: 'TrustedSystemMode',
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
static types(): { [key: string]: any } {
|
|
599
|
+
return {
|
|
600
|
+
trustedSystemMode: 'string',
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
validate() {
|
|
605
|
+
super.validate();
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
constructor(map?: { [key: string]: any }) {
|
|
609
|
+
super(map);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
590
613
|
export class CreateLaunchTemplateRequestTag extends $dara.Model {
|
|
591
614
|
/**
|
|
592
615
|
* @remarks
|
|
@@ -1057,6 +1080,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1057
1080
|
* sg-bp15ed6xe1yxeycg7****
|
|
1058
1081
|
*/
|
|
1059
1082
|
securityGroupIds?: string[];
|
|
1083
|
+
securityOptions?: CreateLaunchTemplateRequestSecurityOptions;
|
|
1060
1084
|
/**
|
|
1061
1085
|
* @remarks
|
|
1062
1086
|
* The protection period of the spot instance. Unit: hours. Default value: 1. Valid values:
|
|
@@ -1201,6 +1225,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1201
1225
|
securityEnhancementStrategy: 'SecurityEnhancementStrategy',
|
|
1202
1226
|
securityGroupId: 'SecurityGroupId',
|
|
1203
1227
|
securityGroupIds: 'SecurityGroupIds',
|
|
1228
|
+
securityOptions: 'SecurityOptions',
|
|
1204
1229
|
spotDuration: 'SpotDuration',
|
|
1205
1230
|
spotPriceLimit: 'SpotPriceLimit',
|
|
1206
1231
|
spotStrategy: 'SpotStrategy',
|
|
@@ -1260,6 +1285,7 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1260
1285
|
securityEnhancementStrategy: 'string',
|
|
1261
1286
|
securityGroupId: 'string',
|
|
1262
1287
|
securityGroupIds: { 'type': 'array', 'itemType': 'string' },
|
|
1288
|
+
securityOptions: CreateLaunchTemplateRequestSecurityOptions,
|
|
1263
1289
|
spotDuration: 'number',
|
|
1264
1290
|
spotPriceLimit: 'number',
|
|
1265
1291
|
spotStrategy: 'string',
|
|
@@ -1290,6 +1316,9 @@ export class CreateLaunchTemplateRequest extends $dara.Model {
|
|
|
1290
1316
|
if(Array.isArray(this.securityGroupIds)) {
|
|
1291
1317
|
$dara.Model.validateArray(this.securityGroupIds);
|
|
1292
1318
|
}
|
|
1319
|
+
if(this.securityOptions && typeof (this.securityOptions as any).validate === 'function') {
|
|
1320
|
+
(this.securityOptions as any).validate();
|
|
1321
|
+
}
|
|
1293
1322
|
if(Array.isArray(this.tag)) {
|
|
1294
1323
|
$dara.Model.validateArray(this.tag);
|
|
1295
1324
|
}
|
|
@@ -553,6 +553,29 @@ export class CreateLaunchTemplateVersionRequestNetworkInterface extends $dara.Mo
|
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
|
|
556
|
+
export class CreateLaunchTemplateVersionRequestSecurityOptions extends $dara.Model {
|
|
557
|
+
trustedSystemMode?: string;
|
|
558
|
+
static names(): { [key: string]: string } {
|
|
559
|
+
return {
|
|
560
|
+
trustedSystemMode: 'TrustedSystemMode',
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
static types(): { [key: string]: any } {
|
|
565
|
+
return {
|
|
566
|
+
trustedSystemMode: 'string',
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
validate() {
|
|
571
|
+
super.validate();
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
constructor(map?: { [key: string]: any }) {
|
|
575
|
+
super(map);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
556
579
|
export class CreateLaunchTemplateVersionRequestTag extends $dara.Model {
|
|
557
580
|
/**
|
|
558
581
|
* @remarks
|
|
@@ -987,6 +1010,7 @@ export class CreateLaunchTemplateVersionRequest extends $dara.Model {
|
|
|
987
1010
|
* sg-bp15ed6xe1yxeycg7****
|
|
988
1011
|
*/
|
|
989
1012
|
securityGroupIds?: string[];
|
|
1013
|
+
securityOptions?: CreateLaunchTemplateVersionRequestSecurityOptions;
|
|
990
1014
|
/**
|
|
991
1015
|
* @remarks
|
|
992
1016
|
* The protection period of the spot instance. Unit: hours. Default value: 1. Valid values:
|
|
@@ -1113,6 +1137,7 @@ export class CreateLaunchTemplateVersionRequest extends $dara.Model {
|
|
|
1113
1137
|
securityEnhancementStrategy: 'SecurityEnhancementStrategy',
|
|
1114
1138
|
securityGroupId: 'SecurityGroupId',
|
|
1115
1139
|
securityGroupIds: 'SecurityGroupIds',
|
|
1140
|
+
securityOptions: 'SecurityOptions',
|
|
1116
1141
|
spotDuration: 'SpotDuration',
|
|
1117
1142
|
spotPriceLimit: 'SpotPriceLimit',
|
|
1118
1143
|
spotStrategy: 'SpotStrategy',
|
|
@@ -1171,6 +1196,7 @@ export class CreateLaunchTemplateVersionRequest extends $dara.Model {
|
|
|
1171
1196
|
securityEnhancementStrategy: 'string',
|
|
1172
1197
|
securityGroupId: 'string',
|
|
1173
1198
|
securityGroupIds: { 'type': 'array', 'itemType': 'string' },
|
|
1199
|
+
securityOptions: CreateLaunchTemplateVersionRequestSecurityOptions,
|
|
1174
1200
|
spotDuration: 'number',
|
|
1175
1201
|
spotPriceLimit: 'number',
|
|
1176
1202
|
spotStrategy: 'string',
|
|
@@ -1199,6 +1225,9 @@ export class CreateLaunchTemplateVersionRequest extends $dara.Model {
|
|
|
1199
1225
|
if(Array.isArray(this.securityGroupIds)) {
|
|
1200
1226
|
$dara.Model.validateArray(this.securityGroupIds);
|
|
1201
1227
|
}
|
|
1228
|
+
if(this.securityOptions && typeof (this.securityOptions as any).validate === 'function') {
|
|
1229
|
+
(this.securityOptions as any).validate();
|
|
1230
|
+
}
|
|
1202
1231
|
if(Array.isArray(this.tag)) {
|
|
1203
1232
|
$dara.Model.validateArray(this.tag);
|
|
1204
1233
|
}
|
|
@@ -947,6 +947,8 @@ export class DescribeDisksResponseBody extends $dara.Model {
|
|
|
947
947
|
* @remarks
|
|
948
948
|
* The total number of entries returned.
|
|
949
949
|
*
|
|
950
|
+
* > For paginated queries using MaxResults and NextToken, the TotalCount value in the response is invalid and should be ignored.
|
|
951
|
+
*
|
|
950
952
|
* @example
|
|
951
953
|
* 15
|
|
952
954
|
*/
|
|
@@ -586,6 +586,7 @@ export class DescribeImagesResponseBodyImagesImage extends $dara.Model {
|
|
|
586
586
|
* true
|
|
587
587
|
*/
|
|
588
588
|
isSupportIoOptimized?: boolean;
|
|
589
|
+
licenseType?: string;
|
|
589
590
|
/**
|
|
590
591
|
* @remarks
|
|
591
592
|
* Indicates whether the image supports logons of non-root users. Valid values:
|
|
@@ -724,6 +725,7 @@ export class DescribeImagesResponseBodyImagesImage extends $dara.Model {
|
|
|
724
725
|
isSubscribed: 'IsSubscribed',
|
|
725
726
|
isSupportCloudinit: 'IsSupportCloudinit',
|
|
726
727
|
isSupportIoOptimized: 'IsSupportIoOptimized',
|
|
728
|
+
licenseType: 'LicenseType',
|
|
727
729
|
loginAsNonRootSupported: 'LoginAsNonRootSupported',
|
|
728
730
|
OSName: 'OSName',
|
|
729
731
|
OSNameEn: 'OSNameEn',
|
|
@@ -761,6 +763,7 @@ export class DescribeImagesResponseBodyImagesImage extends $dara.Model {
|
|
|
761
763
|
isSubscribed: 'boolean',
|
|
762
764
|
isSupportCloudinit: 'boolean',
|
|
763
765
|
isSupportIoOptimized: 'boolean',
|
|
766
|
+
licenseType: 'string',
|
|
764
767
|
loginAsNonRootSupported: 'boolean',
|
|
765
768
|
OSName: 'string',
|
|
766
769
|
OSNameEn: 'string',
|
|
@@ -135,7 +135,15 @@ export class DescribeInstanceAttributeResponseBodyInnerIpAddress extends $dara.M
|
|
|
135
135
|
|
|
136
136
|
export class DescribeInstanceAttributeResponseBodyNetworkOptions extends $dara.Model {
|
|
137
137
|
bandwidthWeighting?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @example
|
|
140
|
+
* false
|
|
141
|
+
*/
|
|
138
142
|
enableJumboFrame?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* @example
|
|
145
|
+
* False
|
|
146
|
+
*/
|
|
139
147
|
enableNetworkEncryption?: boolean;
|
|
140
148
|
static names(): { [key: string]: string } {
|
|
141
149
|
return {
|
|
@@ -431,6 +439,10 @@ export class DescribeInstanceAttributeResponseBody extends $dara.Model {
|
|
|
431
439
|
* false
|
|
432
440
|
*/
|
|
433
441
|
enableJumboFrame?: boolean;
|
|
442
|
+
/**
|
|
443
|
+
* @example
|
|
444
|
+
* True
|
|
445
|
+
*/
|
|
434
446
|
enableNetworkEncryption?: boolean;
|
|
435
447
|
/**
|
|
436
448
|
* @remarks
|
|
@@ -555,6 +567,12 @@ export class DescribeInstanceAttributeResponseBody extends $dara.Model {
|
|
|
555
567
|
* 16384
|
|
556
568
|
*/
|
|
557
569
|
memory?: number;
|
|
570
|
+
/**
|
|
571
|
+
* @remarks
|
|
572
|
+
* Details about network options.
|
|
573
|
+
*
|
|
574
|
+
* > This parameter is in invitational preview and is not publicly available.
|
|
575
|
+
*/
|
|
558
576
|
networkOptions?: DescribeInstanceAttributeResponseBodyNetworkOptions;
|
|
559
577
|
/**
|
|
560
578
|
* @remarks
|
|
@@ -273,6 +273,8 @@ export class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInst
|
|
|
273
273
|
* The inactive disks that were released and whose data must be cleared.
|
|
274
274
|
*/
|
|
275
275
|
inactiveDisks?: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks;
|
|
276
|
+
metricName?: string;
|
|
277
|
+
metricValue?: string;
|
|
276
278
|
/**
|
|
277
279
|
* @remarks
|
|
278
280
|
* The migration solution of the instance. Valid value: MigrationPlan. Instances can be migrated only by using migration plans.
|
|
@@ -338,6 +340,8 @@ export class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInst
|
|
|
338
340
|
hostId: 'HostId',
|
|
339
341
|
hostType: 'HostType',
|
|
340
342
|
inactiveDisks: 'InactiveDisks',
|
|
343
|
+
metricName: 'MetricName',
|
|
344
|
+
metricValue: 'MetricValue',
|
|
341
345
|
migrationOptions: 'MigrationOptions',
|
|
342
346
|
onlineRepairPolicy: 'OnlineRepairPolicy',
|
|
343
347
|
punishDomain: 'PunishDomain',
|
|
@@ -357,6 +361,8 @@ export class DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInst
|
|
|
357
361
|
hostId: 'string',
|
|
358
362
|
hostType: 'string',
|
|
359
363
|
inactiveDisks: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeInactiveDisks,
|
|
364
|
+
metricName: 'string',
|
|
365
|
+
metricValue: 'string',
|
|
360
366
|
migrationOptions: DescribeInstanceHistoryEventsResponseBodyInstanceSystemEventSetInstanceSystemEventTypeExtendedAttributeMigrationOptions,
|
|
361
367
|
onlineRepairPolicy: 'string',
|
|
362
368
|
punishDomain: 'string',
|
|
@@ -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
|
}
|
|
@@ -81,6 +81,7 @@ export class DescribeManagedInstancesRequest extends $dara.Model {
|
|
|
81
81
|
* my-webapp-server
|
|
82
82
|
*/
|
|
83
83
|
instanceName?: string;
|
|
84
|
+
machineId?: string;
|
|
84
85
|
/**
|
|
85
86
|
* @remarks
|
|
86
87
|
* The maximum number of entries per page.
|
|
@@ -164,6 +165,7 @@ export class DescribeManagedInstancesRequest extends $dara.Model {
|
|
|
164
165
|
instanceId: 'InstanceId',
|
|
165
166
|
instanceIp: 'InstanceIp',
|
|
166
167
|
instanceName: 'InstanceName',
|
|
168
|
+
machineId: 'MachineId',
|
|
167
169
|
maxResults: 'MaxResults',
|
|
168
170
|
nextToken: 'NextToken',
|
|
169
171
|
osType: 'OsType',
|
|
@@ -185,6 +187,7 @@ export class DescribeManagedInstancesRequest extends $dara.Model {
|
|
|
185
187
|
instanceId: { 'type': 'array', 'itemType': 'string' },
|
|
186
188
|
instanceIp: 'string',
|
|
187
189
|
instanceName: 'string',
|
|
190
|
+
machineId: 'string',
|
|
188
191
|
maxResults: 'number',
|
|
189
192
|
nextToken: 'string',
|
|
190
193
|
osType: 'string',
|
|
@@ -77,7 +77,7 @@ export class ResizeDiskRequest extends $dara.Model {
|
|
|
77
77
|
resourceOwnerId?: number;
|
|
78
78
|
/**
|
|
79
79
|
* @remarks
|
|
80
|
-
* The method that you want to use to resize the disk. Valid values:
|
|
80
|
+
* The method that you want to use to resize the disk. Specifies whether to check the image used by the instance supports hot migration. Valid values:
|
|
81
81
|
*
|
|
82
82
|
* * offline (default): resizes the disk offline. After you resize a disk offline, you must [restart the associated instance](https://help.aliyun.com/document_detail/25440.html) in the ECS console or by calling the [RebootInstance](https://help.aliyun.com/document_detail/25502.html) operation for the resizing operation to take effect.
|
|
83
83
|
* * online: resizes the disk online. After you resize a disk online, the resizing operation immediately takes effect. You do not need to restart the associated instance. You can resize ultra disks, standard SSDs, ESSDs, and elastic ephemeral disks online.
|
|
@@ -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
|
@@ -22,6 +22,7 @@ export { CreateAutoProvisioningGroupRequestLaunchConfigurationArn } from './Crea
|
|
|
22
22
|
export { CreateAutoProvisioningGroupRequestLaunchConfigurationDataDisk } from './CreateAutoProvisioningGroupRequest';
|
|
23
23
|
export { CreateAutoProvisioningGroupRequestLaunchConfigurationSystemDisk } from './CreateAutoProvisioningGroupRequest';
|
|
24
24
|
export { CreateAutoProvisioningGroupRequestLaunchConfigurationTag } from './CreateAutoProvisioningGroupRequest';
|
|
25
|
+
export { CreateAutoProvisioningGroupRequestLaunchConfigurationCpuOptions } from './CreateAutoProvisioningGroupRequest';
|
|
25
26
|
export { CreateAutoProvisioningGroupRequestLaunchConfigurationImageOptions } from './CreateAutoProvisioningGroupRequest';
|
|
26
27
|
export { CreateAutoProvisioningGroupRequestLaunchConfigurationSchedulerOptions } from './CreateAutoProvisioningGroupRequest';
|
|
27
28
|
export { CreateAutoProvisioningGroupRequestLaunchConfiguration } from './CreateAutoProvisioningGroupRequest';
|
|
@@ -36,6 +37,7 @@ export { CreateAutoProvisioningGroupShrinkRequestLaunchConfigurationArn } from '
|
|
|
36
37
|
export { CreateAutoProvisioningGroupShrinkRequestLaunchConfigurationDataDisk } from './CreateAutoProvisioningGroupShrinkRequest';
|
|
37
38
|
export { CreateAutoProvisioningGroupShrinkRequestLaunchConfigurationSystemDisk } from './CreateAutoProvisioningGroupShrinkRequest';
|
|
38
39
|
export { CreateAutoProvisioningGroupShrinkRequestLaunchConfigurationTag } from './CreateAutoProvisioningGroupShrinkRequest';
|
|
40
|
+
export { CreateAutoProvisioningGroupShrinkRequestLaunchConfigurationCpuOptions } from './CreateAutoProvisioningGroupShrinkRequest';
|
|
39
41
|
export { CreateAutoProvisioningGroupShrinkRequestLaunchConfigurationImageOptions } from './CreateAutoProvisioningGroupShrinkRequest';
|
|
40
42
|
export { CreateAutoProvisioningGroupShrinkRequestLaunchConfigurationSchedulerOptions } from './CreateAutoProvisioningGroupShrinkRequest';
|
|
41
43
|
export { CreateAutoProvisioningGroupShrinkRequestLaunchConfiguration } from './CreateAutoProvisioningGroupShrinkRequest';
|
|
@@ -83,12 +85,14 @@ export { CreateLaunchTemplateRequestSystemDisk } from './CreateLaunchTemplateReq
|
|
|
83
85
|
export { CreateLaunchTemplateRequestDataDisk } from './CreateLaunchTemplateRequest';
|
|
84
86
|
export { CreateLaunchTemplateRequestImageOptions } from './CreateLaunchTemplateRequest';
|
|
85
87
|
export { CreateLaunchTemplateRequestNetworkInterface } from './CreateLaunchTemplateRequest';
|
|
88
|
+
export { CreateLaunchTemplateRequestSecurityOptions } from './CreateLaunchTemplateRequest';
|
|
86
89
|
export { CreateLaunchTemplateRequestTag } from './CreateLaunchTemplateRequest';
|
|
87
90
|
export { CreateLaunchTemplateRequestTemplateTag } from './CreateLaunchTemplateRequest';
|
|
88
91
|
export { CreateLaunchTemplateVersionRequestSystemDisk } from './CreateLaunchTemplateVersionRequest';
|
|
89
92
|
export { CreateLaunchTemplateVersionRequestDataDisk } from './CreateLaunchTemplateVersionRequest';
|
|
90
93
|
export { CreateLaunchTemplateVersionRequestImageOptions } from './CreateLaunchTemplateVersionRequest';
|
|
91
94
|
export { CreateLaunchTemplateVersionRequestNetworkInterface } from './CreateLaunchTemplateVersionRequest';
|
|
95
|
+
export { CreateLaunchTemplateVersionRequestSecurityOptions } from './CreateLaunchTemplateVersionRequest';
|
|
92
96
|
export { CreateLaunchTemplateVersionRequestTag } from './CreateLaunchTemplateVersionRequest';
|
|
93
97
|
export { CreateNatGatewayRequestBandwidthPackage } from './CreateNatGatewayRequest';
|
|
94
98
|
export { CreateNatGatewayResponseBodyBandwidthPackageIds } from './CreateNatGatewayResponseBody';
|
|
@@ -514,6 +518,7 @@ export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaun
|
|
|
514
518
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfacesNetworkInterface } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
515
519
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataNetworkInterfaces } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
516
520
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityGroupIds } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
521
|
+
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataSecurityOptions } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
517
522
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTagsInstanceTag } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
518
523
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateDataTags } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
519
524
|
export { DescribeLaunchTemplateVersionsResponseBodyLaunchTemplateVersionSetsLaunchTemplateVersionSetLaunchTemplateData } from './DescribeLaunchTemplateVersionsResponseBody';
|
|
@@ -865,6 +870,7 @@ export { StartImagePipelineExecutionRequestTag } from './StartImagePipelineExecu
|
|
|
865
870
|
export { StartImagePipelineExecutionRequestTemplateTag } from './StartImagePipelineExecutionRequest';
|
|
866
871
|
export { StartInstancesResponseBodyInstanceResponsesInstanceResponse } from './StartInstancesResponseBody';
|
|
867
872
|
export { StartInstancesResponseBodyInstanceResponses } from './StartInstancesResponseBody';
|
|
873
|
+
export { StartTerminalSessionRequestEncryptionOptions } from './StartTerminalSessionRequest';
|
|
868
874
|
export { StopInstancesResponseBodyInstanceResponsesInstanceResponse } from './StopInstancesResponseBody';
|
|
869
875
|
export { StopInstancesResponseBodyInstanceResponses } from './StopInstancesResponseBody';
|
|
870
876
|
export { TagResourcesRequestTag } from './TagResourcesRequest';
|
|
@@ -1930,6 +1936,7 @@ export { StartInstancesRequest } from './StartInstancesRequest';
|
|
|
1930
1936
|
export { StartInstancesResponseBody } from './StartInstancesResponseBody';
|
|
1931
1937
|
export { StartInstancesResponse } from './StartInstancesResponse';
|
|
1932
1938
|
export { StartTerminalSessionRequest } from './StartTerminalSessionRequest';
|
|
1939
|
+
export { StartTerminalSessionShrinkRequest } from './StartTerminalSessionShrinkRequest';
|
|
1933
1940
|
export { StartTerminalSessionResponseBody } from './StartTerminalSessionResponseBody';
|
|
1934
1941
|
export { StartTerminalSessionResponse } from './StartTerminalSessionResponse';
|
|
1935
1942
|
export { StopInstanceRequest } from './StopInstanceRequest';
|