@scaleway/sdk-redis 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.
- package/LICENSE +191 -0
- package/dist/index.gen.cjs +4 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +4 -0
- package/dist/v1/api.gen.cjs +415 -0
- package/dist/v1/api.gen.d.ts +193 -0
- package/dist/v1/api.gen.js +415 -0
- package/dist/v1/content.gen.cjs +10 -0
- package/dist/v1/content.gen.d.ts +3 -0
- package/dist/v1/content.gen.js +10 -0
- package/dist/v1/index.gen.cjs +29 -0
- package/dist/v1/index.gen.d.ts +4 -0
- package/dist/v1/index.gen.js +29 -0
- package/dist/v1/marshalling.gen.cjs +353 -0
- package/dist/v1/marshalling.gen.d.ts +24 -0
- package/dist/v1/marshalling.gen.js +353 -0
- package/dist/v1/types.gen.d.ts +750 -0
- package/package.json +51 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { API } from './api.gen';
|
|
2
|
+
export * from './content.gen';
|
|
3
|
+
export * from './marshalling.gen';
|
|
4
|
+
export type { ACLRule, ACLRuleSpec, AddAclRulesRequest, AddAclRulesResponse, AddClusterSettingsRequest, AddEndpointsRequest, AddEndpointsResponse, AvailableClusterSetting, AvailableClusterSettingPropertyType, Cluster, ClusterMetricsResponse, ClusterSetting, ClusterSettingsResponse, ClusterStatus, ClusterVersion, CreateClusterRequest, DeleteAclRuleRequest, DeleteClusterRequest, DeleteClusterSettingRequest, DeleteEndpointRequest, Endpoint, EndpointSpec, EndpointSpecPrivateNetworkSpec, EndpointSpecPrivateNetworkSpecIpamConfig, EndpointSpecPublicNetworkSpec, GetAclRuleRequest, GetClusterCertificateRequest, GetClusterMetricsRequest, GetClusterRequest, GetEndpointRequest, ListClusterVersionsRequest, ListClusterVersionsResponse, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodeTypesRequest, ListNodeTypesResponse, MigrateClusterRequest, NodeType, NodeTypeStock, PrivateNetwork, PrivateNetworkProvisioningMode, PublicNetwork, RenewClusterCertificateRequest, SetAclRulesRequest, SetAclRulesResponse, SetClusterSettingsRequest, SetEndpointsRequest, SetEndpointsResponse, UpdateClusterRequest, UpdateEndpointRequest, } from './types.gen';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { API } from "./api.gen.js";
|
|
2
|
+
import { CLUSTER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
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
|
+
export {
|
|
5
|
+
API,
|
|
6
|
+
CLUSTER_TRANSIENT_STATUSES,
|
|
7
|
+
marshalAddAclRulesRequest,
|
|
8
|
+
marshalAddClusterSettingsRequest,
|
|
9
|
+
marshalAddEndpointsRequest,
|
|
10
|
+
marshalCreateClusterRequest,
|
|
11
|
+
marshalMigrateClusterRequest,
|
|
12
|
+
marshalSetAclRulesRequest,
|
|
13
|
+
marshalSetClusterSettingsRequest,
|
|
14
|
+
marshalSetEndpointsRequest,
|
|
15
|
+
marshalUpdateClusterRequest,
|
|
16
|
+
marshalUpdateEndpointRequest,
|
|
17
|
+
unmarshalACLRule,
|
|
18
|
+
unmarshalAddAclRulesResponse,
|
|
19
|
+
unmarshalAddEndpointsResponse,
|
|
20
|
+
unmarshalCluster,
|
|
21
|
+
unmarshalClusterMetricsResponse,
|
|
22
|
+
unmarshalClusterSettingsResponse,
|
|
23
|
+
unmarshalEndpoint,
|
|
24
|
+
unmarshalListClusterVersionsResponse,
|
|
25
|
+
unmarshalListClustersResponse,
|
|
26
|
+
unmarshalListNodeTypesResponse,
|
|
27
|
+
unmarshalSetAclRulesResponse,
|
|
28
|
+
unmarshalSetEndpointsResponse
|
|
29
|
+
};
|
|
@@ -0,0 +1,353 @@
|
|
|
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 unmarshalACLRule = (data) => {
|
|
6
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
7
|
+
throw new TypeError(
|
|
8
|
+
`Unmarshalling the type 'ACLRule' failed as data isn't a dictionary.`
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
description: data.description,
|
|
13
|
+
id: data.id,
|
|
14
|
+
ipCidr: data.ip_cidr
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
const unmarshalPrivateNetwork = (data) => {
|
|
18
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
19
|
+
throw new TypeError(
|
|
20
|
+
`Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
id: data.id,
|
|
25
|
+
provisioningMode: data.provisioning_mode,
|
|
26
|
+
serviceIps: data.service_ips,
|
|
27
|
+
zone: data.zone
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
const unmarshalPublicNetwork = (data) => {
|
|
31
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
32
|
+
throw new TypeError(
|
|
33
|
+
`Unmarshalling the type 'PublicNetwork' failed as data isn't a dictionary.`
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
return {};
|
|
37
|
+
};
|
|
38
|
+
const unmarshalEndpoint = (data) => {
|
|
39
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
40
|
+
throw new TypeError(
|
|
41
|
+
`Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
id: data.id,
|
|
46
|
+
ips: data.ips,
|
|
47
|
+
port: data.port,
|
|
48
|
+
privateNetwork: data.private_network ? unmarshalPrivateNetwork(data.private_network) : void 0,
|
|
49
|
+
publicNetwork: data.public_network ? unmarshalPublicNetwork(data.public_network) : void 0
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
const unmarshalClusterSetting = (data) => {
|
|
53
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
54
|
+
throw new TypeError(
|
|
55
|
+
`Unmarshalling the type 'ClusterSetting' failed as data isn't a dictionary.`
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
name: data.name,
|
|
60
|
+
value: data.value
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const unmarshalCluster = (data) => {
|
|
64
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
65
|
+
throw new TypeError(
|
|
66
|
+
`Unmarshalling the type 'Cluster' failed as data isn't a dictionary.`
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
aclRules: sdkClient.unmarshalArrayOfObject(data.acl_rules, unmarshalACLRule),
|
|
71
|
+
clusterSettings: sdkClient.unmarshalArrayOfObject(
|
|
72
|
+
data.cluster_settings,
|
|
73
|
+
unmarshalClusterSetting
|
|
74
|
+
),
|
|
75
|
+
clusterSize: data.cluster_size,
|
|
76
|
+
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
77
|
+
endpoints: sdkClient.unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
|
|
78
|
+
id: data.id,
|
|
79
|
+
name: data.name,
|
|
80
|
+
nodeType: data.node_type,
|
|
81
|
+
projectId: data.project_id,
|
|
82
|
+
status: data.status,
|
|
83
|
+
tags: data.tags,
|
|
84
|
+
tlsEnabled: data.tls_enabled,
|
|
85
|
+
updatedAt: sdkClient.unmarshalDate(data.updated_at),
|
|
86
|
+
upgradableVersions: data.upgradable_versions,
|
|
87
|
+
userName: data.user_name,
|
|
88
|
+
version: data.version,
|
|
89
|
+
zone: data.zone
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
const unmarshalAddAclRulesResponse = (data) => {
|
|
93
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
94
|
+
throw new TypeError(
|
|
95
|
+
`Unmarshalling the type 'AddAclRulesResponse' failed as data isn't a dictionary.`
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
aclRules: sdkClient.unmarshalArrayOfObject(data.acl_rules, unmarshalACLRule),
|
|
100
|
+
totalCount: data.total_count
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
const unmarshalAddEndpointsResponse = (data) => {
|
|
104
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
105
|
+
throw new TypeError(
|
|
106
|
+
`Unmarshalling the type 'AddEndpointsResponse' failed as data isn't a dictionary.`
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
endpoints: sdkClient.unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
|
|
111
|
+
totalCount: data.total_count
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
const unmarshalClusterMetricsResponse = (data) => {
|
|
115
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
116
|
+
throw new TypeError(
|
|
117
|
+
`Unmarshalling the type 'ClusterMetricsResponse' failed as data isn't a dictionary.`
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
timeseries: sdkClient.unmarshalArrayOfObject(data.timeseries, sdkClient.unmarshalTimeSeries)
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
const unmarshalClusterSettingsResponse = (data) => {
|
|
125
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
126
|
+
throw new TypeError(
|
|
127
|
+
`Unmarshalling the type 'ClusterSettingsResponse' failed as data isn't a dictionary.`
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
settings: sdkClient.unmarshalArrayOfObject(data.settings, unmarshalClusterSetting)
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
const unmarshalAvailableClusterSetting = (data) => {
|
|
135
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
136
|
+
throw new TypeError(
|
|
137
|
+
`Unmarshalling the type 'AvailableClusterSetting' failed as data isn't a dictionary.`
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
defaultValue: data.default_value,
|
|
142
|
+
deprecated: data.deprecated,
|
|
143
|
+
description: data.description,
|
|
144
|
+
maxValue: data.max_value,
|
|
145
|
+
minValue: data.min_value,
|
|
146
|
+
name: data.name,
|
|
147
|
+
regex: data.regex,
|
|
148
|
+
type: data.type
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
const unmarshalClusterVersion = (data) => {
|
|
152
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
153
|
+
throw new TypeError(
|
|
154
|
+
`Unmarshalling the type 'ClusterVersion' failed as data isn't a dictionary.`
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
availableSettings: sdkClient.unmarshalArrayOfObject(
|
|
159
|
+
data.available_settings,
|
|
160
|
+
unmarshalAvailableClusterSetting
|
|
161
|
+
),
|
|
162
|
+
endOfLifeAt: sdkClient.unmarshalDate(data.end_of_life_at),
|
|
163
|
+
logoUrl: data.logo_url,
|
|
164
|
+
version: data.version,
|
|
165
|
+
zone: data.zone
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
const unmarshalListClusterVersionsResponse = (data) => {
|
|
169
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
170
|
+
throw new TypeError(
|
|
171
|
+
`Unmarshalling the type 'ListClusterVersionsResponse' failed as data isn't a dictionary.`
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
return {
|
|
175
|
+
totalCount: data.total_count,
|
|
176
|
+
versions: sdkClient.unmarshalArrayOfObject(data.versions, unmarshalClusterVersion)
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
const unmarshalListClustersResponse = (data) => {
|
|
180
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
181
|
+
throw new TypeError(
|
|
182
|
+
`Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary.`
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
return {
|
|
186
|
+
clusters: sdkClient.unmarshalArrayOfObject(data.clusters, unmarshalCluster),
|
|
187
|
+
totalCount: data.total_count
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
const unmarshalNodeType = (data) => {
|
|
191
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
192
|
+
throw new TypeError(
|
|
193
|
+
`Unmarshalling the type 'NodeType' failed as data isn't a dictionary.`
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
return {
|
|
197
|
+
beta: data.beta,
|
|
198
|
+
description: data.description,
|
|
199
|
+
disabled: data.disabled,
|
|
200
|
+
memory: data.memory,
|
|
201
|
+
name: data.name,
|
|
202
|
+
stockStatus: data.stock_status,
|
|
203
|
+
vcpus: data.vcpus,
|
|
204
|
+
zone: data.zone
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
const unmarshalListNodeTypesResponse = (data) => {
|
|
208
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
209
|
+
throw new TypeError(
|
|
210
|
+
`Unmarshalling the type 'ListNodeTypesResponse' failed as data isn't a dictionary.`
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
return {
|
|
214
|
+
nodeTypes: sdkClient.unmarshalArrayOfObject(data.node_types, unmarshalNodeType),
|
|
215
|
+
totalCount: data.total_count
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
const unmarshalSetAclRulesResponse = (data) => {
|
|
219
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
220
|
+
throw new TypeError(
|
|
221
|
+
`Unmarshalling the type 'SetAclRulesResponse' failed as data isn't a dictionary.`
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
return {
|
|
225
|
+
aclRules: sdkClient.unmarshalArrayOfObject(data.acl_rules, unmarshalACLRule)
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
const unmarshalSetEndpointsResponse = (data) => {
|
|
229
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
230
|
+
throw new TypeError(
|
|
231
|
+
`Unmarshalling the type 'SetEndpointsResponse' failed as data isn't a dictionary.`
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
return {
|
|
235
|
+
endpoints: sdkClient.unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint)
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
const marshalACLRuleSpec = (request, defaults) => ({
|
|
239
|
+
description: request.description,
|
|
240
|
+
ip_cidr: request.ipCidr
|
|
241
|
+
});
|
|
242
|
+
const marshalAddAclRulesRequest = (request, defaults) => ({
|
|
243
|
+
acl_rules: request.aclRules.map((elt) => marshalACLRuleSpec(elt))
|
|
244
|
+
});
|
|
245
|
+
const marshalClusterSetting = (request, defaults) => ({
|
|
246
|
+
name: request.name,
|
|
247
|
+
value: request.value
|
|
248
|
+
});
|
|
249
|
+
const marshalAddClusterSettingsRequest = (request, defaults) => ({
|
|
250
|
+
settings: request.settings.map((elt) => marshalClusterSetting(elt))
|
|
251
|
+
});
|
|
252
|
+
const marshalEndpointSpecPrivateNetworkSpecIpamConfig = (request, defaults) => ({});
|
|
253
|
+
const marshalEndpointSpecPrivateNetworkSpec = (request, defaults) => ({
|
|
254
|
+
id: request.id,
|
|
255
|
+
ipam_config: request.ipamConfig !== void 0 ? marshalEndpointSpecPrivateNetworkSpecIpamConfig(
|
|
256
|
+
request.ipamConfig
|
|
257
|
+
) : void 0,
|
|
258
|
+
service_ips: request.serviceIps
|
|
259
|
+
});
|
|
260
|
+
const marshalEndpointSpecPublicNetworkSpec = (request, defaults) => ({});
|
|
261
|
+
const marshalEndpointSpec = (request, defaults) => ({
|
|
262
|
+
...sdkClient.resolveOneOf([
|
|
263
|
+
{
|
|
264
|
+
param: "private_network",
|
|
265
|
+
value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkSpec(
|
|
266
|
+
request.privateNetwork
|
|
267
|
+
) : void 0
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
param: "public_network",
|
|
271
|
+
value: request.publicNetwork !== void 0 ? marshalEndpointSpecPublicNetworkSpec(
|
|
272
|
+
request.publicNetwork
|
|
273
|
+
) : void 0
|
|
274
|
+
}
|
|
275
|
+
])
|
|
276
|
+
});
|
|
277
|
+
const marshalAddEndpointsRequest = (request, defaults) => ({
|
|
278
|
+
endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt))
|
|
279
|
+
});
|
|
280
|
+
const marshalCreateClusterRequest = (request, defaults) => ({
|
|
281
|
+
acl_rules: request.aclRules !== void 0 ? request.aclRules.map((elt) => marshalACLRuleSpec(elt)) : void 0,
|
|
282
|
+
cluster_settings: request.clusterSettings !== void 0 ? request.clusterSettings.map((elt) => marshalClusterSetting(elt)) : void 0,
|
|
283
|
+
cluster_size: request.clusterSize,
|
|
284
|
+
endpoints: request.endpoints !== void 0 ? request.endpoints.map((elt) => marshalEndpointSpec(elt)) : void 0,
|
|
285
|
+
name: request.name || randomName("ins"),
|
|
286
|
+
node_type: request.nodeType,
|
|
287
|
+
password: request.password,
|
|
288
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
289
|
+
tags: request.tags,
|
|
290
|
+
tls_enabled: request.tlsEnabled,
|
|
291
|
+
user_name: request.userName,
|
|
292
|
+
version: request.version
|
|
293
|
+
});
|
|
294
|
+
const marshalMigrateClusterRequest = (request, defaults) => ({
|
|
295
|
+
...sdkClient.resolveOneOf([
|
|
296
|
+
{ param: "version", value: request.version },
|
|
297
|
+
{ param: "node_type", value: request.nodeType },
|
|
298
|
+
{ param: "cluster_size", value: request.clusterSize }
|
|
299
|
+
])
|
|
300
|
+
});
|
|
301
|
+
const marshalSetAclRulesRequest = (request, defaults) => ({
|
|
302
|
+
acl_rules: request.aclRules.map((elt) => marshalACLRuleSpec(elt))
|
|
303
|
+
});
|
|
304
|
+
const marshalSetClusterSettingsRequest = (request, defaults) => ({
|
|
305
|
+
settings: request.settings.map((elt) => marshalClusterSetting(elt))
|
|
306
|
+
});
|
|
307
|
+
const marshalSetEndpointsRequest = (request, defaults) => ({
|
|
308
|
+
endpoints: request.endpoints.map((elt) => marshalEndpointSpec(elt))
|
|
309
|
+
});
|
|
310
|
+
const marshalUpdateClusterRequest = (request, defaults) => ({
|
|
311
|
+
name: request.name,
|
|
312
|
+
password: request.password,
|
|
313
|
+
tags: request.tags,
|
|
314
|
+
user_name: request.userName
|
|
315
|
+
});
|
|
316
|
+
const marshalUpdateEndpointRequest = (request, defaults) => ({
|
|
317
|
+
...sdkClient.resolveOneOf([
|
|
318
|
+
{
|
|
319
|
+
param: "private_network",
|
|
320
|
+
value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkSpec(
|
|
321
|
+
request.privateNetwork
|
|
322
|
+
) : void 0
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
param: "public_network",
|
|
326
|
+
value: request.publicNetwork !== void 0 ? marshalEndpointSpecPublicNetworkSpec(
|
|
327
|
+
request.publicNetwork
|
|
328
|
+
) : void 0
|
|
329
|
+
}
|
|
330
|
+
])
|
|
331
|
+
});
|
|
332
|
+
exports.marshalAddAclRulesRequest = marshalAddAclRulesRequest;
|
|
333
|
+
exports.marshalAddClusterSettingsRequest = marshalAddClusterSettingsRequest;
|
|
334
|
+
exports.marshalAddEndpointsRequest = marshalAddEndpointsRequest;
|
|
335
|
+
exports.marshalCreateClusterRequest = marshalCreateClusterRequest;
|
|
336
|
+
exports.marshalMigrateClusterRequest = marshalMigrateClusterRequest;
|
|
337
|
+
exports.marshalSetAclRulesRequest = marshalSetAclRulesRequest;
|
|
338
|
+
exports.marshalSetClusterSettingsRequest = marshalSetClusterSettingsRequest;
|
|
339
|
+
exports.marshalSetEndpointsRequest = marshalSetEndpointsRequest;
|
|
340
|
+
exports.marshalUpdateClusterRequest = marshalUpdateClusterRequest;
|
|
341
|
+
exports.marshalUpdateEndpointRequest = marshalUpdateEndpointRequest;
|
|
342
|
+
exports.unmarshalACLRule = unmarshalACLRule;
|
|
343
|
+
exports.unmarshalAddAclRulesResponse = unmarshalAddAclRulesResponse;
|
|
344
|
+
exports.unmarshalAddEndpointsResponse = unmarshalAddEndpointsResponse;
|
|
345
|
+
exports.unmarshalCluster = unmarshalCluster;
|
|
346
|
+
exports.unmarshalClusterMetricsResponse = unmarshalClusterMetricsResponse;
|
|
347
|
+
exports.unmarshalClusterSettingsResponse = unmarshalClusterSettingsResponse;
|
|
348
|
+
exports.unmarshalEndpoint = unmarshalEndpoint;
|
|
349
|
+
exports.unmarshalListClusterVersionsResponse = unmarshalListClusterVersionsResponse;
|
|
350
|
+
exports.unmarshalListClustersResponse = unmarshalListClustersResponse;
|
|
351
|
+
exports.unmarshalListNodeTypesResponse = unmarshalListNodeTypesResponse;
|
|
352
|
+
exports.unmarshalSetAclRulesResponse = unmarshalSetAclRulesResponse;
|
|
353
|
+
exports.unmarshalSetEndpointsResponse = unmarshalSetEndpointsResponse;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
+
import type { ACLRule, AddAclRulesRequest, AddAclRulesResponse, AddClusterSettingsRequest, AddEndpointsRequest, AddEndpointsResponse, Cluster, ClusterMetricsResponse, ClusterSettingsResponse, CreateClusterRequest, Endpoint, ListClusterVersionsResponse, ListClustersResponse, ListNodeTypesResponse, MigrateClusterRequest, SetAclRulesRequest, SetAclRulesResponse, SetClusterSettingsRequest, SetEndpointsRequest, SetEndpointsResponse, UpdateClusterRequest, UpdateEndpointRequest } from './types.gen';
|
|
3
|
+
export declare const unmarshalACLRule: (data: unknown) => ACLRule;
|
|
4
|
+
export declare const unmarshalEndpoint: (data: unknown) => Endpoint;
|
|
5
|
+
export declare const unmarshalCluster: (data: unknown) => Cluster;
|
|
6
|
+
export declare const unmarshalAddAclRulesResponse: (data: unknown) => AddAclRulesResponse;
|
|
7
|
+
export declare const unmarshalAddEndpointsResponse: (data: unknown) => AddEndpointsResponse;
|
|
8
|
+
export declare const unmarshalClusterMetricsResponse: (data: unknown) => ClusterMetricsResponse;
|
|
9
|
+
export declare const unmarshalClusterSettingsResponse: (data: unknown) => ClusterSettingsResponse;
|
|
10
|
+
export declare const unmarshalListClusterVersionsResponse: (data: unknown) => ListClusterVersionsResponse;
|
|
11
|
+
export declare const unmarshalListClustersResponse: (data: unknown) => ListClustersResponse;
|
|
12
|
+
export declare const unmarshalListNodeTypesResponse: (data: unknown) => ListNodeTypesResponse;
|
|
13
|
+
export declare const unmarshalSetAclRulesResponse: (data: unknown) => SetAclRulesResponse;
|
|
14
|
+
export declare const unmarshalSetEndpointsResponse: (data: unknown) => SetEndpointsResponse;
|
|
15
|
+
export declare const marshalAddAclRulesRequest: (request: AddAclRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
16
|
+
export declare const marshalAddClusterSettingsRequest: (request: AddClusterSettingsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
17
|
+
export declare const marshalAddEndpointsRequest: (request: AddEndpointsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
18
|
+
export declare const marshalCreateClusterRequest: (request: CreateClusterRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
|
+
export declare const marshalMigrateClusterRequest: (request: MigrateClusterRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
20
|
+
export declare const marshalSetAclRulesRequest: (request: SetAclRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
21
|
+
export declare const marshalSetClusterSettingsRequest: (request: SetClusterSettingsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
|
+
export declare const marshalSetEndpointsRequest: (request: SetEndpointsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
|
+
export declare const marshalUpdateClusterRequest: (request: UpdateClusterRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
|
+
export declare const marshalUpdateEndpointRequest: (request: UpdateEndpointRequest, defaults: DefaultValues) => Record<string, unknown>;
|