@scaleway/sdk-redis 2.3.1 → 2.3.2

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,3 +1,4 @@
1
+ //#region \0rolldown/runtime.js
1
2
  var __defProp = Object.defineProperty;
2
3
  var __exportAll = (all, no_symbols) => {
3
4
  let target = {};
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
8
9
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
9
10
  return target;
10
11
  };
12
+ //#endregion
11
13
  export { __exportAll };
@@ -1,13 +1,14 @@
1
1
  import { CLUSTER_TRANSIENT_STATUSES } from "./content.gen.js";
2
2
  import { marshalAddAclRulesRequest, marshalAddClusterSettingsRequest, marshalAddEndpointsRequest, marshalCreateClusterRequest, marshalMigrateClusterRequest, marshalSetAclRulesRequest, marshalSetClusterSettingsRequest, marshalSetEndpointsRequest, marshalUpdateClusterRequest, marshalUpdateEndpointRequest, unmarshalACLRule, unmarshalAddAclRulesResponse, unmarshalAddEndpointsResponse, unmarshalCluster, unmarshalClusterMetricsResponse, unmarshalClusterSettingsResponse, unmarshalEndpoint, unmarshalListClusterVersionsResponse, unmarshalListClustersResponse, unmarshalListNodeTypesResponse, unmarshalSetAclRulesResponse, unmarshalSetEndpointsResponse } from "./marshalling.gen.js";
3
- import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
3
+ import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
+ //#region src/v1/api.gen.ts
4
5
  var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
5
6
  /**
6
7
  * Managed Database for Redis™ API.
7
8
 
8
9
  This API allows you to manage your Managed Databases for Redis™.
9
10
  */
10
- var API$1 = class extends API {
11
+ var API = class extends API$1 {
11
12
  /**
12
13
  * Locality of this API.
13
14
  * type ∈ {'zone','region','global','unspecified'}
@@ -290,4 +291,5 @@ var API$1 = class extends API {
290
291
  path: `/redis/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
291
292
  }, unmarshalEndpoint);
292
293
  };
293
- export { API$1 as API };
294
+ //#endregion
295
+ export { API };
@@ -1,9 +1,11 @@
1
+ //#region src/v1/content.gen.ts
1
2
  /** Lists transient statutes of the enum {@link ClusterStatus}. */
2
- const CLUSTER_TRANSIENT_STATUSES = [
3
+ var CLUSTER_TRANSIENT_STATUSES = [
3
4
  "provisioning",
4
5
  "configuring",
5
6
  "deleting",
6
7
  "autohealing",
7
8
  "initializing"
8
9
  ];
10
+ //#endregion
9
11
  export { CLUSTER_TRANSIENT_STATUSES };
@@ -2,6 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { CLUSTER_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { marshalAddAclRulesRequest, marshalAddClusterSettingsRequest, marshalAddEndpointsRequest, marshalCreateClusterRequest, marshalMigrateClusterRequest, marshalSetAclRulesRequest, marshalSetClusterSettingsRequest, marshalSetEndpointsRequest, marshalUpdateClusterRequest, marshalUpdateEndpointRequest, unmarshalACLRule, unmarshalAddAclRulesResponse, unmarshalAddEndpointsResponse, unmarshalCluster, unmarshalClusterMetricsResponse, unmarshalClusterSettingsResponse, unmarshalEndpoint, unmarshalListClusterVersionsResponse, unmarshalListClustersResponse, unmarshalListNodeTypesResponse, unmarshalSetAclRulesResponse, unmarshalSetEndpointsResponse } from "./marshalling.gen.js";
4
4
  import { API } from "./api.gen.js";
5
+ //#region src/v1/index.gen.ts
5
6
  var index_gen_exports = /* @__PURE__ */ __exportAll({
6
7
  API: () => API,
7
8
  CLUSTER_TRANSIENT_STATUSES: () => CLUSTER_TRANSIENT_STATUSES,
@@ -28,4 +29,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
28
29
  unmarshalSetAclRulesResponse: () => unmarshalSetAclRulesResponse,
29
30
  unmarshalSetEndpointsResponse: () => unmarshalSetEndpointsResponse
30
31
  });
31
- export { index_gen_exports };
32
+ //#endregion
33
+ export { API, CLUSTER_TRANSIENT_STATUSES, index_gen_exports, marshalAddAclRulesRequest, marshalAddClusterSettingsRequest, marshalAddEndpointsRequest, marshalCreateClusterRequest, marshalMigrateClusterRequest, marshalSetAclRulesRequest, marshalSetClusterSettingsRequest, marshalSetEndpointsRequest, marshalUpdateClusterRequest, marshalUpdateEndpointRequest, unmarshalACLRule, unmarshalAddAclRulesResponse, unmarshalAddEndpointsResponse, unmarshalCluster, unmarshalClusterMetricsResponse, unmarshalClusterSettingsResponse, unmarshalEndpoint, unmarshalListClusterVersionsResponse, unmarshalListClustersResponse, unmarshalListNodeTypesResponse, unmarshalSetAclRulesResponse, unmarshalSetEndpointsResponse };
@@ -1,6 +1,7 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalTimeSeries } from "@scaleway/sdk-client";
2
2
  import randomName from "@scaleway/random-name";
3
- const unmarshalACLRule = (data) => {
3
+ //#region src/v1/marshalling.gen.ts
4
+ var unmarshalACLRule = (data) => {
4
5
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ACLRule' failed as data isn't a dictionary.`);
5
6
  return {
6
7
  description: data.description,
@@ -21,7 +22,7 @@ var unmarshalPublicNetwork = (data) => {
21
22
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicNetwork' failed as data isn't a dictionary.`);
22
23
  return {};
23
24
  };
24
- const unmarshalEndpoint = (data) => {
25
+ var unmarshalEndpoint = (data) => {
25
26
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`);
26
27
  return {
27
28
  id: data.id,
@@ -38,7 +39,7 @@ var unmarshalClusterSetting = (data) => {
38
39
  value: data.value
39
40
  };
40
41
  };
41
- const unmarshalCluster = (data) => {
42
+ var unmarshalCluster = (data) => {
42
43
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Cluster' failed as data isn't a dictionary.`);
43
44
  return {
44
45
  aclRules: unmarshalArrayOfObject(data.acl_rules, unmarshalACLRule),
@@ -60,25 +61,25 @@ const unmarshalCluster = (data) => {
60
61
  zone: data.zone
61
62
  };
62
63
  };
63
- const unmarshalAddAclRulesResponse = (data) => {
64
+ var unmarshalAddAclRulesResponse = (data) => {
64
65
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddAclRulesResponse' failed as data isn't a dictionary.`);
65
66
  return {
66
67
  aclRules: unmarshalArrayOfObject(data.acl_rules, unmarshalACLRule),
67
68
  totalCount: data.total_count
68
69
  };
69
70
  };
70
- const unmarshalAddEndpointsResponse = (data) => {
71
+ var unmarshalAddEndpointsResponse = (data) => {
71
72
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddEndpointsResponse' failed as data isn't a dictionary.`);
72
73
  return {
73
74
  endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
74
75
  totalCount: data.total_count
75
76
  };
76
77
  };
77
- const unmarshalClusterMetricsResponse = (data) => {
78
+ var unmarshalClusterMetricsResponse = (data) => {
78
79
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterMetricsResponse' failed as data isn't a dictionary.`);
79
80
  return { timeseries: unmarshalArrayOfObject(data.timeseries, unmarshalTimeSeries) };
80
81
  };
81
- const unmarshalClusterSettingsResponse = (data) => {
82
+ var unmarshalClusterSettingsResponse = (data) => {
82
83
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterSettingsResponse' failed as data isn't a dictionary.`);
83
84
  return { settings: unmarshalArrayOfObject(data.settings, unmarshalClusterSetting) };
84
85
  };
@@ -105,14 +106,14 @@ var unmarshalClusterVersion = (data) => {
105
106
  zone: data.zone
106
107
  };
107
108
  };
108
- const unmarshalListClusterVersionsResponse = (data) => {
109
+ var unmarshalListClusterVersionsResponse = (data) => {
109
110
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterVersionsResponse' failed as data isn't a dictionary.`);
110
111
  return {
111
112
  totalCount: data.total_count,
112
113
  versions: unmarshalArrayOfObject(data.versions, unmarshalClusterVersion)
113
114
  };
114
115
  };
115
- const unmarshalListClustersResponse = (data) => {
116
+ var unmarshalListClustersResponse = (data) => {
116
117
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary.`);
117
118
  return {
118
119
  clusters: unmarshalArrayOfObject(data.clusters, unmarshalCluster),
@@ -132,18 +133,18 @@ var unmarshalNodeType = (data) => {
132
133
  zone: data.zone
133
134
  };
134
135
  };
135
- const unmarshalListNodeTypesResponse = (data) => {
136
+ var unmarshalListNodeTypesResponse = (data) => {
136
137
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNodeTypesResponse' failed as data isn't a dictionary.`);
137
138
  return {
138
139
  nodeTypes: unmarshalArrayOfObject(data.node_types, unmarshalNodeType),
139
140
  totalCount: data.total_count
140
141
  };
141
142
  };
142
- const unmarshalSetAclRulesResponse = (data) => {
143
+ var unmarshalSetAclRulesResponse = (data) => {
143
144
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetAclRulesResponse' failed as data isn't a dictionary.`);
144
145
  return { aclRules: unmarshalArrayOfObject(data.acl_rules, unmarshalACLRule) };
145
146
  };
146
- const unmarshalSetEndpointsResponse = (data) => {
147
+ var unmarshalSetEndpointsResponse = (data) => {
147
148
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetEndpointsResponse' failed as data isn't a dictionary.`);
148
149
  return { endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint) };
149
150
  };
@@ -151,12 +152,12 @@ var marshalACLRuleSpec = (request, defaults) => ({
151
152
  description: request.description,
152
153
  ip_cidr: request.ipCidr
153
154
  });
154
- const marshalAddAclRulesRequest = (request, defaults) => ({ acl_rules: request.aclRules.map((elt) => marshalACLRuleSpec(elt, defaults)) });
155
+ var marshalAddAclRulesRequest = (request, defaults) => ({ acl_rules: request.aclRules.map((elt) => marshalACLRuleSpec(elt, defaults)) });
155
156
  var marshalClusterSetting = (request, defaults) => ({
156
157
  name: request.name,
157
158
  value: request.value
158
159
  });
159
- const marshalAddClusterSettingsRequest = (request, defaults) => ({ settings: request.settings.map((elt) => marshalClusterSetting(elt, defaults)) });
160
+ var marshalAddClusterSettingsRequest = (request, defaults) => ({ settings: request.settings.map((elt) => marshalClusterSetting(elt, defaults)) });
160
161
  var marshalEndpointSpecPrivateNetworkSpecIpamConfig = (request, defaults) => ({});
161
162
  var marshalEndpointSpecPrivateNetworkSpec = (request, defaults) => ({
162
163
  id: request.id,
@@ -171,8 +172,8 @@ var marshalEndpointSpec = (request, defaults) => ({ ...resolveOneOf([{
171
172
  param: "public_network",
172
173
  value: request.publicNetwork !== void 0 ? marshalEndpointSpecPublicNetworkSpec(request.publicNetwork, defaults) : void 0
173
174
  }]) });
174
- const marshalAddEndpointsRequest = (request, defaults) => ({ endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) });
175
- const marshalCreateClusterRequest = (request, defaults) => ({
175
+ var marshalAddEndpointsRequest = (request, defaults) => ({ endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) });
176
+ var marshalCreateClusterRequest = (request, defaults) => ({
176
177
  acl_rules: request.aclRules !== void 0 ? request.aclRules.map((elt) => marshalACLRuleSpec(elt, defaults)) : void 0,
177
178
  cluster_settings: request.clusterSettings !== void 0 ? request.clusterSettings.map((elt) => marshalClusterSetting(elt, defaults)) : void 0,
178
179
  cluster_size: request.clusterSize,
@@ -186,7 +187,7 @@ const marshalCreateClusterRequest = (request, defaults) => ({
186
187
  user_name: request.userName,
187
188
  version: request.version
188
189
  });
189
- const marshalMigrateClusterRequest = (request, defaults) => ({ ...resolveOneOf([
190
+ var marshalMigrateClusterRequest = (request, defaults) => ({ ...resolveOneOf([
190
191
  {
191
192
  param: "version",
192
193
  value: request.version
@@ -200,20 +201,21 @@ const marshalMigrateClusterRequest = (request, defaults) => ({ ...resolveOneOf([
200
201
  value: request.clusterSize
201
202
  }
202
203
  ]) });
203
- const marshalSetAclRulesRequest = (request, defaults) => ({ acl_rules: request.aclRules.map((elt) => marshalACLRuleSpec(elt, defaults)) });
204
- const marshalSetClusterSettingsRequest = (request, defaults) => ({ settings: request.settings.map((elt) => marshalClusterSetting(elt, defaults)) });
205
- const marshalSetEndpointsRequest = (request, defaults) => ({ endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) });
206
- const marshalUpdateClusterRequest = (request, defaults) => ({
204
+ var marshalSetAclRulesRequest = (request, defaults) => ({ acl_rules: request.aclRules.map((elt) => marshalACLRuleSpec(elt, defaults)) });
205
+ var marshalSetClusterSettingsRequest = (request, defaults) => ({ settings: request.settings.map((elt) => marshalClusterSetting(elt, defaults)) });
206
+ var marshalSetEndpointsRequest = (request, defaults) => ({ endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) });
207
+ var marshalUpdateClusterRequest = (request, defaults) => ({
207
208
  name: request.name,
208
209
  password: request.password,
209
210
  tags: request.tags,
210
211
  user_name: request.userName
211
212
  });
212
- const marshalUpdateEndpointRequest = (request, defaults) => ({ ...resolveOneOf([{
213
+ var marshalUpdateEndpointRequest = (request, defaults) => ({ ...resolveOneOf([{
213
214
  param: "private_network",
214
215
  value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkSpec(request.privateNetwork, defaults) : void 0
215
216
  }, {
216
217
  param: "public_network",
217
218
  value: request.publicNetwork !== void 0 ? marshalEndpointSpecPublicNetworkSpec(request.publicNetwork, defaults) : void 0
218
219
  }]) });
220
+ //#endregion
219
221
  export { marshalAddAclRulesRequest, marshalAddClusterSettingsRequest, marshalAddEndpointsRequest, marshalCreateClusterRequest, marshalMigrateClusterRequest, marshalSetAclRulesRequest, marshalSetClusterSettingsRequest, marshalSetEndpointsRequest, marshalUpdateClusterRequest, marshalUpdateEndpointRequest, unmarshalACLRule, unmarshalAddAclRulesResponse, unmarshalAddEndpointsResponse, unmarshalCluster, unmarshalClusterMetricsResponse, unmarshalClusterSettingsResponse, unmarshalEndpoint, unmarshalListClusterVersionsResponse, unmarshalListClustersResponse, unmarshalListNodeTypesResponse, unmarshalSetAclRulesResponse, unmarshalSetEndpointsResponse };
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-redis",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Scaleway SDK redis",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "node": ">=20.19.6"
27
27
  },
28
28
  "dependencies": {
29
- "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.2.1"
29
+ "@scaleway/random-name": "5.1.4",
30
+ "@scaleway/sdk-std": "2.2.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.1"
33
+ "@scaleway/sdk-client": "^2.2.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.1"
36
+ "@scaleway/sdk-client": "^2.2.2"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",