@alicloud/pai-dsw20220101 1.1.41 → 1.1.43
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 +104 -0
- package/dist/client.js +178 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +234 -0
package/dist/client.d.ts
CHANGED
|
@@ -19,6 +19,41 @@ export declare class DemoCategory extends $tea.Model {
|
|
|
19
19
|
[key: string]: any;
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
+
export declare class ForwardInfo extends $tea.Model {
|
|
23
|
+
containerName?: string;
|
|
24
|
+
eipAllocationId?: string;
|
|
25
|
+
enable?: boolean;
|
|
26
|
+
natGatewayId?: string;
|
|
27
|
+
port?: string;
|
|
28
|
+
SSHPublicKey?: string;
|
|
29
|
+
static names(): {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
static types(): {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
constructor(map?: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export declare class ForwardInfoResponse extends $tea.Model {
|
|
40
|
+
connectInfo?: ForwardInfoResponseConnectInfo;
|
|
41
|
+
containerName?: string;
|
|
42
|
+
eipAllocationId?: string;
|
|
43
|
+
enable?: boolean;
|
|
44
|
+
natGatewayId?: string;
|
|
45
|
+
port?: string;
|
|
46
|
+
SSHPublicKey?: string;
|
|
47
|
+
static names(): {
|
|
48
|
+
[key: string]: string;
|
|
49
|
+
};
|
|
50
|
+
static types(): {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
};
|
|
53
|
+
constructor(map?: {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
22
57
|
export declare class CreateIdleInstanceCullerRequest extends $tea.Model {
|
|
23
58
|
cpuPercentThreshold?: number;
|
|
24
59
|
gpuPercentThreshold?: number;
|
|
@@ -69,6 +104,7 @@ export declare class CreateInstanceRequest extends $tea.Model {
|
|
|
69
104
|
accessibility?: string;
|
|
70
105
|
cloudDisks?: CreateInstanceRequestCloudDisks[];
|
|
71
106
|
datasets?: CreateInstanceRequestDatasets[];
|
|
107
|
+
driver?: string;
|
|
72
108
|
ecsSpec?: string;
|
|
73
109
|
environmentVariables?: {
|
|
74
110
|
[key: string]: string;
|
|
@@ -174,8 +210,10 @@ export declare class CreateInstanceShutdownTimerResponse extends $tea.Model {
|
|
|
174
210
|
});
|
|
175
211
|
}
|
|
176
212
|
export declare class CreateInstanceSnapshotRequest extends $tea.Model {
|
|
213
|
+
excludePaths?: string[];
|
|
177
214
|
imageUrl?: string;
|
|
178
215
|
labels?: CreateInstanceSnapshotRequestLabels[];
|
|
216
|
+
overwrite?: boolean;
|
|
179
217
|
snapshotDescription?: string;
|
|
180
218
|
snapshotName?: string;
|
|
181
219
|
static names(): {
|
|
@@ -397,6 +435,7 @@ export declare class GetInstanceResponseBody extends $tea.Model {
|
|
|
397
435
|
cloudDisks?: GetInstanceResponseBodyCloudDisks[];
|
|
398
436
|
code?: string;
|
|
399
437
|
datasets?: GetInstanceResponseBodyDatasets[];
|
|
438
|
+
driver?: string;
|
|
400
439
|
ecsSpec?: string;
|
|
401
440
|
environmentVariables?: {
|
|
402
441
|
[key: string]: string;
|
|
@@ -549,12 +588,14 @@ export declare class GetInstanceShutdownTimerResponse extends $tea.Model {
|
|
|
549
588
|
}
|
|
550
589
|
export declare class GetInstanceSnapshotResponseBody extends $tea.Model {
|
|
551
590
|
code?: string;
|
|
591
|
+
excludePaths?: string[];
|
|
552
592
|
gmtCreateTime?: string;
|
|
553
593
|
gmtModifiedTime?: string;
|
|
554
594
|
httpStatusCode?: number;
|
|
555
595
|
imageId?: string;
|
|
556
596
|
imageUrl?: string;
|
|
557
597
|
instanceId?: string;
|
|
598
|
+
labels?: GetInstanceSnapshotResponseBodyLabels[];
|
|
558
599
|
message?: string;
|
|
559
600
|
reasonCode?: string;
|
|
560
601
|
reasonMessage?: string;
|
|
@@ -1058,11 +1099,14 @@ export declare class UpdateInstanceRequest extends $tea.Model {
|
|
|
1058
1099
|
accessibility?: string;
|
|
1059
1100
|
datasets?: UpdateInstanceRequestDatasets[];
|
|
1060
1101
|
disassociateDatasets?: boolean;
|
|
1102
|
+
disassociateDriver?: boolean;
|
|
1061
1103
|
disassociateVpc?: boolean;
|
|
1104
|
+
driver?: string;
|
|
1062
1105
|
ecsSpec?: string;
|
|
1063
1106
|
imageId?: string;
|
|
1064
1107
|
imageUrl?: string;
|
|
1065
1108
|
instanceName?: string;
|
|
1109
|
+
priority?: number;
|
|
1066
1110
|
requestedResource?: UpdateInstanceRequestRequestedResource;
|
|
1067
1111
|
userId?: string;
|
|
1068
1112
|
userVpc?: UpdateInstanceRequestUserVpc;
|
|
@@ -1110,6 +1154,47 @@ export declare class UpdateInstanceResponse extends $tea.Model {
|
|
|
1110
1154
|
[key: string]: any;
|
|
1111
1155
|
});
|
|
1112
1156
|
}
|
|
1157
|
+
export declare class ForwardInfoResponseConnectInfoInternet extends $tea.Model {
|
|
1158
|
+
endpoint?: string;
|
|
1159
|
+
port?: string;
|
|
1160
|
+
static names(): {
|
|
1161
|
+
[key: string]: string;
|
|
1162
|
+
};
|
|
1163
|
+
static types(): {
|
|
1164
|
+
[key: string]: any;
|
|
1165
|
+
};
|
|
1166
|
+
constructor(map?: {
|
|
1167
|
+
[key: string]: any;
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
export declare class ForwardInfoResponseConnectInfoIntranet extends $tea.Model {
|
|
1171
|
+
endpoint?: string;
|
|
1172
|
+
port?: string;
|
|
1173
|
+
static names(): {
|
|
1174
|
+
[key: string]: string;
|
|
1175
|
+
};
|
|
1176
|
+
static types(): {
|
|
1177
|
+
[key: string]: any;
|
|
1178
|
+
};
|
|
1179
|
+
constructor(map?: {
|
|
1180
|
+
[key: string]: any;
|
|
1181
|
+
});
|
|
1182
|
+
}
|
|
1183
|
+
export declare class ForwardInfoResponseConnectInfo extends $tea.Model {
|
|
1184
|
+
internet?: ForwardInfoResponseConnectInfoInternet;
|
|
1185
|
+
intranet?: ForwardInfoResponseConnectInfoIntranet;
|
|
1186
|
+
message?: string;
|
|
1187
|
+
phase?: string;
|
|
1188
|
+
static names(): {
|
|
1189
|
+
[key: string]: string;
|
|
1190
|
+
};
|
|
1191
|
+
static types(): {
|
|
1192
|
+
[key: string]: any;
|
|
1193
|
+
};
|
|
1194
|
+
constructor(map?: {
|
|
1195
|
+
[key: string]: any;
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1113
1198
|
export declare class CreateInstanceRequestCloudDisks extends $tea.Model {
|
|
1114
1199
|
capacity?: string;
|
|
1115
1200
|
mountPath?: string;
|
|
@@ -1170,6 +1255,7 @@ export declare class CreateInstanceRequestRequestedResource extends $tea.Model {
|
|
|
1170
1255
|
export declare class CreateInstanceRequestUserVpc extends $tea.Model {
|
|
1171
1256
|
defaultRoute?: string;
|
|
1172
1257
|
extendedCIDRs?: string[];
|
|
1258
|
+
forwardInfos?: ForwardInfo[];
|
|
1173
1259
|
securityGroupId?: string;
|
|
1174
1260
|
vSwitchId?: string;
|
|
1175
1261
|
vpcId?: string;
|
|
@@ -1328,6 +1414,7 @@ export declare class GetInstanceResponseBodyRequestedResource extends $tea.Model
|
|
|
1328
1414
|
export declare class GetInstanceResponseBodyUserVpc extends $tea.Model {
|
|
1329
1415
|
defaultRoute?: string;
|
|
1330
1416
|
extendedCIDRs?: string[];
|
|
1417
|
+
forwardInfos?: ForwardInfoResponse[];
|
|
1331
1418
|
securityGroupId?: string;
|
|
1332
1419
|
vSwitchId?: string;
|
|
1333
1420
|
vpcId?: string;
|
|
@@ -1367,6 +1454,19 @@ export declare class GetInstanceMetricsResponseBodyPodMetrics extends $tea.Model
|
|
|
1367
1454
|
[key: string]: any;
|
|
1368
1455
|
});
|
|
1369
1456
|
}
|
|
1457
|
+
export declare class GetInstanceSnapshotResponseBodyLabels extends $tea.Model {
|
|
1458
|
+
key?: string;
|
|
1459
|
+
value?: string;
|
|
1460
|
+
static names(): {
|
|
1461
|
+
[key: string]: string;
|
|
1462
|
+
};
|
|
1463
|
+
static types(): {
|
|
1464
|
+
[key: string]: any;
|
|
1465
|
+
};
|
|
1466
|
+
constructor(map?: {
|
|
1467
|
+
[key: string]: any;
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1370
1470
|
export declare class GetLifecycleResponseBodyLifecycle extends $tea.Model {
|
|
1371
1471
|
status?: string;
|
|
1372
1472
|
reasonCode?: string;
|
|
@@ -1455,6 +1555,7 @@ export declare class ListInstanceSnapshotResponseBodySnapshotsLabels extends $te
|
|
|
1455
1555
|
});
|
|
1456
1556
|
}
|
|
1457
1557
|
export declare class ListInstanceSnapshotResponseBodySnapshots extends $tea.Model {
|
|
1558
|
+
excludePaths?: string[];
|
|
1458
1559
|
gmtCreateTime?: string;
|
|
1459
1560
|
gmtModifiedTime?: string;
|
|
1460
1561
|
imageId?: string;
|
|
@@ -1608,6 +1709,7 @@ export declare class ListInstancesResponseBodyInstancesRequestedResource extends
|
|
|
1608
1709
|
export declare class ListInstancesResponseBodyInstancesUserVpc extends $tea.Model {
|
|
1609
1710
|
defaultRoute?: string;
|
|
1610
1711
|
extendedCIDRs?: string[];
|
|
1712
|
+
forwardInfos?: ForwardInfoResponse[];
|
|
1611
1713
|
securityGroupId?: string;
|
|
1612
1714
|
vSwitchId?: string;
|
|
1613
1715
|
vpcId?: string;
|
|
@@ -1627,6 +1729,7 @@ export declare class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
|
1627
1729
|
accumulatedRunningTimeInMs?: number;
|
|
1628
1730
|
cloudDisks?: ListInstancesResponseBodyInstancesCloudDisks[];
|
|
1629
1731
|
datasets?: ListInstancesResponseBodyInstancesDatasets[];
|
|
1732
|
+
driver?: string;
|
|
1630
1733
|
ecsSpec?: string;
|
|
1631
1734
|
environmentVariables?: {
|
|
1632
1735
|
[key: string]: string;
|
|
@@ -1703,6 +1806,7 @@ export declare class UpdateInstanceRequestRequestedResource extends $tea.Model {
|
|
|
1703
1806
|
export declare class UpdateInstanceRequestUserVpc extends $tea.Model {
|
|
1704
1807
|
defaultRoute?: string;
|
|
1705
1808
|
extendedCIDRs?: string[];
|
|
1809
|
+
forwardInfos?: ForwardInfo[];
|
|
1706
1810
|
securityGroupId?: string;
|
|
1707
1811
|
vSwitchId?: string;
|
|
1708
1812
|
vpcId?: string;
|
package/dist/client.js
CHANGED
|
@@ -41,6 +41,60 @@ class DemoCategory extends $tea.Model {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.DemoCategory = DemoCategory;
|
|
44
|
+
class ForwardInfo extends $tea.Model {
|
|
45
|
+
constructor(map) {
|
|
46
|
+
super(map);
|
|
47
|
+
}
|
|
48
|
+
static names() {
|
|
49
|
+
return {
|
|
50
|
+
containerName: 'ContainerName',
|
|
51
|
+
eipAllocationId: 'EipAllocationId',
|
|
52
|
+
enable: 'Enable',
|
|
53
|
+
natGatewayId: 'NatGatewayId',
|
|
54
|
+
port: 'Port',
|
|
55
|
+
SSHPublicKey: 'SSHPublicKey',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static types() {
|
|
59
|
+
return {
|
|
60
|
+
containerName: 'string',
|
|
61
|
+
eipAllocationId: 'string',
|
|
62
|
+
enable: 'boolean',
|
|
63
|
+
natGatewayId: 'string',
|
|
64
|
+
port: 'string',
|
|
65
|
+
SSHPublicKey: 'string',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.ForwardInfo = ForwardInfo;
|
|
70
|
+
class ForwardInfoResponse extends $tea.Model {
|
|
71
|
+
constructor(map) {
|
|
72
|
+
super(map);
|
|
73
|
+
}
|
|
74
|
+
static names() {
|
|
75
|
+
return {
|
|
76
|
+
connectInfo: 'ConnectInfo',
|
|
77
|
+
containerName: 'ContainerName',
|
|
78
|
+
eipAllocationId: 'EipAllocationId',
|
|
79
|
+
enable: 'Enable',
|
|
80
|
+
natGatewayId: 'NatGatewayId',
|
|
81
|
+
port: 'Port',
|
|
82
|
+
SSHPublicKey: 'SSHPublicKey',
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
static types() {
|
|
86
|
+
return {
|
|
87
|
+
connectInfo: ForwardInfoResponseConnectInfo,
|
|
88
|
+
containerName: 'string',
|
|
89
|
+
eipAllocationId: 'string',
|
|
90
|
+
enable: 'boolean',
|
|
91
|
+
natGatewayId: 'string',
|
|
92
|
+
port: 'string',
|
|
93
|
+
SSHPublicKey: 'string',
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.ForwardInfoResponse = ForwardInfoResponse;
|
|
44
98
|
class CreateIdleInstanceCullerRequest extends $tea.Model {
|
|
45
99
|
constructor(map) {
|
|
46
100
|
super(map);
|
|
@@ -114,6 +168,7 @@ class CreateInstanceRequest extends $tea.Model {
|
|
|
114
168
|
accessibility: 'Accessibility',
|
|
115
169
|
cloudDisks: 'CloudDisks',
|
|
116
170
|
datasets: 'Datasets',
|
|
171
|
+
driver: 'Driver',
|
|
117
172
|
ecsSpec: 'EcsSpec',
|
|
118
173
|
environmentVariables: 'EnvironmentVariables',
|
|
119
174
|
imageId: 'ImageId',
|
|
@@ -134,6 +189,7 @@ class CreateInstanceRequest extends $tea.Model {
|
|
|
134
189
|
accessibility: 'string',
|
|
135
190
|
cloudDisks: { 'type': 'array', 'itemType': CreateInstanceRequestCloudDisks },
|
|
136
191
|
datasets: { 'type': 'array', 'itemType': CreateInstanceRequestDatasets },
|
|
192
|
+
driver: 'string',
|
|
137
193
|
ecsSpec: 'string',
|
|
138
194
|
environmentVariables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
139
195
|
imageId: 'string',
|
|
@@ -267,16 +323,20 @@ class CreateInstanceSnapshotRequest extends $tea.Model {
|
|
|
267
323
|
}
|
|
268
324
|
static names() {
|
|
269
325
|
return {
|
|
326
|
+
excludePaths: 'ExcludePaths',
|
|
270
327
|
imageUrl: 'ImageUrl',
|
|
271
328
|
labels: 'Labels',
|
|
329
|
+
overwrite: 'Overwrite',
|
|
272
330
|
snapshotDescription: 'SnapshotDescription',
|
|
273
331
|
snapshotName: 'SnapshotName',
|
|
274
332
|
};
|
|
275
333
|
}
|
|
276
334
|
static types() {
|
|
277
335
|
return {
|
|
336
|
+
excludePaths: { 'type': 'array', 'itemType': 'string' },
|
|
278
337
|
imageUrl: 'string',
|
|
279
338
|
labels: { 'type': 'array', 'itemType': CreateInstanceSnapshotRequestLabels },
|
|
339
|
+
overwrite: 'boolean',
|
|
280
340
|
snapshotDescription: 'string',
|
|
281
341
|
snapshotName: 'string',
|
|
282
342
|
};
|
|
@@ -579,6 +639,7 @@ class GetInstanceResponseBody extends $tea.Model {
|
|
|
579
639
|
cloudDisks: 'CloudDisks',
|
|
580
640
|
code: 'Code',
|
|
581
641
|
datasets: 'Datasets',
|
|
642
|
+
driver: 'Driver',
|
|
582
643
|
ecsSpec: 'EcsSpec',
|
|
583
644
|
environmentVariables: 'EnvironmentVariables',
|
|
584
645
|
gmtCreateTime: 'GmtCreateTime',
|
|
@@ -625,6 +686,7 @@ class GetInstanceResponseBody extends $tea.Model {
|
|
|
625
686
|
cloudDisks: { 'type': 'array', 'itemType': GetInstanceResponseBodyCloudDisks },
|
|
626
687
|
code: 'string',
|
|
627
688
|
datasets: { 'type': 'array', 'itemType': GetInstanceResponseBodyDatasets },
|
|
689
|
+
driver: 'string',
|
|
628
690
|
ecsSpec: 'string',
|
|
629
691
|
environmentVariables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
630
692
|
gmtCreateTime: 'string',
|
|
@@ -816,12 +878,14 @@ class GetInstanceSnapshotResponseBody extends $tea.Model {
|
|
|
816
878
|
static names() {
|
|
817
879
|
return {
|
|
818
880
|
code: 'Code',
|
|
881
|
+
excludePaths: 'ExcludePaths',
|
|
819
882
|
gmtCreateTime: 'GmtCreateTime',
|
|
820
883
|
gmtModifiedTime: 'GmtModifiedTime',
|
|
821
884
|
httpStatusCode: 'HttpStatusCode',
|
|
822
885
|
imageId: 'ImageId',
|
|
823
886
|
imageUrl: 'ImageUrl',
|
|
824
887
|
instanceId: 'InstanceId',
|
|
888
|
+
labels: 'Labels',
|
|
825
889
|
message: 'Message',
|
|
826
890
|
reasonCode: 'ReasonCode',
|
|
827
891
|
reasonMessage: 'ReasonMessage',
|
|
@@ -835,12 +899,14 @@ class GetInstanceSnapshotResponseBody extends $tea.Model {
|
|
|
835
899
|
static types() {
|
|
836
900
|
return {
|
|
837
901
|
code: 'string',
|
|
902
|
+
excludePaths: { 'type': 'array', 'itemType': 'string' },
|
|
838
903
|
gmtCreateTime: 'string',
|
|
839
904
|
gmtModifiedTime: 'string',
|
|
840
905
|
httpStatusCode: 'number',
|
|
841
906
|
imageId: 'string',
|
|
842
907
|
imageUrl: 'string',
|
|
843
908
|
instanceId: 'string',
|
|
909
|
+
labels: { 'type': 'array', 'itemType': GetInstanceSnapshotResponseBodyLabels },
|
|
844
910
|
message: 'string',
|
|
845
911
|
reasonCode: 'string',
|
|
846
912
|
reasonMessage: 'string',
|
|
@@ -1532,11 +1598,14 @@ class UpdateInstanceRequest extends $tea.Model {
|
|
|
1532
1598
|
accessibility: 'Accessibility',
|
|
1533
1599
|
datasets: 'Datasets',
|
|
1534
1600
|
disassociateDatasets: 'DisassociateDatasets',
|
|
1601
|
+
disassociateDriver: 'DisassociateDriver',
|
|
1535
1602
|
disassociateVpc: 'DisassociateVpc',
|
|
1603
|
+
driver: 'Driver',
|
|
1536
1604
|
ecsSpec: 'EcsSpec',
|
|
1537
1605
|
imageId: 'ImageId',
|
|
1538
1606
|
imageUrl: 'ImageUrl',
|
|
1539
1607
|
instanceName: 'InstanceName',
|
|
1608
|
+
priority: 'Priority',
|
|
1540
1609
|
requestedResource: 'RequestedResource',
|
|
1541
1610
|
userId: 'UserId',
|
|
1542
1611
|
userVpc: 'UserVpc',
|
|
@@ -1548,11 +1617,14 @@ class UpdateInstanceRequest extends $tea.Model {
|
|
|
1548
1617
|
accessibility: 'string',
|
|
1549
1618
|
datasets: { 'type': 'array', 'itemType': UpdateInstanceRequestDatasets },
|
|
1550
1619
|
disassociateDatasets: 'boolean',
|
|
1620
|
+
disassociateDriver: 'boolean',
|
|
1551
1621
|
disassociateVpc: 'boolean',
|
|
1622
|
+
driver: 'string',
|
|
1552
1623
|
ecsSpec: 'string',
|
|
1553
1624
|
imageId: 'string',
|
|
1554
1625
|
imageUrl: 'string',
|
|
1555
1626
|
instanceName: 'string',
|
|
1627
|
+
priority: 'number',
|
|
1556
1628
|
requestedResource: UpdateInstanceRequestRequestedResource,
|
|
1557
1629
|
userId: 'string',
|
|
1558
1630
|
userVpc: UpdateInstanceRequestUserVpc,
|
|
@@ -1607,6 +1679,64 @@ class UpdateInstanceResponse extends $tea.Model {
|
|
|
1607
1679
|
}
|
|
1608
1680
|
}
|
|
1609
1681
|
exports.UpdateInstanceResponse = UpdateInstanceResponse;
|
|
1682
|
+
class ForwardInfoResponseConnectInfoInternet extends $tea.Model {
|
|
1683
|
+
constructor(map) {
|
|
1684
|
+
super(map);
|
|
1685
|
+
}
|
|
1686
|
+
static names() {
|
|
1687
|
+
return {
|
|
1688
|
+
endpoint: 'Endpoint',
|
|
1689
|
+
port: 'Port',
|
|
1690
|
+
};
|
|
1691
|
+
}
|
|
1692
|
+
static types() {
|
|
1693
|
+
return {
|
|
1694
|
+
endpoint: 'string',
|
|
1695
|
+
port: 'string',
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
exports.ForwardInfoResponseConnectInfoInternet = ForwardInfoResponseConnectInfoInternet;
|
|
1700
|
+
class ForwardInfoResponseConnectInfoIntranet extends $tea.Model {
|
|
1701
|
+
constructor(map) {
|
|
1702
|
+
super(map);
|
|
1703
|
+
}
|
|
1704
|
+
static names() {
|
|
1705
|
+
return {
|
|
1706
|
+
endpoint: 'Endpoint',
|
|
1707
|
+
port: 'Port',
|
|
1708
|
+
};
|
|
1709
|
+
}
|
|
1710
|
+
static types() {
|
|
1711
|
+
return {
|
|
1712
|
+
endpoint: 'string',
|
|
1713
|
+
port: 'string',
|
|
1714
|
+
};
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
exports.ForwardInfoResponseConnectInfoIntranet = ForwardInfoResponseConnectInfoIntranet;
|
|
1718
|
+
class ForwardInfoResponseConnectInfo extends $tea.Model {
|
|
1719
|
+
constructor(map) {
|
|
1720
|
+
super(map);
|
|
1721
|
+
}
|
|
1722
|
+
static names() {
|
|
1723
|
+
return {
|
|
1724
|
+
internet: 'Internet',
|
|
1725
|
+
intranet: 'Intranet',
|
|
1726
|
+
message: 'Message',
|
|
1727
|
+
phase: 'Phase',
|
|
1728
|
+
};
|
|
1729
|
+
}
|
|
1730
|
+
static types() {
|
|
1731
|
+
return {
|
|
1732
|
+
internet: ForwardInfoResponseConnectInfoInternet,
|
|
1733
|
+
intranet: ForwardInfoResponseConnectInfoIntranet,
|
|
1734
|
+
message: 'string',
|
|
1735
|
+
phase: 'string',
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
exports.ForwardInfoResponseConnectInfo = ForwardInfoResponseConnectInfo;
|
|
1610
1740
|
class CreateInstanceRequestCloudDisks extends $tea.Model {
|
|
1611
1741
|
constructor(map) {
|
|
1612
1742
|
super(map);
|
|
@@ -1697,6 +1827,7 @@ class CreateInstanceRequestUserVpc extends $tea.Model {
|
|
|
1697
1827
|
return {
|
|
1698
1828
|
defaultRoute: 'DefaultRoute',
|
|
1699
1829
|
extendedCIDRs: 'ExtendedCIDRs',
|
|
1830
|
+
forwardInfos: 'ForwardInfos',
|
|
1700
1831
|
securityGroupId: 'SecurityGroupId',
|
|
1701
1832
|
vSwitchId: 'VSwitchId',
|
|
1702
1833
|
vpcId: 'VpcId',
|
|
@@ -1706,6 +1837,7 @@ class CreateInstanceRequestUserVpc extends $tea.Model {
|
|
|
1706
1837
|
return {
|
|
1707
1838
|
defaultRoute: 'string',
|
|
1708
1839
|
extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
|
|
1840
|
+
forwardInfos: { 'type': 'array', 'itemType': ForwardInfo },
|
|
1709
1841
|
securityGroupId: 'string',
|
|
1710
1842
|
vSwitchId: 'string',
|
|
1711
1843
|
vpcId: 'string',
|
|
@@ -1933,6 +2065,7 @@ class GetInstanceResponseBodyUserVpc extends $tea.Model {
|
|
|
1933
2065
|
return {
|
|
1934
2066
|
defaultRoute: 'DefaultRoute',
|
|
1935
2067
|
extendedCIDRs: 'ExtendedCIDRs',
|
|
2068
|
+
forwardInfos: 'ForwardInfos',
|
|
1936
2069
|
securityGroupId: 'SecurityGroupId',
|
|
1937
2070
|
vSwitchId: 'VSwitchId',
|
|
1938
2071
|
vpcId: 'VpcId',
|
|
@@ -1942,6 +2075,7 @@ class GetInstanceResponseBodyUserVpc extends $tea.Model {
|
|
|
1942
2075
|
return {
|
|
1943
2076
|
defaultRoute: 'string',
|
|
1944
2077
|
extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
|
|
2078
|
+
forwardInfos: { 'type': 'array', 'itemType': ForwardInfoResponse },
|
|
1945
2079
|
securityGroupId: 'string',
|
|
1946
2080
|
vSwitchId: 'string',
|
|
1947
2081
|
vpcId: 'string',
|
|
@@ -1985,6 +2119,24 @@ class GetInstanceMetricsResponseBodyPodMetrics extends $tea.Model {
|
|
|
1985
2119
|
}
|
|
1986
2120
|
}
|
|
1987
2121
|
exports.GetInstanceMetricsResponseBodyPodMetrics = GetInstanceMetricsResponseBodyPodMetrics;
|
|
2122
|
+
class GetInstanceSnapshotResponseBodyLabels extends $tea.Model {
|
|
2123
|
+
constructor(map) {
|
|
2124
|
+
super(map);
|
|
2125
|
+
}
|
|
2126
|
+
static names() {
|
|
2127
|
+
return {
|
|
2128
|
+
key: 'Key',
|
|
2129
|
+
value: 'Value',
|
|
2130
|
+
};
|
|
2131
|
+
}
|
|
2132
|
+
static types() {
|
|
2133
|
+
return {
|
|
2134
|
+
key: 'string',
|
|
2135
|
+
value: 'string',
|
|
2136
|
+
};
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2139
|
+
exports.GetInstanceSnapshotResponseBodyLabels = GetInstanceSnapshotResponseBodyLabels;
|
|
1988
2140
|
class GetLifecycleResponseBodyLifecycle extends $tea.Model {
|
|
1989
2141
|
constructor(map) {
|
|
1990
2142
|
super(map);
|
|
@@ -2125,6 +2277,7 @@ class ListInstanceSnapshotResponseBodySnapshots extends $tea.Model {
|
|
|
2125
2277
|
}
|
|
2126
2278
|
static names() {
|
|
2127
2279
|
return {
|
|
2280
|
+
excludePaths: 'ExcludePaths',
|
|
2128
2281
|
gmtCreateTime: 'GmtCreateTime',
|
|
2129
2282
|
gmtModifiedTime: 'GmtModifiedTime',
|
|
2130
2283
|
imageId: 'ImageId',
|
|
@@ -2140,6 +2293,7 @@ class ListInstanceSnapshotResponseBodySnapshots extends $tea.Model {
|
|
|
2140
2293
|
}
|
|
2141
2294
|
static types() {
|
|
2142
2295
|
return {
|
|
2296
|
+
excludePaths: { 'type': 'array', 'itemType': 'string' },
|
|
2143
2297
|
gmtCreateTime: 'string',
|
|
2144
2298
|
gmtModifiedTime: 'string',
|
|
2145
2299
|
imageId: 'string',
|
|
@@ -2357,6 +2511,7 @@ class ListInstancesResponseBodyInstancesUserVpc extends $tea.Model {
|
|
|
2357
2511
|
return {
|
|
2358
2512
|
defaultRoute: 'DefaultRoute',
|
|
2359
2513
|
extendedCIDRs: 'ExtendedCIDRs',
|
|
2514
|
+
forwardInfos: 'ForwardInfos',
|
|
2360
2515
|
securityGroupId: 'SecurityGroupId',
|
|
2361
2516
|
vSwitchId: 'VSwitchId',
|
|
2362
2517
|
vpcId: 'VpcId',
|
|
@@ -2366,6 +2521,7 @@ class ListInstancesResponseBodyInstancesUserVpc extends $tea.Model {
|
|
|
2366
2521
|
return {
|
|
2367
2522
|
defaultRoute: 'string',
|
|
2368
2523
|
extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
|
|
2524
|
+
forwardInfos: { 'type': 'array', 'itemType': ForwardInfoResponse },
|
|
2369
2525
|
securityGroupId: 'string',
|
|
2370
2526
|
vSwitchId: 'string',
|
|
2371
2527
|
vpcId: 'string',
|
|
@@ -2384,6 +2540,7 @@ class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
|
2384
2540
|
accumulatedRunningTimeInMs: 'AccumulatedRunningTimeInMs',
|
|
2385
2541
|
cloudDisks: 'CloudDisks',
|
|
2386
2542
|
datasets: 'Datasets',
|
|
2543
|
+
driver: 'Driver',
|
|
2387
2544
|
ecsSpec: 'EcsSpec',
|
|
2388
2545
|
environmentVariables: 'EnvironmentVariables',
|
|
2389
2546
|
gmtCreateTime: 'GmtCreateTime',
|
|
@@ -2425,6 +2582,7 @@ class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
|
2425
2582
|
accumulatedRunningTimeInMs: 'number',
|
|
2426
2583
|
cloudDisks: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstancesCloudDisks },
|
|
2427
2584
|
datasets: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstancesDatasets },
|
|
2585
|
+
driver: 'string',
|
|
2428
2586
|
ecsSpec: 'string',
|
|
2429
2587
|
environmentVariables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2430
2588
|
gmtCreateTime: 'string',
|
|
@@ -2511,6 +2669,7 @@ class UpdateInstanceRequestUserVpc extends $tea.Model {
|
|
|
2511
2669
|
return {
|
|
2512
2670
|
defaultRoute: 'DefaultRoute',
|
|
2513
2671
|
extendedCIDRs: 'ExtendedCIDRs',
|
|
2672
|
+
forwardInfos: 'ForwardInfos',
|
|
2514
2673
|
securityGroupId: 'SecurityGroupId',
|
|
2515
2674
|
vSwitchId: 'VSwitchId',
|
|
2516
2675
|
vpcId: 'VpcId',
|
|
@@ -2520,6 +2679,7 @@ class UpdateInstanceRequestUserVpc extends $tea.Model {
|
|
|
2520
2679
|
return {
|
|
2521
2680
|
defaultRoute: 'string',
|
|
2522
2681
|
extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
|
|
2682
|
+
forwardInfos: { 'type': 'array', 'itemType': ForwardInfo },
|
|
2523
2683
|
securityGroupId: 'string',
|
|
2524
2684
|
vSwitchId: 'string',
|
|
2525
2685
|
vpcId: 'string',
|
|
@@ -2589,6 +2749,9 @@ class Client extends openapi_client_1.default {
|
|
|
2589
2749
|
if (!tea_util_1.default.isUnset(request.datasets)) {
|
|
2590
2750
|
body["Datasets"] = request.datasets;
|
|
2591
2751
|
}
|
|
2752
|
+
if (!tea_util_1.default.isUnset(request.driver)) {
|
|
2753
|
+
body["Driver"] = request.driver;
|
|
2754
|
+
}
|
|
2592
2755
|
if (!tea_util_1.default.isUnset(request.ecsSpec)) {
|
|
2593
2756
|
body["EcsSpec"] = request.ecsSpec;
|
|
2594
2757
|
}
|
|
@@ -2684,12 +2847,18 @@ class Client extends openapi_client_1.default {
|
|
|
2684
2847
|
async createInstanceSnapshotWithOptions(InstanceId, request, headers, runtime) {
|
|
2685
2848
|
tea_util_1.default.validateModel(request);
|
|
2686
2849
|
let body = {};
|
|
2850
|
+
if (!tea_util_1.default.isUnset(request.excludePaths)) {
|
|
2851
|
+
body["ExcludePaths"] = request.excludePaths;
|
|
2852
|
+
}
|
|
2687
2853
|
if (!tea_util_1.default.isUnset(request.imageUrl)) {
|
|
2688
2854
|
body["ImageUrl"] = request.imageUrl;
|
|
2689
2855
|
}
|
|
2690
2856
|
if (!tea_util_1.default.isUnset(request.labels)) {
|
|
2691
2857
|
body["Labels"] = request.labels;
|
|
2692
2858
|
}
|
|
2859
|
+
if (!tea_util_1.default.isUnset(request.overwrite)) {
|
|
2860
|
+
body["Overwrite"] = request.overwrite;
|
|
2861
|
+
}
|
|
2693
2862
|
if (!tea_util_1.default.isUnset(request.snapshotDescription)) {
|
|
2694
2863
|
body["SnapshotDescription"] = request.snapshotDescription;
|
|
2695
2864
|
}
|
|
@@ -3289,9 +3458,15 @@ class Client extends openapi_client_1.default {
|
|
|
3289
3458
|
if (!tea_util_1.default.isUnset(request.disassociateDatasets)) {
|
|
3290
3459
|
body["DisassociateDatasets"] = request.disassociateDatasets;
|
|
3291
3460
|
}
|
|
3461
|
+
if (!tea_util_1.default.isUnset(request.disassociateDriver)) {
|
|
3462
|
+
body["DisassociateDriver"] = request.disassociateDriver;
|
|
3463
|
+
}
|
|
3292
3464
|
if (!tea_util_1.default.isUnset(request.disassociateVpc)) {
|
|
3293
3465
|
body["DisassociateVpc"] = request.disassociateVpc;
|
|
3294
3466
|
}
|
|
3467
|
+
if (!tea_util_1.default.isUnset(request.driver)) {
|
|
3468
|
+
body["Driver"] = request.driver;
|
|
3469
|
+
}
|
|
3295
3470
|
if (!tea_util_1.default.isUnset(request.ecsSpec)) {
|
|
3296
3471
|
body["EcsSpec"] = request.ecsSpec;
|
|
3297
3472
|
}
|
|
@@ -3304,6 +3479,9 @@ class Client extends openapi_client_1.default {
|
|
|
3304
3479
|
if (!tea_util_1.default.isUnset(request.instanceName)) {
|
|
3305
3480
|
body["InstanceName"] = request.instanceName;
|
|
3306
3481
|
}
|
|
3482
|
+
if (!tea_util_1.default.isUnset(request.priority)) {
|
|
3483
|
+
body["Priority"] = request.priority;
|
|
3484
|
+
}
|
|
3307
3485
|
if (!tea_util_1.default.isUnset(request.requestedResource)) {
|
|
3308
3486
|
body["RequestedResource"] = request.requestedResource;
|
|
3309
3487
|
}
|