@scaleway/sdk 0.1.0-beta.3 → 0.1.0-beta.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.
@@ -1,5 +1,5 @@
1
1
  import { isJSONObject } from '../../../helpers/json.js';
2
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
2
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
3
3
 
4
4
  // This file was automatically generated. DO NOT EDIT.
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { isJSONObject } from '../../../helpers/json.js';
2
2
  import { unmarshalMoney, unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
3
- import { resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from '../../../helpers/marshalling.js';
3
+ import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
5
5
  // This file was automatically generated. DO NOT EDIT.
6
6
 
@@ -1,6 +1,6 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
- import { resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from '../../../helpers/marshalling.js';
3
+ import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
5
5
  // This file was automatically generated. DO NOT EDIT.
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { isJSONObject } from '../../../helpers/json.js';
2
2
  import { unmarshalMoney } from '../../../scw/custom-marshalling.js';
3
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject } from '../../../helpers/marshalling.js';
3
+ import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf, unmarshalMapOfObject } from '../../../helpers/marshalling.js';
4
4
 
5
5
  // This file was automatically generated. DO NOT EDIT.
6
6
 
@@ -274,7 +274,7 @@ const unmarshalContact = data => {
274
274
  lastname: data.lastname,
275
275
  legalForm: data.legal_form,
276
276
  phoneNumber: data.phone_number,
277
- questions: unmarshalArrayOfObject(data.questions, unmarshalContactQuestion),
277
+ questions: unmarshalArrayOfObject(data.questions, unmarshalContactQuestion, false),
278
278
  resale: data.resale,
279
279
  state: data.state,
280
280
  vatIdentificationCode: data.vat_identification_code,
@@ -1027,7 +1027,7 @@ const marshalNewContact = (request, defaults) => ({
1027
1027
  lastname: request.lastname,
1028
1028
  legal_form: request.legalForm,
1029
1029
  phone_number: request.phoneNumber,
1030
- questions: request.questions.map(elt => marshalContactQuestion(elt)),
1030
+ questions: request.questions ? request.questions.map(elt => marshalContactQuestion(elt)) : undefined,
1031
1031
  resale: request.resale,
1032
1032
  state: request.state,
1033
1033
  vat_identification_code: request.vatIdentificationCode,
@@ -1,6 +1,6 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
- import { resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from '../../../helpers/marshalling.js';
3
+ import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
5
5
  // This file was automatically generated. DO NOT EDIT.
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { isJSONObject } from '../../../helpers/json.js';
2
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
2
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
3
3
 
4
4
  // This file was automatically generated. DO NOT EDIT.
5
5
  const unmarshalAPIKey = data => {
@@ -1,6 +1,6 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
- import { resolveOneOf, unmarshalDate, unmarshalMapOfObject, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
3
+ import { unmarshalArrayOfObject, unmarshalMapOfObject, resolveOneOf, unmarshalDate } from '../../../helpers/marshalling.js';
4
4
 
5
5
  // This file was automatically generated. DO NOT EDIT.
6
6
 
@@ -1,7 +1,7 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
4
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
4
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
5
5
 
6
6
  // This file was automatically generated. DO NOT EDIT.
7
7
 
@@ -162,7 +162,8 @@ class K8SV1GenAPI extends API {
162
162
 
163
163
  this.deleteNode = request => this.client.fetch({
164
164
  method: 'DELETE',
165
- path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nodes/${validatePathParam('nodeId', request.nodeId)}`
165
+ path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/nodes/${validatePathParam('nodeId', request.nodeId)}`,
166
+ urlParams: urlParams(['replace', request.replace], ['skip_drain', request.skipDrain])
166
167
  }, unmarshalNode);
167
168
 
168
169
  this.listVersions = function (request) {
@@ -5,7 +5,7 @@
5
5
  const CLUSTER_TRANSIENT_STATUSES = ['creating', 'deleting', 'updating'];
6
6
  /** Lists transient statutes of the enum {@link NodeStatus}. */
7
7
 
8
- const NODE_TRANSIENT_STATUSES = ['creating', 'deleting', 'rebooting', 'upgrading'];
8
+ const NODE_TRANSIENT_STATUSES = ['creating', 'deleting', 'rebooting', 'upgrading', 'starting', 'registering'];
9
9
  /** Lists transient statutes of the enum {@link PoolStatus}. */
10
10
 
11
11
  const POOL_TRANSIENT_STATUSES = ['deleting', 'scaling', 'upgrading'];
@@ -1,6 +1,6 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
3
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
5
5
  // This file was automatically generated. DO NOT EDIT.
6
6
 
@@ -113,6 +113,7 @@ const unmarshalNode = data => {
113
113
  clusterId: data.cluster_id,
114
114
  conditions: data.conditions,
115
115
  createdAt: unmarshalDate(data.created_at),
116
+ errorMessage: data.error_message,
116
117
  id: data.id,
117
118
  name: data.name,
118
119
  poolId: data.pool_id,
@@ -1,6 +1,6 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
3
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
5
5
  // This file was automatically generated. DO NOT EDIT.
6
6
 
@@ -1,5 +1,5 @@
1
1
  import { isJSONObject } from '../../../helpers/json.js';
2
- import { unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
2
+ import { unmarshalArrayOfObject, unmarshalDate } from '../../../helpers/marshalling.js';
3
3
 
4
4
  // This file was automatically generated. DO NOT EDIT.
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { isJSONObject } from '../../../helpers/json.js';
2
- import { resolveOneOf, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
2
+ import { unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
3
3
 
4
4
  // This file was automatically generated. DO NOT EDIT.
5
5
 
@@ -4,7 +4,7 @@ import { unmarshalScwFile } from '../../../scw/custom-marshalling.js';
4
4
  import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
5
5
  import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
6
6
  import { DATABASE_BACKUP_TRANSIENT_STATUSES, INSTANCE_TRANSIENT_STATUSES, INSTANCE_LOG_TRANSIENT_STATUSES } from './content.gen.js';
7
- import { unmarshalListDatabaseEnginesResponse, unmarshalListNodeTypesResponse, unmarshalListDatabaseBackupsResponse, marshalCreateDatabaseBackupRequest, unmarshalDatabaseBackup, marshalUpdateDatabaseBackupRequest, marshalRestoreDatabaseBackupRequest, marshalUpgradeInstanceRequest, unmarshalInstance, unmarshalListInstancesResponse, marshalCreateInstanceRequest, marshalUpdateInstanceRequest, marshalCloneInstanceRequest, unmarshalInstanceMetrics, marshalPrepareInstanceLogsRequest, unmarshalPrepareInstanceLogsResponse, unmarshalListInstanceLogsResponse, unmarshalInstanceLog, marshalPurgeInstanceLogsRequest, unmarshalListInstanceLogsDetailsResponse, marshalAddInstanceSettingsRequest, unmarshalAddInstanceSettingsResponse, marshalDeleteInstanceSettingsRequest, unmarshalDeleteInstanceSettingsResponse, marshalSetInstanceSettingsRequest, unmarshalSetInstanceSettingsResponse, unmarshalListInstanceACLRulesResponse, marshalAddInstanceACLRulesRequest, unmarshalAddInstanceACLRulesResponse, marshalSetInstanceACLRulesRequest, unmarshalSetInstanceACLRulesResponse, marshalDeleteInstanceACLRulesRequest, unmarshalDeleteInstanceACLRulesResponse, unmarshalListUsersResponse, marshalCreateUserRequest, unmarshalUser, marshalUpdateUserRequest, unmarshalListDatabasesResponse, marshalCreateDatabaseRequest, unmarshalDatabase, unmarshalListPrivilegesResponse, marshalSetPrivilegeRequest, unmarshalPrivilege, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalUpdateSnapshotRequest, marshalCreateInstanceFromSnapshotRequest, marshalCreateEndpointRequest, unmarshalEndpoint } from './marshalling.gen.js';
7
+ import { unmarshalListDatabaseEnginesResponse, unmarshalListNodeTypesResponse, unmarshalListDatabaseBackupsResponse, marshalCreateDatabaseBackupRequest, unmarshalDatabaseBackup, marshalUpdateDatabaseBackupRequest, marshalRestoreDatabaseBackupRequest, marshalUpgradeInstanceRequest, unmarshalInstance, unmarshalListInstancesResponse, marshalCreateInstanceRequest, marshalUpdateInstanceRequest, marshalCloneInstanceRequest, unmarshalInstanceMetrics, marshalCreateReadReplicaRequest, unmarshalReadReplica, marshalCreateReadReplicaEndpointRequest, marshalPrepareInstanceLogsRequest, unmarshalPrepareInstanceLogsResponse, unmarshalListInstanceLogsResponse, unmarshalInstanceLog, marshalPurgeInstanceLogsRequest, unmarshalListInstanceLogsDetailsResponse, marshalAddInstanceSettingsRequest, unmarshalAddInstanceSettingsResponse, marshalDeleteInstanceSettingsRequest, unmarshalDeleteInstanceSettingsResponse, marshalSetInstanceSettingsRequest, unmarshalSetInstanceSettingsResponse, unmarshalListInstanceACLRulesResponse, marshalAddInstanceACLRulesRequest, unmarshalAddInstanceACLRulesResponse, marshalSetInstanceACLRulesRequest, unmarshalSetInstanceACLRulesResponse, marshalDeleteInstanceACLRulesRequest, unmarshalDeleteInstanceACLRulesResponse, unmarshalListUsersResponse, marshalCreateUserRequest, unmarshalUser, marshalUpdateUserRequest, unmarshalListDatabasesResponse, marshalCreateDatabaseRequest, unmarshalDatabase, unmarshalListPrivilegesResponse, marshalSetPrivilegeRequest, unmarshalPrivilege, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalUpdateSnapshotRequest, marshalCreateInstanceFromSnapshotRequest, marshalCreateEndpointRequest, unmarshalEndpoint } from './marshalling.gen.js';
8
8
 
9
9
  // This file was automatically generated. DO NOT EDIT.
10
10
  const jsonContentHeaders = {
@@ -192,6 +192,37 @@ class RdbV1GenAPI extends API {
192
192
  urlParams: urlParams(['end_date', request.endDate], ['metric_name', request.metricName], ['start_date', request.startDate])
193
193
  }, unmarshalInstanceMetrics);
194
194
 
195
+ this.createReadReplica = request => this.client.fetch({
196
+ body: JSON.stringify(marshalCreateReadReplicaRequest(request, this.client.settings)),
197
+ headers: jsonContentHeaders,
198
+ method: 'POST',
199
+ path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas`
200
+ }, unmarshalReadReplica);
201
+
202
+ this.getReadReplica = request => this.client.fetch({
203
+ method: 'GET',
204
+ path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}`
205
+ }, unmarshalReadReplica);
206
+
207
+ this.deleteReadReplica = request => this.client.fetch({
208
+ method: 'DELETE',
209
+ path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}`
210
+ }, unmarshalReadReplica);
211
+
212
+ this.resetReadReplica = request => this.client.fetch({
213
+ body: '{}',
214
+ headers: jsonContentHeaders,
215
+ method: 'POST',
216
+ path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/reset`
217
+ }, unmarshalReadReplica);
218
+
219
+ this.createReadReplicaEndpoint = request => this.client.fetch({
220
+ body: JSON.stringify(marshalCreateReadReplicaEndpointRequest(request, this.client.settings)),
221
+ headers: jsonContentHeaders,
222
+ method: 'POST',
223
+ path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/endpoints`
224
+ }, unmarshalReadReplica);
225
+
195
226
  this.prepareInstanceLogs = request => this.client.fetch({
196
227
  body: JSON.stringify(marshalPrepareInstanceLogsRequest(request, this.client.settings)),
197
228
  headers: jsonContentHeaders,
@@ -1,7 +1,7 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
4
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
4
+ import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
5
5
 
6
6
  // This file was automatically generated. DO NOT EDIT.
7
7
 
@@ -33,6 +33,23 @@ const unmarshalEndpointPrivateNetworkDetails = data => {
33
33
  };
34
34
  };
35
35
 
36
+ const unmarshalEndpoint = data => {
37
+ if (!isJSONObject(data)) {
38
+ throw new TypeError(`Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`);
39
+ }
40
+
41
+ return {
42
+ directAccess: data.direct_access ? unmarshalEndpointDirectAccessDetails(data.direct_access) : undefined,
43
+ hostname: data.hostname,
44
+ id: data.id,
45
+ ip: data.ip,
46
+ loadBalancer: data.load_balancer ? unmarshalEndpointLoadBalancerDetails(data.load_balancer) : undefined,
47
+ name: data.name,
48
+ port: data.port,
49
+ privateNetwork: data.private_network ? unmarshalEndpointPrivateNetworkDetails(data.private_network) : undefined
50
+ };
51
+ };
52
+
36
53
  const unmarshalEngineSetting = data => {
37
54
  if (!isJSONObject(data)) {
38
55
  throw new TypeError(`Unmarshalling the type 'EngineSetting' failed as data isn't a dictionary.`);
@@ -65,23 +82,6 @@ const unmarshalBackupSchedule = data => {
65
82
  };
66
83
  };
67
84
 
68
- const unmarshalEndpoint = data => {
69
- if (!isJSONObject(data)) {
70
- throw new TypeError(`Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`);
71
- }
72
-
73
- return {
74
- directAccess: data.direct_access ? unmarshalEndpointDirectAccessDetails(data.direct_access) : undefined,
75
- hostname: data.hostname,
76
- id: data.id,
77
- ip: data.ip,
78
- loadBalancer: data.load_balancer ? unmarshalEndpointLoadBalancerDetails(data.load_balancer) : undefined,
79
- name: data.name,
80
- port: data.port,
81
- privateNetwork: data.private_network ? unmarshalEndpointPrivateNetworkDetails(data.private_network) : undefined
82
- };
83
- };
84
-
85
85
  const unmarshalEngineVersion = data => {
86
86
  if (!isJSONObject(data)) {
87
87
  throw new TypeError(`Unmarshalling the type 'EngineVersion' failed as data isn't a dictionary.`);
@@ -159,6 +159,19 @@ const unmarshalNodeTypeVolumeType = data => {
159
159
  };
160
160
  };
161
161
 
162
+ const unmarshalReadReplica = data => {
163
+ if (!isJSONObject(data)) {
164
+ throw new TypeError(`Unmarshalling the type 'ReadReplica' failed as data isn't a dictionary.`);
165
+ }
166
+
167
+ return {
168
+ endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
169
+ id: data.id,
170
+ region: data.region,
171
+ status: data.status
172
+ };
173
+ };
174
+
162
175
  const unmarshalVolume = data => {
163
176
  if (!isJSONObject(data)) {
164
177
  throw new TypeError(`Unmarshalling the type 'Volume' failed as data isn't a dictionary.`);
@@ -254,6 +267,7 @@ const unmarshalInstance = data => {
254
267
  nodeType: data.node_type,
255
268
  organizationId: data.organization_id,
256
269
  projectId: data.project_id,
270
+ readReplicas: unmarshalArrayOfObject(data.read_replicas, unmarshalReadReplica),
257
271
  region: data.region,
258
272
  settings: unmarshalArrayOfObject(data.settings, unmarshalInstanceSetting),
259
273
  status: data.status,
@@ -536,6 +550,13 @@ const marshalEndpointSpecPrivateNetwork = (request, defaults) => ({
536
550
  service_ip: request.serviceIp
537
551
  });
538
552
 
553
+ const marshalReadReplicaEndpointSpecDirectAccess = (request, defaults) => ({});
554
+
555
+ const marshalReadReplicaEndpointSpecPrivateNetwork = (request, defaults) => ({
556
+ private_network_id: request.privateNetworkId,
557
+ service_ip: request.serviceIp
558
+ });
559
+
539
560
  const marshalACLRuleRequest = (request, defaults) => ({
540
561
  description: request.description,
541
562
  ip: request.ip
@@ -560,6 +581,15 @@ const marshalLogsPolicy = (request, defaults) => ({
560
581
  total_disk_retention: request.totalDiskRetention
561
582
  });
562
583
 
584
+ const marshalReadReplicaEndpointSpec = (request, defaults) => ({ ...resolveOneOf([{
585
+ param: 'direct_access',
586
+ value: request.directAccess ? marshalReadReplicaEndpointSpecDirectAccess(request.directAccess) : undefined
587
+ }, {
588
+ param: 'private_network',
589
+ value: request.privateNetwork ? marshalReadReplicaEndpointSpecPrivateNetwork(request.privateNetwork) : undefined
590
+ }])
591
+ });
592
+
563
593
  const marshalAddInstanceACLRulesRequest = (request, defaults) => ({
564
594
  rules: request.rules.map(elt => marshalACLRuleRequest(elt))
565
595
  });
@@ -611,6 +641,13 @@ const marshalCreateInstanceRequest = (request, defaults) => ({
611
641
  value: request.organizationId
612
642
  }])
613
643
  });
644
+ const marshalCreateReadReplicaEndpointRequest = (request, defaults) => ({
645
+ endpoint_spec: request.endpointSpec.map(elt => marshalReadReplicaEndpointSpec(elt))
646
+ });
647
+ const marshalCreateReadReplicaRequest = (request, defaults) => ({
648
+ endpoint_spec: request.endpointSpec ? request.endpointSpec.map(elt => marshalReadReplicaEndpointSpec(elt)) : undefined,
649
+ instance_id: request.instanceId
650
+ });
614
651
  const marshalCreateSnapshotRequest = (request, defaults) => ({
615
652
  expires_at: request.expiresAt,
616
653
  name: request.name || randomName('snp')
@@ -684,4 +721,4 @@ const marshalUpgradeInstanceRequest = (request, defaults) => ({ ...resolveOneOf(
684
721
  }])
685
722
  });
686
723
 
687
- export { marshalAddInstanceACLRulesRequest, marshalAddInstanceSettingsRequest, marshalCloneInstanceRequest, marshalCreateDatabaseBackupRequest, marshalCreateDatabaseRequest, marshalCreateEndpointRequest, marshalCreateInstanceFromSnapshotRequest, marshalCreateInstanceRequest, marshalCreateSnapshotRequest, marshalCreateUserRequest, marshalDeleteInstanceACLRulesRequest, marshalDeleteInstanceSettingsRequest, marshalPrepareInstanceLogsRequest, marshalPurgeInstanceLogsRequest, marshalRestoreDatabaseBackupRequest, marshalSetInstanceACLRulesRequest, marshalSetInstanceSettingsRequest, marshalSetPrivilegeRequest, marshalUpdateDatabaseBackupRequest, marshalUpdateInstanceRequest, marshalUpdateSnapshotRequest, marshalUpdateUserRequest, marshalUpgradeInstanceRequest, unmarshalAddInstanceACLRulesResponse, unmarshalAddInstanceSettingsResponse, unmarshalDatabase, unmarshalDatabaseBackup, unmarshalDeleteInstanceACLRulesResponse, unmarshalDeleteInstanceSettingsResponse, unmarshalEndpoint, unmarshalInstance, unmarshalInstanceLog, unmarshalInstanceMetrics, unmarshalListDatabaseBackupsResponse, unmarshalListDatabaseEnginesResponse, unmarshalListDatabasesResponse, unmarshalListInstanceACLRulesResponse, unmarshalListInstanceLogsDetailsResponse, unmarshalListInstanceLogsResponse, unmarshalListInstancesResponse, unmarshalListNodeTypesResponse, unmarshalListPrivilegesResponse, unmarshalListSnapshotsResponse, unmarshalListUsersResponse, unmarshalPrepareInstanceLogsResponse, unmarshalPrivilege, unmarshalSetInstanceACLRulesResponse, unmarshalSetInstanceSettingsResponse, unmarshalSnapshot, unmarshalUser };
724
+ export { marshalAddInstanceACLRulesRequest, marshalAddInstanceSettingsRequest, marshalCloneInstanceRequest, marshalCreateDatabaseBackupRequest, marshalCreateDatabaseRequest, marshalCreateEndpointRequest, marshalCreateInstanceFromSnapshotRequest, marshalCreateInstanceRequest, marshalCreateReadReplicaEndpointRequest, marshalCreateReadReplicaRequest, marshalCreateSnapshotRequest, marshalCreateUserRequest, marshalDeleteInstanceACLRulesRequest, marshalDeleteInstanceSettingsRequest, marshalPrepareInstanceLogsRequest, marshalPurgeInstanceLogsRequest, marshalRestoreDatabaseBackupRequest, marshalSetInstanceACLRulesRequest, marshalSetInstanceSettingsRequest, marshalSetPrivilegeRequest, marshalUpdateDatabaseBackupRequest, marshalUpdateInstanceRequest, marshalUpdateSnapshotRequest, marshalUpdateUserRequest, marshalUpgradeInstanceRequest, unmarshalAddInstanceACLRulesResponse, unmarshalAddInstanceSettingsResponse, unmarshalDatabase, unmarshalDatabaseBackup, unmarshalDeleteInstanceACLRulesResponse, unmarshalDeleteInstanceSettingsResponse, unmarshalEndpoint, unmarshalInstance, unmarshalInstanceLog, unmarshalInstanceMetrics, unmarshalListDatabaseBackupsResponse, unmarshalListDatabaseEnginesResponse, unmarshalListDatabasesResponse, unmarshalListInstanceACLRulesResponse, unmarshalListInstanceLogsDetailsResponse, unmarshalListInstanceLogsResponse, unmarshalListInstancesResponse, unmarshalListNodeTypesResponse, unmarshalListPrivilegesResponse, unmarshalListSnapshotsResponse, unmarshalListUsersResponse, unmarshalPrepareInstanceLogsResponse, unmarshalPrivilege, unmarshalReadReplica, unmarshalSetInstanceACLRulesResponse, unmarshalSetInstanceSettingsResponse, unmarshalSnapshot, unmarshalUser };
@@ -10,7 +10,7 @@ import { marshalCreateClusterRequest, unmarshalCluster, marshalUpdateClusterRequ
10
10
  const jsonContentHeaders = {
11
11
  'Content-Type': 'application/json; charset=utf-8'
12
12
  };
13
- /** Database Redis API. */
13
+ /** Managed Database for Redis API. */
14
14
 
15
15
  class RedisV1Alpha1GenAPI extends API {
16
16
  constructor() {
@@ -1,7 +1,7 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
3
  import { unmarshalTimeSeries } from '../../../scw/custom-marshalling.js';
4
- import { resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from '../../../helpers/marshalling.js';
4
+ import { unmarshalArrayOfObject, unmarshalDate, resolveOneOf } from '../../../helpers/marshalling.js';
5
5
 
6
6
  // This file was automatically generated. DO NOT EDIT.
7
7
 
@@ -1,6 +1,6 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
3
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
5
5
  // This file was automatically generated. DO NOT EDIT.
6
6
  const unmarshalImage = data => {
@@ -1,5 +1,5 @@
1
1
  import { isJSONObject } from '../../../helpers/json.js';
2
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
2
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
3
3
 
4
4
  // This file was automatically generated. DO NOT EDIT.
5
5
  const unmarshalHuman = data => {
@@ -1,6 +1,6 @@
1
1
  import randomName from '../../../node_modules/.pnpm/@scaleway_random-name@3.0.2/node_modules/@scaleway/random-name/dist/index.js';
2
2
  import { isJSONObject } from '../../../helpers/json.js';
3
- import { resolveOneOf, unmarshalDate, unmarshalArrayOfObject } from '../../../helpers/marshalling.js';
3
+ import { unmarshalDate, unmarshalArrayOfObject, resolveOneOf } from '../../../helpers/marshalling.js';
4
4
 
5
5
  // This file was automatically generated. DO NOT EDIT.
6
6
  const unmarshalDHCP = data => {