@scaleway/sdk-searchdb 1.7.3 → 1.9.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.
@@ -0,0 +1,72 @@
1
+ //#region src/v1alpha1/metadata.gen.ts
2
+ const queriesMetadata = {
3
+ namespace: "searchdb",
4
+ version: "v1alpha1",
5
+ folderName: "searchdbv1alpha1",
6
+ services: [{
7
+ apiClass: "API",
8
+ methods: [
9
+ {
10
+ methodName: "getDeployment",
11
+ protoName: "GetDeployment",
12
+ paramsType: "GetDeploymentRequest",
13
+ returnType: "Deployment",
14
+ isList: false,
15
+ paginationType: "none",
16
+ isPrivate: false,
17
+ description: "\"",
18
+ hasWaiter: true
19
+ },
20
+ {
21
+ methodName: "listDeployments",
22
+ protoName: "ListDeployments",
23
+ paramsType: "ListDeploymentsRequest",
24
+ returnType: "ListDeploymentsResponse",
25
+ isList: true,
26
+ paginationType: "offset",
27
+ pageParamKey: "page",
28
+ listItemType: "Deployment",
29
+ isPrivate: false,
30
+ description: "\""
31
+ },
32
+ {
33
+ methodName: "listVersions",
34
+ protoName: "ListVersions",
35
+ paramsType: "ListVersionsRequest",
36
+ returnType: "ListVersionsResponse",
37
+ isList: true,
38
+ paginationType: "offset",
39
+ pageParamKey: "page",
40
+ listItemType: "Version",
41
+ isPrivate: false,
42
+ description: "\""
43
+ },
44
+ {
45
+ methodName: "listNodeTypes",
46
+ protoName: "ListNodeTypes",
47
+ paramsType: "ListNodeTypesRequest",
48
+ returnType: "ListNodeTypesResponse",
49
+ isList: true,
50
+ paginationType: "offset",
51
+ pageParamKey: "page",
52
+ listItemType: "NodeType",
53
+ isPrivate: false,
54
+ description: "\""
55
+ },
56
+ {
57
+ methodName: "listUsers",
58
+ protoName: "ListUsers",
59
+ paramsType: "ListUsersRequest",
60
+ returnType: "ListUsersResponse",
61
+ isList: true,
62
+ paginationType: "offset",
63
+ pageParamKey: "page",
64
+ listItemType: "User",
65
+ isPrivate: false,
66
+ description: "\""
67
+ }
68
+ ]
69
+ }]
70
+ };
71
+ //#endregion
72
+ export { queriesMetadata };
@@ -0,0 +1,570 @@
1
+ import type { Region as ScwRegion } from '@scaleway/sdk-client';
2
+ export type DeploymentStatus = 'unknown_status' | 'ready' | 'creating' | 'initializing' | 'upgrading' | 'deleting' | 'error' | 'locked' | 'locking' | 'unlocking';
3
+ export type ListDeploymentsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'updated_at_asc' | 'updated_at_desc';
4
+ export type ListNodeTypesRequestOrderBy = 'name_asc' | 'name_desc' | 'vcpus_asc' | 'vcpus_desc' | 'memory_asc' | 'memory_desc';
5
+ export type ListUsersRequestOrderBy = 'name_asc' | 'name_desc';
6
+ export type ListVersionsRequestOrderBy = 'version_asc' | 'version_desc';
7
+ export type NodeTypeStockStatus = 'unknown_stock' | 'low_stock' | 'out_of_stock' | 'available';
8
+ export type VolumeType = 'unknown_type' | 'sbs_5k' | 'sbs_15k';
9
+ export interface EndpointPrivateNetworkDetails {
10
+ privateNetworkId: string;
11
+ }
12
+ export interface EndpointPublicDetails {
13
+ }
14
+ export interface EndpointService {
15
+ name: string;
16
+ port: number;
17
+ url: string;
18
+ }
19
+ export interface EndpointSpecPrivateNetworkDetails {
20
+ privateNetworkId: string;
21
+ }
22
+ export interface EndpointSpecPublicDetails {
23
+ }
24
+ /**
25
+ * Refers to an Endpoint.
26
+ */
27
+ export interface Endpoint {
28
+ /**
29
+ * Unique identifier of the Endpoint.
30
+ */
31
+ id: string;
32
+ /**
33
+ * @deprecated DNS entry to access to the service. Now deprecated. Use the `url` field from `services` field instead.
34
+ */
35
+ dnsRecord?: string;
36
+ /**
37
+ * List of available services, their ports and URLs.
38
+ */
39
+ services: EndpointService[];
40
+ /**
41
+ *
42
+ * One-of ('details'): at most one of 'public', 'privateNetwork' could be set.
43
+ */
44
+ public?: EndpointPublicDetails;
45
+ /**
46
+ *
47
+ * One-of ('details'): at most one of 'public', 'privateNetwork' could be set.
48
+ */
49
+ privateNetwork?: EndpointPrivateNetworkDetails;
50
+ }
51
+ /**
52
+ * Volume.
53
+ */
54
+ export interface Volume {
55
+ /**
56
+ * Define the type of the Volume.
57
+ */
58
+ type: VolumeType;
59
+ /**
60
+ * Define the size of the Volume.
61
+ */
62
+ sizeBytes: number;
63
+ }
64
+ export interface NodeTypeVolumeType {
65
+ type: VolumeType;
66
+ description: string;
67
+ minSizeBytes: number;
68
+ maxSizeBytes: number;
69
+ chunkSizeBytes: number;
70
+ }
71
+ export interface EndpointSpec {
72
+ /**
73
+ *
74
+ * One-of ('details'): at most one of 'public', 'privateNetwork' could be set.
75
+ */
76
+ public?: EndpointSpecPublicDetails;
77
+ /**
78
+ *
79
+ * One-of ('details'): at most one of 'public', 'privateNetwork' could be set.
80
+ */
81
+ privateNetwork?: EndpointSpecPrivateNetworkDetails;
82
+ }
83
+ /**
84
+ * Refers to a Deployment.
85
+ */
86
+ export interface Deployment {
87
+ /**
88
+ * Unique identifier of the Deployment.
89
+ */
90
+ id: string;
91
+ /**
92
+ * Name of the Deployment.
93
+ */
94
+ name: string;
95
+ /**
96
+ * ID of the Organization containing the Deployment.
97
+ */
98
+ organizationId: string;
99
+ /**
100
+ * ID of the Project containing the Deployment.
101
+ */
102
+ projectId: string;
103
+ /**
104
+ * Status of the Deployment.
105
+ */
106
+ status: DeploymentStatus;
107
+ /**
108
+ * Tags of the Deployment.
109
+ */
110
+ tags: string[];
111
+ /**
112
+ * @deprecated DEPRECATED: Use node_count instead. Number of nodes allocated per deployment.
113
+ */
114
+ nodeAmount: number;
115
+ /**
116
+ * Number of nodes allocated per deployment.
117
+ */
118
+ nodeCount: number;
119
+ /**
120
+ * Node type used in deployment.
121
+ */
122
+ nodeType: string;
123
+ /**
124
+ * Volume type and size.
125
+ */
126
+ volume?: Volume;
127
+ /**
128
+ * Exposed endpoints.
129
+ */
130
+ endpoints: Endpoint[];
131
+ /**
132
+ * Creation date of the Deployment.
133
+ */
134
+ createdAt?: Date;
135
+ /**
136
+ * Date when last update was done to the Deployment.
137
+ */
138
+ updatedAt?: Date;
139
+ /**
140
+ * Opensearch version of the Deployment.
141
+ */
142
+ version: string;
143
+ /**
144
+ * Region the Deployment is located.
145
+ */
146
+ region: ScwRegion;
147
+ }
148
+ /**
149
+ * Node type.
150
+ */
151
+ export interface NodeType {
152
+ /**
153
+ * Stock status of the node type.
154
+ */
155
+ stockStatus: NodeTypeStockStatus;
156
+ /**
157
+ * Name of the node type.
158
+ */
159
+ name: string;
160
+ /**
161
+ * Description of the node type.
162
+ */
163
+ description: string;
164
+ /**
165
+ * Number of vCPUs available.
166
+ */
167
+ vcpus: number;
168
+ /**
169
+ * Amount of memory available.
170
+ */
171
+ memoryBytes: number;
172
+ /**
173
+ * Defines whether the node type is disabled.
174
+ */
175
+ disabled: boolean;
176
+ /**
177
+ * Defines whether the node type is in beta.
178
+ */
179
+ beta: boolean;
180
+ /**
181
+ * Instance range associated with the NodeType offer.
182
+ */
183
+ instanceRange: string;
184
+ /**
185
+ * Available storage options for the Node Type.
186
+ */
187
+ availableVolumeTypes: NodeTypeVolumeType[];
188
+ }
189
+ export interface User {
190
+ username: string;
191
+ }
192
+ /**
193
+ * Opensearch Version.
194
+ */
195
+ export interface Version {
196
+ /**
197
+ * Opensearch Version.
198
+ */
199
+ version: string;
200
+ /**
201
+ * End of life date of the version.
202
+ */
203
+ endOfLife?: Date;
204
+ /**
205
+ * Parameter that tell if the version is disabled.
206
+ */
207
+ disabled: boolean;
208
+ /**
209
+ * Parameter that tell if the version is in beta.
210
+ */
211
+ beta: boolean;
212
+ }
213
+ /**
214
+ * Request to create a new deployment.
215
+ */
216
+ export type CreateDeploymentRequest = {
217
+ /**
218
+ * Region to target. If none is passed will use default region from the config.
219
+ */
220
+ region?: ScwRegion;
221
+ /**
222
+ * Project ID in which to create the deployment.
223
+ */
224
+ projectId?: string;
225
+ /**
226
+ * Name of the deployment.
227
+ */
228
+ name: string;
229
+ /**
230
+ * Tags.
231
+ */
232
+ tags?: string[];
233
+ /**
234
+ * @deprecated DEPRECATED: Use node_count instead. Number of nodes.
235
+ */
236
+ nodeAmount?: number;
237
+ /**
238
+ * Number of nodes.
239
+ */
240
+ nodeCount?: number;
241
+ /**
242
+ * Node type.
243
+ */
244
+ nodeType: string;
245
+ /**
246
+ * Username for the deployment user.
247
+ */
248
+ userName?: string;
249
+ /**
250
+ * Password for the deployment user.
251
+ */
252
+ password?: string;
253
+ /**
254
+ * Volume.
255
+ */
256
+ volume?: Volume;
257
+ /**
258
+ * Endpoints to access the deployment.
259
+ */
260
+ endpoints?: EndpointSpec[];
261
+ /**
262
+ * The Opensearch version to use.
263
+ */
264
+ version: string;
265
+ };
266
+ /**
267
+ * Create an endpoint for a specific deployment.
268
+ */
269
+ export type CreateEndpointRequest = {
270
+ /**
271
+ * Region to target. If none is passed will use default region from the config.
272
+ */
273
+ region?: ScwRegion;
274
+ /**
275
+ * ID of the deployment for which to create an endpoint.
276
+ */
277
+ deploymentId: string;
278
+ /**
279
+ * Specification of the endpoint you want to create.
280
+ */
281
+ endpointSpec?: EndpointSpec;
282
+ };
283
+ /**
284
+ * Create a user in an deployment.
285
+ */
286
+ export type CreateUserRequest = {
287
+ /**
288
+ * Region to target. If none is passed will use default region from the config.
289
+ */
290
+ region?: ScwRegion;
291
+ /**
292
+ * ID of the deployment in which to create the user.
293
+ */
294
+ deploymentId: string;
295
+ /**
296
+ * Username of the deployment user.
297
+ */
298
+ username: string;
299
+ /**
300
+ * Password of the deployment user.
301
+ */
302
+ password: string;
303
+ };
304
+ /**
305
+ * Delete a deployment specified by the ID.
306
+ */
307
+ export type DeleteDeploymentRequest = {
308
+ /**
309
+ * Region to target. If none is passed will use default region from the config.
310
+ */
311
+ region?: ScwRegion;
312
+ /**
313
+ * ID of the deployment.
314
+ */
315
+ deploymentId: string;
316
+ };
317
+ /**
318
+ * Delete an endpoint from a specific deployment.
319
+ */
320
+ export type DeleteEndpointRequest = {
321
+ /**
322
+ * Region to target. If none is passed will use default region from the config.
323
+ */
324
+ region?: ScwRegion;
325
+ /**
326
+ * ID of the endpoint to delete.
327
+ */
328
+ endpointId: string;
329
+ };
330
+ /**
331
+ * Delete a user from a deployment.
332
+ */
333
+ export type DeleteUserRequest = {
334
+ /**
335
+ * Region to target. If none is passed will use default region from the config.
336
+ */
337
+ region?: ScwRegion;
338
+ /**
339
+ * ID of the deployment in which to create the user.
340
+ */
341
+ deploymentId: string;
342
+ /**
343
+ * Username of the deployment user.
344
+ */
345
+ username: string;
346
+ };
347
+ export type DownloadDeploymentCertificateAuthorityRequest = {
348
+ /**
349
+ * Region to target. If none is passed will use default region from the config.
350
+ */
351
+ region?: ScwRegion;
352
+ deploymentId: string;
353
+ };
354
+ /**
355
+ * Retrieve a deployment specified by the ID.
356
+ */
357
+ export type GetDeploymentRequest = {
358
+ /**
359
+ * Region to target. If none is passed will use default region from the config.
360
+ */
361
+ region?: ScwRegion;
362
+ /**
363
+ * ID of the deployment.
364
+ */
365
+ deploymentId: string;
366
+ };
367
+ /**
368
+ * Retrieve a list of deployments.
369
+ */
370
+ export type ListDeploymentsRequest = {
371
+ /**
372
+ * Region to target. If none is passed will use default region from the config.
373
+ */
374
+ region?: ScwRegion;
375
+ /**
376
+ * ID of the Organization containing the deployments.
377
+ */
378
+ organizationId?: string;
379
+ /**
380
+ * ID of the Project containing the deployments.
381
+ */
382
+ projectId?: string;
383
+ /**
384
+ * Define the order of the returned deployments.
385
+ */
386
+ orderBy?: ListDeploymentsRequestOrderBy;
387
+ /**
388
+ * The page number to return, from the paginated results.
389
+ */
390
+ page?: number;
391
+ /**
392
+ * Number of deployments to return.
393
+ */
394
+ pageSize?: number;
395
+ /**
396
+ * Filter by tag, only deployments with one or more matching tags will be returned.
397
+ */
398
+ tags?: string[];
399
+ /**
400
+ * Deployment name to filter for.
401
+ */
402
+ name?: string;
403
+ };
404
+ /**
405
+ * Retrieve a list of deployments.
406
+ */
407
+ export interface ListDeploymentsResponse {
408
+ /**
409
+ * List of deployments available.
410
+ */
411
+ deployments: Deployment[];
412
+ /**
413
+ * Total number of objects.
414
+ */
415
+ totalCount: number;
416
+ }
417
+ /**
418
+ * Retrieve a list of available node types for a Cloud Essentials for OpenSearch cluster.
419
+ */
420
+ export type ListNodeTypesRequest = {
421
+ /**
422
+ * Region to target. If none is passed will use default region from the config.
423
+ */
424
+ region?: ScwRegion;
425
+ /**
426
+ * Sort order of nodes in the response (name, vcpus or memory).
427
+ */
428
+ orderBy?: ListNodeTypesRequestOrderBy;
429
+ /**
430
+ * Page number to return, from the paginated results.
431
+ */
432
+ page?: number;
433
+ /**
434
+ * Number of node types to return.
435
+ */
436
+ pageSize?: number;
437
+ };
438
+ /**
439
+ * Returns a list of node types available for a Cloud Essentials for OpenSearch cluster.
440
+ */
441
+ export interface ListNodeTypesResponse {
442
+ /**
443
+ * Node types compatible with the cluster.
444
+ */
445
+ nodeTypes: NodeType[];
446
+ /**
447
+ * Number of available node types to return.
448
+ */
449
+ totalCount: number;
450
+ }
451
+ export type ListUsersRequest = {
452
+ /**
453
+ * Region to target. If none is passed will use default region from the config.
454
+ */
455
+ region?: ScwRegion;
456
+ deploymentId: string;
457
+ page?: number;
458
+ pageSize?: number;
459
+ orderBy?: ListUsersRequestOrderBy;
460
+ name?: string;
461
+ };
462
+ export interface ListUsersResponse {
463
+ users: User[];
464
+ totalCount: number;
465
+ }
466
+ /**
467
+ * Retrieve a list of available versions.
468
+ */
469
+ export type ListVersionsRequest = {
470
+ /**
471
+ * Region to target. If none is passed will use default region from the config.
472
+ */
473
+ region?: ScwRegion;
474
+ /**
475
+ * Define the order of the returned version.
476
+ */
477
+ orderBy?: ListVersionsRequestOrderBy;
478
+ /**
479
+ * The page number to return, form the paginated results.
480
+ */
481
+ page?: number;
482
+ /**
483
+ * Number of version to return.
484
+ */
485
+ pageSize?: number;
486
+ /**
487
+ * Filter by version.
488
+ */
489
+ version?: string;
490
+ };
491
+ /**
492
+ * Retrieve a list of version.
493
+ */
494
+ export interface ListVersionsResponse {
495
+ /**
496
+ * List of versions.
497
+ */
498
+ versions: Version[];
499
+ /**
500
+ * Number of versions in the list.
501
+ */
502
+ totalCount: number;
503
+ }
504
+ export type UpdateDeploymentRequest = {
505
+ /**
506
+ * Region to target. If none is passed will use default region from the config.
507
+ */
508
+ region?: ScwRegion;
509
+ /**
510
+ * UUID of the deployment to update.
511
+ */
512
+ deploymentId: string;
513
+ /**
514
+ * Name of the deployment.
515
+ */
516
+ name?: string;
517
+ /**
518
+ * Tags of a deployment.
519
+ */
520
+ tags?: string[];
521
+ };
522
+ /**
523
+ * Update a user in an deployment.
524
+ */
525
+ export type UpdateUserRequest = {
526
+ /**
527
+ * Region to target. If none is passed will use default region from the config.
528
+ */
529
+ region?: ScwRegion;
530
+ /**
531
+ * ID of the deployment in which to create the user.
532
+ */
533
+ deploymentId: string;
534
+ /**
535
+ * Username of the deployment user.
536
+ */
537
+ username: string;
538
+ /**
539
+ * Password of the deployment user.
540
+ */
541
+ password?: string;
542
+ };
543
+ export type UpgradeDeploymentRequest = {
544
+ /**
545
+ * Region to target. If none is passed will use default region from the config.
546
+ */
547
+ region?: ScwRegion;
548
+ /**
549
+ * UUID of the Deployment to upgrade.
550
+ */
551
+ deploymentId: string;
552
+ /**
553
+ * @deprecated DEPRECATED: Use node_count instead. Amount of node upgrade target.
554
+ *
555
+ * One-of ('upgradeTarget'): at most one of 'nodeAmount', 'nodeCount', 'volumeSizeBytes' could be set.
556
+ */
557
+ nodeAmount?: number;
558
+ /**
559
+ * The target number of nodes for the upgrade.
560
+ *
561
+ * One-of ('upgradeTarget'): at most one of 'nodeAmount', 'nodeCount', 'volumeSizeBytes' could be set.
562
+ */
563
+ nodeCount?: number;
564
+ /**
565
+ * Volume size upgrade target.
566
+ *
567
+ * One-of ('upgradeTarget'): at most one of 'nodeAmount', 'nodeCount', 'volumeSizeBytes' could be set.
568
+ */
569
+ volumeSizeBytes?: number;
570
+ };
File without changes