@scaleway/sdk-datawarehouse 2.3.1 → 2.4.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.
@@ -71,6 +71,7 @@ const unmarshalDeployment = (data) => {
71
71
  ramPerCpu: data.ram_per_cpu,
72
72
  region: data.region,
73
73
  replicaCount: data.replica_count,
74
+ shardCount: data.shard_count,
74
75
  status: data.status,
75
76
  tags: data.tags,
76
77
  updatedAt: unmarshalDate(data.updated_at),
@@ -122,7 +123,8 @@ const unmarshalPreset = (data) => {
122
123
  cpuMin: data.cpu_min,
123
124
  name: data.name,
124
125
  ramPerCpu: data.ram_per_cpu,
125
- replicaCount: data.replica_count
126
+ replicaCount: data.replica_count,
127
+ shardCount: data.shard_count
126
128
  };
127
129
  };
128
130
  const unmarshalListPresetsResponse = (data) => {
@@ -197,6 +199,7 @@ const marshalCreateDeploymentRequest = (request, defaults) => ({
197
199
  project_id: request.projectId ?? defaults.defaultProjectId,
198
200
  ram_per_cpu: request.ramPerCpu,
199
201
  replica_count: request.replicaCount,
202
+ shard_count: request.shardCount,
200
203
  tags: request.tags,
201
204
  version: request.version
202
205
  });
@@ -110,6 +110,10 @@ export interface Deployment {
110
110
  * Number of replicas for the deployment.
111
111
  */
112
112
  replicaCount: number;
113
+ /**
114
+ * Number of shards for the deployment.
115
+ */
116
+ shardCount: number;
113
117
  /**
114
118
  * Minimum CPU count for the deployment.
115
119
  */
@@ -156,6 +160,10 @@ export interface Preset {
156
160
  * Number of replicas for the preset.
157
161
  */
158
162
  replicaCount: number;
163
+ /**
164
+ * Number of shards for the preset.
165
+ */
166
+ shardCount: number;
159
167
  }
160
168
  export interface User {
161
169
  /**
@@ -216,6 +224,10 @@ export type CreateDeploymentRequest = {
216
224
  * Number of replicas for the deployment.
217
225
  */
218
226
  replicaCount: number;
227
+ /**
228
+ * Number of shard for the deployment.
229
+ */
230
+ shardCount?: number;
219
231
  /**
220
232
  * Password for the initial user.
221
233
  */
@@ -27,6 +27,10 @@ export declare const CreateDeploymentRequest: {
27
27
  greaterThanOrEqual: number;
28
28
  lessThanOrEqual: number;
29
29
  };
30
+ shardCount: {
31
+ greaterThanOrEqual: number;
32
+ lessThanOrEqual: number;
33
+ };
30
34
  version: {
31
35
  maxLength: number;
32
36
  minLength: number;
@@ -27,6 +27,10 @@ const CreateDeploymentRequest = {
27
27
  greaterThanOrEqual: 1,
28
28
  lessThanOrEqual: 6
29
29
  },
30
+ shardCount: {
31
+ greaterThanOrEqual: 1,
32
+ lessThanOrEqual: 6
33
+ },
30
34
  version: {
31
35
  maxLength: 10,
32
36
  minLength: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-datawarehouse",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "description": "Scaleway SDK datawarehouse",
5
5
  "license": "Apache-2.0",
6
6
  "files": [