@@ -58,6 +58,7 @@ interface TPathDescription {
58
58
TableIndex ?: TIndexDescription ;
59
59
60
60
CdcStreamDescription ?: TCdcStreamDescription ;
61
+ PersQueueGroup ?: TPersQueueGroupDescription ;
61
62
}
62
63
63
64
export interface TDirEntry {
@@ -253,7 +254,7 @@ export enum EPathType {
253
254
EPathTypeInvalid = 'EPathTypeInvalid' ,
254
255
EPathTypeDir = 'EPathTypeDir' ,
255
256
EPathTypeTable = 'EPathTypeTable' ,
256
-
257
+ EPathTypePersQueueGroup = 'EPathTypePersQueueGroup' ,
257
258
EPathTypeSubDomain = 'EPathTypeSubDomain' ,
258
259
259
260
EPathTypeTableIndex = 'EPathTypeTableIndex' ,
@@ -304,3 +305,195 @@ interface TPathVersion {
304
305
/** uint64 */
305
306
GeneralVersion ?: string ;
306
307
}
308
+
309
+ interface TPartitionKeyRange {
310
+ // Inclusive left border. Emptiness means -inf.
311
+ FromBound ?: string ;
312
+ // Exclusive right border. Emptiness means +inf.
313
+ ToBound ?: string ;
314
+ }
315
+
316
+ interface TPartition {
317
+ PartitionId ?: number ;
318
+ /** uint64 */
319
+ TabletId ?: string ;
320
+ KeyRange ?: TPartitionKeyRange ;
321
+ }
322
+
323
+ interface TPartitionToAdd {
324
+ PartitionId ?: number ;
325
+ GroupId ?: number ;
326
+ }
327
+
328
+ interface TCodecs {
329
+ /** int64 */
330
+ Ids ?: string [ ] ;
331
+ Codecs ?: string [ ] ;
332
+ }
333
+
334
+ interface TKeyComponentSchema {
335
+ Name ?: string ;
336
+ TypeId ?: number ;
337
+ }
338
+
339
+ enum EMeteringMode {
340
+ METERING_MODE_RESERVED_CAPACITY = 'METERING_MODE_RESERVED_CAPACITY' ,
341
+ METERING_MODE_REQUEST_UNITS = 'METERING_MODE_REQUEST_UNITS' ,
342
+ }
343
+
344
+ interface TReadQuota {
345
+ ClientId ?: string ;
346
+ /** uint64 */
347
+ SpeedInBytesPerSecond ?: string ;
348
+ /** uint64 */
349
+ BurstSize ?: string ;
350
+ }
351
+
352
+ interface TChannelProfile {
353
+ PoolKind ?: string ;
354
+ /** uint64 */
355
+ Size ?: string ;
356
+ ReadIops ?: number ;
357
+ ReadBandwidth ?: number ;
358
+ WriteIops ?: number ;
359
+ WriteBandwidth ?: number ;
360
+ }
361
+
362
+ interface IamCredentials {
363
+ Endpoint ?: string ;
364
+ ServiceAccountKey ?: string ;
365
+ }
366
+
367
+ interface TCredentials {
368
+ OauthToken ?: string ;
369
+ JwtParams ?: string ;
370
+ Iam ?: IamCredentials ;
371
+ }
372
+
373
+ interface TMirrorPartitionConfig {
374
+ Endpoint ?: string ;
375
+ EndpointPort ?: number ;
376
+ Topic ?: string ;
377
+ Consumer ?: string ;
378
+ /** uint64 */
379
+ ReadFromTimestampsMs ?: string ;
380
+ Credentials ?: TCredentials ;
381
+ Database ?: string ;
382
+ UseSecureConnection ?: boolean ;
383
+ SyncWriteTime ?: boolean ;
384
+ }
385
+
386
+ interface TPQPartitionConfig {
387
+ MaxCountInPartition ?: number ;
388
+ /** int64 */
389
+ MaxSizeInPartition ?: string ;
390
+ LifetimeSeconds : number ;
391
+ /** uint64 */
392
+ StorageLimitBytes ?: string ;
393
+
394
+ ImportantClientId ?: string [ ] ;
395
+ LowWatermark ?: number ;
396
+ SourceIdLifetimeSeconds ?: number ;
397
+ SourceIdMaxCounts ?: number ;
398
+
399
+ /** uint64 */
400
+ WriteSpeedInBytesPerSecond ?: string ;
401
+ /** uint64 */
402
+ BurstSize ?: string ;
403
+
404
+ ReadQuota ?: TReadQuota [ ] ;
405
+ /** uint64 */
406
+ MaxWriteInflightSize ?: string ;
407
+ /** uint64 */
408
+ BorderWriteInflightSize ?: string ;
409
+
410
+ NumChannels ?: number ;
411
+
412
+ TotalPartitions ?: number ;
413
+
414
+ ExplicitChannelProfiles ?: TChannelProfile [ ] ;
415
+
416
+ MirrorFrom ?: TMirrorPartitionConfig ;
417
+ } ;
418
+
419
+ interface TPQTabletConfig {
420
+ /** uint64 */
421
+ CacheSize ?: string ;
422
+ PartitionConfig : TPQPartitionConfig ;
423
+ /** @deprecated use Partitions */
424
+ PartitionIds ?: number [ ] ;
425
+ TopicName ?: string ;
426
+ Version ?: number ;
427
+ LocalDC ?: boolean ;
428
+ RequireAuthWrite ?: boolean ;
429
+ RequireAuthRead ?: boolean ;
430
+ Producer ?: string ;
431
+ Ident ?: string ;
432
+ Topic ?: string ;
433
+ DC ?: string ;
434
+
435
+ ReadRules ?: string [ ] ;
436
+ /** uint64[] */
437
+ ReadFromTimestampsMs ?: number [ ] ;
438
+ /** uint64[] */
439
+ ConsumerFormatVersions ?: number [ ] ;
440
+
441
+ ConsumerCodecs ?: TCodecs [ ] ;
442
+ ReadRuleServiceTypes ?: string ;
443
+
444
+ /** uint64 */
445
+ FormatVersion ?: string ;
446
+ Codecs ?: TCodecs ;
447
+
448
+ /** uint64[] */
449
+ ReadRuleVersions ?: string [ ] ;
450
+ /** uint64[] */
451
+ ReadRuleGenerations ?: string [ ] ;
452
+
453
+ TopicPath ?: string ;
454
+
455
+ YcCloudId ?: string ;
456
+ YcFolderId ?: string ;
457
+ YdbDatabaseId ?: string ;
458
+ YdbDatabasePath ?: string ;
459
+ FederationAccount ?: string ;
460
+
461
+ PartitionKeySchema ?: TKeyComponentSchema [ ] ;
462
+
463
+ Partitions ?: TPartition [ ] ;
464
+
465
+ MeteringMode ?: EMeteringMode ;
466
+ }
467
+
468
+ interface TMessageGroup {
469
+ // Id of message group (SourceId)
470
+ Id ?: string ;
471
+ // Range of the key to which it is allowed to write.
472
+ KeyRange ?: TPartitionKeyRange ;
473
+ }
474
+
475
+ interface TBootstrapConfig {
476
+ ExplicitMessageGroups ?: TMessageGroup [ ] ;
477
+ }
478
+
479
+ export interface TPersQueueGroupDescription {
480
+ Name : string ;
481
+ /** uint64 */
482
+ PathId ?: string ;
483
+ TotalGroupCount : number ;
484
+
485
+ PartitionsToAdd ?: TPartitionToAdd [ ] ;
486
+ PartitionsToDelete ?: number [ ] ;
487
+ NextPartitionId ?: number ;
488
+ PartitionPerTablet ?: number ;
489
+ PQTabletConfig : TPQTabletConfig ;
490
+ Partitions ?: TPartition [ ] ;
491
+ /** uint64 */
492
+ AlterVersion ?: string ;
493
+ /** uint64 */
494
+ BalancerTabletID ?: string ;
495
+
496
+ PartitionBoundaries ?: any ;
497
+
498
+ BootstrapConfig ?: TBootstrapConfig ;
499
+ }
0 commit comments