@scaleway/sdk 2.2.0 → 2.4.0
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/api/block/v1alpha1/api.gen.js +2 -2
- package/dist/api/block/v1alpha1/marshalling.gen.js +1 -0
- package/dist/api/cockpit/v1beta1/api.gen.js +49 -70
- package/dist/api/cockpit/v1beta1/marshalling.gen.js +1 -4
- package/dist/api/domain/v2beta1/marshalling.gen.js +2 -0
- package/dist/api/iam/v1alpha1/api.gen.js +4 -4
- package/dist/api/iam/v1alpha1/marshalling.gen.js +16 -5
- package/dist/api/instance/v1/api.gen.js +27 -1
- package/dist/api/instance/v1/marshalling.gen.js +132 -111
- package/dist/api/jobs/v1alpha1/validation-rules.gen.js +8 -2
- package/dist/api/mnq/index.js +2 -4
- package/dist/api/secret/v1alpha1/api.gen.js +21 -0
- package/dist/index.cjs +608 -825
- package/dist/index.d.ts +919 -1170
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
- package/dist/api/mnq/v1alpha1/api.gen.js +0 -197
- package/dist/api/mnq/v1alpha1/index.gen.js +0 -4
- package/dist/api/mnq/v1alpha1/marshalling.gen.js +0 -126
|
@@ -98,40 +98,6 @@ const unmarshalImage = data => {
|
|
|
98
98
|
zone: data.zone
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
const unmarshalCreateImageResponse = data => {
|
|
102
|
-
if (!isJSONObject(data)) {
|
|
103
|
-
throw new TypeError(`Unmarshalling the type 'CreateImageResponse' failed as data isn't a dictionary.`);
|
|
104
|
-
}
|
|
105
|
-
return {
|
|
106
|
-
image: data.image ? unmarshalImage(data.image) : undefined
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
const unmarshalIp = data => {
|
|
110
|
-
if (!isJSONObject(data)) {
|
|
111
|
-
throw new TypeError(`Unmarshalling the type 'Ip' failed as data isn't a dictionary.`);
|
|
112
|
-
}
|
|
113
|
-
return {
|
|
114
|
-
address: data.address,
|
|
115
|
-
id: data.id,
|
|
116
|
-
organization: data.organization,
|
|
117
|
-
prefix: data.prefix,
|
|
118
|
-
project: data.project,
|
|
119
|
-
reverse: data.reverse,
|
|
120
|
-
server: data.server ? unmarshalServerSummary(data.server) : undefined,
|
|
121
|
-
state: data.state,
|
|
122
|
-
tags: data.tags,
|
|
123
|
-
type: data.type,
|
|
124
|
-
zone: data.zone
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
const unmarshalCreateIpResponse = data => {
|
|
128
|
-
if (!isJSONObject(data)) {
|
|
129
|
-
throw new TypeError(`Unmarshalling the type 'CreateIpResponse' failed as data isn't a dictionary.`);
|
|
130
|
-
}
|
|
131
|
-
return {
|
|
132
|
-
ip: data.ip ? unmarshalIp(data.ip) : undefined
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
101
|
const unmarshalPlacementGroup = data => {
|
|
136
102
|
if (!isJSONObject(data)) {
|
|
137
103
|
throw new TypeError(`Unmarshalling the type 'PlacementGroup' failed as data isn't a dictionary.`);
|
|
@@ -148,79 +114,6 @@ const unmarshalPlacementGroup = data => {
|
|
|
148
114
|
zone: data.zone
|
|
149
115
|
};
|
|
150
116
|
};
|
|
151
|
-
const unmarshalCreatePlacementGroupResponse = data => {
|
|
152
|
-
if (!isJSONObject(data)) {
|
|
153
|
-
throw new TypeError(`Unmarshalling the type 'CreatePlacementGroupResponse' failed as data isn't a dictionary.`);
|
|
154
|
-
}
|
|
155
|
-
return {
|
|
156
|
-
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : undefined
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
const unmarshalCreatePrivateNICResponse = data => {
|
|
160
|
-
if (!isJSONObject(data)) {
|
|
161
|
-
throw new TypeError(`Unmarshalling the type 'CreatePrivateNICResponse' failed as data isn't a dictionary.`);
|
|
162
|
-
}
|
|
163
|
-
return {
|
|
164
|
-
privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : undefined
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
const unmarshalSecurityGroup = data => {
|
|
168
|
-
if (!isJSONObject(data)) {
|
|
169
|
-
throw new TypeError(`Unmarshalling the type 'SecurityGroup' failed as data isn't a dictionary.`);
|
|
170
|
-
}
|
|
171
|
-
return {
|
|
172
|
-
creationDate: unmarshalDate(data.creation_date),
|
|
173
|
-
description: data.description,
|
|
174
|
-
enableDefaultSecurity: data.enable_default_security,
|
|
175
|
-
id: data.id,
|
|
176
|
-
inboundDefaultPolicy: data.inbound_default_policy,
|
|
177
|
-
modificationDate: unmarshalDate(data.modification_date),
|
|
178
|
-
name: data.name,
|
|
179
|
-
organization: data.organization,
|
|
180
|
-
organizationDefault: data.organization_default,
|
|
181
|
-
outboundDefaultPolicy: data.outbound_default_policy,
|
|
182
|
-
project: data.project,
|
|
183
|
-
projectDefault: data.project_default,
|
|
184
|
-
servers: unmarshalArrayOfObject(data.servers, unmarshalServerSummary),
|
|
185
|
-
state: data.state,
|
|
186
|
-
stateful: data.stateful,
|
|
187
|
-
tags: data.tags,
|
|
188
|
-
zone: data.zone
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
const unmarshalCreateSecurityGroupResponse = data => {
|
|
192
|
-
if (!isJSONObject(data)) {
|
|
193
|
-
throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupResponse' failed as data isn't a dictionary.`);
|
|
194
|
-
}
|
|
195
|
-
return {
|
|
196
|
-
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : undefined
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
const unmarshalSecurityGroupRule = data => {
|
|
200
|
-
if (!isJSONObject(data)) {
|
|
201
|
-
throw new TypeError(`Unmarshalling the type 'SecurityGroupRule' failed as data isn't a dictionary.`);
|
|
202
|
-
}
|
|
203
|
-
return {
|
|
204
|
-
action: data.action,
|
|
205
|
-
destPortFrom: data.dest_port_from,
|
|
206
|
-
destPortTo: data.dest_port_to,
|
|
207
|
-
direction: data.direction,
|
|
208
|
-
editable: data.editable,
|
|
209
|
-
id: data.id,
|
|
210
|
-
ipRange: data.ip_range,
|
|
211
|
-
position: data.position,
|
|
212
|
-
protocol: data.protocol,
|
|
213
|
-
zone: data.zone
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
const unmarshalCreateSecurityGroupRuleResponse = data => {
|
|
217
|
-
if (!isJSONObject(data)) {
|
|
218
|
-
throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupRuleResponse' failed as data isn't a dictionary.`);
|
|
219
|
-
}
|
|
220
|
-
return {
|
|
221
|
-
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : undefined
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
117
|
const unmarshalSecurityGroupSummary = data => {
|
|
225
118
|
if (!isJSONObject(data)) {
|
|
226
119
|
throw new TypeError(`Unmarshalling the type 'SecurityGroupSummary' failed as data isn't a dictionary.`);
|
|
@@ -335,6 +228,121 @@ const unmarshalServer = data => {
|
|
|
335
228
|
zone: data.zone
|
|
336
229
|
};
|
|
337
230
|
};
|
|
231
|
+
const unmarshalAttachServerVolumeResponse = data => {
|
|
232
|
+
if (!isJSONObject(data)) {
|
|
233
|
+
throw new TypeError(`Unmarshalling the type 'AttachServerVolumeResponse' failed as data isn't a dictionary.`);
|
|
234
|
+
}
|
|
235
|
+
return {
|
|
236
|
+
server: data.server ? unmarshalServer(data.server) : undefined
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
const unmarshalCreateImageResponse = data => {
|
|
240
|
+
if (!isJSONObject(data)) {
|
|
241
|
+
throw new TypeError(`Unmarshalling the type 'CreateImageResponse' failed as data isn't a dictionary.`);
|
|
242
|
+
}
|
|
243
|
+
return {
|
|
244
|
+
image: data.image ? unmarshalImage(data.image) : undefined
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
const unmarshalIp = data => {
|
|
248
|
+
if (!isJSONObject(data)) {
|
|
249
|
+
throw new TypeError(`Unmarshalling the type 'Ip' failed as data isn't a dictionary.`);
|
|
250
|
+
}
|
|
251
|
+
return {
|
|
252
|
+
address: data.address,
|
|
253
|
+
id: data.id,
|
|
254
|
+
organization: data.organization,
|
|
255
|
+
prefix: data.prefix,
|
|
256
|
+
project: data.project,
|
|
257
|
+
reverse: data.reverse,
|
|
258
|
+
server: data.server ? unmarshalServerSummary(data.server) : undefined,
|
|
259
|
+
state: data.state,
|
|
260
|
+
tags: data.tags,
|
|
261
|
+
type: data.type,
|
|
262
|
+
zone: data.zone
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
const unmarshalCreateIpResponse = data => {
|
|
266
|
+
if (!isJSONObject(data)) {
|
|
267
|
+
throw new TypeError(`Unmarshalling the type 'CreateIpResponse' failed as data isn't a dictionary.`);
|
|
268
|
+
}
|
|
269
|
+
return {
|
|
270
|
+
ip: data.ip ? unmarshalIp(data.ip) : undefined
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
const unmarshalCreatePlacementGroupResponse = data => {
|
|
274
|
+
if (!isJSONObject(data)) {
|
|
275
|
+
throw new TypeError(`Unmarshalling the type 'CreatePlacementGroupResponse' failed as data isn't a dictionary.`);
|
|
276
|
+
}
|
|
277
|
+
return {
|
|
278
|
+
placementGroup: data.placement_group ? unmarshalPlacementGroup(data.placement_group) : undefined
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
const unmarshalCreatePrivateNICResponse = data => {
|
|
282
|
+
if (!isJSONObject(data)) {
|
|
283
|
+
throw new TypeError(`Unmarshalling the type 'CreatePrivateNICResponse' failed as data isn't a dictionary.`);
|
|
284
|
+
}
|
|
285
|
+
return {
|
|
286
|
+
privateNic: data.private_nic ? unmarshalPrivateNIC(data.private_nic) : undefined
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
const unmarshalSecurityGroup = data => {
|
|
290
|
+
if (!isJSONObject(data)) {
|
|
291
|
+
throw new TypeError(`Unmarshalling the type 'SecurityGroup' failed as data isn't a dictionary.`);
|
|
292
|
+
}
|
|
293
|
+
return {
|
|
294
|
+
creationDate: unmarshalDate(data.creation_date),
|
|
295
|
+
description: data.description,
|
|
296
|
+
enableDefaultSecurity: data.enable_default_security,
|
|
297
|
+
id: data.id,
|
|
298
|
+
inboundDefaultPolicy: data.inbound_default_policy,
|
|
299
|
+
modificationDate: unmarshalDate(data.modification_date),
|
|
300
|
+
name: data.name,
|
|
301
|
+
organization: data.organization,
|
|
302
|
+
organizationDefault: data.organization_default,
|
|
303
|
+
outboundDefaultPolicy: data.outbound_default_policy,
|
|
304
|
+
project: data.project,
|
|
305
|
+
projectDefault: data.project_default,
|
|
306
|
+
servers: unmarshalArrayOfObject(data.servers, unmarshalServerSummary),
|
|
307
|
+
state: data.state,
|
|
308
|
+
stateful: data.stateful,
|
|
309
|
+
tags: data.tags,
|
|
310
|
+
zone: data.zone
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
const unmarshalCreateSecurityGroupResponse = data => {
|
|
314
|
+
if (!isJSONObject(data)) {
|
|
315
|
+
throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupResponse' failed as data isn't a dictionary.`);
|
|
316
|
+
}
|
|
317
|
+
return {
|
|
318
|
+
securityGroup: data.security_group ? unmarshalSecurityGroup(data.security_group) : undefined
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
const unmarshalSecurityGroupRule = data => {
|
|
322
|
+
if (!isJSONObject(data)) {
|
|
323
|
+
throw new TypeError(`Unmarshalling the type 'SecurityGroupRule' failed as data isn't a dictionary.`);
|
|
324
|
+
}
|
|
325
|
+
return {
|
|
326
|
+
action: data.action,
|
|
327
|
+
destPortFrom: data.dest_port_from,
|
|
328
|
+
destPortTo: data.dest_port_to,
|
|
329
|
+
direction: data.direction,
|
|
330
|
+
editable: data.editable,
|
|
331
|
+
id: data.id,
|
|
332
|
+
ipRange: data.ip_range,
|
|
333
|
+
position: data.position,
|
|
334
|
+
protocol: data.protocol,
|
|
335
|
+
zone: data.zone
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
const unmarshalCreateSecurityGroupRuleResponse = data => {
|
|
339
|
+
if (!isJSONObject(data)) {
|
|
340
|
+
throw new TypeError(`Unmarshalling the type 'CreateSecurityGroupRuleResponse' failed as data isn't a dictionary.`);
|
|
341
|
+
}
|
|
342
|
+
return {
|
|
343
|
+
rule: data.rule ? unmarshalSecurityGroupRule(data.rule) : undefined
|
|
344
|
+
};
|
|
345
|
+
};
|
|
338
346
|
const unmarshalCreateServerResponse = data => {
|
|
339
347
|
if (!isJSONObject(data)) {
|
|
340
348
|
throw new TypeError(`Unmarshalling the type 'CreateServerResponse' failed as data isn't a dictionary.`);
|
|
@@ -405,6 +413,14 @@ const unmarshalCreateVolumeResponse = data => {
|
|
|
405
413
|
volume: data.volume ? unmarshalVolume(data.volume) : undefined
|
|
406
414
|
};
|
|
407
415
|
};
|
|
416
|
+
const unmarshalDetachServerVolumeResponse = data => {
|
|
417
|
+
if (!isJSONObject(data)) {
|
|
418
|
+
throw new TypeError(`Unmarshalling the type 'DetachServerVolumeResponse' failed as data isn't a dictionary.`);
|
|
419
|
+
}
|
|
420
|
+
return {
|
|
421
|
+
server: data.server ? unmarshalServer(data.server) : undefined
|
|
422
|
+
};
|
|
423
|
+
};
|
|
408
424
|
const unmarshalExportSnapshotResponse = data => {
|
|
409
425
|
if (!isJSONObject(data)) {
|
|
410
426
|
throw new TypeError(`Unmarshalling the type 'ExportSnapshotResponse' failed as data isn't a dictionary.`);
|
|
@@ -907,6 +923,11 @@ const marshalApplyBlockMigrationRequest = (request, defaults) => ({
|
|
|
907
923
|
value: request.snapshotId
|
|
908
924
|
}])
|
|
909
925
|
});
|
|
926
|
+
const marshalAttachServerVolumeRequest = (request, defaults) => ({
|
|
927
|
+
boot: request.boot,
|
|
928
|
+
volume_id: request.volumeId,
|
|
929
|
+
volume_type: request.volumeType
|
|
930
|
+
});
|
|
910
931
|
const marshalVolumeTemplate = (request, defaults) => ({
|
|
911
932
|
id: request.id,
|
|
912
933
|
name: request.name,
|
|
@@ -1088,14 +1109,14 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
|
|
|
1088
1109
|
...resolveOneOf([{
|
|
1089
1110
|
param: 'size',
|
|
1090
1111
|
value: request.size
|
|
1091
|
-
}, {
|
|
1092
|
-
param: 'base_volume',
|
|
1093
|
-
value: request.baseVolume
|
|
1094
1112
|
}, {
|
|
1095
1113
|
param: 'base_snapshot',
|
|
1096
1114
|
value: request.baseSnapshot
|
|
1097
1115
|
}])
|
|
1098
1116
|
});
|
|
1117
|
+
const marshalDetachServerVolumeRequest = (request, defaults) => ({
|
|
1118
|
+
volume_id: request.volumeId
|
|
1119
|
+
});
|
|
1099
1120
|
const marshalExportSnapshotRequest = (request, defaults) => ({
|
|
1100
1121
|
bucket: request.bucket,
|
|
1101
1122
|
key: request.key
|
|
@@ -1412,4 +1433,4 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
|
1412
1433
|
tags: request.tags
|
|
1413
1434
|
});
|
|
1414
1435
|
|
|
1415
|
-
export { marshalApplyBlockMigrationRequest, marshalCreateImageRequest, marshalCreateIpRequest, marshalCreatePlacementGroupRequest, marshalCreatePrivateNICRequest, marshalCreateSecurityGroupRequest, marshalCreateSecurityGroupRuleRequest, marshalCreateServerRequest, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotRequest, marshalPlanBlockMigrationRequest, marshalServerActionRequest, marshalSetImageRequest, marshalSetPlacementGroupRequest, marshalSetPlacementGroupServersRequest, marshalSetSecurityGroupRequest, marshalSetSecurityGroupRuleRequest, marshalSetSecurityGroupRulesRequest, marshalSetServerRequest, marshalSetSnapshotRequest, marshalUpdateIpRequest, marshalUpdatePlacementGroupRequest, marshalUpdatePlacementGroupServersRequest, marshalUpdatePrivateNICRequest, marshalUpdateServerRequest, marshalUpdateVolumeRequest, unmarshalCreateImageResponse, unmarshalCreateIpResponse, unmarshalCreatePlacementGroupResponse, unmarshalCreatePrivateNICResponse, unmarshalCreateSecurityGroupResponse, unmarshalCreateSecurityGroupRuleResponse, unmarshalCreateServerResponse, unmarshalCreateSnapshotResponse, unmarshalCreateVolumeResponse, unmarshalExportSnapshotResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, unmarshalGetImageResponse, unmarshalGetIpResponse, unmarshalGetPlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, unmarshalGetPrivateNICResponse, unmarshalGetSecurityGroupResponse, unmarshalGetSecurityGroupRuleResponse, unmarshalGetServerResponse, unmarshalGetServerTypesAvailabilityResponse, unmarshalGetSnapshotResponse, unmarshalGetVolumeResponse, unmarshalListBootscriptsResponse, unmarshalListImagesResponse, unmarshalListIpsResponse, unmarshalListPlacementGroupsResponse, unmarshalListPrivateNICsResponse, unmarshalListSecurityGroupRulesResponse, unmarshalListSecurityGroupsResponse, unmarshalListServerActionsResponse, unmarshalListServerUserDataResponse, unmarshalListServersResponse, unmarshalListServersTypesResponse, unmarshalListSnapshotsResponse, unmarshalListVolumesResponse, unmarshalListVolumesTypesResponse, unmarshalMigrationPlan, unmarshalPrivateNIC, unmarshalServerActionResponse, unmarshalSetImageResponse, unmarshalSetPlacementGroupResponse, unmarshalSetPlacementGroupServersResponse, unmarshalSetSecurityGroupResponse, unmarshalSetSecurityGroupRuleResponse, unmarshalSetSecurityGroupRulesResponse, unmarshalSetServerResponse, unmarshalSetSnapshotResponse, unmarshalUpdateIpResponse, unmarshalUpdatePlacementGroupResponse, unmarshalUpdatePlacementGroupServersResponse, unmarshalUpdateServerResponse, unmarshalUpdateVolumeResponse };
|
|
1436
|
+
export { marshalApplyBlockMigrationRequest, marshalAttachServerVolumeRequest, marshalCreateImageRequest, marshalCreateIpRequest, marshalCreatePlacementGroupRequest, marshalCreatePrivateNICRequest, marshalCreateSecurityGroupRequest, marshalCreateSecurityGroupRuleRequest, marshalCreateServerRequest, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalDetachServerVolumeRequest, marshalExportSnapshotRequest, marshalPlanBlockMigrationRequest, marshalServerActionRequest, marshalSetImageRequest, marshalSetPlacementGroupRequest, marshalSetPlacementGroupServersRequest, marshalSetSecurityGroupRequest, marshalSetSecurityGroupRuleRequest, marshalSetSecurityGroupRulesRequest, marshalSetServerRequest, marshalSetSnapshotRequest, marshalUpdateIpRequest, marshalUpdatePlacementGroupRequest, marshalUpdatePlacementGroupServersRequest, marshalUpdatePrivateNICRequest, marshalUpdateServerRequest, marshalUpdateVolumeRequest, unmarshalAttachServerVolumeResponse, unmarshalCreateImageResponse, unmarshalCreateIpResponse, unmarshalCreatePlacementGroupResponse, unmarshalCreatePrivateNICResponse, unmarshalCreateSecurityGroupResponse, unmarshalCreateSecurityGroupRuleResponse, unmarshalCreateServerResponse, unmarshalCreateSnapshotResponse, unmarshalCreateVolumeResponse, unmarshalDetachServerVolumeResponse, unmarshalExportSnapshotResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, unmarshalGetImageResponse, unmarshalGetIpResponse, unmarshalGetPlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, unmarshalGetPrivateNICResponse, unmarshalGetSecurityGroupResponse, unmarshalGetSecurityGroupRuleResponse, unmarshalGetServerResponse, unmarshalGetServerTypesAvailabilityResponse, unmarshalGetSnapshotResponse, unmarshalGetVolumeResponse, unmarshalListBootscriptsResponse, unmarshalListImagesResponse, unmarshalListIpsResponse, unmarshalListPlacementGroupsResponse, unmarshalListPrivateNICsResponse, unmarshalListSecurityGroupRulesResponse, unmarshalListSecurityGroupsResponse, unmarshalListServerActionsResponse, unmarshalListServerUserDataResponse, unmarshalListServersResponse, unmarshalListServersTypesResponse, unmarshalListSnapshotsResponse, unmarshalListVolumesResponse, unmarshalListVolumesTypesResponse, unmarshalMigrationPlan, unmarshalPrivateNIC, unmarshalServerActionResponse, unmarshalSetImageResponse, unmarshalSetPlacementGroupResponse, unmarshalSetPlacementGroupServersResponse, unmarshalSetSecurityGroupResponse, unmarshalSetSecurityGroupRuleResponse, unmarshalSetSecurityGroupRulesResponse, unmarshalSetServerResponse, unmarshalSetSnapshotResponse, unmarshalUpdateIpResponse, unmarshalUpdatePlacementGroupResponse, unmarshalUpdatePlacementGroupServersResponse, unmarshalUpdateServerResponse, unmarshalUpdateVolumeResponse };
|
|
@@ -5,11 +5,14 @@ const CreateJobDefinitionRequest = {
|
|
|
5
5
|
cpuLimit: {
|
|
6
6
|
greaterThan: 0
|
|
7
7
|
},
|
|
8
|
+
imageUri: {
|
|
9
|
+
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::([\w][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
|
|
10
|
+
},
|
|
8
11
|
memoryLimit: {
|
|
9
12
|
greaterThan: 0
|
|
10
13
|
},
|
|
11
14
|
name: {
|
|
12
|
-
|
|
15
|
+
pattern: /^[A-Za-z0-9-_]{3,50}$/
|
|
13
16
|
}
|
|
14
17
|
};
|
|
15
18
|
const ListJobDefinitionsRequest = {
|
|
@@ -34,11 +37,14 @@ const UpdateJobDefinitionRequest = {
|
|
|
34
37
|
cpuLimit: {
|
|
35
38
|
greaterThan: 0
|
|
36
39
|
},
|
|
40
|
+
imageUri: {
|
|
41
|
+
pattern: /^((?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\[(?:[a-fA-F0-9:]+)\])(?::[0-9]+)?\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*)(?::([\w][\w.-]{0,127}))?(?:@([A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}))?$/
|
|
42
|
+
},
|
|
37
43
|
memoryLimit: {
|
|
38
44
|
greaterThan: 0
|
|
39
45
|
},
|
|
40
46
|
name: {
|
|
41
|
-
|
|
47
|
+
pattern: /^[A-Za-z0-9-_]{3,50}$/
|
|
42
48
|
}
|
|
43
49
|
};
|
|
44
50
|
|
package/dist/api/mnq/index.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import * as index_gen from './
|
|
2
|
-
export { index_gen as
|
|
3
|
-
import * as index_gen$1 from './v1beta1/index.gen.js';
|
|
4
|
-
export { index_gen$1 as v1beta1 };
|
|
1
|
+
import * as index_gen from './v1beta1/index.gen.js';
|
|
2
|
+
export { index_gen as v1beta1 };
|
|
@@ -260,6 +260,13 @@ class API extends API$1 {
|
|
|
260
260
|
* metadata of a secret's given version specified by the `region`,
|
|
261
261
|
* `secret_name`, `revision` and `project_id` parameters.
|
|
262
262
|
*
|
|
263
|
+
* This method is deprecated.
|
|
264
|
+
*
|
|
265
|
+
* Scaleway recommends that you use the `ListSecrets` request with the `name`
|
|
266
|
+
* filter to specify the secret version desired, then use the
|
|
267
|
+
* `GetSecretVersion` request.
|
|
268
|
+
*
|
|
269
|
+
* @deprecated
|
|
263
270
|
* @param request - The request {@link GetSecretVersionByNameRequest}
|
|
264
271
|
* @returns A Promise of SecretVersion
|
|
265
272
|
*/
|
|
@@ -308,6 +315,13 @@ class API extends API$1 {
|
|
|
308
315
|
* given secret's versions specified by the `secret_name`,`region` and
|
|
309
316
|
* `project_id` parameters.
|
|
310
317
|
*
|
|
318
|
+
* This method is deprecated.
|
|
319
|
+
*
|
|
320
|
+
* Scaleway recommends that you use the `ListSecrets` request with the `name`
|
|
321
|
+
* filter to specify the secret version desired, then use the
|
|
322
|
+
* `ListSecretVersions` request.
|
|
323
|
+
*
|
|
324
|
+
* @deprecated
|
|
311
325
|
* @param request - The request {@link ListSecretVersionsByNameRequest}
|
|
312
326
|
* @returns A Promise of ListSecretVersionsResponse
|
|
313
327
|
*/
|
|
@@ -359,6 +373,13 @@ class API extends API$1 {
|
|
|
359
373
|
* a secret's version specified by the `region`, `secret_name`, `revision` and
|
|
360
374
|
* `project_id` parameters.
|
|
361
375
|
*
|
|
376
|
+
* This method is deprecated.
|
|
377
|
+
*
|
|
378
|
+
* Scaleway recommends that you use the `ListSecrets` request with the `name`
|
|
379
|
+
* filter to specify the secret version desired, then use the
|
|
380
|
+
* `AccessSecretVersion` request.
|
|
381
|
+
*
|
|
382
|
+
* @deprecated
|
|
362
383
|
* @param request - The request {@link AccessSecretVersionByNameRequest}
|
|
363
384
|
* @returns A Promise of AccessSecretVersionResponse
|
|
364
385
|
*/
|