@scaleway/sdk-mongodb 1.0.5 → 1.0.6

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,419 @@
1
+ import { API as API$1, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
2
+ import { INSTANCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { unmarshalListNodeTypesResponse, unmarshalListVersionsResponse, unmarshalListInstancesResponse, unmarshalInstance, marshalCreateInstanceRequest, marshalUpdateInstanceRequest, marshalUpgradeInstanceRequest, marshalCreateSnapshotRequest, unmarshalSnapshot, marshalUpdateSnapshotRequest, marshalRestoreSnapshotRequest, unmarshalListSnapshotsResponse, unmarshalListUsersResponse, marshalCreateUserRequest, unmarshalUser, marshalUpdateUserRequest, marshalSetUserRoleRequest, marshalCreateEndpointRequest, unmarshalEndpoint } from "./marshalling.gen.js";
4
+ const jsonContentHeaders = {
5
+ "Content-Type": "application/json; charset=utf-8"
6
+ };
7
+ class API extends API$1 {
8
+ /**
9
+ * Locality of this API.
10
+ * type ∈ {'zone','region','global','unspecified'}
11
+ */
12
+ static LOCALITY = toApiLocality({
13
+ regions: ["fr-par"]
14
+ });
15
+ pageOfListNodeTypes = (request = {}) => this.client.fetch(
16
+ {
17
+ method: "GET",
18
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/node-types`,
19
+ urlParams: urlParams(
20
+ ["include_disabled", request.includeDisabled],
21
+ ["page", request.page],
22
+ [
23
+ "page_size",
24
+ request.pageSize ?? this.client.settings.defaultPageSize
25
+ ]
26
+ )
27
+ },
28
+ unmarshalListNodeTypesResponse
29
+ );
30
+ /**
31
+ * List available node types.
32
+ *
33
+ * @param request - The request {@link ListNodeTypesRequest}
34
+ * @returns A Promise of ListNodeTypesResponse
35
+ */
36
+ listNodeTypes = (request = {}) => enrichForPagination("nodeTypes", this.pageOfListNodeTypes, request);
37
+ pageOfListVersions = (request = {}) => this.client.fetch(
38
+ {
39
+ method: "GET",
40
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/versions`,
41
+ urlParams: urlParams(
42
+ ["page", request.page],
43
+ [
44
+ "page_size",
45
+ request.pageSize ?? this.client.settings.defaultPageSize
46
+ ],
47
+ ["version", request.version]
48
+ )
49
+ },
50
+ unmarshalListVersionsResponse
51
+ );
52
+ /**
53
+ * List available MongoDB® major versions.
54
+ *
55
+ * @param request - The request {@link ListVersionsRequest}
56
+ * @returns A Promise of ListVersionsResponse
57
+ */
58
+ listVersions = (request = {}) => enrichForPagination("versions", this.pageOfListVersions, request);
59
+ pageOfListInstances = (request = {}) => this.client.fetch(
60
+ {
61
+ method: "GET",
62
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances`,
63
+ urlParams: urlParams(
64
+ ["name", request.name],
65
+ ["order_by", request.orderBy],
66
+ ["organization_id", request.organizationId],
67
+ ["page", request.page],
68
+ [
69
+ "page_size",
70
+ request.pageSize ?? this.client.settings.defaultPageSize
71
+ ],
72
+ ["project_id", request.projectId],
73
+ ["tags", request.tags]
74
+ )
75
+ },
76
+ unmarshalListInstancesResponse
77
+ );
78
+ /**
79
+ * List MongoDB® Database Instances. List all MongoDB® Database Instances in the specified region. By default, the MongoDB® Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.
80
+ *
81
+ * @param request - The request {@link ListInstancesRequest}
82
+ * @returns A Promise of ListInstancesResponse
83
+ */
84
+ listInstances = (request = {}) => enrichForPagination("instances", this.pageOfListInstances, request);
85
+ /**
86
+ * Get a MongoDB® Database Instance. Retrieve information about a given MongoDB® Database Instance, specified by the `region` and `instance_id` parameters. Its full details, including name, status, IP address and port, are returned in the response object.
87
+ *
88
+ * @param request - The request {@link GetInstanceRequest}
89
+ * @returns A Promise of Instance
90
+ */
91
+ getInstance = (request) => this.client.fetch(
92
+ {
93
+ method: "GET",
94
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}`
95
+ },
96
+ unmarshalInstance
97
+ );
98
+ /**
99
+ * Waits for {@link Instance} to be in a final state.
100
+ *
101
+ * @param request - The request {@link GetInstanceRequest}
102
+ * @param options - The waiting options
103
+ * @returns A Promise of Instance
104
+ */
105
+ waitForInstance = (request, options) => waitForResource(
106
+ options?.stop ?? ((res) => Promise.resolve(
107
+ !INSTANCE_TRANSIENT_STATUSES.includes(res.status)
108
+ )),
109
+ this.getInstance,
110
+ request,
111
+ options
112
+ );
113
+ /**
114
+ * Create a MongoDB® Database Instance. Create a new MongoDB® Database Instance.
115
+ *
116
+ * @param request - The request {@link CreateInstanceRequest}
117
+ * @returns A Promise of Instance
118
+ */
119
+ createInstance = (request) => this.client.fetch(
120
+ {
121
+ body: JSON.stringify(
122
+ marshalCreateInstanceRequest(request, this.client.settings)
123
+ ),
124
+ headers: jsonContentHeaders,
125
+ method: "POST",
126
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances`
127
+ },
128
+ unmarshalInstance
129
+ );
130
+ /**
131
+ * Update a MongoDB® Database Instance. Update the parameters of a MongoDB® Database Instance.
132
+ *
133
+ * @param request - The request {@link UpdateInstanceRequest}
134
+ * @returns A Promise of Instance
135
+ */
136
+ updateInstance = (request) => this.client.fetch(
137
+ {
138
+ body: JSON.stringify(
139
+ marshalUpdateInstanceRequest(request, this.client.settings)
140
+ ),
141
+ headers: jsonContentHeaders,
142
+ method: "PATCH",
143
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}`
144
+ },
145
+ unmarshalInstance
146
+ );
147
+ /**
148
+ * Delete a MongoDB® Database Instance. Delete a given MongoDB® Database Instance, specified by the `region` and `instance_id` parameters. Deleting a MongoDB® Database Instance is permanent, and cannot be undone. Note that upon deletion all your data will be lost.
149
+ *
150
+ * @param request - The request {@link DeleteInstanceRequest}
151
+ * @returns A Promise of Instance
152
+ */
153
+ deleteInstance = (request) => this.client.fetch(
154
+ {
155
+ method: "DELETE",
156
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}`
157
+ },
158
+ unmarshalInstance
159
+ );
160
+ /**
161
+ * Upgrade a Database Instance. Upgrade your current Database Instance specifications like volume size.
162
+ *
163
+ * @param request - The request {@link UpgradeInstanceRequest}
164
+ * @returns A Promise of Instance
165
+ */
166
+ upgradeInstance = (request) => this.client.fetch(
167
+ {
168
+ body: JSON.stringify(
169
+ marshalUpgradeInstanceRequest(request, this.client.settings)
170
+ ),
171
+ headers: jsonContentHeaders,
172
+ method: "POST",
173
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/upgrade`
174
+ },
175
+ unmarshalInstance
176
+ );
177
+ /**
178
+ * Get the certificate of a Database Instance. Retrieve the certificate of a given Database Instance, specified by the `instance_id` parameter.
179
+ *
180
+ * @param request - The request {@link GetInstanceCertificateRequest}
181
+ * @returns A Promise of Blob
182
+ */
183
+ getInstanceCertificate = (request) => this.client.fetch({
184
+ method: "GET",
185
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/certificate`,
186
+ urlParams: urlParams(["dl", 1]),
187
+ responseType: "blob"
188
+ });
189
+ /**
190
+ * Create a Database Instance snapshot. Create a new snapshot of a Database Instance. You must define the `name` and `instance_id` parameters in the request.
191
+ *
192
+ * @param request - The request {@link CreateSnapshotRequest}
193
+ * @returns A Promise of Snapshot
194
+ */
195
+ createSnapshot = (request) => this.client.fetch(
196
+ {
197
+ body: JSON.stringify(
198
+ marshalCreateSnapshotRequest(request, this.client.settings)
199
+ ),
200
+ headers: jsonContentHeaders,
201
+ method: "POST",
202
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots`
203
+ },
204
+ unmarshalSnapshot
205
+ );
206
+ /**
207
+ * Get a Database Instance snapshot. Retrieve information about a given snapshot of a Database Instance. You must specify, in the endpoint, the `snapshot_id` parameter of the snapshot you want to retrieve.
208
+ *
209
+ * @param request - The request {@link GetSnapshotRequest}
210
+ * @returns A Promise of Snapshot
211
+ */
212
+ getSnapshot = (request) => this.client.fetch(
213
+ {
214
+ method: "GET",
215
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
216
+ },
217
+ unmarshalSnapshot
218
+ );
219
+ /**
220
+ * Waits for {@link Snapshot} to be in a final state.
221
+ *
222
+ * @param request - The request {@link GetSnapshotRequest}
223
+ * @param options - The waiting options
224
+ * @returns A Promise of Snapshot
225
+ */
226
+ waitForSnapshot = (request, options) => waitForResource(
227
+ options?.stop ?? ((res) => Promise.resolve(
228
+ !SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
229
+ )),
230
+ this.getSnapshot,
231
+ request,
232
+ options
233
+ );
234
+ /**
235
+ * Update a Database Instance snapshot. Update the parameters of a snapshot of a Database Instance. You can update the `name` and `expires_at` parameters.
236
+ *
237
+ * @param request - The request {@link UpdateSnapshotRequest}
238
+ * @returns A Promise of Snapshot
239
+ */
240
+ updateSnapshot = (request) => this.client.fetch(
241
+ {
242
+ body: JSON.stringify(
243
+ marshalUpdateSnapshotRequest(request, this.client.settings)
244
+ ),
245
+ headers: jsonContentHeaders,
246
+ method: "PATCH",
247
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
248
+ },
249
+ unmarshalSnapshot
250
+ );
251
+ /**
252
+ * Restore a Database Instance snapshot. Restore a given snapshot of a Database Instance. You must specify, in the endpoint, the `snapshot_id` parameter of the snapshot you want to restore, the `instance_name` of the new Database Instance, `node_type` of the new Database Instance and `node_amount` of the new Database Instance.
253
+ *
254
+ * @param request - The request {@link RestoreSnapshotRequest}
255
+ * @returns A Promise of Instance
256
+ */
257
+ restoreSnapshot = (request) => this.client.fetch(
258
+ {
259
+ body: JSON.stringify(
260
+ marshalRestoreSnapshotRequest(request, this.client.settings)
261
+ ),
262
+ headers: jsonContentHeaders,
263
+ method: "POST",
264
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}/restore`
265
+ },
266
+ unmarshalInstance
267
+ );
268
+ pageOfListSnapshots = (request = {}) => this.client.fetch(
269
+ {
270
+ method: "GET",
271
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots`,
272
+ urlParams: urlParams(
273
+ ["instance_id", request.instanceId],
274
+ ["name", request.name],
275
+ ["order_by", request.orderBy],
276
+ ["organization_id", request.organizationId],
277
+ ["page", request.page],
278
+ [
279
+ "page_size",
280
+ request.pageSize ?? this.client.settings.defaultPageSize
281
+ ],
282
+ ["project_id", request.projectId]
283
+ )
284
+ },
285
+ unmarshalListSnapshotsResponse
286
+ );
287
+ /**
288
+ * List snapshots. List snapshots. You can include the `instance_id` or `project_id` in your query to get the list of snapshots for specific Database Instances and/or Projects. By default, the details returned in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
289
+ *
290
+ * @param request - The request {@link ListSnapshotsRequest}
291
+ * @returns A Promise of ListSnapshotsResponse
292
+ */
293
+ listSnapshots = (request = {}) => enrichForPagination("snapshots", this.pageOfListSnapshots, request);
294
+ /**
295
+ * Delete a Database Instance snapshot. Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `snapshot_id` parameter of the snapshot you want to delete.
296
+ *
297
+ * @param request - The request {@link DeleteSnapshotRequest}
298
+ * @returns A Promise of Snapshot
299
+ */
300
+ deleteSnapshot = (request) => this.client.fetch(
301
+ {
302
+ method: "DELETE",
303
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
304
+ },
305
+ unmarshalSnapshot
306
+ );
307
+ pageOfListUsers = (request) => this.client.fetch(
308
+ {
309
+ method: "GET",
310
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/users`,
311
+ urlParams: urlParams(
312
+ ["name", request.name],
313
+ ["order_by", request.orderBy],
314
+ ["page", request.page],
315
+ [
316
+ "page_size",
317
+ request.pageSize ?? this.client.settings.defaultPageSize
318
+ ]
319
+ )
320
+ },
321
+ unmarshalListUsersResponse
322
+ );
323
+ /**
324
+ * List users of a Database Instance. List all users of a given Database Instance.
325
+ *
326
+ * @param request - The request {@link ListUsersRequest}
327
+ * @returns A Promise of ListUsersResponse
328
+ */
329
+ listUsers = (request) => enrichForPagination("users", this.pageOfListUsers, request);
330
+ /**
331
+ * Create an user on a Database Instance. Create an user on a Database Instance. You must define the `name`, `password` of the user and `instance_id` parameters in the request.
332
+ *
333
+ * @param request - The request {@link CreateUserRequest}
334
+ * @returns A Promise of User
335
+ */
336
+ createUser = (request) => this.client.fetch(
337
+ {
338
+ body: JSON.stringify(
339
+ marshalCreateUserRequest(request, this.client.settings)
340
+ ),
341
+ headers: jsonContentHeaders,
342
+ method: "POST",
343
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/users`
344
+ },
345
+ unmarshalUser
346
+ );
347
+ /**
348
+ * Update a user on a Database Instance. Update the parameters of a user on a Database Instance. You can update the `password` parameter, but you cannot change the name of the user.
349
+ *
350
+ * @param request - The request {@link UpdateUserRequest}
351
+ * @returns A Promise of User
352
+ */
353
+ updateUser = (request) => this.client.fetch(
354
+ {
355
+ body: JSON.stringify(
356
+ marshalUpdateUserRequest(request, this.client.settings)
357
+ ),
358
+ headers: jsonContentHeaders,
359
+ method: "PATCH",
360
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/users/${validatePathParam("name", request.name)}`
361
+ },
362
+ unmarshalUser
363
+ );
364
+ /**
365
+ * Delete a user on a Database Instance. Delete an existing user on a Database Instance.
366
+ *
367
+ * @param request - The request {@link DeleteUserRequest}
368
+ */
369
+ deleteUser = (request) => this.client.fetch({
370
+ method: "DELETE",
371
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/users/${validatePathParam("name", request.name)}`
372
+ });
373
+ /**
374
+ * Apply user roles. Apply preset roles for a user in a Database Instance.
375
+ *
376
+ * @param request - The request {@link SetUserRoleRequest}
377
+ * @returns A Promise of User
378
+ */
379
+ setUserRole = (request) => this.client.fetch(
380
+ {
381
+ body: JSON.stringify(
382
+ marshalSetUserRoleRequest(request, this.client.settings)
383
+ ),
384
+ headers: jsonContentHeaders,
385
+ method: "PUT",
386
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/set-user-roles`
387
+ },
388
+ unmarshalUser
389
+ );
390
+ /**
391
+ * Delete a Database Instance endpoint. Delete the endpoint of a Database Instance. You must specify the `endpoint_id` parameter of the endpoint you want to delete. Note that you might need to update any environment configurations that point to the deleted endpoint.
392
+ *
393
+ * @param request - The request {@link DeleteEndpointRequest}
394
+ */
395
+ deleteEndpoint = (request) => this.client.fetch({
396
+ method: "DELETE",
397
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
398
+ });
399
+ /**
400
+ * Create a new Instance endpoint. Create a new endpoint for a MongoDB® Database Instance. You can add `public_network` or `private_network` specifications to the body of the request.
401
+ *
402
+ * @param request - The request {@link CreateEndpointRequest}
403
+ * @returns A Promise of Endpoint
404
+ */
405
+ createEndpoint = (request) => this.client.fetch(
406
+ {
407
+ body: JSON.stringify(
408
+ marshalCreateEndpointRequest(request, this.client.settings)
409
+ ),
410
+ headers: jsonContentHeaders,
411
+ method: "POST",
412
+ path: `/mongodb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints`
413
+ },
414
+ unmarshalEndpoint
415
+ );
416
+ }
417
+ export {
418
+ API
419
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const INSTANCE_TRANSIENT_STATUSES = [
4
+ "provisioning",
5
+ "configuring",
6
+ "deleting",
7
+ "initializing",
8
+ "snapshotting"
9
+ ];
10
+ const SNAPSHOT_TRANSIENT_STATUSES = [
11
+ "creating",
12
+ "restoring",
13
+ "deleting"
14
+ ];
15
+ exports.INSTANCE_TRANSIENT_STATUSES = INSTANCE_TRANSIENT_STATUSES;
16
+ exports.SNAPSHOT_TRANSIENT_STATUSES = SNAPSHOT_TRANSIENT_STATUSES;
@@ -0,0 +1,5 @@
1
+ import type { InstanceStatus, SnapshotStatus } from './types.gen';
2
+ /** Lists transient statutes of the enum {@link InstanceStatus}. */
3
+ export declare const INSTANCE_TRANSIENT_STATUSES: InstanceStatus[];
4
+ /** Lists transient statutes of the enum {@link SnapshotStatus}. */
5
+ export declare const SNAPSHOT_TRANSIENT_STATUSES: SnapshotStatus[];
@@ -0,0 +1,16 @@
1
+ const INSTANCE_TRANSIENT_STATUSES = [
2
+ "provisioning",
3
+ "configuring",
4
+ "deleting",
5
+ "initializing",
6
+ "snapshotting"
7
+ ];
8
+ const SNAPSHOT_TRANSIENT_STATUSES = [
9
+ "creating",
10
+ "restoring",
11
+ "deleting"
12
+ ];
13
+ export {
14
+ INSTANCE_TRANSIENT_STATUSES,
15
+ SNAPSHOT_TRANSIENT_STATUSES
16
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const api_gen = require("./api.gen.cjs");
4
+ const content_gen = require("./content.gen.cjs");
5
+ const marshalling_gen = require("./marshalling.gen.cjs");
6
+ const validationRules_gen = require("./validation-rules.gen.cjs");
7
+ exports.API = api_gen.API;
8
+ exports.INSTANCE_TRANSIENT_STATUSES = content_gen.INSTANCE_TRANSIENT_STATUSES;
9
+ exports.SNAPSHOT_TRANSIENT_STATUSES = content_gen.SNAPSHOT_TRANSIENT_STATUSES;
10
+ exports.marshalCreateEndpointRequest = marshalling_gen.marshalCreateEndpointRequest;
11
+ exports.marshalCreateInstanceRequest = marshalling_gen.marshalCreateInstanceRequest;
12
+ exports.marshalCreateSnapshotRequest = marshalling_gen.marshalCreateSnapshotRequest;
13
+ exports.marshalCreateUserRequest = marshalling_gen.marshalCreateUserRequest;
14
+ exports.marshalRestoreSnapshotRequest = marshalling_gen.marshalRestoreSnapshotRequest;
15
+ exports.marshalSetUserRoleRequest = marshalling_gen.marshalSetUserRoleRequest;
16
+ exports.marshalUpdateInstanceRequest = marshalling_gen.marshalUpdateInstanceRequest;
17
+ exports.marshalUpdateSnapshotRequest = marshalling_gen.marshalUpdateSnapshotRequest;
18
+ exports.marshalUpdateUserRequest = marshalling_gen.marshalUpdateUserRequest;
19
+ exports.marshalUpgradeInstanceRequest = marshalling_gen.marshalUpgradeInstanceRequest;
20
+ exports.unmarshalEndpoint = marshalling_gen.unmarshalEndpoint;
21
+ exports.unmarshalInstance = marshalling_gen.unmarshalInstance;
22
+ exports.unmarshalListInstancesResponse = marshalling_gen.unmarshalListInstancesResponse;
23
+ exports.unmarshalListNodeTypesResponse = marshalling_gen.unmarshalListNodeTypesResponse;
24
+ exports.unmarshalListSnapshotsResponse = marshalling_gen.unmarshalListSnapshotsResponse;
25
+ exports.unmarshalListUsersResponse = marshalling_gen.unmarshalListUsersResponse;
26
+ exports.unmarshalListVersionsResponse = marshalling_gen.unmarshalListVersionsResponse;
27
+ exports.unmarshalSnapshot = marshalling_gen.unmarshalSnapshot;
28
+ exports.unmarshalUser = marshalling_gen.unmarshalUser;
29
+ exports.ValidationRules = validationRules_gen;
@@ -0,0 +1,5 @@
1
+ export { API } from './api.gen';
2
+ export * from './content.gen';
3
+ export * from './marshalling.gen';
4
+ export type { CreateEndpointRequest, CreateInstanceRequest, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, DeleteUserRequest, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicNetworkDetails, EndpointSpec, EndpointSpecPrivateNetworkDetails, EndpointSpecPublicNetworkDetails, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, InstanceSnapshotSchedule, InstanceStatus, ListInstancesRequest, ListInstancesRequestOrderBy, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, NodeType, NodeTypeStock, NodeTypeVolumeType, RestoreSnapshotRequest, SetUserRoleRequest, Snapshot, SnapshotStatus, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User, UserRole, UserRoleRole, Version, Volume, VolumeType, } from './types.gen';
5
+ export * as ValidationRules from './validation-rules.gen';
@@ -0,0 +1,29 @@
1
+ import { API } from "./api.gen.js";
2
+ import { INSTANCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import { marshalCreateEndpointRequest, marshalCreateInstanceRequest, marshalCreateSnapshotRequest, marshalCreateUserRequest, marshalRestoreSnapshotRequest, marshalSetUserRoleRequest, marshalUpdateInstanceRequest, marshalUpdateSnapshotRequest, marshalUpdateUserRequest, marshalUpgradeInstanceRequest, unmarshalEndpoint, unmarshalInstance, unmarshalListInstancesResponse, unmarshalListNodeTypesResponse, unmarshalListSnapshotsResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalSnapshot, unmarshalUser } from "./marshalling.gen.js";
4
+ import * as validationRules_gen from "./validation-rules.gen.js";
5
+ export {
6
+ API,
7
+ INSTANCE_TRANSIENT_STATUSES,
8
+ SNAPSHOT_TRANSIENT_STATUSES,
9
+ validationRules_gen as ValidationRules,
10
+ marshalCreateEndpointRequest,
11
+ marshalCreateInstanceRequest,
12
+ marshalCreateSnapshotRequest,
13
+ marshalCreateUserRequest,
14
+ marshalRestoreSnapshotRequest,
15
+ marshalSetUserRoleRequest,
16
+ marshalUpdateInstanceRequest,
17
+ marshalUpdateSnapshotRequest,
18
+ marshalUpdateUserRequest,
19
+ marshalUpgradeInstanceRequest,
20
+ unmarshalEndpoint,
21
+ unmarshalInstance,
22
+ unmarshalListInstancesResponse,
23
+ unmarshalListNodeTypesResponse,
24
+ unmarshalListSnapshotsResponse,
25
+ unmarshalListUsersResponse,
26
+ unmarshalListVersionsResponse,
27
+ unmarshalSnapshot,
28
+ unmarshalUser
29
+ };