@scaleway/sdk-datawarehouse 1.1.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/LICENSE +191 -0
- package/dist/index.gen.cjs +4 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +4 -0
- package/dist/v1beta1/api.gen.cjs +311 -0
- package/dist/v1beta1/api.gen.d.ts +153 -0
- package/dist/v1beta1/api.gen.js +311 -0
- package/dist/v1beta1/content.gen.cjs +10 -0
- package/dist/v1beta1/content.gen.d.ts +3 -0
- package/dist/v1beta1/content.gen.js +10 -0
- package/dist/v1beta1/index.gen.cjs +24 -0
- package/dist/v1beta1/index.gen.d.ts +5 -0
- package/dist/v1beta1/index.gen.js +24 -0
- package/dist/v1beta1/marshalling.gen.cjs +241 -0
- package/dist/v1beta1/marshalling.gen.d.ts +17 -0
- package/dist/v1beta1/marshalling.gen.js +241 -0
- package/dist/v1beta1/types.gen.d.ts +527 -0
- package/dist/v1beta1/validation-rules.gen.cjs +183 -0
- package/dist/v1beta1/validation-rules.gen.d.ts +168 -0
- package/dist/v1beta1/validation-rules.gen.js +183 -0
- package/package.json +48 -0
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
import type { Region as ScwRegion } from '@scaleway/sdk-client';
|
|
2
|
+
export type DeploymentStatus = 'unknown_status' | 'ready' | 'creating' | 'configuring' | 'deleting' | 'error' | 'locked' | 'locking' | 'unlocking';
|
|
3
|
+
export type EndpointServiceProtocol = 'unknown_protocol' | 'tcp' | 'https' | 'mysql';
|
|
4
|
+
export type ListDatabasesRequestOrderBy = 'name_asc' | 'name_desc' | 'size_asc' | 'size_desc';
|
|
5
|
+
export type ListDeploymentsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'name_asc' | 'name_desc';
|
|
6
|
+
export type ListUsersRequestOrderBy = 'name_asc' | 'name_desc';
|
|
7
|
+
export interface EndpointPrivateNetworkDetails {
|
|
8
|
+
privateNetworkId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface EndpointPublicDetails {
|
|
11
|
+
}
|
|
12
|
+
export interface EndpointService {
|
|
13
|
+
protocol: EndpointServiceProtocol;
|
|
14
|
+
port: number;
|
|
15
|
+
}
|
|
16
|
+
export interface EndpointSpecPrivateNetworkDetails {
|
|
17
|
+
/**
|
|
18
|
+
* UUID of the Private Network.
|
|
19
|
+
*/
|
|
20
|
+
privateNetworkId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface EndpointSpecPublicDetails {
|
|
23
|
+
}
|
|
24
|
+
export interface Endpoint {
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier of the endpoint.
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* DNS record associated with the endpoint.
|
|
31
|
+
*/
|
|
32
|
+
dnsRecord: string;
|
|
33
|
+
/**
|
|
34
|
+
* List of services associated with the endpoint.
|
|
35
|
+
*/
|
|
36
|
+
services: EndpointService[];
|
|
37
|
+
/**
|
|
38
|
+
* Private Network endpoint details.
|
|
39
|
+
*
|
|
40
|
+
* One-of ('details'): at most one of 'privateNetwork', 'public' could be set.
|
|
41
|
+
*/
|
|
42
|
+
privateNetwork?: EndpointPrivateNetworkDetails;
|
|
43
|
+
/**
|
|
44
|
+
* Public endpoint details.
|
|
45
|
+
*
|
|
46
|
+
* One-of ('details'): at most one of 'privateNetwork', 'public' could be set.
|
|
47
|
+
*/
|
|
48
|
+
public?: EndpointPublicDetails;
|
|
49
|
+
}
|
|
50
|
+
export interface EndpointSpec {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* One-of ('details'): at most one of 'public', 'privateNetwork' could be set.
|
|
54
|
+
*/
|
|
55
|
+
public?: EndpointSpecPublicDetails;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* One-of ('details'): at most one of 'public', 'privateNetwork' could be set.
|
|
59
|
+
*/
|
|
60
|
+
privateNetwork?: EndpointSpecPrivateNetworkDetails;
|
|
61
|
+
}
|
|
62
|
+
export interface Database {
|
|
63
|
+
/**
|
|
64
|
+
* Name of the database.
|
|
65
|
+
*/
|
|
66
|
+
name: string;
|
|
67
|
+
/**
|
|
68
|
+
* Size of the database.
|
|
69
|
+
*/
|
|
70
|
+
size: number;
|
|
71
|
+
}
|
|
72
|
+
export interface Deployment {
|
|
73
|
+
/**
|
|
74
|
+
* Unique identifier.
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
/**
|
|
78
|
+
* Name of the deployment.
|
|
79
|
+
*/
|
|
80
|
+
name: string;
|
|
81
|
+
/**
|
|
82
|
+
* Organization ID.
|
|
83
|
+
*/
|
|
84
|
+
organizationId: string;
|
|
85
|
+
/**
|
|
86
|
+
* Project ID.
|
|
87
|
+
*/
|
|
88
|
+
projectId: string;
|
|
89
|
+
/**
|
|
90
|
+
* Status of the deployment.
|
|
91
|
+
*/
|
|
92
|
+
status: DeploymentStatus;
|
|
93
|
+
/**
|
|
94
|
+
* List of tags applied to the deployment.
|
|
95
|
+
*/
|
|
96
|
+
tags: string[];
|
|
97
|
+
/**
|
|
98
|
+
* Creation date of the deployment.
|
|
99
|
+
*/
|
|
100
|
+
createdAt?: Date;
|
|
101
|
+
/**
|
|
102
|
+
* Last modification date of the deployment.
|
|
103
|
+
*/
|
|
104
|
+
updatedAt?: Date;
|
|
105
|
+
/**
|
|
106
|
+
* Clickhouse version.
|
|
107
|
+
*/
|
|
108
|
+
version: string;
|
|
109
|
+
/**
|
|
110
|
+
* Number of replicas for the deployment.
|
|
111
|
+
*/
|
|
112
|
+
replicaCount: number;
|
|
113
|
+
/**
|
|
114
|
+
* Minimum CPU count for the deployment.
|
|
115
|
+
*/
|
|
116
|
+
cpuMin: number;
|
|
117
|
+
/**
|
|
118
|
+
* Maximum CPU count for the deployment.
|
|
119
|
+
*/
|
|
120
|
+
cpuMax: number;
|
|
121
|
+
/**
|
|
122
|
+
* List of endpoints associated with the deployment.
|
|
123
|
+
*/
|
|
124
|
+
endpoints: Endpoint[];
|
|
125
|
+
/**
|
|
126
|
+
* RAM per CPU count for the deployment (in GB).
|
|
127
|
+
*/
|
|
128
|
+
ramPerCpu: number;
|
|
129
|
+
/**
|
|
130
|
+
* Region of the deployment.
|
|
131
|
+
*/
|
|
132
|
+
region: ScwRegion;
|
|
133
|
+
}
|
|
134
|
+
export interface Preset {
|
|
135
|
+
/**
|
|
136
|
+
* Name of the preset.
|
|
137
|
+
*/
|
|
138
|
+
name: string;
|
|
139
|
+
/**
|
|
140
|
+
* Category of the preset.
|
|
141
|
+
*/
|
|
142
|
+
category: string;
|
|
143
|
+
/**
|
|
144
|
+
* Minimum CPU count for the preset.
|
|
145
|
+
*/
|
|
146
|
+
cpuMin: number;
|
|
147
|
+
/**
|
|
148
|
+
* Maximum CPU count for the preset.
|
|
149
|
+
*/
|
|
150
|
+
cpuMax: number;
|
|
151
|
+
/**
|
|
152
|
+
* RAM per CPU count for the preset (in GB).
|
|
153
|
+
*/
|
|
154
|
+
ramPerCpu: number;
|
|
155
|
+
/**
|
|
156
|
+
* Number of replicas for the preset.
|
|
157
|
+
*/
|
|
158
|
+
replicaCount: number;
|
|
159
|
+
}
|
|
160
|
+
export interface User {
|
|
161
|
+
/**
|
|
162
|
+
* Name of the user.
|
|
163
|
+
*/
|
|
164
|
+
name: string;
|
|
165
|
+
/**
|
|
166
|
+
* Indicates if the user is an administrator.
|
|
167
|
+
*/
|
|
168
|
+
isAdmin: boolean;
|
|
169
|
+
}
|
|
170
|
+
export interface Version {
|
|
171
|
+
/**
|
|
172
|
+
* Deployment version.
|
|
173
|
+
*/
|
|
174
|
+
version: string;
|
|
175
|
+
/**
|
|
176
|
+
* Date of End of Life.
|
|
177
|
+
*/
|
|
178
|
+
endOfLifeAt?: Date;
|
|
179
|
+
}
|
|
180
|
+
export type CreateDatabaseRequest = {
|
|
181
|
+
/**
|
|
182
|
+
* Region to target. If none is passed will use default region from the config.
|
|
183
|
+
*/
|
|
184
|
+
region?: ScwRegion;
|
|
185
|
+
/**
|
|
186
|
+
* UUID of the deployment.
|
|
187
|
+
*/
|
|
188
|
+
deploymentId: string;
|
|
189
|
+
/**
|
|
190
|
+
* Name of the database.
|
|
191
|
+
*/
|
|
192
|
+
name: string;
|
|
193
|
+
};
|
|
194
|
+
export type CreateDeploymentRequest = {
|
|
195
|
+
/**
|
|
196
|
+
* Region to target. If none is passed will use default region from the config.
|
|
197
|
+
*/
|
|
198
|
+
region?: ScwRegion;
|
|
199
|
+
/**
|
|
200
|
+
* The Project ID on which the deployment will be created.
|
|
201
|
+
*/
|
|
202
|
+
projectId?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Name of the deployment.
|
|
205
|
+
*/
|
|
206
|
+
name: string;
|
|
207
|
+
/**
|
|
208
|
+
* Tags to apply to the deployment.
|
|
209
|
+
*/
|
|
210
|
+
tags?: string[];
|
|
211
|
+
/**
|
|
212
|
+
* Clickhouse version to use for the deployment.
|
|
213
|
+
*/
|
|
214
|
+
version: string;
|
|
215
|
+
/**
|
|
216
|
+
* Number of replicas for the deployment.
|
|
217
|
+
*/
|
|
218
|
+
replicaCount: number;
|
|
219
|
+
/**
|
|
220
|
+
* Password for the initial user.
|
|
221
|
+
*/
|
|
222
|
+
password: string;
|
|
223
|
+
/**
|
|
224
|
+
* Minimum CPU count for the deployment.
|
|
225
|
+
*/
|
|
226
|
+
cpuMin: number;
|
|
227
|
+
/**
|
|
228
|
+
* Maximum CPU count for the deployment.
|
|
229
|
+
*/
|
|
230
|
+
cpuMax: number;
|
|
231
|
+
/**
|
|
232
|
+
* Endpoints to associate with the deployment.
|
|
233
|
+
*/
|
|
234
|
+
endpoints?: EndpointSpec[];
|
|
235
|
+
/**
|
|
236
|
+
* RAM per CPU count for the deployment (in GB).
|
|
237
|
+
*/
|
|
238
|
+
ramPerCpu: number;
|
|
239
|
+
};
|
|
240
|
+
export type CreateEndpointRequest = {
|
|
241
|
+
/**
|
|
242
|
+
* Region to target. If none is passed will use default region from the config.
|
|
243
|
+
*/
|
|
244
|
+
region?: ScwRegion;
|
|
245
|
+
/**
|
|
246
|
+
* UUID of the deployment.
|
|
247
|
+
*/
|
|
248
|
+
deploymentId: string;
|
|
249
|
+
/**
|
|
250
|
+
* Endpoint specification.
|
|
251
|
+
*/
|
|
252
|
+
endpoint?: EndpointSpec;
|
|
253
|
+
};
|
|
254
|
+
export type CreateUserRequest = {
|
|
255
|
+
/**
|
|
256
|
+
* Region to target. If none is passed will use default region from the config.
|
|
257
|
+
*/
|
|
258
|
+
region?: ScwRegion;
|
|
259
|
+
/**
|
|
260
|
+
* UUID of the deployment.
|
|
261
|
+
*/
|
|
262
|
+
deploymentId: string;
|
|
263
|
+
/**
|
|
264
|
+
* Name of the user.
|
|
265
|
+
*/
|
|
266
|
+
name: string;
|
|
267
|
+
/**
|
|
268
|
+
* Password for the user.
|
|
269
|
+
*/
|
|
270
|
+
password: string;
|
|
271
|
+
/**
|
|
272
|
+
* Indicates if the user is an administrator.
|
|
273
|
+
*/
|
|
274
|
+
isAdmin: boolean;
|
|
275
|
+
};
|
|
276
|
+
export type DeleteDatabaseRequest = {
|
|
277
|
+
/**
|
|
278
|
+
* Region to target. If none is passed will use default region from the config.
|
|
279
|
+
*/
|
|
280
|
+
region?: ScwRegion;
|
|
281
|
+
/**
|
|
282
|
+
* UUID of the deployment.
|
|
283
|
+
*/
|
|
284
|
+
deploymentId: string;
|
|
285
|
+
/**
|
|
286
|
+
* Name of the database to delete.
|
|
287
|
+
*/
|
|
288
|
+
name: string;
|
|
289
|
+
};
|
|
290
|
+
export type DeleteDeploymentRequest = {
|
|
291
|
+
/**
|
|
292
|
+
* Region to target. If none is passed will use default region from the config.
|
|
293
|
+
*/
|
|
294
|
+
region?: ScwRegion;
|
|
295
|
+
/**
|
|
296
|
+
* UUID of the deployment to delete.
|
|
297
|
+
*/
|
|
298
|
+
deploymentId: string;
|
|
299
|
+
};
|
|
300
|
+
export type DeleteEndpointRequest = {
|
|
301
|
+
/**
|
|
302
|
+
* Region to target. If none is passed will use default region from the config.
|
|
303
|
+
*/
|
|
304
|
+
region?: ScwRegion;
|
|
305
|
+
/**
|
|
306
|
+
* UUID of the Endpoint to delete.
|
|
307
|
+
*/
|
|
308
|
+
endpointId: string;
|
|
309
|
+
};
|
|
310
|
+
export type DeleteUserRequest = {
|
|
311
|
+
/**
|
|
312
|
+
* Region to target. If none is passed will use default region from the config.
|
|
313
|
+
*/
|
|
314
|
+
region?: ScwRegion;
|
|
315
|
+
/**
|
|
316
|
+
* UUID of the deployment.
|
|
317
|
+
*/
|
|
318
|
+
deploymentId: string;
|
|
319
|
+
/**
|
|
320
|
+
* Name of the user to delete.
|
|
321
|
+
*/
|
|
322
|
+
name: string;
|
|
323
|
+
};
|
|
324
|
+
export type GetDeploymentCertificateRequest = {
|
|
325
|
+
/**
|
|
326
|
+
* Region to target. If none is passed will use default region from the config.
|
|
327
|
+
*/
|
|
328
|
+
region?: ScwRegion;
|
|
329
|
+
deploymentId: string;
|
|
330
|
+
};
|
|
331
|
+
export type GetDeploymentRequest = {
|
|
332
|
+
/**
|
|
333
|
+
* Region to target. If none is passed will use default region from the config.
|
|
334
|
+
*/
|
|
335
|
+
region?: ScwRegion;
|
|
336
|
+
/**
|
|
337
|
+
* UUID of the deployment.
|
|
338
|
+
*/
|
|
339
|
+
deploymentId: string;
|
|
340
|
+
};
|
|
341
|
+
export type ListDatabasesRequest = {
|
|
342
|
+
/**
|
|
343
|
+
* Region to target. If none is passed will use default region from the config.
|
|
344
|
+
*/
|
|
345
|
+
region?: ScwRegion;
|
|
346
|
+
/**
|
|
347
|
+
* UUID of the deployment.
|
|
348
|
+
*/
|
|
349
|
+
deploymentId: string;
|
|
350
|
+
/**
|
|
351
|
+
* Name of the database to filter by.
|
|
352
|
+
*/
|
|
353
|
+
name?: string;
|
|
354
|
+
/**
|
|
355
|
+
* Criteria to use when ordering database listings.
|
|
356
|
+
*/
|
|
357
|
+
orderBy?: ListDatabasesRequestOrderBy;
|
|
358
|
+
page?: number;
|
|
359
|
+
pageSize?: number;
|
|
360
|
+
};
|
|
361
|
+
export interface ListDatabasesResponse {
|
|
362
|
+
/**
|
|
363
|
+
* List of databases associated with the deployment.
|
|
364
|
+
*/
|
|
365
|
+
databases: Database[];
|
|
366
|
+
/**
|
|
367
|
+
* Total count of databases associated with the deployment.
|
|
368
|
+
*/
|
|
369
|
+
totalCount: number;
|
|
370
|
+
}
|
|
371
|
+
export type ListDeploymentsRequest = {
|
|
372
|
+
/**
|
|
373
|
+
* Region to target. If none is passed will use default region from the config.
|
|
374
|
+
*/
|
|
375
|
+
region?: ScwRegion;
|
|
376
|
+
/**
|
|
377
|
+
* List deployments with a given tag.
|
|
378
|
+
*/
|
|
379
|
+
tags?: string[];
|
|
380
|
+
/**
|
|
381
|
+
* Lists deployments that match a name pattern.
|
|
382
|
+
*/
|
|
383
|
+
name?: string;
|
|
384
|
+
/**
|
|
385
|
+
* Criteria to use when ordering deployment listings.
|
|
386
|
+
*/
|
|
387
|
+
orderBy?: ListDeploymentsRequestOrderBy;
|
|
388
|
+
/**
|
|
389
|
+
* Organization ID the deployment belongs to.
|
|
390
|
+
*/
|
|
391
|
+
organizationId?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Project ID the deployment belongs to.
|
|
394
|
+
*/
|
|
395
|
+
projectId?: string;
|
|
396
|
+
page?: number;
|
|
397
|
+
pageSize?: number;
|
|
398
|
+
};
|
|
399
|
+
export interface ListDeploymentsResponse {
|
|
400
|
+
/**
|
|
401
|
+
* List of all deployments available in an Organization or Project.
|
|
402
|
+
*/
|
|
403
|
+
deployments: Deployment[];
|
|
404
|
+
/**
|
|
405
|
+
* Total count of deployments available in an Organization or Project.
|
|
406
|
+
*/
|
|
407
|
+
totalCount: number;
|
|
408
|
+
}
|
|
409
|
+
export type ListPresetsRequest = {
|
|
410
|
+
/**
|
|
411
|
+
* Region to target. If none is passed will use default region from the config.
|
|
412
|
+
*/
|
|
413
|
+
region?: ScwRegion;
|
|
414
|
+
page?: number;
|
|
415
|
+
pageSize?: number;
|
|
416
|
+
};
|
|
417
|
+
export interface ListPresetsResponse {
|
|
418
|
+
/**
|
|
419
|
+
* List of available presets.
|
|
420
|
+
*/
|
|
421
|
+
presets: Preset[];
|
|
422
|
+
/**
|
|
423
|
+
* Total count of presets available.
|
|
424
|
+
*/
|
|
425
|
+
totalCount: number;
|
|
426
|
+
}
|
|
427
|
+
export type ListUsersRequest = {
|
|
428
|
+
/**
|
|
429
|
+
* Region to target. If none is passed will use default region from the config.
|
|
430
|
+
*/
|
|
431
|
+
region?: ScwRegion;
|
|
432
|
+
/**
|
|
433
|
+
* UUID of the deployment.
|
|
434
|
+
*/
|
|
435
|
+
deploymentId: string;
|
|
436
|
+
/**
|
|
437
|
+
* Name of the user to filter by.
|
|
438
|
+
*/
|
|
439
|
+
name?: string;
|
|
440
|
+
/**
|
|
441
|
+
* Criteria to use when ordering user listings.
|
|
442
|
+
*/
|
|
443
|
+
orderBy?: ListUsersRequestOrderBy;
|
|
444
|
+
page?: number;
|
|
445
|
+
pageSize?: number;
|
|
446
|
+
};
|
|
447
|
+
export interface ListUsersResponse {
|
|
448
|
+
/**
|
|
449
|
+
* List of users associated with the deployment.
|
|
450
|
+
*/
|
|
451
|
+
users: User[];
|
|
452
|
+
/**
|
|
453
|
+
* Total count of users associated with the deployment.
|
|
454
|
+
*/
|
|
455
|
+
totalCount: number;
|
|
456
|
+
}
|
|
457
|
+
export type ListVersionsRequest = {
|
|
458
|
+
/**
|
|
459
|
+
* Region to target. If none is passed will use default region from the config.
|
|
460
|
+
*/
|
|
461
|
+
region?: ScwRegion;
|
|
462
|
+
version?: string;
|
|
463
|
+
page?: number;
|
|
464
|
+
pageSize?: number;
|
|
465
|
+
};
|
|
466
|
+
export interface ListVersionsResponse {
|
|
467
|
+
/**
|
|
468
|
+
* Available deployment version.
|
|
469
|
+
*/
|
|
470
|
+
versions: Version[];
|
|
471
|
+
/**
|
|
472
|
+
* Total count of deployment version available.
|
|
473
|
+
*/
|
|
474
|
+
totalCount: number;
|
|
475
|
+
}
|
|
476
|
+
export type UpdateDeploymentRequest = {
|
|
477
|
+
/**
|
|
478
|
+
* Region to target. If none is passed will use default region from the config.
|
|
479
|
+
*/
|
|
480
|
+
region?: ScwRegion;
|
|
481
|
+
/**
|
|
482
|
+
* UUID of the deployment to update.
|
|
483
|
+
*/
|
|
484
|
+
deploymentId: string;
|
|
485
|
+
/**
|
|
486
|
+
* Name of the deployment.
|
|
487
|
+
*/
|
|
488
|
+
name?: string;
|
|
489
|
+
/**
|
|
490
|
+
* Tags of a deployment.
|
|
491
|
+
*/
|
|
492
|
+
tags?: string[];
|
|
493
|
+
/**
|
|
494
|
+
* Minimum CPU count for the deployment.
|
|
495
|
+
*/
|
|
496
|
+
cpuMin?: number;
|
|
497
|
+
/**
|
|
498
|
+
* Maximum CPU count for the deployment.
|
|
499
|
+
*/
|
|
500
|
+
cpuMax?: number;
|
|
501
|
+
/**
|
|
502
|
+
* Number of replicas for the deployment.
|
|
503
|
+
*/
|
|
504
|
+
replicaCount?: number;
|
|
505
|
+
};
|
|
506
|
+
export type UpdateUserRequest = {
|
|
507
|
+
/**
|
|
508
|
+
* Region to target. If none is passed will use default region from the config.
|
|
509
|
+
*/
|
|
510
|
+
region?: ScwRegion;
|
|
511
|
+
/**
|
|
512
|
+
* UUID of the deployment.
|
|
513
|
+
*/
|
|
514
|
+
deploymentId: string;
|
|
515
|
+
/**
|
|
516
|
+
* Name of the user.
|
|
517
|
+
*/
|
|
518
|
+
name: string;
|
|
519
|
+
/**
|
|
520
|
+
* New password for the user.
|
|
521
|
+
*/
|
|
522
|
+
password?: string;
|
|
523
|
+
/**
|
|
524
|
+
* Updates the user administrator permissions.
|
|
525
|
+
*/
|
|
526
|
+
isAdmin?: boolean;
|
|
527
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const CreateDatabaseRequest = {
|
|
4
|
+
name: {
|
|
5
|
+
maxLength: 63,
|
|
6
|
+
minLength: 1,
|
|
7
|
+
pattern: /^[a-z][a-zA-Z0-9_\-]*$/
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const CreateDeploymentRequest = {
|
|
11
|
+
cpuMax: {
|
|
12
|
+
greaterThanOrEqual: 1,
|
|
13
|
+
lessThanOrEqual: 15
|
|
14
|
+
},
|
|
15
|
+
cpuMin: {
|
|
16
|
+
greaterThanOrEqual: 1,
|
|
17
|
+
lessThanOrEqual: 15
|
|
18
|
+
},
|
|
19
|
+
name: {
|
|
20
|
+
maxLength: 255,
|
|
21
|
+
minLength: 1,
|
|
22
|
+
pattern: /^[A-Za-z0-9-_]+$/
|
|
23
|
+
},
|
|
24
|
+
password: {
|
|
25
|
+
maxLength: 50,
|
|
26
|
+
minLength: 12
|
|
27
|
+
},
|
|
28
|
+
replicaCount: {
|
|
29
|
+
greaterThanOrEqual: 1,
|
|
30
|
+
lessThanOrEqual: 6
|
|
31
|
+
},
|
|
32
|
+
version: {
|
|
33
|
+
maxLength: 10,
|
|
34
|
+
minLength: 1,
|
|
35
|
+
pattern: /^v[0-9]+$/
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const CreateUserRequest = {
|
|
39
|
+
name: {
|
|
40
|
+
maxLength: 63,
|
|
41
|
+
minLength: 1,
|
|
42
|
+
pattern: /^[a-z][a-zA-Z0-9_\-]*$/
|
|
43
|
+
},
|
|
44
|
+
password: {
|
|
45
|
+
maxLength: 50,
|
|
46
|
+
minLength: 12
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const DeleteDatabaseRequest = {
|
|
50
|
+
name: {
|
|
51
|
+
maxLength: 63,
|
|
52
|
+
minLength: 1,
|
|
53
|
+
pattern: /^[a-z][a-zA-Z0-9_\-]*$/
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const DeleteUserRequest = {
|
|
57
|
+
name: {
|
|
58
|
+
maxLength: 63,
|
|
59
|
+
minLength: 1,
|
|
60
|
+
pattern: /^[a-z][a-zA-Z0-9_\-]*$/
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
const Deployment = {
|
|
64
|
+
cpuMax: {
|
|
65
|
+
greaterThanOrEqual: 1,
|
|
66
|
+
lessThanOrEqual: 15
|
|
67
|
+
},
|
|
68
|
+
cpuMin: {
|
|
69
|
+
lessThanOrEqual: 15
|
|
70
|
+
},
|
|
71
|
+
name: {
|
|
72
|
+
maxLength: 63,
|
|
73
|
+
minLength: 1
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const ListDatabasesRequest = {
|
|
77
|
+
name: {
|
|
78
|
+
maxLength: 63,
|
|
79
|
+
minLength: 1,
|
|
80
|
+
pattern: /^[a-z][a-zA-Z0-9_\-]*$/
|
|
81
|
+
},
|
|
82
|
+
page: {
|
|
83
|
+
greaterThanOrEqual: 1
|
|
84
|
+
},
|
|
85
|
+
pageSize: {
|
|
86
|
+
greaterThanOrEqual: 1,
|
|
87
|
+
lessThanOrEqual: 100
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
const ListDeploymentsRequest = {
|
|
91
|
+
name: {
|
|
92
|
+
maxLength: 255,
|
|
93
|
+
minLength: 1,
|
|
94
|
+
pattern: /^[A-Za-z0-9-_]+$/
|
|
95
|
+
},
|
|
96
|
+
page: {
|
|
97
|
+
greaterThanOrEqual: 1
|
|
98
|
+
},
|
|
99
|
+
pageSize: {
|
|
100
|
+
greaterThanOrEqual: 1,
|
|
101
|
+
lessThanOrEqual: 100
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
const ListPresetsRequest = {
|
|
105
|
+
page: {
|
|
106
|
+
greaterThanOrEqual: 1
|
|
107
|
+
},
|
|
108
|
+
pageSize: {
|
|
109
|
+
greaterThanOrEqual: 1,
|
|
110
|
+
lessThanOrEqual: 100
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
const ListUsersRequest = {
|
|
114
|
+
name: {
|
|
115
|
+
maxLength: 63,
|
|
116
|
+
minLength: 1,
|
|
117
|
+
pattern: /^[a-zA-Z0-9_\-]*$/
|
|
118
|
+
},
|
|
119
|
+
page: {
|
|
120
|
+
greaterThanOrEqual: 1
|
|
121
|
+
},
|
|
122
|
+
pageSize: {
|
|
123
|
+
greaterThanOrEqual: 1,
|
|
124
|
+
lessThanOrEqual: 100
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const ListVersionsRequest = {
|
|
128
|
+
page: {
|
|
129
|
+
greaterThanOrEqual: 1
|
|
130
|
+
},
|
|
131
|
+
pageSize: {
|
|
132
|
+
greaterThanOrEqual: 1,
|
|
133
|
+
lessThanOrEqual: 100
|
|
134
|
+
},
|
|
135
|
+
version: {
|
|
136
|
+
maxLength: 10,
|
|
137
|
+
minLength: 1,
|
|
138
|
+
pattern: /^v[0-9]+$/
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
const UpdateDeploymentRequest = {
|
|
142
|
+
cpuMax: {
|
|
143
|
+
greaterThanOrEqual: 1,
|
|
144
|
+
lessThanOrEqual: 15
|
|
145
|
+
},
|
|
146
|
+
cpuMin: {
|
|
147
|
+
greaterThanOrEqual: 1,
|
|
148
|
+
lessThanOrEqual: 15
|
|
149
|
+
},
|
|
150
|
+
name: {
|
|
151
|
+
maxLength: 255,
|
|
152
|
+
minLength: 1,
|
|
153
|
+
pattern: /^[A-Za-z0-9-_]+$/
|
|
154
|
+
},
|
|
155
|
+
replicaCount: {
|
|
156
|
+
greaterThanOrEqual: 1,
|
|
157
|
+
lessThanOrEqual: 6
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const UpdateUserRequest = {
|
|
161
|
+
name: {
|
|
162
|
+
maxLength: 63,
|
|
163
|
+
minLength: 1,
|
|
164
|
+
pattern: /^[a-z][a-zA-Z0-9_\-]*$/
|
|
165
|
+
},
|
|
166
|
+
password: {
|
|
167
|
+
maxLength: 50,
|
|
168
|
+
minLength: 12
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
exports.CreateDatabaseRequest = CreateDatabaseRequest;
|
|
172
|
+
exports.CreateDeploymentRequest = CreateDeploymentRequest;
|
|
173
|
+
exports.CreateUserRequest = CreateUserRequest;
|
|
174
|
+
exports.DeleteDatabaseRequest = DeleteDatabaseRequest;
|
|
175
|
+
exports.DeleteUserRequest = DeleteUserRequest;
|
|
176
|
+
exports.Deployment = Deployment;
|
|
177
|
+
exports.ListDatabasesRequest = ListDatabasesRequest;
|
|
178
|
+
exports.ListDeploymentsRequest = ListDeploymentsRequest;
|
|
179
|
+
exports.ListPresetsRequest = ListPresetsRequest;
|
|
180
|
+
exports.ListUsersRequest = ListUsersRequest;
|
|
181
|
+
exports.ListVersionsRequest = ListVersionsRequest;
|
|
182
|
+
exports.UpdateDeploymentRequest = UpdateDeploymentRequest;
|
|
183
|
+
exports.UpdateUserRequest = UpdateUserRequest;
|