@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/src/client.ts
CHANGED
|
@@ -36,6 +36,77 @@ export class DemoCategory extends $tea.Model {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
export class ForwardInfo extends $tea.Model {
|
|
40
|
+
containerName?: string;
|
|
41
|
+
eipAllocationId?: string;
|
|
42
|
+
enable?: boolean;
|
|
43
|
+
natGatewayId?: string;
|
|
44
|
+
port?: string;
|
|
45
|
+
SSHPublicKey?: string;
|
|
46
|
+
static names(): { [key: string]: string } {
|
|
47
|
+
return {
|
|
48
|
+
containerName: 'ContainerName',
|
|
49
|
+
eipAllocationId: 'EipAllocationId',
|
|
50
|
+
enable: 'Enable',
|
|
51
|
+
natGatewayId: 'NatGatewayId',
|
|
52
|
+
port: 'Port',
|
|
53
|
+
SSHPublicKey: 'SSHPublicKey',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static types(): { [key: string]: any } {
|
|
58
|
+
return {
|
|
59
|
+
containerName: 'string',
|
|
60
|
+
eipAllocationId: 'string',
|
|
61
|
+
enable: 'boolean',
|
|
62
|
+
natGatewayId: 'string',
|
|
63
|
+
port: 'string',
|
|
64
|
+
SSHPublicKey: 'string',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
constructor(map?: { [key: string]: any }) {
|
|
69
|
+
super(map);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export class ForwardInfoResponse extends $tea.Model {
|
|
74
|
+
connectInfo?: ForwardInfoResponseConnectInfo;
|
|
75
|
+
containerName?: string;
|
|
76
|
+
eipAllocationId?: string;
|
|
77
|
+
enable?: boolean;
|
|
78
|
+
natGatewayId?: string;
|
|
79
|
+
port?: string;
|
|
80
|
+
SSHPublicKey?: string;
|
|
81
|
+
static names(): { [key: string]: string } {
|
|
82
|
+
return {
|
|
83
|
+
connectInfo: 'ConnectInfo',
|
|
84
|
+
containerName: 'ContainerName',
|
|
85
|
+
eipAllocationId: 'EipAllocationId',
|
|
86
|
+
enable: 'Enable',
|
|
87
|
+
natGatewayId: 'NatGatewayId',
|
|
88
|
+
port: 'Port',
|
|
89
|
+
SSHPublicKey: 'SSHPublicKey',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
connectInfo: ForwardInfoResponseConnectInfo,
|
|
96
|
+
containerName: 'string',
|
|
97
|
+
eipAllocationId: 'string',
|
|
98
|
+
enable: 'boolean',
|
|
99
|
+
natGatewayId: 'string',
|
|
100
|
+
port: 'string',
|
|
101
|
+
SSHPublicKey: 'string',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
constructor(map?: { [key: string]: any }) {
|
|
106
|
+
super(map);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
39
110
|
export class CreateIdleInstanceCullerRequest extends $tea.Model {
|
|
40
111
|
cpuPercentThreshold?: number;
|
|
41
112
|
gpuPercentThreshold?: number;
|
|
@@ -121,6 +192,7 @@ export class CreateInstanceRequest extends $tea.Model {
|
|
|
121
192
|
accessibility?: string;
|
|
122
193
|
cloudDisks?: CreateInstanceRequestCloudDisks[];
|
|
123
194
|
datasets?: CreateInstanceRequestDatasets[];
|
|
195
|
+
driver?: string;
|
|
124
196
|
ecsSpec?: string;
|
|
125
197
|
environmentVariables?: { [key: string]: string };
|
|
126
198
|
imageId?: string;
|
|
@@ -139,6 +211,7 @@ export class CreateInstanceRequest extends $tea.Model {
|
|
|
139
211
|
accessibility: 'Accessibility',
|
|
140
212
|
cloudDisks: 'CloudDisks',
|
|
141
213
|
datasets: 'Datasets',
|
|
214
|
+
driver: 'Driver',
|
|
142
215
|
ecsSpec: 'EcsSpec',
|
|
143
216
|
environmentVariables: 'EnvironmentVariables',
|
|
144
217
|
imageId: 'ImageId',
|
|
@@ -160,6 +233,7 @@ export class CreateInstanceRequest extends $tea.Model {
|
|
|
160
233
|
accessibility: 'string',
|
|
161
234
|
cloudDisks: { 'type': 'array', 'itemType': CreateInstanceRequestCloudDisks },
|
|
162
235
|
datasets: { 'type': 'array', 'itemType': CreateInstanceRequestDatasets },
|
|
236
|
+
driver: 'string',
|
|
163
237
|
ecsSpec: 'string',
|
|
164
238
|
environmentVariables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
165
239
|
imageId: 'string',
|
|
@@ -322,14 +396,18 @@ export class CreateInstanceShutdownTimerResponse extends $tea.Model {
|
|
|
322
396
|
}
|
|
323
397
|
|
|
324
398
|
export class CreateInstanceSnapshotRequest extends $tea.Model {
|
|
399
|
+
excludePaths?: string[];
|
|
325
400
|
imageUrl?: string;
|
|
326
401
|
labels?: CreateInstanceSnapshotRequestLabels[];
|
|
402
|
+
overwrite?: boolean;
|
|
327
403
|
snapshotDescription?: string;
|
|
328
404
|
snapshotName?: string;
|
|
329
405
|
static names(): { [key: string]: string } {
|
|
330
406
|
return {
|
|
407
|
+
excludePaths: 'ExcludePaths',
|
|
331
408
|
imageUrl: 'ImageUrl',
|
|
332
409
|
labels: 'Labels',
|
|
410
|
+
overwrite: 'Overwrite',
|
|
333
411
|
snapshotDescription: 'SnapshotDescription',
|
|
334
412
|
snapshotName: 'SnapshotName',
|
|
335
413
|
};
|
|
@@ -337,8 +415,10 @@ export class CreateInstanceSnapshotRequest extends $tea.Model {
|
|
|
337
415
|
|
|
338
416
|
static types(): { [key: string]: any } {
|
|
339
417
|
return {
|
|
418
|
+
excludePaths: { 'type': 'array', 'itemType': 'string' },
|
|
340
419
|
imageUrl: 'string',
|
|
341
420
|
labels: { 'type': 'array', 'itemType': CreateInstanceSnapshotRequestLabels },
|
|
421
|
+
overwrite: 'boolean',
|
|
342
422
|
snapshotDescription: 'string',
|
|
343
423
|
snapshotName: 'string',
|
|
344
424
|
};
|
|
@@ -722,6 +802,7 @@ export class GetInstanceResponseBody extends $tea.Model {
|
|
|
722
802
|
cloudDisks?: GetInstanceResponseBodyCloudDisks[];
|
|
723
803
|
code?: string;
|
|
724
804
|
datasets?: GetInstanceResponseBodyDatasets[];
|
|
805
|
+
driver?: string;
|
|
725
806
|
ecsSpec?: string;
|
|
726
807
|
environmentVariables?: { [key: string]: string };
|
|
727
808
|
gmtCreateTime?: string;
|
|
@@ -766,6 +847,7 @@ export class GetInstanceResponseBody extends $tea.Model {
|
|
|
766
847
|
cloudDisks: 'CloudDisks',
|
|
767
848
|
code: 'Code',
|
|
768
849
|
datasets: 'Datasets',
|
|
850
|
+
driver: 'Driver',
|
|
769
851
|
ecsSpec: 'EcsSpec',
|
|
770
852
|
environmentVariables: 'EnvironmentVariables',
|
|
771
853
|
gmtCreateTime: 'GmtCreateTime',
|
|
@@ -813,6 +895,7 @@ export class GetInstanceResponseBody extends $tea.Model {
|
|
|
813
895
|
cloudDisks: { 'type': 'array', 'itemType': GetInstanceResponseBodyCloudDisks },
|
|
814
896
|
code: 'string',
|
|
815
897
|
datasets: { 'type': 'array', 'itemType': GetInstanceResponseBodyDatasets },
|
|
898
|
+
driver: 'string',
|
|
816
899
|
ecsSpec: 'string',
|
|
817
900
|
environmentVariables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
818
901
|
gmtCreateTime: 'string',
|
|
@@ -1045,12 +1128,14 @@ export class GetInstanceShutdownTimerResponse extends $tea.Model {
|
|
|
1045
1128
|
|
|
1046
1129
|
export class GetInstanceSnapshotResponseBody extends $tea.Model {
|
|
1047
1130
|
code?: string;
|
|
1131
|
+
excludePaths?: string[];
|
|
1048
1132
|
gmtCreateTime?: string;
|
|
1049
1133
|
gmtModifiedTime?: string;
|
|
1050
1134
|
httpStatusCode?: number;
|
|
1051
1135
|
imageId?: string;
|
|
1052
1136
|
imageUrl?: string;
|
|
1053
1137
|
instanceId?: string;
|
|
1138
|
+
labels?: GetInstanceSnapshotResponseBodyLabels[];
|
|
1054
1139
|
message?: string;
|
|
1055
1140
|
reasonCode?: string;
|
|
1056
1141
|
reasonMessage?: string;
|
|
@@ -1062,12 +1147,14 @@ export class GetInstanceSnapshotResponseBody extends $tea.Model {
|
|
|
1062
1147
|
static names(): { [key: string]: string } {
|
|
1063
1148
|
return {
|
|
1064
1149
|
code: 'Code',
|
|
1150
|
+
excludePaths: 'ExcludePaths',
|
|
1065
1151
|
gmtCreateTime: 'GmtCreateTime',
|
|
1066
1152
|
gmtModifiedTime: 'GmtModifiedTime',
|
|
1067
1153
|
httpStatusCode: 'HttpStatusCode',
|
|
1068
1154
|
imageId: 'ImageId',
|
|
1069
1155
|
imageUrl: 'ImageUrl',
|
|
1070
1156
|
instanceId: 'InstanceId',
|
|
1157
|
+
labels: 'Labels',
|
|
1071
1158
|
message: 'Message',
|
|
1072
1159
|
reasonCode: 'ReasonCode',
|
|
1073
1160
|
reasonMessage: 'ReasonMessage',
|
|
@@ -1082,12 +1169,14 @@ export class GetInstanceSnapshotResponseBody extends $tea.Model {
|
|
|
1082
1169
|
static types(): { [key: string]: any } {
|
|
1083
1170
|
return {
|
|
1084
1171
|
code: 'string',
|
|
1172
|
+
excludePaths: { 'type': 'array', 'itemType': 'string' },
|
|
1085
1173
|
gmtCreateTime: 'string',
|
|
1086
1174
|
gmtModifiedTime: 'string',
|
|
1087
1175
|
httpStatusCode: 'number',
|
|
1088
1176
|
imageId: 'string',
|
|
1089
1177
|
imageUrl: 'string',
|
|
1090
1178
|
instanceId: 'string',
|
|
1179
|
+
labels: { 'type': 'array', 'itemType': GetInstanceSnapshotResponseBodyLabels },
|
|
1091
1180
|
message: 'string',
|
|
1092
1181
|
reasonCode: 'string',
|
|
1093
1182
|
reasonMessage: 'string',
|
|
@@ -1968,11 +2057,14 @@ export class UpdateInstanceRequest extends $tea.Model {
|
|
|
1968
2057
|
accessibility?: string;
|
|
1969
2058
|
datasets?: UpdateInstanceRequestDatasets[];
|
|
1970
2059
|
disassociateDatasets?: boolean;
|
|
2060
|
+
disassociateDriver?: boolean;
|
|
1971
2061
|
disassociateVpc?: boolean;
|
|
2062
|
+
driver?: string;
|
|
1972
2063
|
ecsSpec?: string;
|
|
1973
2064
|
imageId?: string;
|
|
1974
2065
|
imageUrl?: string;
|
|
1975
2066
|
instanceName?: string;
|
|
2067
|
+
priority?: number;
|
|
1976
2068
|
requestedResource?: UpdateInstanceRequestRequestedResource;
|
|
1977
2069
|
userId?: string;
|
|
1978
2070
|
userVpc?: UpdateInstanceRequestUserVpc;
|
|
@@ -1982,11 +2074,14 @@ export class UpdateInstanceRequest extends $tea.Model {
|
|
|
1982
2074
|
accessibility: 'Accessibility',
|
|
1983
2075
|
datasets: 'Datasets',
|
|
1984
2076
|
disassociateDatasets: 'DisassociateDatasets',
|
|
2077
|
+
disassociateDriver: 'DisassociateDriver',
|
|
1985
2078
|
disassociateVpc: 'DisassociateVpc',
|
|
2079
|
+
driver: 'Driver',
|
|
1986
2080
|
ecsSpec: 'EcsSpec',
|
|
1987
2081
|
imageId: 'ImageId',
|
|
1988
2082
|
imageUrl: 'ImageUrl',
|
|
1989
2083
|
instanceName: 'InstanceName',
|
|
2084
|
+
priority: 'Priority',
|
|
1990
2085
|
requestedResource: 'RequestedResource',
|
|
1991
2086
|
userId: 'UserId',
|
|
1992
2087
|
userVpc: 'UserVpc',
|
|
@@ -1999,11 +2094,14 @@ export class UpdateInstanceRequest extends $tea.Model {
|
|
|
1999
2094
|
accessibility: 'string',
|
|
2000
2095
|
datasets: { 'type': 'array', 'itemType': UpdateInstanceRequestDatasets },
|
|
2001
2096
|
disassociateDatasets: 'boolean',
|
|
2097
|
+
disassociateDriver: 'boolean',
|
|
2002
2098
|
disassociateVpc: 'boolean',
|
|
2099
|
+
driver: 'string',
|
|
2003
2100
|
ecsSpec: 'string',
|
|
2004
2101
|
imageId: 'string',
|
|
2005
2102
|
imageUrl: 'string',
|
|
2006
2103
|
instanceName: 'string',
|
|
2104
|
+
priority: 'number',
|
|
2007
2105
|
requestedResource: UpdateInstanceRequestRequestedResource,
|
|
2008
2106
|
userId: 'string',
|
|
2009
2107
|
userVpc: UpdateInstanceRequestUserVpc,
|
|
@@ -2075,6 +2173,78 @@ export class UpdateInstanceResponse extends $tea.Model {
|
|
|
2075
2173
|
}
|
|
2076
2174
|
}
|
|
2077
2175
|
|
|
2176
|
+
export class ForwardInfoResponseConnectInfoInternet extends $tea.Model {
|
|
2177
|
+
endpoint?: string;
|
|
2178
|
+
port?: string;
|
|
2179
|
+
static names(): { [key: string]: string } {
|
|
2180
|
+
return {
|
|
2181
|
+
endpoint: 'Endpoint',
|
|
2182
|
+
port: 'Port',
|
|
2183
|
+
};
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
static types(): { [key: string]: any } {
|
|
2187
|
+
return {
|
|
2188
|
+
endpoint: 'string',
|
|
2189
|
+
port: 'string',
|
|
2190
|
+
};
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
constructor(map?: { [key: string]: any }) {
|
|
2194
|
+
super(map);
|
|
2195
|
+
}
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
export class ForwardInfoResponseConnectInfoIntranet extends $tea.Model {
|
|
2199
|
+
endpoint?: string;
|
|
2200
|
+
port?: string;
|
|
2201
|
+
static names(): { [key: string]: string } {
|
|
2202
|
+
return {
|
|
2203
|
+
endpoint: 'Endpoint',
|
|
2204
|
+
port: 'Port',
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
static types(): { [key: string]: any } {
|
|
2209
|
+
return {
|
|
2210
|
+
endpoint: 'string',
|
|
2211
|
+
port: 'string',
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
constructor(map?: { [key: string]: any }) {
|
|
2216
|
+
super(map);
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
export class ForwardInfoResponseConnectInfo extends $tea.Model {
|
|
2221
|
+
internet?: ForwardInfoResponseConnectInfoInternet;
|
|
2222
|
+
intranet?: ForwardInfoResponseConnectInfoIntranet;
|
|
2223
|
+
message?: string;
|
|
2224
|
+
phase?: string;
|
|
2225
|
+
static names(): { [key: string]: string } {
|
|
2226
|
+
return {
|
|
2227
|
+
internet: 'Internet',
|
|
2228
|
+
intranet: 'Intranet',
|
|
2229
|
+
message: 'Message',
|
|
2230
|
+
phase: 'Phase',
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
static types(): { [key: string]: any } {
|
|
2235
|
+
return {
|
|
2236
|
+
internet: ForwardInfoResponseConnectInfoInternet,
|
|
2237
|
+
intranet: ForwardInfoResponseConnectInfoIntranet,
|
|
2238
|
+
message: 'string',
|
|
2239
|
+
phase: 'string',
|
|
2240
|
+
};
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
constructor(map?: { [key: string]: any }) {
|
|
2244
|
+
super(map);
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2078
2248
|
export class CreateInstanceRequestCloudDisks extends $tea.Model {
|
|
2079
2249
|
capacity?: string;
|
|
2080
2250
|
mountPath?: string;
|
|
@@ -2181,6 +2351,7 @@ export class CreateInstanceRequestRequestedResource extends $tea.Model {
|
|
|
2181
2351
|
export class CreateInstanceRequestUserVpc extends $tea.Model {
|
|
2182
2352
|
defaultRoute?: string;
|
|
2183
2353
|
extendedCIDRs?: string[];
|
|
2354
|
+
forwardInfos?: ForwardInfo[];
|
|
2184
2355
|
securityGroupId?: string;
|
|
2185
2356
|
vSwitchId?: string;
|
|
2186
2357
|
vpcId?: string;
|
|
@@ -2188,6 +2359,7 @@ export class CreateInstanceRequestUserVpc extends $tea.Model {
|
|
|
2188
2359
|
return {
|
|
2189
2360
|
defaultRoute: 'DefaultRoute',
|
|
2190
2361
|
extendedCIDRs: 'ExtendedCIDRs',
|
|
2362
|
+
forwardInfos: 'ForwardInfos',
|
|
2191
2363
|
securityGroupId: 'SecurityGroupId',
|
|
2192
2364
|
vSwitchId: 'VSwitchId',
|
|
2193
2365
|
vpcId: 'VpcId',
|
|
@@ -2198,6 +2370,7 @@ export class CreateInstanceRequestUserVpc extends $tea.Model {
|
|
|
2198
2370
|
return {
|
|
2199
2371
|
defaultRoute: 'string',
|
|
2200
2372
|
extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
|
|
2373
|
+
forwardInfos: { 'type': 'array', 'itemType': ForwardInfo },
|
|
2201
2374
|
securityGroupId: 'string',
|
|
2202
2375
|
vSwitchId: 'string',
|
|
2203
2376
|
vpcId: 'string',
|
|
@@ -2485,6 +2658,7 @@ export class GetInstanceResponseBodyRequestedResource extends $tea.Model {
|
|
|
2485
2658
|
export class GetInstanceResponseBodyUserVpc extends $tea.Model {
|
|
2486
2659
|
defaultRoute?: string;
|
|
2487
2660
|
extendedCIDRs?: string[];
|
|
2661
|
+
forwardInfos?: ForwardInfoResponse[];
|
|
2488
2662
|
securityGroupId?: string;
|
|
2489
2663
|
vSwitchId?: string;
|
|
2490
2664
|
vpcId?: string;
|
|
@@ -2492,6 +2666,7 @@ export class GetInstanceResponseBodyUserVpc extends $tea.Model {
|
|
|
2492
2666
|
return {
|
|
2493
2667
|
defaultRoute: 'DefaultRoute',
|
|
2494
2668
|
extendedCIDRs: 'ExtendedCIDRs',
|
|
2669
|
+
forwardInfos: 'ForwardInfos',
|
|
2495
2670
|
securityGroupId: 'SecurityGroupId',
|
|
2496
2671
|
vSwitchId: 'VSwitchId',
|
|
2497
2672
|
vpcId: 'VpcId',
|
|
@@ -2502,6 +2677,7 @@ export class GetInstanceResponseBodyUserVpc extends $tea.Model {
|
|
|
2502
2677
|
return {
|
|
2503
2678
|
defaultRoute: 'string',
|
|
2504
2679
|
extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
|
|
2680
|
+
forwardInfos: { 'type': 'array', 'itemType': ForwardInfoResponse },
|
|
2505
2681
|
securityGroupId: 'string',
|
|
2506
2682
|
vSwitchId: 'string',
|
|
2507
2683
|
vpcId: 'string',
|
|
@@ -2557,6 +2733,28 @@ export class GetInstanceMetricsResponseBodyPodMetrics extends $tea.Model {
|
|
|
2557
2733
|
}
|
|
2558
2734
|
}
|
|
2559
2735
|
|
|
2736
|
+
export class GetInstanceSnapshotResponseBodyLabels extends $tea.Model {
|
|
2737
|
+
key?: string;
|
|
2738
|
+
value?: string;
|
|
2739
|
+
static names(): { [key: string]: string } {
|
|
2740
|
+
return {
|
|
2741
|
+
key: 'Key',
|
|
2742
|
+
value: 'Value',
|
|
2743
|
+
};
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
static types(): { [key: string]: any } {
|
|
2747
|
+
return {
|
|
2748
|
+
key: 'string',
|
|
2749
|
+
value: 'string',
|
|
2750
|
+
};
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
constructor(map?: { [key: string]: any }) {
|
|
2754
|
+
super(map);
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2560
2758
|
export class GetLifecycleResponseBodyLifecycle extends $tea.Model {
|
|
2561
2759
|
status?: string;
|
|
2562
2760
|
reasonCode?: string;
|
|
@@ -2734,6 +2932,7 @@ export class ListInstanceSnapshotResponseBodySnapshotsLabels extends $tea.Model
|
|
|
2734
2932
|
}
|
|
2735
2933
|
|
|
2736
2934
|
export class ListInstanceSnapshotResponseBodySnapshots extends $tea.Model {
|
|
2935
|
+
excludePaths?: string[];
|
|
2737
2936
|
gmtCreateTime?: string;
|
|
2738
2937
|
gmtModifiedTime?: string;
|
|
2739
2938
|
imageId?: string;
|
|
@@ -2747,6 +2946,7 @@ export class ListInstanceSnapshotResponseBodySnapshots extends $tea.Model {
|
|
|
2747
2946
|
status?: string;
|
|
2748
2947
|
static names(): { [key: string]: string } {
|
|
2749
2948
|
return {
|
|
2949
|
+
excludePaths: 'ExcludePaths',
|
|
2750
2950
|
gmtCreateTime: 'GmtCreateTime',
|
|
2751
2951
|
gmtModifiedTime: 'GmtModifiedTime',
|
|
2752
2952
|
imageId: 'ImageId',
|
|
@@ -2763,6 +2963,7 @@ export class ListInstanceSnapshotResponseBodySnapshots extends $tea.Model {
|
|
|
2763
2963
|
|
|
2764
2964
|
static types(): { [key: string]: any } {
|
|
2765
2965
|
return {
|
|
2966
|
+
excludePaths: { 'type': 'array', 'itemType': 'string' },
|
|
2766
2967
|
gmtCreateTime: 'string',
|
|
2767
2968
|
gmtModifiedTime: 'string',
|
|
2768
2969
|
imageId: 'string',
|
|
@@ -3036,6 +3237,7 @@ export class ListInstancesResponseBodyInstancesRequestedResource extends $tea.Mo
|
|
|
3036
3237
|
export class ListInstancesResponseBodyInstancesUserVpc extends $tea.Model {
|
|
3037
3238
|
defaultRoute?: string;
|
|
3038
3239
|
extendedCIDRs?: string[];
|
|
3240
|
+
forwardInfos?: ForwardInfoResponse[];
|
|
3039
3241
|
securityGroupId?: string;
|
|
3040
3242
|
vSwitchId?: string;
|
|
3041
3243
|
vpcId?: string;
|
|
@@ -3043,6 +3245,7 @@ export class ListInstancesResponseBodyInstancesUserVpc extends $tea.Model {
|
|
|
3043
3245
|
return {
|
|
3044
3246
|
defaultRoute: 'DefaultRoute',
|
|
3045
3247
|
extendedCIDRs: 'ExtendedCIDRs',
|
|
3248
|
+
forwardInfos: 'ForwardInfos',
|
|
3046
3249
|
securityGroupId: 'SecurityGroupId',
|
|
3047
3250
|
vSwitchId: 'VSwitchId',
|
|
3048
3251
|
vpcId: 'VpcId',
|
|
@@ -3053,6 +3256,7 @@ export class ListInstancesResponseBodyInstancesUserVpc extends $tea.Model {
|
|
|
3053
3256
|
return {
|
|
3054
3257
|
defaultRoute: 'string',
|
|
3055
3258
|
extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
|
|
3259
|
+
forwardInfos: { 'type': 'array', 'itemType': ForwardInfoResponse },
|
|
3056
3260
|
securityGroupId: 'string',
|
|
3057
3261
|
vSwitchId: 'string',
|
|
3058
3262
|
vpcId: 'string',
|
|
@@ -3070,6 +3274,7 @@ export class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
|
3070
3274
|
accumulatedRunningTimeInMs?: number;
|
|
3071
3275
|
cloudDisks?: ListInstancesResponseBodyInstancesCloudDisks[];
|
|
3072
3276
|
datasets?: ListInstancesResponseBodyInstancesDatasets[];
|
|
3277
|
+
driver?: string;
|
|
3073
3278
|
ecsSpec?: string;
|
|
3074
3279
|
environmentVariables?: { [key: string]: string };
|
|
3075
3280
|
gmtCreateTime?: string;
|
|
@@ -3109,6 +3314,7 @@ export class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
|
3109
3314
|
accumulatedRunningTimeInMs: 'AccumulatedRunningTimeInMs',
|
|
3110
3315
|
cloudDisks: 'CloudDisks',
|
|
3111
3316
|
datasets: 'Datasets',
|
|
3317
|
+
driver: 'Driver',
|
|
3112
3318
|
ecsSpec: 'EcsSpec',
|
|
3113
3319
|
environmentVariables: 'EnvironmentVariables',
|
|
3114
3320
|
gmtCreateTime: 'GmtCreateTime',
|
|
@@ -3151,6 +3357,7 @@ export class ListInstancesResponseBodyInstances extends $tea.Model {
|
|
|
3151
3357
|
accumulatedRunningTimeInMs: 'number',
|
|
3152
3358
|
cloudDisks: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstancesCloudDisks },
|
|
3153
3359
|
datasets: { 'type': 'array', 'itemType': ListInstancesResponseBodyInstancesDatasets },
|
|
3360
|
+
driver: 'string',
|
|
3154
3361
|
ecsSpec: 'string',
|
|
3155
3362
|
environmentVariables: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3156
3363
|
gmtCreateTime: 'string',
|
|
@@ -3247,6 +3454,7 @@ export class UpdateInstanceRequestRequestedResource extends $tea.Model {
|
|
|
3247
3454
|
export class UpdateInstanceRequestUserVpc extends $tea.Model {
|
|
3248
3455
|
defaultRoute?: string;
|
|
3249
3456
|
extendedCIDRs?: string[];
|
|
3457
|
+
forwardInfos?: ForwardInfo[];
|
|
3250
3458
|
securityGroupId?: string;
|
|
3251
3459
|
vSwitchId?: string;
|
|
3252
3460
|
vpcId?: string;
|
|
@@ -3254,6 +3462,7 @@ export class UpdateInstanceRequestUserVpc extends $tea.Model {
|
|
|
3254
3462
|
return {
|
|
3255
3463
|
defaultRoute: 'DefaultRoute',
|
|
3256
3464
|
extendedCIDRs: 'ExtendedCIDRs',
|
|
3465
|
+
forwardInfos: 'ForwardInfos',
|
|
3257
3466
|
securityGroupId: 'SecurityGroupId',
|
|
3258
3467
|
vSwitchId: 'VSwitchId',
|
|
3259
3468
|
vpcId: 'VpcId',
|
|
@@ -3264,6 +3473,7 @@ export class UpdateInstanceRequestUserVpc extends $tea.Model {
|
|
|
3264
3473
|
return {
|
|
3265
3474
|
defaultRoute: 'string',
|
|
3266
3475
|
extendedCIDRs: { 'type': 'array', 'itemType': 'string' },
|
|
3476
|
+
forwardInfos: { 'type': 'array', 'itemType': ForwardInfo },
|
|
3267
3477
|
securityGroupId: 'string',
|
|
3268
3478
|
vSwitchId: 'string',
|
|
3269
3479
|
vpcId: 'string',
|
|
@@ -3352,6 +3562,10 @@ export default class Client extends OpenApi {
|
|
|
3352
3562
|
body["Datasets"] = request.datasets;
|
|
3353
3563
|
}
|
|
3354
3564
|
|
|
3565
|
+
if (!Util.isUnset(request.driver)) {
|
|
3566
|
+
body["Driver"] = request.driver;
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3355
3569
|
if (!Util.isUnset(request.ecsSpec)) {
|
|
3356
3570
|
body["EcsSpec"] = request.ecsSpec;
|
|
3357
3571
|
}
|
|
@@ -3466,6 +3680,10 @@ export default class Client extends OpenApi {
|
|
|
3466
3680
|
async createInstanceSnapshotWithOptions(InstanceId: string, request: CreateInstanceSnapshotRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateInstanceSnapshotResponse> {
|
|
3467
3681
|
Util.validateModel(request);
|
|
3468
3682
|
let body : {[key: string ]: any} = { };
|
|
3683
|
+
if (!Util.isUnset(request.excludePaths)) {
|
|
3684
|
+
body["ExcludePaths"] = request.excludePaths;
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3469
3687
|
if (!Util.isUnset(request.imageUrl)) {
|
|
3470
3688
|
body["ImageUrl"] = request.imageUrl;
|
|
3471
3689
|
}
|
|
@@ -3474,6 +3692,10 @@ export default class Client extends OpenApi {
|
|
|
3474
3692
|
body["Labels"] = request.labels;
|
|
3475
3693
|
}
|
|
3476
3694
|
|
|
3695
|
+
if (!Util.isUnset(request.overwrite)) {
|
|
3696
|
+
body["Overwrite"] = request.overwrite;
|
|
3697
|
+
}
|
|
3698
|
+
|
|
3477
3699
|
if (!Util.isUnset(request.snapshotDescription)) {
|
|
3478
3700
|
body["SnapshotDescription"] = request.snapshotDescription;
|
|
3479
3701
|
}
|
|
@@ -4156,10 +4378,18 @@ export default class Client extends OpenApi {
|
|
|
4156
4378
|
body["DisassociateDatasets"] = request.disassociateDatasets;
|
|
4157
4379
|
}
|
|
4158
4380
|
|
|
4381
|
+
if (!Util.isUnset(request.disassociateDriver)) {
|
|
4382
|
+
body["DisassociateDriver"] = request.disassociateDriver;
|
|
4383
|
+
}
|
|
4384
|
+
|
|
4159
4385
|
if (!Util.isUnset(request.disassociateVpc)) {
|
|
4160
4386
|
body["DisassociateVpc"] = request.disassociateVpc;
|
|
4161
4387
|
}
|
|
4162
4388
|
|
|
4389
|
+
if (!Util.isUnset(request.driver)) {
|
|
4390
|
+
body["Driver"] = request.driver;
|
|
4391
|
+
}
|
|
4392
|
+
|
|
4163
4393
|
if (!Util.isUnset(request.ecsSpec)) {
|
|
4164
4394
|
body["EcsSpec"] = request.ecsSpec;
|
|
4165
4395
|
}
|
|
@@ -4176,6 +4406,10 @@ export default class Client extends OpenApi {
|
|
|
4176
4406
|
body["InstanceName"] = request.instanceName;
|
|
4177
4407
|
}
|
|
4178
4408
|
|
|
4409
|
+
if (!Util.isUnset(request.priority)) {
|
|
4410
|
+
body["Priority"] = request.priority;
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4179
4413
|
if (!Util.isUnset(request.requestedResource)) {
|
|
4180
4414
|
body["RequestedResource"] = request.requestedResource;
|
|
4181
4415
|
}
|