@scaleway/sdk-mongodb 1.0.1

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,31 @@
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.unmarshalInstanceSetting = marshalling_gen.unmarshalInstanceSetting;
23
+ exports.unmarshalListInstancesResponse = marshalling_gen.unmarshalListInstancesResponse;
24
+ exports.unmarshalListNodeTypesResponse = marshalling_gen.unmarshalListNodeTypesResponse;
25
+ exports.unmarshalListSnapshotsResponse = marshalling_gen.unmarshalListSnapshotsResponse;
26
+ exports.unmarshalListUsersResponse = marshalling_gen.unmarshalListUsersResponse;
27
+ exports.unmarshalListVersionsResponse = marshalling_gen.unmarshalListVersionsResponse;
28
+ exports.unmarshalSnapshot = marshalling_gen.unmarshalSnapshot;
29
+ exports.unmarshalUser = marshalling_gen.unmarshalUser;
30
+ exports.unmarshalVolume = marshalling_gen.unmarshalVolume;
31
+ 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, CreateInstanceRequestVolumeDetails, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, DeleteUserRequest, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicDetails, EndpointSpec, EndpointSpecPrivateNetworkDetails, EndpointSpecPublicDetails, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, InstanceSetting, InstanceStatus, ListInstancesRequest, ListInstancesRequestOrderBy, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, NodeType, NodeTypeStock, NodeTypeVolumeType, RestoreSnapshotRequest, RestoreSnapshotRequestVolumeDetails, SetUserRoleRequest, Setting, SettingPropertyType, Snapshot, SnapshotStatus, SnapshotVolumeType, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User, UserRole, UserRoleRole, Version, Volume, VolumeType, } from './types.gen';
5
+ export * as ValidationRules from './validation-rules.gen';
@@ -0,0 +1,31 @@
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, unmarshalInstanceSetting, unmarshalListInstancesResponse, unmarshalListNodeTypesResponse, unmarshalListSnapshotsResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalSnapshot, unmarshalUser, unmarshalVolume } 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
+ unmarshalInstanceSetting,
23
+ unmarshalListInstancesResponse,
24
+ unmarshalListNodeTypesResponse,
25
+ unmarshalListSnapshotsResponse,
26
+ unmarshalListUsersResponse,
27
+ unmarshalListVersionsResponse,
28
+ unmarshalSnapshot,
29
+ unmarshalUser,
30
+ unmarshalVolume
31
+ };
@@ -0,0 +1,361 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const randomName = require("@scaleway/random-name");
4
+ const sdkClient = require("@scaleway/sdk-client");
5
+ const unmarshalEndpointPrivateNetworkDetails = (data) => {
6
+ if (!sdkClient.isJSONObject(data)) {
7
+ throw new TypeError(
8
+ `Unmarshalling the type 'EndpointPrivateNetworkDetails' failed as data isn't a dictionary.`
9
+ );
10
+ }
11
+ return {
12
+ privateNetworkId: data.private_network_id
13
+ };
14
+ };
15
+ const unmarshalEndpointPublicDetails = (data) => {
16
+ if (!sdkClient.isJSONObject(data)) {
17
+ throw new TypeError(
18
+ `Unmarshalling the type 'EndpointPublicDetails' failed as data isn't a dictionary.`
19
+ );
20
+ }
21
+ return {};
22
+ };
23
+ const unmarshalEndpoint = (data) => {
24
+ if (!sdkClient.isJSONObject(data)) {
25
+ throw new TypeError(
26
+ `Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`
27
+ );
28
+ }
29
+ return {
30
+ dnsRecords: data.dns_records,
31
+ id: data.id,
32
+ ips: data.ips,
33
+ port: data.port,
34
+ privateNetwork: data.private_network ? unmarshalEndpointPrivateNetworkDetails(data.private_network) : void 0,
35
+ public: data.public ? unmarshalEndpointPublicDetails(data.public) : void 0
36
+ };
37
+ };
38
+ const unmarshalInstanceSetting = (data) => {
39
+ if (!sdkClient.isJSONObject(data)) {
40
+ throw new TypeError(
41
+ `Unmarshalling the type 'InstanceSetting' failed as data isn't a dictionary.`
42
+ );
43
+ }
44
+ return {
45
+ name: data.name,
46
+ value: data.value
47
+ };
48
+ };
49
+ const unmarshalVolume = (data) => {
50
+ if (!sdkClient.isJSONObject(data)) {
51
+ throw new TypeError(
52
+ `Unmarshalling the type 'Volume' failed as data isn't a dictionary.`
53
+ );
54
+ }
55
+ return {
56
+ size: data.size,
57
+ type: data.type
58
+ };
59
+ };
60
+ const unmarshalInstance = (data) => {
61
+ if (!sdkClient.isJSONObject(data)) {
62
+ throw new TypeError(
63
+ `Unmarshalling the type 'Instance' failed as data isn't a dictionary.`
64
+ );
65
+ }
66
+ return {
67
+ createdAt: sdkClient.unmarshalDate(data.created_at),
68
+ endpoints: sdkClient.unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
69
+ id: data.id,
70
+ name: data.name,
71
+ nodeNumber: data.node_number,
72
+ nodeType: data.node_type,
73
+ projectId: data.project_id,
74
+ region: data.region,
75
+ settings: sdkClient.unmarshalArrayOfObject(data.settings, unmarshalInstanceSetting),
76
+ status: data.status,
77
+ tags: data.tags,
78
+ version: data.version,
79
+ volume: data.volume ? unmarshalVolume(data.volume) : void 0
80
+ };
81
+ };
82
+ const unmarshalSnapshotVolumeType = (data) => {
83
+ if (!sdkClient.isJSONObject(data)) {
84
+ throw new TypeError(
85
+ `Unmarshalling the type 'SnapshotVolumeType' failed as data isn't a dictionary.`
86
+ );
87
+ }
88
+ return {
89
+ type: data.type
90
+ };
91
+ };
92
+ const unmarshalSnapshot = (data) => {
93
+ if (!sdkClient.isJSONObject(data)) {
94
+ throw new TypeError(
95
+ `Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`
96
+ );
97
+ }
98
+ return {
99
+ createdAt: sdkClient.unmarshalDate(data.created_at),
100
+ expiresAt: sdkClient.unmarshalDate(data.expires_at),
101
+ id: data.id,
102
+ instanceId: data.instance_id,
103
+ instanceName: data.instance_name,
104
+ name: data.name,
105
+ nodeType: data.node_type,
106
+ region: data.region,
107
+ size: data.size,
108
+ status: data.status,
109
+ updatedAt: sdkClient.unmarshalDate(data.updated_at),
110
+ volumeType: data.volume_type ? unmarshalSnapshotVolumeType(data.volume_type) : void 0
111
+ };
112
+ };
113
+ const unmarshalUserRole = (data) => {
114
+ if (!sdkClient.isJSONObject(data)) {
115
+ throw new TypeError(
116
+ `Unmarshalling the type 'UserRole' failed as data isn't a dictionary.`
117
+ );
118
+ }
119
+ return {
120
+ anyDatabase: data.any_database,
121
+ database: data.database,
122
+ role: data.role
123
+ };
124
+ };
125
+ const unmarshalUser = (data) => {
126
+ if (!sdkClient.isJSONObject(data)) {
127
+ throw new TypeError(
128
+ `Unmarshalling the type 'User' failed as data isn't a dictionary.`
129
+ );
130
+ }
131
+ return {
132
+ name: data.name,
133
+ roles: sdkClient.unmarshalArrayOfObject(data.roles, unmarshalUserRole)
134
+ };
135
+ };
136
+ const unmarshalListInstancesResponse = (data) => {
137
+ if (!sdkClient.isJSONObject(data)) {
138
+ throw new TypeError(
139
+ `Unmarshalling the type 'ListInstancesResponse' failed as data isn't a dictionary.`
140
+ );
141
+ }
142
+ return {
143
+ instances: sdkClient.unmarshalArrayOfObject(data.instances, unmarshalInstance),
144
+ totalCount: data.total_count
145
+ };
146
+ };
147
+ const unmarshalNodeTypeVolumeType = (data) => {
148
+ if (!sdkClient.isJSONObject(data)) {
149
+ throw new TypeError(
150
+ `Unmarshalling the type 'NodeTypeVolumeType' failed as data isn't a dictionary.`
151
+ );
152
+ }
153
+ return {
154
+ chunkSize: data.chunk_size,
155
+ description: data.description,
156
+ maxSize: data.max_size,
157
+ minSize: data.min_size,
158
+ type: data.type
159
+ };
160
+ };
161
+ const unmarshalNodeType = (data) => {
162
+ if (!sdkClient.isJSONObject(data)) {
163
+ throw new TypeError(
164
+ `Unmarshalling the type 'NodeType' failed as data isn't a dictionary.`
165
+ );
166
+ }
167
+ return {
168
+ availableVolumeTypes: sdkClient.unmarshalArrayOfObject(
169
+ data.available_volume_types,
170
+ unmarshalNodeTypeVolumeType
171
+ ),
172
+ beta: data.beta,
173
+ description: data.description,
174
+ disabled: data.disabled,
175
+ instanceRange: data.instance_range,
176
+ memory: data.memory,
177
+ name: data.name,
178
+ stockStatus: data.stock_status,
179
+ vcpus: data.vcpus
180
+ };
181
+ };
182
+ const unmarshalListNodeTypesResponse = (data) => {
183
+ if (!sdkClient.isJSONObject(data)) {
184
+ throw new TypeError(
185
+ `Unmarshalling the type 'ListNodeTypesResponse' failed as data isn't a dictionary.`
186
+ );
187
+ }
188
+ return {
189
+ nodeTypes: sdkClient.unmarshalArrayOfObject(data.node_types, unmarshalNodeType),
190
+ totalCount: data.total_count
191
+ };
192
+ };
193
+ const unmarshalListSnapshotsResponse = (data) => {
194
+ if (!sdkClient.isJSONObject(data)) {
195
+ throw new TypeError(
196
+ `Unmarshalling the type 'ListSnapshotsResponse' failed as data isn't a dictionary.`
197
+ );
198
+ }
199
+ return {
200
+ snapshots: sdkClient.unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
201
+ totalCount: data.total_count
202
+ };
203
+ };
204
+ const unmarshalListUsersResponse = (data) => {
205
+ if (!sdkClient.isJSONObject(data)) {
206
+ throw new TypeError(
207
+ `Unmarshalling the type 'ListUsersResponse' failed as data isn't a dictionary.`
208
+ );
209
+ }
210
+ return {
211
+ totalCount: data.total_count,
212
+ users: sdkClient.unmarshalArrayOfObject(data.users, unmarshalUser)
213
+ };
214
+ };
215
+ const unmarshalSetting = (data) => {
216
+ if (!sdkClient.isJSONObject(data)) {
217
+ throw new TypeError(
218
+ `Unmarshalling the type 'Setting' failed as data isn't a dictionary.`
219
+ );
220
+ }
221
+ return {
222
+ defaultValue: data.default_value,
223
+ description: data.description,
224
+ floatMax: data.float_max,
225
+ floatMin: data.float_min,
226
+ hotConfigurable: data.hot_configurable,
227
+ intMax: data.int_max,
228
+ intMin: data.int_min,
229
+ name: data.name,
230
+ propertyType: data.property_type,
231
+ stringConstraint: data.string_constraint,
232
+ unit: data.unit
233
+ };
234
+ };
235
+ const unmarshalVersion = (data) => {
236
+ if (!sdkClient.isJSONObject(data)) {
237
+ throw new TypeError(
238
+ `Unmarshalling the type 'Version' failed as data isn't a dictionary.`
239
+ );
240
+ }
241
+ return {
242
+ availableSettings: sdkClient.unmarshalArrayOfObject(
243
+ data.available_settings,
244
+ unmarshalSetting
245
+ ),
246
+ endOfLifeAt: sdkClient.unmarshalDate(data.end_of_life_at),
247
+ version: data.version
248
+ };
249
+ };
250
+ const unmarshalListVersionsResponse = (data) => {
251
+ if (!sdkClient.isJSONObject(data)) {
252
+ throw new TypeError(
253
+ `Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`
254
+ );
255
+ }
256
+ return {
257
+ totalCount: data.total_count,
258
+ versions: sdkClient.unmarshalArrayOfObject(data.versions, unmarshalVersion)
259
+ };
260
+ };
261
+ const marshalEndpointSpecPrivateNetworkDetails = (request, defaults) => ({
262
+ private_network_id: request.privateNetworkId
263
+ });
264
+ const marshalEndpointSpecPublicDetails = (request, defaults) => ({});
265
+ const marshalEndpointSpec = (request, defaults) => ({
266
+ ...sdkClient.resolveOneOf([
267
+ {
268
+ param: "public",
269
+ value: request.public !== void 0 ? marshalEndpointSpecPublicDetails(request.public) : void 0
270
+ },
271
+ {
272
+ param: "private_network",
273
+ value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkDetails(
274
+ request.privateNetwork
275
+ ) : void 0
276
+ }
277
+ ])
278
+ });
279
+ const marshalCreateEndpointRequest = (request, defaults) => ({
280
+ endpoint: marshalEndpointSpec(request.endpoint),
281
+ instance_id: request.instanceId
282
+ });
283
+ const marshalCreateInstanceRequestVolumeDetails = (request, defaults) => ({
284
+ volume_size: request.volumeSize,
285
+ volume_type: request.volumeType
286
+ });
287
+ const marshalCreateInstanceRequest = (request, defaults) => ({
288
+ endpoints: request.endpoints !== void 0 ? request.endpoints.map((elt) => marshalEndpointSpec(elt)) : void 0,
289
+ name: request.name || randomName("mgdb"),
290
+ node_number: request.nodeNumber,
291
+ node_type: request.nodeType,
292
+ password: request.password,
293
+ project_id: request.projectId ?? defaults.defaultProjectId,
294
+ tags: request.tags,
295
+ user_name: request.userName,
296
+ version: request.version,
297
+ volume: request.volume !== void 0 ? marshalCreateInstanceRequestVolumeDetails(request.volume) : void 0
298
+ });
299
+ const marshalCreateSnapshotRequest = (request, defaults) => ({
300
+ expires_at: request.expiresAt,
301
+ name: request.name
302
+ });
303
+ const marshalCreateUserRequest = (request, defaults) => ({
304
+ name: request.name,
305
+ password: request.password
306
+ });
307
+ const marshalRestoreSnapshotRequestVolumeDetails = (request, defaults) => ({
308
+ volume_type: request.volumeType
309
+ });
310
+ const marshalRestoreSnapshotRequest = (request, defaults) => ({
311
+ instance_name: request.instanceName,
312
+ node_number: request.nodeNumber,
313
+ node_type: request.nodeType,
314
+ volume: marshalRestoreSnapshotRequestVolumeDetails(request.volume)
315
+ });
316
+ const marshalUserRole = (request, defaults) => ({
317
+ role: request.role,
318
+ ...sdkClient.resolveOneOf([
319
+ { param: "database", value: request.database },
320
+ { param: "any_database", value: request.anyDatabase }
321
+ ])
322
+ });
323
+ const marshalSetUserRoleRequest = (request, defaults) => ({
324
+ roles: request.roles !== void 0 ? request.roles.map((elt) => marshalUserRole(elt)) : void 0,
325
+ user_name: request.userName
326
+ });
327
+ const marshalUpdateInstanceRequest = (request, defaults) => ({
328
+ name: request.name,
329
+ tags: request.tags
330
+ });
331
+ const marshalUpdateSnapshotRequest = (request, defaults) => ({
332
+ expires_at: request.expiresAt,
333
+ name: request.name
334
+ });
335
+ const marshalUpdateUserRequest = (request, defaults) => ({
336
+ password: request.password
337
+ });
338
+ const marshalUpgradeInstanceRequest = (request, defaults) => ({
339
+ ...sdkClient.resolveOneOf([{ param: "volume_size", value: request.volumeSize }])
340
+ });
341
+ exports.marshalCreateEndpointRequest = marshalCreateEndpointRequest;
342
+ exports.marshalCreateInstanceRequest = marshalCreateInstanceRequest;
343
+ exports.marshalCreateSnapshotRequest = marshalCreateSnapshotRequest;
344
+ exports.marshalCreateUserRequest = marshalCreateUserRequest;
345
+ exports.marshalRestoreSnapshotRequest = marshalRestoreSnapshotRequest;
346
+ exports.marshalSetUserRoleRequest = marshalSetUserRoleRequest;
347
+ exports.marshalUpdateInstanceRequest = marshalUpdateInstanceRequest;
348
+ exports.marshalUpdateSnapshotRequest = marshalUpdateSnapshotRequest;
349
+ exports.marshalUpdateUserRequest = marshalUpdateUserRequest;
350
+ exports.marshalUpgradeInstanceRequest = marshalUpgradeInstanceRequest;
351
+ exports.unmarshalEndpoint = unmarshalEndpoint;
352
+ exports.unmarshalInstance = unmarshalInstance;
353
+ exports.unmarshalInstanceSetting = unmarshalInstanceSetting;
354
+ exports.unmarshalListInstancesResponse = unmarshalListInstancesResponse;
355
+ exports.unmarshalListNodeTypesResponse = unmarshalListNodeTypesResponse;
356
+ exports.unmarshalListSnapshotsResponse = unmarshalListSnapshotsResponse;
357
+ exports.unmarshalListUsersResponse = unmarshalListUsersResponse;
358
+ exports.unmarshalListVersionsResponse = unmarshalListVersionsResponse;
359
+ exports.unmarshalSnapshot = unmarshalSnapshot;
360
+ exports.unmarshalUser = unmarshalUser;
361
+ exports.unmarshalVolume = unmarshalVolume;
@@ -0,0 +1,23 @@
1
+ import type { DefaultValues } from '@scaleway/sdk-client';
2
+ import type { CreateEndpointRequest, CreateInstanceRequest, CreateSnapshotRequest, CreateUserRequest, Endpoint, Instance, InstanceSetting, ListInstancesResponse, ListNodeTypesResponse, ListSnapshotsResponse, ListUsersResponse, ListVersionsResponse, RestoreSnapshotRequest, SetUserRoleRequest, Snapshot, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User, Volume } from './types.gen';
3
+ export declare const unmarshalEndpoint: (data: unknown) => Endpoint;
4
+ export declare const unmarshalInstanceSetting: (data: unknown) => InstanceSetting;
5
+ export declare const unmarshalVolume: (data: unknown) => Volume;
6
+ export declare const unmarshalInstance: (data: unknown) => Instance;
7
+ export declare const unmarshalSnapshot: (data: unknown) => Snapshot;
8
+ export declare const unmarshalUser: (data: unknown) => User;
9
+ export declare const unmarshalListInstancesResponse: (data: unknown) => ListInstancesResponse;
10
+ export declare const unmarshalListNodeTypesResponse: (data: unknown) => ListNodeTypesResponse;
11
+ export declare const unmarshalListSnapshotsResponse: (data: unknown) => ListSnapshotsResponse;
12
+ export declare const unmarshalListUsersResponse: (data: unknown) => ListUsersResponse;
13
+ export declare const unmarshalListVersionsResponse: (data: unknown) => ListVersionsResponse;
14
+ export declare const marshalCreateEndpointRequest: (request: CreateEndpointRequest, defaults: DefaultValues) => Record<string, unknown>;
15
+ export declare const marshalCreateInstanceRequest: (request: CreateInstanceRequest, defaults: DefaultValues) => Record<string, unknown>;
16
+ export declare const marshalCreateSnapshotRequest: (request: CreateSnapshotRequest, defaults: DefaultValues) => Record<string, unknown>;
17
+ export declare const marshalCreateUserRequest: (request: CreateUserRequest, defaults: DefaultValues) => Record<string, unknown>;
18
+ export declare const marshalRestoreSnapshotRequest: (request: RestoreSnapshotRequest, defaults: DefaultValues) => Record<string, unknown>;
19
+ export declare const marshalSetUserRoleRequest: (request: SetUserRoleRequest, defaults: DefaultValues) => Record<string, unknown>;
20
+ export declare const marshalUpdateInstanceRequest: (request: UpdateInstanceRequest, defaults: DefaultValues) => Record<string, unknown>;
21
+ export declare const marshalUpdateSnapshotRequest: (request: UpdateSnapshotRequest, defaults: DefaultValues) => Record<string, unknown>;
22
+ export declare const marshalUpdateUserRequest: (request: UpdateUserRequest, defaults: DefaultValues) => Record<string, unknown>;
23
+ export declare const marshalUpgradeInstanceRequest: (request: UpgradeInstanceRequest, defaults: DefaultValues) => Record<string, unknown>;