@scaleway/sdk-searchdb 1.6.0 → 1.7.0
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.
|
@@ -40,7 +40,7 @@ const unmarshalDeployment = (data) => {
|
|
|
40
40
|
endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint),
|
|
41
41
|
id: data.id,
|
|
42
42
|
name: data.name,
|
|
43
|
-
|
|
43
|
+
nodeCount: data.node_count,
|
|
44
44
|
nodeType: data.node_type,
|
|
45
45
|
organizationId: data.organization_id,
|
|
46
46
|
projectId: data.project_id,
|
|
@@ -133,7 +133,7 @@ const marshalVolume = (request, defaults) => ({
|
|
|
133
133
|
const marshalCreateDeploymentRequest = (request, defaults) => ({
|
|
134
134
|
endpoints: request.endpoints !== void 0 ? request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) : void 0,
|
|
135
135
|
name: request.name,
|
|
136
|
-
|
|
136
|
+
node_count: request.nodeCount,
|
|
137
137
|
node_type: request.nodeType,
|
|
138
138
|
password: request.password,
|
|
139
139
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
@@ -156,8 +156,8 @@ const marshalUpdateDeploymentRequest = (request, defaults) => ({
|
|
|
156
156
|
});
|
|
157
157
|
const marshalUpdateUserRequest = (request, defaults) => ({ password: request.password });
|
|
158
158
|
const marshalUpgradeDeploymentRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
159
|
-
param: "
|
|
160
|
-
value: request.
|
|
159
|
+
param: "node_count",
|
|
160
|
+
value: request.nodeCount
|
|
161
161
|
}, {
|
|
162
162
|
param: "volume_size_bytes",
|
|
163
163
|
value: request.volumeSizeBytes
|
|
@@ -111,7 +111,7 @@ export interface Deployment {
|
|
|
111
111
|
/**
|
|
112
112
|
* Number of nodes allocated per deployment.
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
nodeCount: number;
|
|
115
115
|
/**
|
|
116
116
|
* Node type used in deployment.
|
|
117
117
|
*/
|
|
@@ -229,7 +229,7 @@ export type CreateDeploymentRequest = {
|
|
|
229
229
|
/**
|
|
230
230
|
* Number of nodes.
|
|
231
231
|
*/
|
|
232
|
-
|
|
232
|
+
nodeCount: number;
|
|
233
233
|
/**
|
|
234
234
|
* Node type.
|
|
235
235
|
*/
|
|
@@ -542,15 +542,15 @@ export type UpgradeDeploymentRequest = {
|
|
|
542
542
|
*/
|
|
543
543
|
deploymentId: string;
|
|
544
544
|
/**
|
|
545
|
-
*
|
|
545
|
+
* The target number of nodes for the upgrade.
|
|
546
546
|
*
|
|
547
|
-
* One-of ('upgradeTarget'): at most one of '
|
|
547
|
+
* One-of ('upgradeTarget'): at most one of 'nodeCount', 'volumeSizeBytes' could be set.
|
|
548
548
|
*/
|
|
549
|
-
|
|
549
|
+
nodeCount?: number;
|
|
550
550
|
/**
|
|
551
551
|
* Volume size upgrade target.
|
|
552
552
|
*
|
|
553
|
-
* One-of ('upgradeTarget'): at most one of '
|
|
553
|
+
* One-of ('upgradeTarget'): at most one of 'nodeCount', 'volumeSizeBytes' could be set.
|
|
554
554
|
*/
|
|
555
555
|
volumeSizeBytes?: number;
|
|
556
556
|
};
|