@scaleway/sdk-rdb 1.3.0 → 2.1.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.
@@ -214,32 +214,20 @@ const unmarshalInstance = (data) => {
214
214
  endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
215
215
  engine: data.engine,
216
216
  id: data.id,
217
- initSettings: unmarshalArrayOfObject(
218
- data.init_settings,
219
- unmarshalInstanceSetting
220
- ),
217
+ initSettings: unmarshalArrayOfObject(data.init_settings, unmarshalInstanceSetting),
221
218
  isHaCluster: data.is_ha_cluster,
222
219
  logsPolicy: data.logs_policy ? unmarshalLogsPolicy(data.logs_policy) : void 0,
223
- maintenances: unmarshalArrayOfObject(
224
- data.maintenances,
225
- unmarshalMaintenance
226
- ),
220
+ maintenances: unmarshalArrayOfObject(data.maintenances, unmarshalMaintenance),
227
221
  name: data.name,
228
222
  nodeType: data.node_type,
229
223
  organizationId: data.organization_id,
230
224
  projectId: data.project_id,
231
- readReplicas: unmarshalArrayOfObject(
232
- data.read_replicas,
233
- unmarshalReadReplica
234
- ),
225
+ readReplicas: unmarshalArrayOfObject(data.read_replicas, unmarshalReadReplica),
235
226
  region: data.region,
236
227
  settings: unmarshalArrayOfObject(data.settings, unmarshalInstanceSetting),
237
228
  status: data.status,
238
229
  tags: data.tags,
239
- upgradableVersion: unmarshalArrayOfObject(
240
- data.upgradable_version,
241
- unmarshalUpgradableVersion
242
- ),
230
+ upgradableVersion: unmarshalArrayOfObject(data.upgradable_version, unmarshalUpgradableVersion),
243
231
  volume: data.volume ? unmarshalVolume(data.volume) : void 0
244
232
  };
245
233
  };
@@ -370,10 +358,7 @@ const unmarshalListDatabaseBackupsResponse = (data) => {
370
358
  );
371
359
  }
372
360
  return {
373
- databaseBackups: unmarshalArrayOfObject(
374
- data.database_backups,
375
- unmarshalDatabaseBackup
376
- ),
361
+ databaseBackups: unmarshalArrayOfObject(data.database_backups, unmarshalDatabaseBackup),
377
362
  totalCount: data.total_count
378
363
  };
379
364
  };
@@ -404,14 +389,8 @@ const unmarshalEngineVersion = (data) => {
404
389
  );
405
390
  }
406
391
  return {
407
- availableInitSettings: unmarshalArrayOfObject(
408
- data.available_init_settings,
409
- unmarshalEngineSetting
410
- ),
411
- availableSettings: unmarshalArrayOfObject(
412
- data.available_settings,
413
- unmarshalEngineSetting
414
- ),
392
+ availableInitSettings: unmarshalArrayOfObject(data.available_init_settings, unmarshalEngineSetting),
393
+ availableSettings: unmarshalArrayOfObject(data.available_settings, unmarshalEngineSetting),
415
394
  beta: data.beta,
416
395
  disabled: data.disabled,
417
396
  endOfLife: unmarshalDate(data.end_of_life),
@@ -483,10 +462,7 @@ const unmarshalListInstanceLogsDetailsResponse = (data) => {
483
462
  );
484
463
  }
485
464
  return {
486
- details: unmarshalArrayOfObject(
487
- data.details,
488
- unmarshalListInstanceLogsDetailsResponseInstanceLogDetail
489
- )
465
+ details: unmarshalArrayOfObject(data.details, unmarshalListInstanceLogsDetailsResponseInstanceLogDetail)
490
466
  };
491
467
  };
492
468
  const unmarshalListInstanceLogsResponse = (data) => {
@@ -496,10 +472,7 @@ const unmarshalListInstanceLogsResponse = (data) => {
496
472
  );
497
473
  }
498
474
  return {
499
- instanceLogs: unmarshalArrayOfObject(
500
- data.instance_logs,
501
- unmarshalInstanceLog
502
- )
475
+ instanceLogs: unmarshalArrayOfObject(data.instance_logs, unmarshalInstanceLog)
503
476
  };
504
477
  };
505
478
  const unmarshalListInstancesResponse = (data) => {
@@ -546,10 +519,7 @@ const unmarshalNodeType = (data) => {
546
519
  );
547
520
  }
548
521
  return {
549
- availableVolumeTypes: unmarshalArrayOfObject(
550
- data.available_volume_types,
551
- unmarshalNodeTypeVolumeType
552
- ),
522
+ availableVolumeTypes: unmarshalArrayOfObject(data.available_volume_types, unmarshalNodeTypeVolumeType),
553
523
  beta: data.beta,
554
524
  description: data.description,
555
525
  disabled: data.disabled,
@@ -616,10 +586,7 @@ const unmarshalPrepareInstanceLogsResponse = (data) => {
616
586
  );
617
587
  }
618
588
  return {
619
- instanceLogs: unmarshalArrayOfObject(
620
- data.instance_logs,
621
- unmarshalInstanceLog
622
- )
589
+ instanceLogs: unmarshalArrayOfObject(data.instance_logs, unmarshalInstanceLog)
623
590
  };
624
591
  };
625
592
  const unmarshalSetInstanceACLRulesResponse = (data) => {
@@ -674,12 +641,13 @@ const marshalEndpointSpecLoadBalancer = (request, defaults) => ({});
674
641
  const marshalEndpointSpecPrivateNetwork = (request, defaults) => ({
675
642
  private_network_id: request.privateNetworkId,
676
643
  ...resolveOneOf([
677
- { param: "service_ip", value: request.serviceIp },
644
+ {
645
+ param: "service_ip",
646
+ value: request.serviceIp
647
+ },
678
648
  {
679
649
  param: "ipam_config",
680
- value: request.ipamConfig !== void 0 ? marshalEndpointSpecPrivateNetworkIpamConfig(
681
- request.ipamConfig
682
- ) : void 0
650
+ value: request.ipamConfig !== void 0 ? marshalEndpointSpecPrivateNetworkIpamConfig(request.ipamConfig) : void 0
683
651
  }
684
652
  ])
685
653
  });
@@ -739,12 +707,13 @@ const marshalReadReplicaEndpointSpecDirectAccess = (request, defaults) => ({});
739
707
  const marshalReadReplicaEndpointSpecPrivateNetwork = (request, defaults) => ({
740
708
  private_network_id: request.privateNetworkId,
741
709
  ...resolveOneOf([
742
- { param: "service_ip", value: request.serviceIp },
710
+ {
711
+ param: "service_ip",
712
+ value: request.serviceIp
713
+ },
743
714
  {
744
715
  param: "ipam_config",
745
- value: request.ipamConfig !== void 0 ? marshalReadReplicaEndpointSpecPrivateNetworkIpamConfig(
746
- request.ipamConfig
747
- ) : void 0
716
+ value: request.ipamConfig !== void 0 ? marshalReadReplicaEndpointSpecPrivateNetworkIpamConfig(request.ipamConfig) : void 0
748
717
  }
749
718
  ])
750
719
  });
@@ -752,27 +721,19 @@ const marshalReadReplicaEndpointSpec = (request, defaults) => ({
752
721
  ...resolveOneOf([
753
722
  {
754
723
  param: "direct_access",
755
- value: request.directAccess !== void 0 ? marshalReadReplicaEndpointSpecDirectAccess(
756
- request.directAccess
757
- ) : void 0
724
+ value: request.directAccess !== void 0 ? marshalReadReplicaEndpointSpecDirectAccess(request.directAccess) : void 0
758
725
  },
759
726
  {
760
727
  param: "private_network",
761
- value: request.privateNetwork !== void 0 ? marshalReadReplicaEndpointSpecPrivateNetwork(
762
- request.privateNetwork
763
- ) : void 0
728
+ value: request.privateNetwork !== void 0 ? marshalReadReplicaEndpointSpecPrivateNetwork(request.privateNetwork) : void 0
764
729
  }
765
730
  ])
766
731
  });
767
732
  const marshalCreateReadReplicaEndpointRequest = (request, defaults) => ({
768
- endpoint_spec: request.endpointSpec.map(
769
- (elt) => marshalReadReplicaEndpointSpec(elt)
770
- )
733
+ endpoint_spec: request.endpointSpec.map((elt) => marshalReadReplicaEndpointSpec(elt))
771
734
  });
772
735
  const marshalCreateReadReplicaRequest = (request, defaults) => ({
773
- endpoint_spec: request.endpointSpec !== void 0 ? request.endpointSpec.map(
774
- (elt) => marshalReadReplicaEndpointSpec(elt)
775
- ) : void 0,
736
+ endpoint_spec: request.endpointSpec !== void 0 ? request.endpointSpec.map((elt) => marshalReadReplicaEndpointSpec(elt)) : void 0,
776
737
  instance_id: request.instanceId,
777
738
  same_zone: request.sameZone
778
739
  });
@@ -848,18 +809,34 @@ const marshalUpgradeInstanceRequestMajorUpgradeWorkflow = (request, defaults) =>
848
809
  });
849
810
  const marshalUpgradeInstanceRequest = (request, defaults) => ({
850
811
  ...resolveOneOf([
851
- { param: "node_type", value: request.nodeType },
852
- { param: "enable_ha", value: request.enableHa },
853
- { param: "volume_size", value: request.volumeSize },
854
- { param: "volume_type", value: request.volumeType },
855
- { param: "upgradable_version_id", value: request.upgradableVersionId },
812
+ {
813
+ param: "node_type",
814
+ value: request.nodeType
815
+ },
816
+ {
817
+ param: "enable_ha",
818
+ value: request.enableHa
819
+ },
820
+ {
821
+ param: "volume_size",
822
+ value: request.volumeSize
823
+ },
824
+ {
825
+ param: "volume_type",
826
+ value: request.volumeType
827
+ },
828
+ {
829
+ param: "upgradable_version_id",
830
+ value: request.upgradableVersionId
831
+ },
856
832
  {
857
833
  param: "major_upgrade_workflow",
858
- value: request.majorUpgradeWorkflow !== void 0 ? marshalUpgradeInstanceRequestMajorUpgradeWorkflow(
859
- request.majorUpgradeWorkflow
860
- ) : void 0
834
+ value: request.majorUpgradeWorkflow !== void 0 ? marshalUpgradeInstanceRequestMajorUpgradeWorkflow(request.majorUpgradeWorkflow) : void 0
861
835
  },
862
- { param: "enable_encryption", value: request.enableEncryption }
836
+ {
837
+ param: "enable_encryption",
838
+ value: request.enableEncryption
839
+ }
863
840
  ])
864
841
  });
865
842
  export {
@@ -1361,7 +1361,7 @@ export type ListDatabasesRequest = {
1361
1361
  /**
1362
1362
  * Whether to skip the retrieval of each database size. If true, the size of each returned database will be set to 0.
1363
1363
  */
1364
- skipSizeRetrieval: boolean;
1364
+ skipSizeRetrieval?: boolean;
1365
1365
  page?: number;
1366
1366
  pageSize?: number;
1367
1367
  };
package/package.json CHANGED
@@ -1,23 +1,20 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-rdb",
3
- "version": "1.3.0",
3
+ "version": "2.1.1",
4
4
  "description": "Scaleway SDK rdb",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
7
+ "README.md",
7
8
  "dist"
8
9
  ],
9
10
  "type": "module",
10
11
  "exports": {
11
12
  ".": {
12
13
  "types": "./dist/index.gen.d.ts",
13
- "import": "./dist/index.gen.js",
14
- "require": "./dist/index.gen.cjs",
15
14
  "default": "./dist/index.gen.js"
16
15
  },
17
16
  "./*": {
18
17
  "types": "./dist/*/index.gen.d.ts",
19
- "import": "./dist/*/index.gen.js",
20
- "require": "./dist/*/index.gen.cjs",
21
18
  "default": "./dist/*/index.gen.js"
22
19
  }
23
20
  },
@@ -26,17 +23,17 @@
26
23
  "directory": "packages_generated/rdb"
27
24
  },
28
25
  "engines": {
29
- "node": ">=20.19.4"
26
+ "node": ">=20.19.6"
30
27
  },
31
28
  "dependencies": {
32
29
  "@scaleway/random-name": "5.1.2",
33
- "@scaleway/sdk-std": "1.2.0"
30
+ "@scaleway/sdk-std": "2.1.0"
34
31
  },
35
32
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.3.3"
33
+ "@scaleway/sdk-client": "^2.1.0"
37
34
  },
38
35
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.3.3"
36
+ "@scaleway/sdk-client": "^2.1.0"
40
37
  },
41
38
  "scripts": {
42
39
  "package:check": "pnpm publint",
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index_gen = require("./v1/index.gen.cjs");
4
- exports.Rdbv1 = index_gen;