@scaleway/sdk-kafka 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.
- package/LICENSE +191 -0
- package/README.md +95 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +4 -0
- package/dist/v1alpha1/api.gen.d.ts +128 -0
- package/dist/v1alpha1/api.gen.js +248 -0
- package/dist/v1alpha1/content.gen.d.ts +3 -0
- package/dist/v1alpha1/content.gen.js +8 -0
- package/dist/v1alpha1/index.gen.d.ts +5 -0
- package/dist/v1alpha1/index.gen.js +20 -0
- package/dist/v1alpha1/marshalling.gen.d.ts +13 -0
- package/dist/v1alpha1/marshalling.gen.js +300 -0
- package/dist/v1alpha1/types.gen.d.ts +564 -0
- package/dist/v1alpha1/validation-rules.gen.d.ts +95 -0
- package/dist/v1alpha1/validation-rules.gen.js +104 -0
- package/package.json +45 -0
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
import type { Region as ScwRegion } from '@scaleway/sdk-client';
|
|
2
|
+
export type ClusterStatus = 'unknown_status' | 'ready' | 'creating' | 'configuring' | 'deleting' | 'error' | 'locked' | 'stopped';
|
|
3
|
+
export type ListClustersRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc';
|
|
4
|
+
export type ListUsersRequestOrderBy = 'name_asc' | 'name_desc';
|
|
5
|
+
export type NodeTypeStock = 'unknown_stock' | 'low_stock' | 'out_of_stock' | 'available';
|
|
6
|
+
export type VolumeType = 'unknown_type' | 'sbs_5k' | 'sbs_15k';
|
|
7
|
+
/**
|
|
8
|
+
* Private Network details.
|
|
9
|
+
*/
|
|
10
|
+
export interface EndpointPrivateNetworkDetails {
|
|
11
|
+
/**
|
|
12
|
+
* UUID of the Private Network.
|
|
13
|
+
*/
|
|
14
|
+
privateNetworkId: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Public Access details.
|
|
18
|
+
*/
|
|
19
|
+
export interface EndpointPublicDetails {
|
|
20
|
+
}
|
|
21
|
+
export interface VersionAvailableSettingBooleanProperty {
|
|
22
|
+
defaultValue: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface VersionAvailableSettingFloatProperty {
|
|
25
|
+
min: number;
|
|
26
|
+
max: number;
|
|
27
|
+
defaultValue: number;
|
|
28
|
+
unit?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface VersionAvailableSettingIntegerProperty {
|
|
31
|
+
min: number;
|
|
32
|
+
max: number;
|
|
33
|
+
defaultValue: number;
|
|
34
|
+
unit?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface VersionAvailableSettingStringProperty {
|
|
37
|
+
stringConstraint?: string;
|
|
38
|
+
defaultValue: string;
|
|
39
|
+
}
|
|
40
|
+
export interface EndpointSpecPrivateNetworkDetails {
|
|
41
|
+
/**
|
|
42
|
+
* UUID of the Private Network.
|
|
43
|
+
*/
|
|
44
|
+
privateNetworkId: string;
|
|
45
|
+
}
|
|
46
|
+
export interface EndpointSpecPublicDetails {
|
|
47
|
+
}
|
|
48
|
+
export interface ClusterSetting {
|
|
49
|
+
/**
|
|
50
|
+
* Name of the setting.
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* Boolean value of the setting.
|
|
55
|
+
*
|
|
56
|
+
* One-of ('value'): at most one of 'boolValue', 'stringValue', 'intValue', 'floatValue' could be set.
|
|
57
|
+
*/
|
|
58
|
+
boolValue?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* String value of the setting.
|
|
61
|
+
*
|
|
62
|
+
* One-of ('value'): at most one of 'boolValue', 'stringValue', 'intValue', 'floatValue' could be set.
|
|
63
|
+
*/
|
|
64
|
+
stringValue?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Integer value of the setting.
|
|
67
|
+
*
|
|
68
|
+
* One-of ('value'): at most one of 'boolValue', 'stringValue', 'intValue', 'floatValue' could be set.
|
|
69
|
+
*/
|
|
70
|
+
intValue?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Float value of the setting.
|
|
73
|
+
*
|
|
74
|
+
* One-of ('value'): at most one of 'boolValue', 'stringValue', 'intValue', 'floatValue' could be set.
|
|
75
|
+
*/
|
|
76
|
+
floatValue?: number;
|
|
77
|
+
}
|
|
78
|
+
export interface Endpoint {
|
|
79
|
+
/**
|
|
80
|
+
* UUID of the endpoint.
|
|
81
|
+
*/
|
|
82
|
+
id: string;
|
|
83
|
+
/**
|
|
84
|
+
* List of DNS records of the endpoint.
|
|
85
|
+
*/
|
|
86
|
+
dnsRecords: string[];
|
|
87
|
+
/**
|
|
88
|
+
* TCP port of the endpoint.
|
|
89
|
+
*/
|
|
90
|
+
port: number;
|
|
91
|
+
/**
|
|
92
|
+
* Private Network endpoint details.
|
|
93
|
+
*
|
|
94
|
+
* One-of ('details'): at most one of 'privateNetwork', 'publicNetwork' could be set.
|
|
95
|
+
*/
|
|
96
|
+
privateNetwork?: EndpointPrivateNetworkDetails;
|
|
97
|
+
/**
|
|
98
|
+
* Public endpoint details.
|
|
99
|
+
*
|
|
100
|
+
* One-of ('details'): at most one of 'privateNetwork', 'publicNetwork' could be set.
|
|
101
|
+
*/
|
|
102
|
+
publicNetwork?: EndpointPublicDetails;
|
|
103
|
+
}
|
|
104
|
+
export interface Volume {
|
|
105
|
+
/**
|
|
106
|
+
* Type of volume where data is stored.
|
|
107
|
+
*/
|
|
108
|
+
type: VolumeType;
|
|
109
|
+
/**
|
|
110
|
+
* Volume size.
|
|
111
|
+
*/
|
|
112
|
+
sizeBytes: number;
|
|
113
|
+
}
|
|
114
|
+
export interface NodeTypeVolumeType {
|
|
115
|
+
/**
|
|
116
|
+
* Volume type.
|
|
117
|
+
*/
|
|
118
|
+
type: VolumeType;
|
|
119
|
+
/**
|
|
120
|
+
* The description of the volume.
|
|
121
|
+
*/
|
|
122
|
+
description: string;
|
|
123
|
+
/**
|
|
124
|
+
* Minimum size required for the volume.
|
|
125
|
+
*/
|
|
126
|
+
minSizeBytes: number;
|
|
127
|
+
/**
|
|
128
|
+
* Maximum size required for the volume.
|
|
129
|
+
*/
|
|
130
|
+
maxSizeBytes: number;
|
|
131
|
+
/**
|
|
132
|
+
* Minimum increment level for a Block Storage volume size.
|
|
133
|
+
*/
|
|
134
|
+
chunkSizeBytes: number;
|
|
135
|
+
}
|
|
136
|
+
export interface VersionAvailableSetting {
|
|
137
|
+
/**
|
|
138
|
+
* Kafka cluster setting name.
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
/**
|
|
142
|
+
* Defines whether this setting can be applied without needing a restart.
|
|
143
|
+
*/
|
|
144
|
+
hotConfigurable: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Setting description.
|
|
147
|
+
*/
|
|
148
|
+
description: string;
|
|
149
|
+
/**
|
|
150
|
+
* Boolean property, if the setting is a boolean.
|
|
151
|
+
*
|
|
152
|
+
* One-of ('property'): at most one of 'boolProperty', 'stringProperty', 'intProperty', 'floatProperty' could be set.
|
|
153
|
+
*/
|
|
154
|
+
boolProperty?: VersionAvailableSettingBooleanProperty;
|
|
155
|
+
/**
|
|
156
|
+
* String property, if the setting is a string.
|
|
157
|
+
*
|
|
158
|
+
* One-of ('property'): at most one of 'boolProperty', 'stringProperty', 'intProperty', 'floatProperty' could be set.
|
|
159
|
+
*/
|
|
160
|
+
stringProperty?: VersionAvailableSettingStringProperty;
|
|
161
|
+
/**
|
|
162
|
+
* Integer property, if the setting is an integer.
|
|
163
|
+
*
|
|
164
|
+
* One-of ('property'): at most one of 'boolProperty', 'stringProperty', 'intProperty', 'floatProperty' could be set.
|
|
165
|
+
*/
|
|
166
|
+
intProperty?: VersionAvailableSettingIntegerProperty;
|
|
167
|
+
/**
|
|
168
|
+
* Float property, if the setting is a float.
|
|
169
|
+
*
|
|
170
|
+
* One-of ('property'): at most one of 'boolProperty', 'stringProperty', 'intProperty', 'floatProperty' could be set.
|
|
171
|
+
*/
|
|
172
|
+
floatProperty?: VersionAvailableSettingFloatProperty;
|
|
173
|
+
}
|
|
174
|
+
export interface CreateClusterRequestVolumeSpec {
|
|
175
|
+
/**
|
|
176
|
+
* Volume size.
|
|
177
|
+
*/
|
|
178
|
+
sizeBytes: number;
|
|
179
|
+
/**
|
|
180
|
+
* Type of volume where data is stored.
|
|
181
|
+
*/
|
|
182
|
+
type: VolumeType;
|
|
183
|
+
}
|
|
184
|
+
export interface EndpointSpec {
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could be set.
|
|
188
|
+
*/
|
|
189
|
+
publicNetwork?: EndpointSpecPublicDetails;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* One-of ('details'): at most one of 'publicNetwork', 'privateNetwork' could be set.
|
|
193
|
+
*/
|
|
194
|
+
privateNetwork?: EndpointSpecPrivateNetworkDetails;
|
|
195
|
+
}
|
|
196
|
+
export interface Cluster {
|
|
197
|
+
/**
|
|
198
|
+
* UUID of the Kafka cluster.
|
|
199
|
+
*/
|
|
200
|
+
id: string;
|
|
201
|
+
/**
|
|
202
|
+
* Name of the Kafka cluster.
|
|
203
|
+
*/
|
|
204
|
+
name: string;
|
|
205
|
+
/**
|
|
206
|
+
* Project ID the Kafka cluster belongs to.
|
|
207
|
+
*/
|
|
208
|
+
projectId: string;
|
|
209
|
+
/**
|
|
210
|
+
* Organisation ID the Kafka cluster belongs to.
|
|
211
|
+
*/
|
|
212
|
+
organizationId: string;
|
|
213
|
+
/**
|
|
214
|
+
* Status of the Kafka cluster.
|
|
215
|
+
*/
|
|
216
|
+
status: ClusterStatus;
|
|
217
|
+
/**
|
|
218
|
+
* Kafka version of the Kafka cluster.
|
|
219
|
+
*/
|
|
220
|
+
version: string;
|
|
221
|
+
/**
|
|
222
|
+
* List of tags applied to the Kafka cluster.
|
|
223
|
+
*/
|
|
224
|
+
tags: string[];
|
|
225
|
+
/**
|
|
226
|
+
* Advanced settings of the Kafka cluster.
|
|
227
|
+
*/
|
|
228
|
+
settings: ClusterSetting[];
|
|
229
|
+
/**
|
|
230
|
+
* Number of nodes in Kafka cluster.
|
|
231
|
+
*/
|
|
232
|
+
nodeAmount: number;
|
|
233
|
+
/**
|
|
234
|
+
* Node type of the Kafka cluster.
|
|
235
|
+
*/
|
|
236
|
+
nodeType: string;
|
|
237
|
+
/**
|
|
238
|
+
* Volumes of the Kafka cluster.
|
|
239
|
+
*/
|
|
240
|
+
volume?: Volume;
|
|
241
|
+
/**
|
|
242
|
+
* List of Kafka cluster endpoints.
|
|
243
|
+
*/
|
|
244
|
+
endpoints: Endpoint[];
|
|
245
|
+
/**
|
|
246
|
+
* Creation date (must follow the ISO 8601 format).
|
|
247
|
+
*/
|
|
248
|
+
createdAt?: Date;
|
|
249
|
+
/**
|
|
250
|
+
* Last update date (must follow the ISO 8601 format).
|
|
251
|
+
*/
|
|
252
|
+
updatedAt?: Date;
|
|
253
|
+
/**
|
|
254
|
+
* Region the Kafka cluster is in.
|
|
255
|
+
*/
|
|
256
|
+
region: ScwRegion;
|
|
257
|
+
}
|
|
258
|
+
export interface NodeType {
|
|
259
|
+
/**
|
|
260
|
+
* Node type name identifier.
|
|
261
|
+
*/
|
|
262
|
+
name: string;
|
|
263
|
+
/**
|
|
264
|
+
* Current stock status for the node type.
|
|
265
|
+
*/
|
|
266
|
+
stockStatus: NodeTypeStock;
|
|
267
|
+
/**
|
|
268
|
+
* Current specifications of the node type offer.
|
|
269
|
+
*/
|
|
270
|
+
description: string;
|
|
271
|
+
/**
|
|
272
|
+
* Number of virtual CPUs of the node type.
|
|
273
|
+
*/
|
|
274
|
+
vcpus: number;
|
|
275
|
+
/**
|
|
276
|
+
* Quantity of RAM.
|
|
277
|
+
*/
|
|
278
|
+
memoryBytes: number;
|
|
279
|
+
/**
|
|
280
|
+
* Available storage options for the node type.
|
|
281
|
+
*/
|
|
282
|
+
availableVolumeTypes: NodeTypeVolumeType[];
|
|
283
|
+
/**
|
|
284
|
+
* Defines whether the node type is currently disabled.
|
|
285
|
+
*/
|
|
286
|
+
disabled: boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Defines whether the node type is currently in beta.
|
|
289
|
+
*/
|
|
290
|
+
beta: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Cluster range associated with the node type offer.
|
|
293
|
+
*/
|
|
294
|
+
clusterRange: string;
|
|
295
|
+
}
|
|
296
|
+
export interface User {
|
|
297
|
+
username: string;
|
|
298
|
+
}
|
|
299
|
+
export interface Version {
|
|
300
|
+
/**
|
|
301
|
+
* Kafka version.
|
|
302
|
+
*/
|
|
303
|
+
version: string;
|
|
304
|
+
/**
|
|
305
|
+
* Date of End of Life for the version.
|
|
306
|
+
*/
|
|
307
|
+
endOfLifeAt?: Date;
|
|
308
|
+
/**
|
|
309
|
+
* Cluster configuration settings you are able to change for clusters running this version. Each item in `available_settings` describes one configurable cluster setting.
|
|
310
|
+
*/
|
|
311
|
+
availableSettings: VersionAvailableSetting[];
|
|
312
|
+
}
|
|
313
|
+
export type CreateClusterRequest = {
|
|
314
|
+
/**
|
|
315
|
+
* Region to target. If none is passed will use default region from the config.
|
|
316
|
+
*/
|
|
317
|
+
region?: ScwRegion;
|
|
318
|
+
/**
|
|
319
|
+
* The ID of the Project in which the Kafka cluster will be created.
|
|
320
|
+
*/
|
|
321
|
+
projectId?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Name of the Kafka cluster.
|
|
324
|
+
*/
|
|
325
|
+
name?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Version of Kafka.
|
|
328
|
+
*/
|
|
329
|
+
version: string;
|
|
330
|
+
/**
|
|
331
|
+
* Tags to apply to the Kafka cluster.
|
|
332
|
+
*/
|
|
333
|
+
tags?: string[];
|
|
334
|
+
/**
|
|
335
|
+
* Number of nodes to use for the Kafka cluster.
|
|
336
|
+
*/
|
|
337
|
+
nodeAmount: number;
|
|
338
|
+
/**
|
|
339
|
+
* Type of node to use for the Kafka cluster.
|
|
340
|
+
*/
|
|
341
|
+
nodeType: string;
|
|
342
|
+
/**
|
|
343
|
+
* Kafka volume information.
|
|
344
|
+
*/
|
|
345
|
+
volume?: CreateClusterRequestVolumeSpec;
|
|
346
|
+
/**
|
|
347
|
+
* One or multiple EndpointSpec used to expose your Kafka cluster.
|
|
348
|
+
*/
|
|
349
|
+
endpoints?: EndpointSpec[];
|
|
350
|
+
/**
|
|
351
|
+
* Username for the kafka user.
|
|
352
|
+
*/
|
|
353
|
+
userName?: string;
|
|
354
|
+
/**
|
|
355
|
+
* Password for the kafka user.
|
|
356
|
+
*/
|
|
357
|
+
password?: string;
|
|
358
|
+
};
|
|
359
|
+
export type CreateEndpointRequest = {
|
|
360
|
+
/**
|
|
361
|
+
* Region to target. If none is passed will use default region from the config.
|
|
362
|
+
*/
|
|
363
|
+
region?: ScwRegion;
|
|
364
|
+
/**
|
|
365
|
+
* UUID of the Kafka Cluster.
|
|
366
|
+
*/
|
|
367
|
+
clusterId: string;
|
|
368
|
+
/**
|
|
369
|
+
* Endpoint object (`EndpointSpec`) used to expose your Kafka EndpointSpec.
|
|
370
|
+
*/
|
|
371
|
+
endpoint: EndpointSpec;
|
|
372
|
+
};
|
|
373
|
+
export type DeleteClusterRequest = {
|
|
374
|
+
/**
|
|
375
|
+
* Region to target. If none is passed will use default region from the config.
|
|
376
|
+
*/
|
|
377
|
+
region?: ScwRegion;
|
|
378
|
+
/**
|
|
379
|
+
* UUID of the Kafka Cluster to delete.
|
|
380
|
+
*/
|
|
381
|
+
clusterId: string;
|
|
382
|
+
};
|
|
383
|
+
export type DeleteEndpointRequest = {
|
|
384
|
+
/**
|
|
385
|
+
* Region to target. If none is passed will use default region from the config.
|
|
386
|
+
*/
|
|
387
|
+
region?: ScwRegion;
|
|
388
|
+
/**
|
|
389
|
+
* UUID of the endpoint to delete.
|
|
390
|
+
*/
|
|
391
|
+
endpointId: string;
|
|
392
|
+
};
|
|
393
|
+
export type GetClusterCertificateAuthorityRequest = {
|
|
394
|
+
/**
|
|
395
|
+
* Region to target. If none is passed will use default region from the config.
|
|
396
|
+
*/
|
|
397
|
+
region?: ScwRegion;
|
|
398
|
+
/**
|
|
399
|
+
* UUID of the Kafka Cluster.
|
|
400
|
+
*/
|
|
401
|
+
clusterId: string;
|
|
402
|
+
};
|
|
403
|
+
export type GetClusterRequest = {
|
|
404
|
+
/**
|
|
405
|
+
* Region to target. If none is passed will use default region from the config.
|
|
406
|
+
*/
|
|
407
|
+
region?: ScwRegion;
|
|
408
|
+
/**
|
|
409
|
+
* UUID of the Kafka Cluster.
|
|
410
|
+
*/
|
|
411
|
+
clusterId: string;
|
|
412
|
+
};
|
|
413
|
+
export type ListClustersRequest = {
|
|
414
|
+
/**
|
|
415
|
+
* Region to target. If none is passed will use default region from the config.
|
|
416
|
+
*/
|
|
417
|
+
region?: ScwRegion;
|
|
418
|
+
/**
|
|
419
|
+
* List Kafka cluster with a given tag.
|
|
420
|
+
*/
|
|
421
|
+
tags?: string[];
|
|
422
|
+
/**
|
|
423
|
+
* Lists Kafka clusters that match a name pattern.
|
|
424
|
+
*/
|
|
425
|
+
name?: string;
|
|
426
|
+
/**
|
|
427
|
+
* Criteria to use when ordering Kafka cluster listings.
|
|
428
|
+
*/
|
|
429
|
+
orderBy?: ListClustersRequestOrderBy;
|
|
430
|
+
/**
|
|
431
|
+
* Organization ID of the Kafka cluster.
|
|
432
|
+
*/
|
|
433
|
+
organizationId?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Project ID.
|
|
436
|
+
*/
|
|
437
|
+
projectId?: string;
|
|
438
|
+
page?: number;
|
|
439
|
+
pageSize?: number;
|
|
440
|
+
};
|
|
441
|
+
export interface ListClustersResponse {
|
|
442
|
+
/**
|
|
443
|
+
* List of all Kafka cluster available in an Organization or Project.
|
|
444
|
+
*/
|
|
445
|
+
clusters: Cluster[];
|
|
446
|
+
/**
|
|
447
|
+
* Total count of Kafka cluster available in an Organization or Project.
|
|
448
|
+
*/
|
|
449
|
+
totalCount: number;
|
|
450
|
+
}
|
|
451
|
+
export type ListNodeTypesRequest = {
|
|
452
|
+
/**
|
|
453
|
+
* Region to target. If none is passed will use default region from the config.
|
|
454
|
+
*/
|
|
455
|
+
region?: ScwRegion;
|
|
456
|
+
/**
|
|
457
|
+
* Defines whether or not to include disabled types.
|
|
458
|
+
*/
|
|
459
|
+
includeDisabledTypes?: boolean;
|
|
460
|
+
page?: number;
|
|
461
|
+
pageSize?: number;
|
|
462
|
+
};
|
|
463
|
+
export interface ListNodeTypesResponse {
|
|
464
|
+
/**
|
|
465
|
+
* Types of the node.
|
|
466
|
+
*/
|
|
467
|
+
nodeTypes: NodeType[];
|
|
468
|
+
/**
|
|
469
|
+
* Total count of node types available.
|
|
470
|
+
*/
|
|
471
|
+
totalCount: number;
|
|
472
|
+
}
|
|
473
|
+
export type ListUsersRequest = {
|
|
474
|
+
/**
|
|
475
|
+
* Region to target. If none is passed will use default region from the config.
|
|
476
|
+
*/
|
|
477
|
+
region?: ScwRegion;
|
|
478
|
+
clusterId: string;
|
|
479
|
+
page?: number;
|
|
480
|
+
pageSize?: number;
|
|
481
|
+
orderBy?: ListUsersRequestOrderBy;
|
|
482
|
+
name?: string;
|
|
483
|
+
};
|
|
484
|
+
export interface ListUsersResponse {
|
|
485
|
+
users: User[];
|
|
486
|
+
totalCount: number;
|
|
487
|
+
}
|
|
488
|
+
export type ListVersionsRequest = {
|
|
489
|
+
/**
|
|
490
|
+
* Region to target. If none is passed will use default region from the config.
|
|
491
|
+
*/
|
|
492
|
+
region?: ScwRegion;
|
|
493
|
+
/**
|
|
494
|
+
* Kafka version to filter for.
|
|
495
|
+
*/
|
|
496
|
+
version?: string;
|
|
497
|
+
/**
|
|
498
|
+
* The page number to return, from the paginated results.
|
|
499
|
+
*/
|
|
500
|
+
page?: number;
|
|
501
|
+
/**
|
|
502
|
+
* The number of items to return.
|
|
503
|
+
*/
|
|
504
|
+
pageSize?: number;
|
|
505
|
+
};
|
|
506
|
+
export interface ListVersionsResponse {
|
|
507
|
+
/**
|
|
508
|
+
* Available Kafka versions.
|
|
509
|
+
*/
|
|
510
|
+
versions: Version[];
|
|
511
|
+
/**
|
|
512
|
+
* Total count of Kafka versions available.
|
|
513
|
+
*/
|
|
514
|
+
totalCount: number;
|
|
515
|
+
}
|
|
516
|
+
export type RenewClusterCertificateAuthorityRequest = {
|
|
517
|
+
/**
|
|
518
|
+
* Region to target. If none is passed will use default region from the config.
|
|
519
|
+
*/
|
|
520
|
+
region?: ScwRegion;
|
|
521
|
+
/**
|
|
522
|
+
* UUID of the Kafka Cluster.
|
|
523
|
+
*/
|
|
524
|
+
clusterId: string;
|
|
525
|
+
};
|
|
526
|
+
export type UpdateClusterRequest = {
|
|
527
|
+
/**
|
|
528
|
+
* Region to target. If none is passed will use default region from the config.
|
|
529
|
+
*/
|
|
530
|
+
region?: ScwRegion;
|
|
531
|
+
/**
|
|
532
|
+
* UUID of the Kafka Clusters to update.
|
|
533
|
+
*/
|
|
534
|
+
clusterId: string;
|
|
535
|
+
/**
|
|
536
|
+
* Name of the Kafka Cluster.
|
|
537
|
+
*/
|
|
538
|
+
name?: string;
|
|
539
|
+
/**
|
|
540
|
+
* Tags of a Kafka Cluster.
|
|
541
|
+
*/
|
|
542
|
+
tags?: string[];
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Update a user of a Kafka cluster.
|
|
546
|
+
*/
|
|
547
|
+
export type UpdateUserRequest = {
|
|
548
|
+
/**
|
|
549
|
+
* Region to target. If none is passed will use default region from the config.
|
|
550
|
+
*/
|
|
551
|
+
region?: ScwRegion;
|
|
552
|
+
/**
|
|
553
|
+
* ID of the cluster in which to update the user's password.
|
|
554
|
+
*/
|
|
555
|
+
clusterId: string;
|
|
556
|
+
/**
|
|
557
|
+
* Username of the Kafka cluster user.
|
|
558
|
+
*/
|
|
559
|
+
username: string;
|
|
560
|
+
/**
|
|
561
|
+
* New password for the Kafka cluster user.
|
|
562
|
+
*/
|
|
563
|
+
password?: string;
|
|
564
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export declare const CreateClusterRequest: {
|
|
2
|
+
name: {
|
|
3
|
+
maxLength: number;
|
|
4
|
+
minLength: number;
|
|
5
|
+
pattern: RegExp;
|
|
6
|
+
};
|
|
7
|
+
nodeAmount: {
|
|
8
|
+
greaterThanOrEqual: number;
|
|
9
|
+
lessThanOrEqual: number;
|
|
10
|
+
};
|
|
11
|
+
nodeType: {
|
|
12
|
+
maxLength: number;
|
|
13
|
+
minLength: number;
|
|
14
|
+
pattern: RegExp;
|
|
15
|
+
};
|
|
16
|
+
password: {
|
|
17
|
+
maxLength: number;
|
|
18
|
+
minLength: number;
|
|
19
|
+
};
|
|
20
|
+
userName: {
|
|
21
|
+
maxLength: number;
|
|
22
|
+
minLength: number;
|
|
23
|
+
pattern: RegExp;
|
|
24
|
+
};
|
|
25
|
+
version: {
|
|
26
|
+
pattern: RegExp;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const ListClustersRequest: {
|
|
30
|
+
name: {
|
|
31
|
+
maxLength: number;
|
|
32
|
+
minLength: number;
|
|
33
|
+
pattern: RegExp;
|
|
34
|
+
};
|
|
35
|
+
page: {
|
|
36
|
+
greaterThanOrEqual: number;
|
|
37
|
+
};
|
|
38
|
+
pageSize: {
|
|
39
|
+
greaterThanOrEqual: number;
|
|
40
|
+
lessThanOrEqual: number;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const ListNodeTypesRequest: {
|
|
44
|
+
page: {
|
|
45
|
+
greaterThanOrEqual: number;
|
|
46
|
+
};
|
|
47
|
+
pageSize: {
|
|
48
|
+
greaterThanOrEqual: number;
|
|
49
|
+
lessThanOrEqual: number;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const ListUsersRequest: {
|
|
53
|
+
name: {
|
|
54
|
+
maxLength: number;
|
|
55
|
+
minLength: number;
|
|
56
|
+
pattern: RegExp;
|
|
57
|
+
};
|
|
58
|
+
page: {
|
|
59
|
+
greaterThanOrEqual: number;
|
|
60
|
+
};
|
|
61
|
+
pageSize: {
|
|
62
|
+
greaterThanOrEqual: number;
|
|
63
|
+
lessThanOrEqual: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export declare const ListVersionsRequest: {
|
|
67
|
+
page: {
|
|
68
|
+
greaterThanOrEqual: number;
|
|
69
|
+
};
|
|
70
|
+
pageSize: {
|
|
71
|
+
greaterThanOrEqual: number;
|
|
72
|
+
lessThanOrEqual: number;
|
|
73
|
+
};
|
|
74
|
+
version: {
|
|
75
|
+
pattern: RegExp;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export declare const UpdateClusterRequest: {
|
|
79
|
+
name: {
|
|
80
|
+
maxLength: number;
|
|
81
|
+
minLength: number;
|
|
82
|
+
pattern: RegExp;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export declare const UpdateUserRequest: {
|
|
86
|
+
password: {
|
|
87
|
+
maxLength: number;
|
|
88
|
+
minLength: number;
|
|
89
|
+
};
|
|
90
|
+
username: {
|
|
91
|
+
maxLength: number;
|
|
92
|
+
minLength: number;
|
|
93
|
+
pattern: RegExp;
|
|
94
|
+
};
|
|
95
|
+
};
|