@nebius/js-sdk 0.2.70 → 0.2.71

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.
Files changed (31) hide show
  1. package/dist/cjs/api/nebius/billing/v1/index.d.ts +4 -2
  2. package/dist/cjs/api/nebius/billing/v1/index.d.ts.map +1 -1
  3. package/dist/cjs/api/nebius/billing/v1/index.js +7 -5
  4. package/dist/cjs/api/nebius/billing/v1/index.js.map +1 -1
  5. package/dist/cjs/api/nebius/compute/v1/index.d.ts +3 -2
  6. package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
  7. package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
  8. package/dist/cjs/api/nebius/iam/v1/index.d.ts +3 -3
  9. package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -1
  10. package/dist/cjs/api/nebius/vpc/v1/index.d.ts +408 -0
  11. package/dist/cjs/api/nebius/vpc/v1/index.d.ts.map +1 -1
  12. package/dist/cjs/api/nebius/vpc/v1/index.js +1203 -153
  13. package/dist/cjs/api/nebius/vpc/v1/index.js.map +1 -1
  14. package/dist/cjs/version.d.ts +1 -1
  15. package/dist/cjs/version.js +1 -1
  16. package/dist/esm/api/nebius/billing/v1/index.d.ts +4 -2
  17. package/dist/esm/api/nebius/billing/v1/index.d.ts.map +1 -1
  18. package/dist/esm/api/nebius/billing/v1/index.js +7 -5
  19. package/dist/esm/api/nebius/billing/v1/index.js.map +1 -1
  20. package/dist/esm/api/nebius/compute/v1/index.d.ts +3 -2
  21. package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
  22. package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
  23. package/dist/esm/api/nebius/iam/v1/index.d.ts +3 -3
  24. package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -1
  25. package/dist/esm/api/nebius/vpc/v1/index.d.ts +408 -0
  26. package/dist/esm/api/nebius/vpc/v1/index.d.ts.map +1 -1
  27. package/dist/esm/api/nebius/vpc/v1/index.js +1199 -149
  28. package/dist/esm/api/nebius/vpc/v1/index.js.map +1 -1
  29. package/dist/esm/version.d.ts +1 -1
  30. package/dist/esm/version.js +1 -1
  31. package/package.json +1 -1
@@ -392,6 +392,158 @@ function createBaseListAllocationsRequest() {
392
392
  };
393
393
  return applyListAllocationsRequestCustom(message);
394
394
  }
395
+ const ListAggregatedAllocationsRequest_MESSAGE_DESCRIPTOR = {
396
+ fields: {
397
+ "parentId": { pbName: "parent_id", scalarType: 9 },
398
+ "pageSize": { pbName: "page_size", scalarType: 3 },
399
+ "pageToken": { pbName: "page_token", scalarType: 9 },
400
+ },
401
+ };
402
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedAllocationsRequest} messages. */
403
+ export const ListAggregatedAllocationsRequest = {
404
+ $type: "nebius.vpc.v1.ListAggregatedAllocationsRequest",
405
+ $descriptor: ListAggregatedAllocationsRequest_MESSAGE_DESCRIPTOR,
406
+ encode(message, writer = new BinaryWriter()) {
407
+ if (message.parentId !== "") {
408
+ writer.uint32(10).string(message.parentId);
409
+ }
410
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
411
+ writer.uint32(16).int64(message.pageSize.toString());
412
+ }
413
+ if (message.pageToken !== "") {
414
+ writer.uint32(26).string(message.pageToken);
415
+ }
416
+ if (message[unknownFieldsSymbol]) {
417
+ writer.raw(message[unknownFieldsSymbol]);
418
+ }
419
+ return writer;
420
+ },
421
+ decode(input, length) {
422
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
423
+ const end = length === undefined ? reader.len : reader.pos + length;
424
+ const message = createBaseListAggregatedAllocationsRequest();
425
+ let writer = undefined;
426
+ while (reader.pos < end) {
427
+ const tag = reader.uint32();
428
+ switch (tag >>> 3) {
429
+ case 1: {
430
+ if (tag !== 10)
431
+ break;
432
+ message.parentId = reader.string();
433
+ continue;
434
+ }
435
+ case 2: {
436
+ if (tag !== 16)
437
+ break;
438
+ message.pageSize = Long.fromValue(reader.int64());
439
+ continue;
440
+ }
441
+ case 3: {
442
+ if (tag !== 26)
443
+ break;
444
+ message.pageToken = reader.string();
445
+ continue;
446
+ }
447
+ default:
448
+ break;
449
+ }
450
+ if ((tag & 7) === 4 || tag === 0) {
451
+ break;
452
+ }
453
+ {
454
+ if (!writer)
455
+ writer = new BinaryWriter();
456
+ const skipped = reader.skip(tag & 7, tag >>> 3);
457
+ writer.uint32(tag).raw(skipped);
458
+ }
459
+ }
460
+ if (writer) {
461
+ message[unknownFieldsSymbol] = writer.finish();
462
+ }
463
+ return message;
464
+ },
465
+ fromJSON(object) {
466
+ return applyListAggregatedAllocationsRequestCustom({
467
+ $type: "nebius.vpc.v1.ListAggregatedAllocationsRequest",
468
+ parentId: isSet(object.parentId ?? object.parent_id)
469
+ ? String(object.parentId ?? object.parent_id)
470
+ : "",
471
+ pageSize: isSet(object.pageSize ?? object.page_size)
472
+ ? Long.fromValue(object.pageSize ?? object.page_size)
473
+ : Long.ZERO,
474
+ pageToken: isSet(object.pageToken ?? object.page_token)
475
+ ? String(object.pageToken ?? object.page_token)
476
+ : "",
477
+ });
478
+ },
479
+ toJSON(message, use = "json") {
480
+ const obj = {};
481
+ const pick = (json, pb) => (use === "json" ? json : pb);
482
+ if (message.parentId !== "") {
483
+ obj[pick("parentId", "parent_id")] = message.parentId;
484
+ }
485
+ if (!message.pageSize?.isZero?.()) {
486
+ obj[pick("pageSize", "page_size")] = (message.pageSize || Long.ZERO).toString();
487
+ }
488
+ if (message.pageToken !== "") {
489
+ obj[pick("pageToken", "page_token")] = message.pageToken;
490
+ }
491
+ return obj;
492
+ },
493
+ create(base) {
494
+ return ListAggregatedAllocationsRequest.fromPartial(base ?? {});
495
+ },
496
+ fromPartial(object) {
497
+ const message = createBaseListAggregatedAllocationsRequest();
498
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
499
+ ? object.parentId
500
+ : "";
501
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
502
+ ? Long.fromValue(object.pageSize)
503
+ : Long.ZERO;
504
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
505
+ ? object.pageToken
506
+ : "";
507
+ return message;
508
+ },
509
+ };
510
+ protoRegistry.registerMessage(ListAggregatedAllocationsRequest);
511
+ function ListAggregatedAllocationsRequestCustomInspect() {
512
+ const parts = [];
513
+ if (this.parentId !== "")
514
+ parts.push("parentId" + "=" + inspect(this.parentId));
515
+ if (!this.pageSize?.isZero?.())
516
+ parts.push("pageSize" + "=" + inspect(this.pageSize));
517
+ if (this.pageToken !== "")
518
+ parts.push("pageToken" + "=" + inspect(this.pageToken));
519
+ return `${this.$type}(${parts.join(", ")})`;
520
+ }
521
+ function ListAggregatedAllocationsRequestCustomJson() {
522
+ const obj = {
523
+ type: this.$type,
524
+ };
525
+ if (this.parentId !== "")
526
+ obj.parentId = inspectJson(this.parentId);
527
+ if (!this.pageSize?.isZero?.())
528
+ obj.pageSize = inspectJson(this.pageSize);
529
+ if (this.pageToken !== "")
530
+ obj.pageToken = inspectJson(this.pageToken);
531
+ return obj;
532
+ }
533
+ function applyListAggregatedAllocationsRequestCustom(message) {
534
+ message[custom] = ListAggregatedAllocationsRequestCustomInspect;
535
+ message[customJson] = ListAggregatedAllocationsRequestCustomJson;
536
+ return attachMessageDescriptor(message, ListAggregatedAllocationsRequest.$descriptor);
537
+ }
538
+ function createBaseListAggregatedAllocationsRequest() {
539
+ const message = {
540
+ $type: "nebius.vpc.v1.ListAggregatedAllocationsRequest",
541
+ parentId: "",
542
+ pageSize: Long.ZERO,
543
+ pageToken: "",
544
+ };
545
+ return applyListAggregatedAllocationsRequestCustom(message);
546
+ }
395
547
  const ListAllocationsByPoolRequest_MESSAGE_DESCRIPTOR = {
396
548
  fields: {
397
549
  "poolId": { pbName: "pool_id", scalarType: 9 },
@@ -1237,6 +1389,17 @@ export const AllocationServiceServiceDescription = {
1237
1389
  responseSerialize: (value) => Buffer.from(ListAllocationsResponse.encode(value).finish()),
1238
1390
  responseDeserialize: (value) => ListAllocationsResponse.decode(value),
1239
1391
  },
1392
+ listAggregated: {
1393
+ path: "/nebius.vpc.v1.AllocationService/ListAggregated",
1394
+ requestStream: false,
1395
+ responseStream: false,
1396
+ requestSerialize: (value) => Buffer.from(ListAggregatedAllocationsRequest.encode(value).finish()),
1397
+ requestDescriptor: () => ListAggregatedAllocationsRequest.$descriptor,
1398
+ sendResetMask: false,
1399
+ requestDeserialize: (value) => ListAggregatedAllocationsRequest.decode(value),
1400
+ responseSerialize: (value) => Buffer.from(ListAllocationsResponse.encode(value).finish()),
1401
+ responseDeserialize: (value) => ListAllocationsResponse.decode(value),
1402
+ },
1240
1403
  listByPool: {
1241
1404
  path: "/nebius.vpc.v1.AllocationService/ListByPool",
1242
1405
  requestStream: false,
@@ -1353,6 +1516,18 @@ export class AllocationService {
1353
1516
  const deserialize = spec.responseDeserialize;
1354
1517
  return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1355
1518
  }
1519
+ /**
1520
+ * Lists allocations across regions for the specified parent.
1521
+ *
1522
+ */
1523
+ listAggregated(...args) {
1524
+ const spec = this.spec.listAggregated;
1525
+ const request = args[0];
1526
+ const metadata = (args.length > 1 ? args[1] : undefined);
1527
+ const options = (args.length > 2 ? args[2] : undefined);
1528
+ const deserialize = spec.responseDeserialize;
1529
+ return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1530
+ }
1356
1531
  /**
1357
1532
  * Lists allocations from a specified pool.
1358
1533
  *
@@ -3342,24 +3517,26 @@ function createBaseListNetworksRequest() {
3342
3517
  };
3343
3518
  return applyListNetworksRequestCustom(message);
3344
3519
  }
3345
- const ListNetworksResponse_MESSAGE_DESCRIPTOR = {
3520
+ const ListAggregatedNetworksRequest_MESSAGE_DESCRIPTOR = {
3346
3521
  fields: {
3347
- "items": { pbName: "items", repeated: true, message: () => Network.$descriptor },
3348
- "nextPageToken": { pbName: "next_page_token", scalarType: 9 },
3522
+ "parentId": { pbName: "parent_id", scalarType: 9 },
3523
+ "pageSize": { pbName: "page_size", scalarType: 3 },
3524
+ "pageToken": { pbName: "page_token", scalarType: 9 },
3349
3525
  },
3350
3526
  };
3351
- /** Encodes, decodes, converts, and creates {@link ListNetworksResponse} messages. */
3352
- export const ListNetworksResponse = {
3353
- $type: "nebius.vpc.v1.ListNetworksResponse",
3354
- $descriptor: ListNetworksResponse_MESSAGE_DESCRIPTOR,
3527
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedNetworksRequest} messages. */
3528
+ export const ListAggregatedNetworksRequest = {
3529
+ $type: "nebius.vpc.v1.ListAggregatedNetworksRequest",
3530
+ $descriptor: ListAggregatedNetworksRequest_MESSAGE_DESCRIPTOR,
3355
3531
  encode(message, writer = new BinaryWriter()) {
3356
- for (const v of (message.items ?? [])) {
3357
- const w = writer.uint32(10).fork();
3358
- Network.encode(v, w);
3359
- w.join();
3532
+ if (message.parentId !== "") {
3533
+ writer.uint32(10).string(message.parentId);
3360
3534
  }
3361
- if (message.nextPageToken !== "") {
3362
- writer.uint32(18).string(message.nextPageToken);
3535
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
3536
+ writer.uint32(16).int64(message.pageSize.toString());
3537
+ }
3538
+ if (message.pageToken !== "") {
3539
+ writer.uint32(26).string(message.pageToken);
3363
3540
  }
3364
3541
  if (message[unknownFieldsSymbol]) {
3365
3542
  writer.raw(message[unknownFieldsSymbol]);
@@ -3369,7 +3546,7 @@ export const ListNetworksResponse = {
3369
3546
  decode(input, length) {
3370
3547
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3371
3548
  const end = length === undefined ? reader.len : reader.pos + length;
3372
- const message = createBaseListNetworksResponse();
3549
+ const message = createBaseListAggregatedNetworksRequest();
3373
3550
  let writer = undefined;
3374
3551
  while (reader.pos < end) {
3375
3552
  const tag = reader.uint32();
@@ -3377,13 +3554,19 @@ export const ListNetworksResponse = {
3377
3554
  case 1: {
3378
3555
  if (tag !== 10)
3379
3556
  break;
3380
- message.items.push(Network.decode(reader, reader.uint32()));
3557
+ message.parentId = reader.string();
3381
3558
  continue;
3382
3559
  }
3383
3560
  case 2: {
3384
- if (tag !== 18)
3561
+ if (tag !== 16)
3385
3562
  break;
3386
- message.nextPageToken = reader.string();
3563
+ message.pageSize = Long.fromValue(reader.int64());
3564
+ continue;
3565
+ }
3566
+ case 3: {
3567
+ if (tag !== 26)
3568
+ break;
3569
+ message.pageToken = reader.string();
3387
3570
  continue;
3388
3571
  }
3389
3572
  default:
@@ -3405,68 +3588,212 @@ export const ListNetworksResponse = {
3405
3588
  return message;
3406
3589
  },
3407
3590
  fromJSON(object) {
3408
- return applyListNetworksResponseCustom({
3409
- $type: "nebius.vpc.v1.ListNetworksResponse",
3410
- items: globalThis.Array.isArray(object?.items ?? object?.items)
3411
- ? (object.items ?? object.items).map((e) => Network.fromJSON(e))
3412
- : [],
3413
- nextPageToken: isSet(object.nextPageToken ?? object.next_page_token)
3414
- ? String(object.nextPageToken ?? object.next_page_token)
3591
+ return applyListAggregatedNetworksRequestCustom({
3592
+ $type: "nebius.vpc.v1.ListAggregatedNetworksRequest",
3593
+ parentId: isSet(object.parentId ?? object.parent_id)
3594
+ ? String(object.parentId ?? object.parent_id)
3595
+ : "",
3596
+ pageSize: isSet(object.pageSize ?? object.page_size)
3597
+ ? Long.fromValue(object.pageSize ?? object.page_size)
3598
+ : Long.ZERO,
3599
+ pageToken: isSet(object.pageToken ?? object.page_token)
3600
+ ? String(object.pageToken ?? object.page_token)
3415
3601
  : "",
3416
3602
  });
3417
3603
  },
3418
3604
  toJSON(message, use = "json") {
3419
3605
  const obj = {};
3420
3606
  const pick = (json, pb) => (use === "json" ? json : pb);
3421
- if (message.items?.length) {
3422
- obj[pick("items", "items")] = message.items.map((e) => e ? Network.toJSON(e, use) : undefined);
3607
+ if (message.parentId !== "") {
3608
+ obj[pick("parentId", "parent_id")] = message.parentId;
3423
3609
  }
3424
- if (message.nextPageToken !== "") {
3425
- obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
3610
+ if (!message.pageSize?.isZero?.()) {
3611
+ obj[pick("pageSize", "page_size")] = (message.pageSize || Long.ZERO).toString();
3612
+ }
3613
+ if (message.pageToken !== "") {
3614
+ obj[pick("pageToken", "page_token")] = message.pageToken;
3426
3615
  }
3427
3616
  return obj;
3428
3617
  },
3429
3618
  create(base) {
3430
- return ListNetworksResponse.fromPartial(base ?? {});
3619
+ return ListAggregatedNetworksRequest.fromPartial(base ?? {});
3431
3620
  },
3432
3621
  fromPartial(object) {
3433
- const message = createBaseListNetworksResponse();
3434
- message.items = object.items?.map((e) => Network.fromPartial(e)) || [];
3435
- message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
3436
- ? object.nextPageToken
3622
+ const message = createBaseListAggregatedNetworksRequest();
3623
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
3624
+ ? object.parentId
3625
+ : "";
3626
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
3627
+ ? Long.fromValue(object.pageSize)
3628
+ : Long.ZERO;
3629
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
3630
+ ? object.pageToken
3437
3631
  : "";
3438
3632
  return message;
3439
3633
  },
3440
3634
  };
3441
- protoRegistry.registerMessage(ListNetworksResponse);
3442
- function ListNetworksResponseCustomInspect() {
3635
+ protoRegistry.registerMessage(ListAggregatedNetworksRequest);
3636
+ function ListAggregatedNetworksRequestCustomInspect() {
3443
3637
  const parts = [];
3444
- if ((this.items?.length ?? 0) !== 0)
3445
- parts.push("items" + "=" + inspect(this.items));
3446
- if (this.nextPageToken !== "")
3447
- parts.push("nextPageToken" + "=" + inspect(this.nextPageToken));
3638
+ if (this.parentId !== "")
3639
+ parts.push("parentId" + "=" + inspect(this.parentId));
3640
+ if (!this.pageSize?.isZero?.())
3641
+ parts.push("pageSize" + "=" + inspect(this.pageSize));
3642
+ if (this.pageToken !== "")
3643
+ parts.push("pageToken" + "=" + inspect(this.pageToken));
3448
3644
  return `${this.$type}(${parts.join(", ")})`;
3449
3645
  }
3450
- function ListNetworksResponseCustomJson() {
3646
+ function ListAggregatedNetworksRequestCustomJson() {
3451
3647
  const obj = {
3452
3648
  type: this.$type,
3453
3649
  };
3454
- if ((this.items?.length ?? 0) !== 0)
3455
- obj.items = inspectJson(this.items);
3456
- if (this.nextPageToken !== "")
3457
- obj.nextPageToken = inspectJson(this.nextPageToken);
3650
+ if (this.parentId !== "")
3651
+ obj.parentId = inspectJson(this.parentId);
3652
+ if (!this.pageSize?.isZero?.())
3653
+ obj.pageSize = inspectJson(this.pageSize);
3654
+ if (this.pageToken !== "")
3655
+ obj.pageToken = inspectJson(this.pageToken);
3458
3656
  return obj;
3459
3657
  }
3460
- function applyListNetworksResponseCustom(message) {
3461
- message[custom] = ListNetworksResponseCustomInspect;
3462
- message[customJson] = ListNetworksResponseCustomJson;
3463
- return attachMessageDescriptor(message, ListNetworksResponse.$descriptor);
3658
+ function applyListAggregatedNetworksRequestCustom(message) {
3659
+ message[custom] = ListAggregatedNetworksRequestCustomInspect;
3660
+ message[customJson] = ListAggregatedNetworksRequestCustomJson;
3661
+ return attachMessageDescriptor(message, ListAggregatedNetworksRequest.$descriptor);
3464
3662
  }
3465
- function createBaseListNetworksResponse() {
3663
+ function createBaseListAggregatedNetworksRequest() {
3466
3664
  const message = {
3467
- $type: "nebius.vpc.v1.ListNetworksResponse",
3468
- items: [],
3469
- nextPageToken: "",
3665
+ $type: "nebius.vpc.v1.ListAggregatedNetworksRequest",
3666
+ parentId: "",
3667
+ pageSize: Long.ZERO,
3668
+ pageToken: "",
3669
+ };
3670
+ return applyListAggregatedNetworksRequestCustom(message);
3671
+ }
3672
+ const ListNetworksResponse_MESSAGE_DESCRIPTOR = {
3673
+ fields: {
3674
+ "items": { pbName: "items", repeated: true, message: () => Network.$descriptor },
3675
+ "nextPageToken": { pbName: "next_page_token", scalarType: 9 },
3676
+ },
3677
+ };
3678
+ /** Encodes, decodes, converts, and creates {@link ListNetworksResponse} messages. */
3679
+ export const ListNetworksResponse = {
3680
+ $type: "nebius.vpc.v1.ListNetworksResponse",
3681
+ $descriptor: ListNetworksResponse_MESSAGE_DESCRIPTOR,
3682
+ encode(message, writer = new BinaryWriter()) {
3683
+ for (const v of (message.items ?? [])) {
3684
+ const w = writer.uint32(10).fork();
3685
+ Network.encode(v, w);
3686
+ w.join();
3687
+ }
3688
+ if (message.nextPageToken !== "") {
3689
+ writer.uint32(18).string(message.nextPageToken);
3690
+ }
3691
+ if (message[unknownFieldsSymbol]) {
3692
+ writer.raw(message[unknownFieldsSymbol]);
3693
+ }
3694
+ return writer;
3695
+ },
3696
+ decode(input, length) {
3697
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3698
+ const end = length === undefined ? reader.len : reader.pos + length;
3699
+ const message = createBaseListNetworksResponse();
3700
+ let writer = undefined;
3701
+ while (reader.pos < end) {
3702
+ const tag = reader.uint32();
3703
+ switch (tag >>> 3) {
3704
+ case 1: {
3705
+ if (tag !== 10)
3706
+ break;
3707
+ message.items.push(Network.decode(reader, reader.uint32()));
3708
+ continue;
3709
+ }
3710
+ case 2: {
3711
+ if (tag !== 18)
3712
+ break;
3713
+ message.nextPageToken = reader.string();
3714
+ continue;
3715
+ }
3716
+ default:
3717
+ break;
3718
+ }
3719
+ if ((tag & 7) === 4 || tag === 0) {
3720
+ break;
3721
+ }
3722
+ {
3723
+ if (!writer)
3724
+ writer = new BinaryWriter();
3725
+ const skipped = reader.skip(tag & 7, tag >>> 3);
3726
+ writer.uint32(tag).raw(skipped);
3727
+ }
3728
+ }
3729
+ if (writer) {
3730
+ message[unknownFieldsSymbol] = writer.finish();
3731
+ }
3732
+ return message;
3733
+ },
3734
+ fromJSON(object) {
3735
+ return applyListNetworksResponseCustom({
3736
+ $type: "nebius.vpc.v1.ListNetworksResponse",
3737
+ items: globalThis.Array.isArray(object?.items ?? object?.items)
3738
+ ? (object.items ?? object.items).map((e) => Network.fromJSON(e))
3739
+ : [],
3740
+ nextPageToken: isSet(object.nextPageToken ?? object.next_page_token)
3741
+ ? String(object.nextPageToken ?? object.next_page_token)
3742
+ : "",
3743
+ });
3744
+ },
3745
+ toJSON(message, use = "json") {
3746
+ const obj = {};
3747
+ const pick = (json, pb) => (use === "json" ? json : pb);
3748
+ if (message.items?.length) {
3749
+ obj[pick("items", "items")] = message.items.map((e) => e ? Network.toJSON(e, use) : undefined);
3750
+ }
3751
+ if (message.nextPageToken !== "") {
3752
+ obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
3753
+ }
3754
+ return obj;
3755
+ },
3756
+ create(base) {
3757
+ return ListNetworksResponse.fromPartial(base ?? {});
3758
+ },
3759
+ fromPartial(object) {
3760
+ const message = createBaseListNetworksResponse();
3761
+ message.items = object.items?.map((e) => Network.fromPartial(e)) || [];
3762
+ message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
3763
+ ? object.nextPageToken
3764
+ : "";
3765
+ return message;
3766
+ },
3767
+ };
3768
+ protoRegistry.registerMessage(ListNetworksResponse);
3769
+ function ListNetworksResponseCustomInspect() {
3770
+ const parts = [];
3771
+ if ((this.items?.length ?? 0) !== 0)
3772
+ parts.push("items" + "=" + inspect(this.items));
3773
+ if (this.nextPageToken !== "")
3774
+ parts.push("nextPageToken" + "=" + inspect(this.nextPageToken));
3775
+ return `${this.$type}(${parts.join(", ")})`;
3776
+ }
3777
+ function ListNetworksResponseCustomJson() {
3778
+ const obj = {
3779
+ type: this.$type,
3780
+ };
3781
+ if ((this.items?.length ?? 0) !== 0)
3782
+ obj.items = inspectJson(this.items);
3783
+ if (this.nextPageToken !== "")
3784
+ obj.nextPageToken = inspectJson(this.nextPageToken);
3785
+ return obj;
3786
+ }
3787
+ function applyListNetworksResponseCustom(message) {
3788
+ message[custom] = ListNetworksResponseCustomInspect;
3789
+ message[customJson] = ListNetworksResponseCustomJson;
3790
+ return attachMessageDescriptor(message, ListNetworksResponse.$descriptor);
3791
+ }
3792
+ function createBaseListNetworksResponse() {
3793
+ const message = {
3794
+ $type: "nebius.vpc.v1.ListNetworksResponse",
3795
+ items: [],
3796
+ nextPageToken: "",
3470
3797
  };
3471
3798
  return applyListNetworksResponseCustom(message);
3472
3799
  }
@@ -3991,6 +4318,17 @@ export const NetworkServiceServiceDescription = {
3991
4318
  responseSerialize: (value) => Buffer.from(ListNetworksResponse.encode(value).finish()),
3992
4319
  responseDeserialize: (value) => ListNetworksResponse.decode(value),
3993
4320
  },
4321
+ listAggregated: {
4322
+ path: "/nebius.vpc.v1.NetworkService/ListAggregated",
4323
+ requestStream: false,
4324
+ responseStream: false,
4325
+ requestSerialize: (value) => Buffer.from(ListAggregatedNetworksRequest.encode(value).finish()),
4326
+ requestDescriptor: () => ListAggregatedNetworksRequest.$descriptor,
4327
+ sendResetMask: false,
4328
+ requestDeserialize: (value) => ListAggregatedNetworksRequest.decode(value),
4329
+ responseSerialize: (value) => Buffer.from(ListNetworksResponse.encode(value).finish()),
4330
+ responseDeserialize: (value) => ListNetworksResponse.decode(value),
4331
+ },
3994
4332
  create: {
3995
4333
  path: "/nebius.vpc.v1.NetworkService/Create",
3996
4334
  requestStream: false,
@@ -4096,6 +4434,18 @@ export class NetworkService {
4096
4434
  const deserialize = spec.responseDeserialize;
4097
4435
  return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
4098
4436
  }
4437
+ /**
4438
+ * Lists networks across regions for the specified parent.
4439
+ *
4440
+ */
4441
+ listAggregated(...args) {
4442
+ const spec = this.spec.listAggregated;
4443
+ const request = args[0];
4444
+ const metadata = (args.length > 1 ? args[1] : undefined);
4445
+ const options = (args.length > 2 ? args[2] : undefined);
4446
+ const deserialize = spec.responseDeserialize;
4447
+ return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
4448
+ }
4099
4449
  /**
4100
4450
  * Creates a new network with the specified configuration.
4101
4451
  *
@@ -5308,6 +5658,158 @@ function createBaseListPoolsRequest() {
5308
5658
  };
5309
5659
  return applyListPoolsRequestCustom(message);
5310
5660
  }
5661
+ const ListAggregatedPoolsRequest_MESSAGE_DESCRIPTOR = {
5662
+ fields: {
5663
+ "parentId": { pbName: "parent_id", scalarType: 9 },
5664
+ "pageSize": { pbName: "page_size", scalarType: 3 },
5665
+ "pageToken": { pbName: "page_token", scalarType: 9 },
5666
+ },
5667
+ };
5668
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedPoolsRequest} messages. */
5669
+ export const ListAggregatedPoolsRequest = {
5670
+ $type: "nebius.vpc.v1.ListAggregatedPoolsRequest",
5671
+ $descriptor: ListAggregatedPoolsRequest_MESSAGE_DESCRIPTOR,
5672
+ encode(message, writer = new BinaryWriter()) {
5673
+ if (message.parentId !== "") {
5674
+ writer.uint32(10).string(message.parentId);
5675
+ }
5676
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
5677
+ writer.uint32(16).int64(message.pageSize.toString());
5678
+ }
5679
+ if (message.pageToken !== "") {
5680
+ writer.uint32(26).string(message.pageToken);
5681
+ }
5682
+ if (message[unknownFieldsSymbol]) {
5683
+ writer.raw(message[unknownFieldsSymbol]);
5684
+ }
5685
+ return writer;
5686
+ },
5687
+ decode(input, length) {
5688
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5689
+ const end = length === undefined ? reader.len : reader.pos + length;
5690
+ const message = createBaseListAggregatedPoolsRequest();
5691
+ let writer = undefined;
5692
+ while (reader.pos < end) {
5693
+ const tag = reader.uint32();
5694
+ switch (tag >>> 3) {
5695
+ case 1: {
5696
+ if (tag !== 10)
5697
+ break;
5698
+ message.parentId = reader.string();
5699
+ continue;
5700
+ }
5701
+ case 2: {
5702
+ if (tag !== 16)
5703
+ break;
5704
+ message.pageSize = Long.fromValue(reader.int64());
5705
+ continue;
5706
+ }
5707
+ case 3: {
5708
+ if (tag !== 26)
5709
+ break;
5710
+ message.pageToken = reader.string();
5711
+ continue;
5712
+ }
5713
+ default:
5714
+ break;
5715
+ }
5716
+ if ((tag & 7) === 4 || tag === 0) {
5717
+ break;
5718
+ }
5719
+ {
5720
+ if (!writer)
5721
+ writer = new BinaryWriter();
5722
+ const skipped = reader.skip(tag & 7, tag >>> 3);
5723
+ writer.uint32(tag).raw(skipped);
5724
+ }
5725
+ }
5726
+ if (writer) {
5727
+ message[unknownFieldsSymbol] = writer.finish();
5728
+ }
5729
+ return message;
5730
+ },
5731
+ fromJSON(object) {
5732
+ return applyListAggregatedPoolsRequestCustom({
5733
+ $type: "nebius.vpc.v1.ListAggregatedPoolsRequest",
5734
+ parentId: isSet(object.parentId ?? object.parent_id)
5735
+ ? String(object.parentId ?? object.parent_id)
5736
+ : "",
5737
+ pageSize: isSet(object.pageSize ?? object.page_size)
5738
+ ? Long.fromValue(object.pageSize ?? object.page_size)
5739
+ : Long.ZERO,
5740
+ pageToken: isSet(object.pageToken ?? object.page_token)
5741
+ ? String(object.pageToken ?? object.page_token)
5742
+ : "",
5743
+ });
5744
+ },
5745
+ toJSON(message, use = "json") {
5746
+ const obj = {};
5747
+ const pick = (json, pb) => (use === "json" ? json : pb);
5748
+ if (message.parentId !== "") {
5749
+ obj[pick("parentId", "parent_id")] = message.parentId;
5750
+ }
5751
+ if (!message.pageSize?.isZero?.()) {
5752
+ obj[pick("pageSize", "page_size")] = (message.pageSize || Long.ZERO).toString();
5753
+ }
5754
+ if (message.pageToken !== "") {
5755
+ obj[pick("pageToken", "page_token")] = message.pageToken;
5756
+ }
5757
+ return obj;
5758
+ },
5759
+ create(base) {
5760
+ return ListAggregatedPoolsRequest.fromPartial(base ?? {});
5761
+ },
5762
+ fromPartial(object) {
5763
+ const message = createBaseListAggregatedPoolsRequest();
5764
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
5765
+ ? object.parentId
5766
+ : "";
5767
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
5768
+ ? Long.fromValue(object.pageSize)
5769
+ : Long.ZERO;
5770
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
5771
+ ? object.pageToken
5772
+ : "";
5773
+ return message;
5774
+ },
5775
+ };
5776
+ protoRegistry.registerMessage(ListAggregatedPoolsRequest);
5777
+ function ListAggregatedPoolsRequestCustomInspect() {
5778
+ const parts = [];
5779
+ if (this.parentId !== "")
5780
+ parts.push("parentId" + "=" + inspect(this.parentId));
5781
+ if (!this.pageSize?.isZero?.())
5782
+ parts.push("pageSize" + "=" + inspect(this.pageSize));
5783
+ if (this.pageToken !== "")
5784
+ parts.push("pageToken" + "=" + inspect(this.pageToken));
5785
+ return `${this.$type}(${parts.join(", ")})`;
5786
+ }
5787
+ function ListAggregatedPoolsRequestCustomJson() {
5788
+ const obj = {
5789
+ type: this.$type,
5790
+ };
5791
+ if (this.parentId !== "")
5792
+ obj.parentId = inspectJson(this.parentId);
5793
+ if (!this.pageSize?.isZero?.())
5794
+ obj.pageSize = inspectJson(this.pageSize);
5795
+ if (this.pageToken !== "")
5796
+ obj.pageToken = inspectJson(this.pageToken);
5797
+ return obj;
5798
+ }
5799
+ function applyListAggregatedPoolsRequestCustom(message) {
5800
+ message[custom] = ListAggregatedPoolsRequestCustomInspect;
5801
+ message[customJson] = ListAggregatedPoolsRequestCustomJson;
5802
+ return attachMessageDescriptor(message, ListAggregatedPoolsRequest.$descriptor);
5803
+ }
5804
+ function createBaseListAggregatedPoolsRequest() {
5805
+ const message = {
5806
+ $type: "nebius.vpc.v1.ListAggregatedPoolsRequest",
5807
+ parentId: "",
5808
+ pageSize: Long.ZERO,
5809
+ pageToken: "",
5810
+ };
5811
+ return applyListAggregatedPoolsRequestCustom(message);
5812
+ }
5311
5813
  const ListPoolsBySourcePoolRequest_MESSAGE_DESCRIPTOR = {
5312
5814
  fields: {
5313
5815
  "poolId": { pbName: "pool_id", scalarType: 9 },
@@ -6001,6 +6503,17 @@ export const PoolServiceServiceDescription = {
6001
6503
  responseSerialize: (value) => Buffer.from(ListPoolsResponse.encode(value).finish()),
6002
6504
  responseDeserialize: (value) => ListPoolsResponse.decode(value),
6003
6505
  },
6506
+ listAggregated: {
6507
+ path: "/nebius.vpc.v1.PoolService/ListAggregated",
6508
+ requestStream: false,
6509
+ responseStream: false,
6510
+ requestSerialize: (value) => Buffer.from(ListAggregatedPoolsRequest.encode(value).finish()),
6511
+ requestDescriptor: () => ListAggregatedPoolsRequest.$descriptor,
6512
+ sendResetMask: false,
6513
+ requestDeserialize: (value) => ListAggregatedPoolsRequest.decode(value),
6514
+ responseSerialize: (value) => Buffer.from(ListPoolsResponse.encode(value).finish()),
6515
+ responseDeserialize: (value) => ListPoolsResponse.decode(value),
6516
+ },
6004
6517
  listBySourcePool: {
6005
6518
  path: "/nebius.vpc.v1.PoolService/ListBySourcePool",
6006
6519
  requestStream: false,
@@ -6106,6 +6619,18 @@ export class PoolService {
6106
6619
  const deserialize = spec.responseDeserialize;
6107
6620
  return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
6108
6621
  }
6622
+ /**
6623
+ * Lists pools across regions for the specified parent.
6624
+ *
6625
+ */
6626
+ listAggregated(...args) {
6627
+ const spec = this.spec.listAggregated;
6628
+ const request = args[0];
6629
+ const metadata = (args.length > 1 ? args[1] : undefined);
6630
+ const options = (args.length > 2 ? args[2] : undefined);
6631
+ const deserialize = spec.responseDeserialize;
6632
+ return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
6633
+ }
6109
6634
  /**
6110
6635
  * Lists pools that use a specified pool as their source.
6111
6636
  *
@@ -8230,8 +8755,140 @@ export const GetRouteTableByNameRequest = {
8230
8755
  if (message.parentId !== "") {
8231
8756
  writer.uint32(10).string(message.parentId);
8232
8757
  }
8233
- if (message.name !== "") {
8234
- writer.uint32(18).string(message.name);
8758
+ if (message.name !== "") {
8759
+ writer.uint32(18).string(message.name);
8760
+ }
8761
+ if (message[unknownFieldsSymbol]) {
8762
+ writer.raw(message[unknownFieldsSymbol]);
8763
+ }
8764
+ return writer;
8765
+ },
8766
+ decode(input, length) {
8767
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8768
+ const end = length === undefined ? reader.len : reader.pos + length;
8769
+ const message = createBaseGetRouteTableByNameRequest();
8770
+ let writer = undefined;
8771
+ while (reader.pos < end) {
8772
+ const tag = reader.uint32();
8773
+ switch (tag >>> 3) {
8774
+ case 1: {
8775
+ if (tag !== 10)
8776
+ break;
8777
+ message.parentId = reader.string();
8778
+ continue;
8779
+ }
8780
+ case 2: {
8781
+ if (tag !== 18)
8782
+ break;
8783
+ message.name = reader.string();
8784
+ continue;
8785
+ }
8786
+ default:
8787
+ break;
8788
+ }
8789
+ if ((tag & 7) === 4 || tag === 0) {
8790
+ break;
8791
+ }
8792
+ {
8793
+ if (!writer)
8794
+ writer = new BinaryWriter();
8795
+ const skipped = reader.skip(tag & 7, tag >>> 3);
8796
+ writer.uint32(tag).raw(skipped);
8797
+ }
8798
+ }
8799
+ if (writer) {
8800
+ message[unknownFieldsSymbol] = writer.finish();
8801
+ }
8802
+ return message;
8803
+ },
8804
+ fromJSON(object) {
8805
+ return applyGetRouteTableByNameRequestCustom({
8806
+ $type: "nebius.vpc.v1.GetRouteTableByNameRequest",
8807
+ parentId: isSet(object.parentId ?? object.parent_id)
8808
+ ? String(object.parentId ?? object.parent_id)
8809
+ : "",
8810
+ name: isSet(object.name ?? object.name)
8811
+ ? String(object.name ?? object.name)
8812
+ : "",
8813
+ });
8814
+ },
8815
+ toJSON(message, use = "json") {
8816
+ const obj = {};
8817
+ const pick = (json, pb) => (use === "json" ? json : pb);
8818
+ if (message.parentId !== "") {
8819
+ obj[pick("parentId", "parent_id")] = message.parentId;
8820
+ }
8821
+ if (message.name !== "") {
8822
+ obj[pick("name", "name")] = message.name;
8823
+ }
8824
+ return obj;
8825
+ },
8826
+ create(base) {
8827
+ return GetRouteTableByNameRequest.fromPartial(base ?? {});
8828
+ },
8829
+ fromPartial(object) {
8830
+ const message = createBaseGetRouteTableByNameRequest();
8831
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
8832
+ ? object.parentId
8833
+ : "";
8834
+ message.name = (object.name !== undefined && object.name !== null)
8835
+ ? object.name
8836
+ : "";
8837
+ return message;
8838
+ },
8839
+ };
8840
+ protoRegistry.registerMessage(GetRouteTableByNameRequest);
8841
+ function GetRouteTableByNameRequestCustomInspect() {
8842
+ const parts = [];
8843
+ if (this.parentId !== "")
8844
+ parts.push("parentId" + "=" + inspect(this.parentId));
8845
+ if (this.name !== "")
8846
+ parts.push("name" + "=" + inspect(this.name));
8847
+ return `${this.$type}(${parts.join(", ")})`;
8848
+ }
8849
+ function GetRouteTableByNameRequestCustomJson() {
8850
+ const obj = {
8851
+ type: this.$type,
8852
+ };
8853
+ if (this.parentId !== "")
8854
+ obj.parentId = inspectJson(this.parentId);
8855
+ if (this.name !== "")
8856
+ obj.name = inspectJson(this.name);
8857
+ return obj;
8858
+ }
8859
+ function applyGetRouteTableByNameRequestCustom(message) {
8860
+ message[custom] = GetRouteTableByNameRequestCustomInspect;
8861
+ message[customJson] = GetRouteTableByNameRequestCustomJson;
8862
+ return attachMessageDescriptor(message, GetRouteTableByNameRequest.$descriptor);
8863
+ }
8864
+ function createBaseGetRouteTableByNameRequest() {
8865
+ const message = {
8866
+ $type: "nebius.vpc.v1.GetRouteTableByNameRequest",
8867
+ parentId: "",
8868
+ name: "",
8869
+ };
8870
+ return applyGetRouteTableByNameRequestCustom(message);
8871
+ }
8872
+ const ListRouteTablesRequest_MESSAGE_DESCRIPTOR = {
8873
+ fields: {
8874
+ "parentId": { pbName: "parent_id", scalarType: 9 },
8875
+ "pageSize": { pbName: "page_size", scalarType: 3 },
8876
+ "pageToken": { pbName: "page_token", scalarType: 9 },
8877
+ },
8878
+ };
8879
+ /** Encodes, decodes, converts, and creates {@link ListRouteTablesRequest} messages. */
8880
+ export const ListRouteTablesRequest = {
8881
+ $type: "nebius.vpc.v1.ListRouteTablesRequest",
8882
+ $descriptor: ListRouteTablesRequest_MESSAGE_DESCRIPTOR,
8883
+ encode(message, writer = new BinaryWriter()) {
8884
+ if (message.parentId !== "") {
8885
+ writer.uint32(10).string(message.parentId);
8886
+ }
8887
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
8888
+ writer.uint32(16).int64(message.pageSize.toString());
8889
+ }
8890
+ if (message.pageToken !== "") {
8891
+ writer.uint32(26).string(message.pageToken);
8235
8892
  }
8236
8893
  if (message[unknownFieldsSymbol]) {
8237
8894
  writer.raw(message[unknownFieldsSymbol]);
@@ -8241,7 +8898,7 @@ export const GetRouteTableByNameRequest = {
8241
8898
  decode(input, length) {
8242
8899
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8243
8900
  const end = length === undefined ? reader.len : reader.pos + length;
8244
- const message = createBaseGetRouteTableByNameRequest();
8901
+ const message = createBaseListRouteTablesRequest();
8245
8902
  let writer = undefined;
8246
8903
  while (reader.pos < end) {
8247
8904
  const tag = reader.uint32();
@@ -8253,9 +8910,15 @@ export const GetRouteTableByNameRequest = {
8253
8910
  continue;
8254
8911
  }
8255
8912
  case 2: {
8256
- if (tag !== 18)
8913
+ if (tag !== 16)
8257
8914
  break;
8258
- message.name = reader.string();
8915
+ message.pageSize = Long.fromValue(reader.int64());
8916
+ continue;
8917
+ }
8918
+ case 3: {
8919
+ if (tag !== 26)
8920
+ break;
8921
+ message.pageToken = reader.string();
8259
8922
  continue;
8260
8923
  }
8261
8924
  default:
@@ -8277,13 +8940,16 @@ export const GetRouteTableByNameRequest = {
8277
8940
  return message;
8278
8941
  },
8279
8942
  fromJSON(object) {
8280
- return applyGetRouteTableByNameRequestCustom({
8281
- $type: "nebius.vpc.v1.GetRouteTableByNameRequest",
8943
+ return applyListRouteTablesRequestCustom({
8944
+ $type: "nebius.vpc.v1.ListRouteTablesRequest",
8282
8945
  parentId: isSet(object.parentId ?? object.parent_id)
8283
8946
  ? String(object.parentId ?? object.parent_id)
8284
8947
  : "",
8285
- name: isSet(object.name ?? object.name)
8286
- ? String(object.name ?? object.name)
8948
+ pageSize: isSet(object.pageSize ?? object.page_size)
8949
+ ? Long.fromValue(object.pageSize ?? object.page_size)
8950
+ : Long.ZERO,
8951
+ pageToken: isSet(object.pageToken ?? object.page_token)
8952
+ ? String(object.pageToken ?? object.page_token)
8287
8953
  : "",
8288
8954
  });
8289
8955
  },
@@ -8293,68 +8959,79 @@ export const GetRouteTableByNameRequest = {
8293
8959
  if (message.parentId !== "") {
8294
8960
  obj[pick("parentId", "parent_id")] = message.parentId;
8295
8961
  }
8296
- if (message.name !== "") {
8297
- obj[pick("name", "name")] = message.name;
8962
+ if (!message.pageSize?.isZero?.()) {
8963
+ obj[pick("pageSize", "page_size")] = (message.pageSize || Long.ZERO).toString();
8964
+ }
8965
+ if (message.pageToken !== "") {
8966
+ obj[pick("pageToken", "page_token")] = message.pageToken;
8298
8967
  }
8299
8968
  return obj;
8300
8969
  },
8301
8970
  create(base) {
8302
- return GetRouteTableByNameRequest.fromPartial(base ?? {});
8971
+ return ListRouteTablesRequest.fromPartial(base ?? {});
8303
8972
  },
8304
8973
  fromPartial(object) {
8305
- const message = createBaseGetRouteTableByNameRequest();
8974
+ const message = createBaseListRouteTablesRequest();
8306
8975
  message.parentId = (object.parentId !== undefined && object.parentId !== null)
8307
8976
  ? object.parentId
8308
8977
  : "";
8309
- message.name = (object.name !== undefined && object.name !== null)
8310
- ? object.name
8978
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
8979
+ ? Long.fromValue(object.pageSize)
8980
+ : Long.ZERO;
8981
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
8982
+ ? object.pageToken
8311
8983
  : "";
8312
8984
  return message;
8313
8985
  },
8314
8986
  };
8315
- protoRegistry.registerMessage(GetRouteTableByNameRequest);
8316
- function GetRouteTableByNameRequestCustomInspect() {
8987
+ protoRegistry.registerMessage(ListRouteTablesRequest);
8988
+ function ListRouteTablesRequestCustomInspect() {
8317
8989
  const parts = [];
8318
8990
  if (this.parentId !== "")
8319
8991
  parts.push("parentId" + "=" + inspect(this.parentId));
8320
- if (this.name !== "")
8321
- parts.push("name" + "=" + inspect(this.name));
8992
+ if (!this.pageSize?.isZero?.())
8993
+ parts.push("pageSize" + "=" + inspect(this.pageSize));
8994
+ if (this.pageToken !== "")
8995
+ parts.push("pageToken" + "=" + inspect(this.pageToken));
8322
8996
  return `${this.$type}(${parts.join(", ")})`;
8323
8997
  }
8324
- function GetRouteTableByNameRequestCustomJson() {
8998
+ function ListRouteTablesRequestCustomJson() {
8325
8999
  const obj = {
8326
9000
  type: this.$type,
8327
9001
  };
8328
9002
  if (this.parentId !== "")
8329
9003
  obj.parentId = inspectJson(this.parentId);
8330
- if (this.name !== "")
8331
- obj.name = inspectJson(this.name);
9004
+ if (!this.pageSize?.isZero?.())
9005
+ obj.pageSize = inspectJson(this.pageSize);
9006
+ if (this.pageToken !== "")
9007
+ obj.pageToken = inspectJson(this.pageToken);
8332
9008
  return obj;
8333
9009
  }
8334
- function applyGetRouteTableByNameRequestCustom(message) {
8335
- message[custom] = GetRouteTableByNameRequestCustomInspect;
8336
- message[customJson] = GetRouteTableByNameRequestCustomJson;
8337
- return attachMessageDescriptor(message, GetRouteTableByNameRequest.$descriptor);
9010
+ function applyListRouteTablesRequestCustom(message) {
9011
+ message[custom] = ListRouteTablesRequestCustomInspect;
9012
+ message[customJson] = ListRouteTablesRequestCustomJson;
9013
+ return attachMessageDescriptor(message, ListRouteTablesRequest.$descriptor);
8338
9014
  }
8339
- function createBaseGetRouteTableByNameRequest() {
9015
+ function createBaseListRouteTablesRequest() {
8340
9016
  const message = {
8341
- $type: "nebius.vpc.v1.GetRouteTableByNameRequest",
9017
+ $type: "nebius.vpc.v1.ListRouteTablesRequest",
8342
9018
  parentId: "",
8343
- name: "",
9019
+ pageSize: Long.ZERO,
9020
+ pageToken: "",
8344
9021
  };
8345
- return applyGetRouteTableByNameRequestCustom(message);
9022
+ return applyListRouteTablesRequestCustom(message);
8346
9023
  }
8347
- const ListRouteTablesRequest_MESSAGE_DESCRIPTOR = {
9024
+ const ListAggregatedRouteTablesRequest_MESSAGE_DESCRIPTOR = {
8348
9025
  fields: {
8349
9026
  "parentId": { pbName: "parent_id", scalarType: 9 },
8350
9027
  "pageSize": { pbName: "page_size", scalarType: 3 },
8351
9028
  "pageToken": { pbName: "page_token", scalarType: 9 },
8352
9029
  },
8353
9030
  };
8354
- /** Encodes, decodes, converts, and creates {@link ListRouteTablesRequest} messages. */
8355
- export const ListRouteTablesRequest = {
8356
- $type: "nebius.vpc.v1.ListRouteTablesRequest",
8357
- $descriptor: ListRouteTablesRequest_MESSAGE_DESCRIPTOR,
9031
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedRouteTablesRequest} messages. */
9032
+ export const ListAggregatedRouteTablesRequest = {
9033
+ $type: "nebius.vpc.v1.ListAggregatedRouteTablesRequest",
9034
+ $descriptor: ListAggregatedRouteTablesRequest_MESSAGE_DESCRIPTOR,
8358
9035
  encode(message, writer = new BinaryWriter()) {
8359
9036
  if (message.parentId !== "") {
8360
9037
  writer.uint32(10).string(message.parentId);
@@ -8373,7 +9050,7 @@ export const ListRouteTablesRequest = {
8373
9050
  decode(input, length) {
8374
9051
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8375
9052
  const end = length === undefined ? reader.len : reader.pos + length;
8376
- const message = createBaseListRouteTablesRequest();
9053
+ const message = createBaseListAggregatedRouteTablesRequest();
8377
9054
  let writer = undefined;
8378
9055
  while (reader.pos < end) {
8379
9056
  const tag = reader.uint32();
@@ -8415,8 +9092,8 @@ export const ListRouteTablesRequest = {
8415
9092
  return message;
8416
9093
  },
8417
9094
  fromJSON(object) {
8418
- return applyListRouteTablesRequestCustom({
8419
- $type: "nebius.vpc.v1.ListRouteTablesRequest",
9095
+ return applyListAggregatedRouteTablesRequestCustom({
9096
+ $type: "nebius.vpc.v1.ListAggregatedRouteTablesRequest",
8420
9097
  parentId: isSet(object.parentId ?? object.parent_id)
8421
9098
  ? String(object.parentId ?? object.parent_id)
8422
9099
  : "",
@@ -8443,10 +9120,10 @@ export const ListRouteTablesRequest = {
8443
9120
  return obj;
8444
9121
  },
8445
9122
  create(base) {
8446
- return ListRouteTablesRequest.fromPartial(base ?? {});
9123
+ return ListAggregatedRouteTablesRequest.fromPartial(base ?? {});
8447
9124
  },
8448
9125
  fromPartial(object) {
8449
- const message = createBaseListRouteTablesRequest();
9126
+ const message = createBaseListAggregatedRouteTablesRequest();
8450
9127
  message.parentId = (object.parentId !== undefined && object.parentId !== null)
8451
9128
  ? object.parentId
8452
9129
  : "";
@@ -8459,8 +9136,8 @@ export const ListRouteTablesRequest = {
8459
9136
  return message;
8460
9137
  },
8461
9138
  };
8462
- protoRegistry.registerMessage(ListRouteTablesRequest);
8463
- function ListRouteTablesRequestCustomInspect() {
9139
+ protoRegistry.registerMessage(ListAggregatedRouteTablesRequest);
9140
+ function ListAggregatedRouteTablesRequestCustomInspect() {
8464
9141
  const parts = [];
8465
9142
  if (this.parentId !== "")
8466
9143
  parts.push("parentId" + "=" + inspect(this.parentId));
@@ -8470,7 +9147,7 @@ function ListRouteTablesRequestCustomInspect() {
8470
9147
  parts.push("pageToken" + "=" + inspect(this.pageToken));
8471
9148
  return `${this.$type}(${parts.join(", ")})`;
8472
9149
  }
8473
- function ListRouteTablesRequestCustomJson() {
9150
+ function ListAggregatedRouteTablesRequestCustomJson() {
8474
9151
  const obj = {
8475
9152
  type: this.$type,
8476
9153
  };
@@ -8482,19 +9159,19 @@ function ListRouteTablesRequestCustomJson() {
8482
9159
  obj.pageToken = inspectJson(this.pageToken);
8483
9160
  return obj;
8484
9161
  }
8485
- function applyListRouteTablesRequestCustom(message) {
8486
- message[custom] = ListRouteTablesRequestCustomInspect;
8487
- message[customJson] = ListRouteTablesRequestCustomJson;
8488
- return attachMessageDescriptor(message, ListRouteTablesRequest.$descriptor);
9162
+ function applyListAggregatedRouteTablesRequestCustom(message) {
9163
+ message[custom] = ListAggregatedRouteTablesRequestCustomInspect;
9164
+ message[customJson] = ListAggregatedRouteTablesRequestCustomJson;
9165
+ return attachMessageDescriptor(message, ListAggregatedRouteTablesRequest.$descriptor);
8489
9166
  }
8490
- function createBaseListRouteTablesRequest() {
9167
+ function createBaseListAggregatedRouteTablesRequest() {
8491
9168
  const message = {
8492
- $type: "nebius.vpc.v1.ListRouteTablesRequest",
9169
+ $type: "nebius.vpc.v1.ListAggregatedRouteTablesRequest",
8493
9170
  parentId: "",
8494
9171
  pageSize: Long.ZERO,
8495
9172
  pageToken: "",
8496
9173
  };
8497
- return applyListRouteTablesRequestCustom(message);
9174
+ return applyListAggregatedRouteTablesRequestCustom(message);
8498
9175
  }
8499
9176
  const ListRouteTablesByNetworkRequest_MESSAGE_DESCRIPTOR = {
8500
9177
  fields: {
@@ -9189,6 +9866,17 @@ export const RouteTableServiceServiceDescription = {
9189
9866
  responseSerialize: (value) => Buffer.from(ListRouteTablesResponse.encode(value).finish()),
9190
9867
  responseDeserialize: (value) => ListRouteTablesResponse.decode(value),
9191
9868
  },
9869
+ listAggregated: {
9870
+ path: "/nebius.vpc.v1.RouteTableService/ListAggregated",
9871
+ requestStream: false,
9872
+ responseStream: false,
9873
+ requestSerialize: (value) => Buffer.from(ListAggregatedRouteTablesRequest.encode(value).finish()),
9874
+ requestDescriptor: () => ListAggregatedRouteTablesRequest.$descriptor,
9875
+ sendResetMask: false,
9876
+ requestDeserialize: (value) => ListAggregatedRouteTablesRequest.decode(value),
9877
+ responseSerialize: (value) => Buffer.from(ListRouteTablesResponse.encode(value).finish()),
9878
+ responseDeserialize: (value) => ListRouteTablesResponse.decode(value),
9879
+ },
9192
9880
  listByNetwork: {
9193
9881
  path: "/nebius.vpc.v1.RouteTableService/ListByNetwork",
9194
9882
  requestStream: false,
@@ -9294,6 +9982,18 @@ export class RouteTableService {
9294
9982
  const deserialize = spec.responseDeserialize;
9295
9983
  return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
9296
9984
  }
9985
+ /**
9986
+ * Lists route tables across regions for the specified parent.
9987
+ *
9988
+ */
9989
+ listAggregated(...args) {
9990
+ const spec = this.spec.listAggregated;
9991
+ const request = args[0];
9992
+ const metadata = (args.length > 1 ? args[1] : undefined);
9993
+ const options = (args.length > 2 ? args[2] : undefined);
9994
+ const deserialize = spec.responseDeserialize;
9995
+ return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
9996
+ }
9297
9997
  /**
9298
9998
  * Lists route tables that belong to a specified network.
9299
9999
  *
@@ -11292,9 +11992,147 @@ export const GetSecurityGroupByNameRequest = {
11292
11992
  continue;
11293
11993
  }
11294
11994
  case 2: {
11295
- if (tag !== 18)
11995
+ if (tag !== 18)
11996
+ break;
11997
+ message.name = reader.string();
11998
+ continue;
11999
+ }
12000
+ default:
12001
+ break;
12002
+ }
12003
+ if ((tag & 7) === 4 || tag === 0) {
12004
+ break;
12005
+ }
12006
+ {
12007
+ if (!writer)
12008
+ writer = new BinaryWriter();
12009
+ const skipped = reader.skip(tag & 7, tag >>> 3);
12010
+ writer.uint32(tag).raw(skipped);
12011
+ }
12012
+ }
12013
+ if (writer) {
12014
+ message[unknownFieldsSymbol] = writer.finish();
12015
+ }
12016
+ return message;
12017
+ },
12018
+ fromJSON(object) {
12019
+ return applyGetSecurityGroupByNameRequestCustom({
12020
+ $type: "nebius.vpc.v1.GetSecurityGroupByNameRequest",
12021
+ parentId: isSet(object.parentId ?? object.parent_id)
12022
+ ? String(object.parentId ?? object.parent_id)
12023
+ : "",
12024
+ name: isSet(object.name ?? object.name)
12025
+ ? String(object.name ?? object.name)
12026
+ : "",
12027
+ });
12028
+ },
12029
+ toJSON(message, use = "json") {
12030
+ const obj = {};
12031
+ const pick = (json, pb) => (use === "json" ? json : pb);
12032
+ if (message.parentId !== "") {
12033
+ obj[pick("parentId", "parent_id")] = message.parentId;
12034
+ }
12035
+ if (message.name !== "") {
12036
+ obj[pick("name", "name")] = message.name;
12037
+ }
12038
+ return obj;
12039
+ },
12040
+ create(base) {
12041
+ return GetSecurityGroupByNameRequest.fromPartial(base ?? {});
12042
+ },
12043
+ fromPartial(object) {
12044
+ const message = createBaseGetSecurityGroupByNameRequest();
12045
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
12046
+ ? object.parentId
12047
+ : "";
12048
+ message.name = (object.name !== undefined && object.name !== null)
12049
+ ? object.name
12050
+ : "";
12051
+ return message;
12052
+ },
12053
+ };
12054
+ protoRegistry.registerMessage(GetSecurityGroupByNameRequest);
12055
+ function GetSecurityGroupByNameRequestCustomInspect() {
12056
+ const parts = [];
12057
+ if (this.parentId !== "")
12058
+ parts.push("parentId" + "=" + inspect(this.parentId));
12059
+ if (this.name !== "")
12060
+ parts.push("name" + "=" + inspect(this.name));
12061
+ return `${this.$type}(${parts.join(", ")})`;
12062
+ }
12063
+ function GetSecurityGroupByNameRequestCustomJson() {
12064
+ const obj = {
12065
+ type: this.$type,
12066
+ };
12067
+ if (this.parentId !== "")
12068
+ obj.parentId = inspectJson(this.parentId);
12069
+ if (this.name !== "")
12070
+ obj.name = inspectJson(this.name);
12071
+ return obj;
12072
+ }
12073
+ function applyGetSecurityGroupByNameRequestCustom(message) {
12074
+ message[custom] = GetSecurityGroupByNameRequestCustomInspect;
12075
+ message[customJson] = GetSecurityGroupByNameRequestCustomJson;
12076
+ return attachMessageDescriptor(message, GetSecurityGroupByNameRequest.$descriptor);
12077
+ }
12078
+ function createBaseGetSecurityGroupByNameRequest() {
12079
+ const message = {
12080
+ $type: "nebius.vpc.v1.GetSecurityGroupByNameRequest",
12081
+ parentId: "",
12082
+ name: "",
12083
+ };
12084
+ return applyGetSecurityGroupByNameRequestCustom(message);
12085
+ }
12086
+ const ListSecurityGroupsRequest_MESSAGE_DESCRIPTOR = {
12087
+ fields: {
12088
+ "parentId": { pbName: "parent_id", scalarType: 9 },
12089
+ "pageSize": { pbName: "page_size", scalarType: 3 },
12090
+ "pageToken": { pbName: "page_token", scalarType: 9 },
12091
+ },
12092
+ };
12093
+ /** Encodes, decodes, converts, and creates {@link ListSecurityGroupsRequest} messages. */
12094
+ export const ListSecurityGroupsRequest = {
12095
+ $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
12096
+ $descriptor: ListSecurityGroupsRequest_MESSAGE_DESCRIPTOR,
12097
+ encode(message, writer = new BinaryWriter()) {
12098
+ if (message.parentId !== "") {
12099
+ writer.uint32(10).string(message.parentId);
12100
+ }
12101
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
12102
+ writer.uint32(16).int64(message.pageSize.toString());
12103
+ }
12104
+ if (message.pageToken !== "") {
12105
+ writer.uint32(26).string(message.pageToken);
12106
+ }
12107
+ if (message[unknownFieldsSymbol]) {
12108
+ writer.raw(message[unknownFieldsSymbol]);
12109
+ }
12110
+ return writer;
12111
+ },
12112
+ decode(input, length) {
12113
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
12114
+ const end = length === undefined ? reader.len : reader.pos + length;
12115
+ const message = createBaseListSecurityGroupsRequest();
12116
+ let writer = undefined;
12117
+ while (reader.pos < end) {
12118
+ const tag = reader.uint32();
12119
+ switch (tag >>> 3) {
12120
+ case 1: {
12121
+ if (tag !== 10)
12122
+ break;
12123
+ message.parentId = reader.string();
12124
+ continue;
12125
+ }
12126
+ case 2: {
12127
+ if (tag !== 16)
11296
12128
  break;
11297
- message.name = reader.string();
12129
+ message.pageSize = Long.fromValue(reader.int64());
12130
+ continue;
12131
+ }
12132
+ case 3: {
12133
+ if (tag !== 26)
12134
+ break;
12135
+ message.pageToken = reader.string();
11298
12136
  continue;
11299
12137
  }
11300
12138
  default:
@@ -11316,13 +12154,16 @@ export const GetSecurityGroupByNameRequest = {
11316
12154
  return message;
11317
12155
  },
11318
12156
  fromJSON(object) {
11319
- return applyGetSecurityGroupByNameRequestCustom({
11320
- $type: "nebius.vpc.v1.GetSecurityGroupByNameRequest",
12157
+ return applyListSecurityGroupsRequestCustom({
12158
+ $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
11321
12159
  parentId: isSet(object.parentId ?? object.parent_id)
11322
12160
  ? String(object.parentId ?? object.parent_id)
11323
12161
  : "",
11324
- name: isSet(object.name ?? object.name)
11325
- ? String(object.name ?? object.name)
12162
+ pageSize: isSet(object.pageSize ?? object.page_size)
12163
+ ? Long.fromValue(object.pageSize ?? object.page_size)
12164
+ : Long.ZERO,
12165
+ pageToken: isSet(object.pageToken ?? object.page_token)
12166
+ ? String(object.pageToken ?? object.page_token)
11326
12167
  : "",
11327
12168
  });
11328
12169
  },
@@ -11332,68 +12173,79 @@ export const GetSecurityGroupByNameRequest = {
11332
12173
  if (message.parentId !== "") {
11333
12174
  obj[pick("parentId", "parent_id")] = message.parentId;
11334
12175
  }
11335
- if (message.name !== "") {
11336
- obj[pick("name", "name")] = message.name;
12176
+ if (!message.pageSize?.isZero?.()) {
12177
+ obj[pick("pageSize", "page_size")] = (message.pageSize || Long.ZERO).toString();
12178
+ }
12179
+ if (message.pageToken !== "") {
12180
+ obj[pick("pageToken", "page_token")] = message.pageToken;
11337
12181
  }
11338
12182
  return obj;
11339
12183
  },
11340
12184
  create(base) {
11341
- return GetSecurityGroupByNameRequest.fromPartial(base ?? {});
12185
+ return ListSecurityGroupsRequest.fromPartial(base ?? {});
11342
12186
  },
11343
12187
  fromPartial(object) {
11344
- const message = createBaseGetSecurityGroupByNameRequest();
12188
+ const message = createBaseListSecurityGroupsRequest();
11345
12189
  message.parentId = (object.parentId !== undefined && object.parentId !== null)
11346
12190
  ? object.parentId
11347
12191
  : "";
11348
- message.name = (object.name !== undefined && object.name !== null)
11349
- ? object.name
12192
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
12193
+ ? Long.fromValue(object.pageSize)
12194
+ : Long.ZERO;
12195
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
12196
+ ? object.pageToken
11350
12197
  : "";
11351
12198
  return message;
11352
12199
  },
11353
12200
  };
11354
- protoRegistry.registerMessage(GetSecurityGroupByNameRequest);
11355
- function GetSecurityGroupByNameRequestCustomInspect() {
12201
+ protoRegistry.registerMessage(ListSecurityGroupsRequest);
12202
+ function ListSecurityGroupsRequestCustomInspect() {
11356
12203
  const parts = [];
11357
12204
  if (this.parentId !== "")
11358
12205
  parts.push("parentId" + "=" + inspect(this.parentId));
11359
- if (this.name !== "")
11360
- parts.push("name" + "=" + inspect(this.name));
12206
+ if (!this.pageSize?.isZero?.())
12207
+ parts.push("pageSize" + "=" + inspect(this.pageSize));
12208
+ if (this.pageToken !== "")
12209
+ parts.push("pageToken" + "=" + inspect(this.pageToken));
11361
12210
  return `${this.$type}(${parts.join(", ")})`;
11362
12211
  }
11363
- function GetSecurityGroupByNameRequestCustomJson() {
12212
+ function ListSecurityGroupsRequestCustomJson() {
11364
12213
  const obj = {
11365
12214
  type: this.$type,
11366
12215
  };
11367
12216
  if (this.parentId !== "")
11368
12217
  obj.parentId = inspectJson(this.parentId);
11369
- if (this.name !== "")
11370
- obj.name = inspectJson(this.name);
12218
+ if (!this.pageSize?.isZero?.())
12219
+ obj.pageSize = inspectJson(this.pageSize);
12220
+ if (this.pageToken !== "")
12221
+ obj.pageToken = inspectJson(this.pageToken);
11371
12222
  return obj;
11372
12223
  }
11373
- function applyGetSecurityGroupByNameRequestCustom(message) {
11374
- message[custom] = GetSecurityGroupByNameRequestCustomInspect;
11375
- message[customJson] = GetSecurityGroupByNameRequestCustomJson;
11376
- return attachMessageDescriptor(message, GetSecurityGroupByNameRequest.$descriptor);
12224
+ function applyListSecurityGroupsRequestCustom(message) {
12225
+ message[custom] = ListSecurityGroupsRequestCustomInspect;
12226
+ message[customJson] = ListSecurityGroupsRequestCustomJson;
12227
+ return attachMessageDescriptor(message, ListSecurityGroupsRequest.$descriptor);
11377
12228
  }
11378
- function createBaseGetSecurityGroupByNameRequest() {
12229
+ function createBaseListSecurityGroupsRequest() {
11379
12230
  const message = {
11380
- $type: "nebius.vpc.v1.GetSecurityGroupByNameRequest",
12231
+ $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
11381
12232
  parentId: "",
11382
- name: "",
12233
+ pageSize: Long.ZERO,
12234
+ pageToken: "",
11383
12235
  };
11384
- return applyGetSecurityGroupByNameRequestCustom(message);
12236
+ return applyListSecurityGroupsRequestCustom(message);
11385
12237
  }
11386
- const ListSecurityGroupsRequest_MESSAGE_DESCRIPTOR = {
12238
+ const ListAggregatedSecurityGroupsRequest_MESSAGE_DESCRIPTOR = {
11387
12239
  fields: {
11388
12240
  "parentId": { pbName: "parent_id", scalarType: 9 },
11389
12241
  "pageSize": { pbName: "page_size", scalarType: 3 },
11390
12242
  "pageToken": { pbName: "page_token", scalarType: 9 },
11391
12243
  },
11392
12244
  };
11393
- /** Encodes, decodes, converts, and creates {@link ListSecurityGroupsRequest} messages. */
11394
- export const ListSecurityGroupsRequest = {
11395
- $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
11396
- $descriptor: ListSecurityGroupsRequest_MESSAGE_DESCRIPTOR,
12245
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedSecurityGroupsRequest} messages. */
12246
+ export const ListAggregatedSecurityGroupsRequest = {
12247
+ $type: "nebius.vpc.v1.ListAggregatedSecurityGroupsRequest",
12248
+ $descriptor: ListAggregatedSecurityGroupsRequest_MESSAGE_DESCRIPTOR,
11397
12249
  encode(message, writer = new BinaryWriter()) {
11398
12250
  if (message.parentId !== "") {
11399
12251
  writer.uint32(10).string(message.parentId);
@@ -11412,7 +12264,7 @@ export const ListSecurityGroupsRequest = {
11412
12264
  decode(input, length) {
11413
12265
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
11414
12266
  const end = length === undefined ? reader.len : reader.pos + length;
11415
- const message = createBaseListSecurityGroupsRequest();
12267
+ const message = createBaseListAggregatedSecurityGroupsRequest();
11416
12268
  let writer = undefined;
11417
12269
  while (reader.pos < end) {
11418
12270
  const tag = reader.uint32();
@@ -11454,8 +12306,8 @@ export const ListSecurityGroupsRequest = {
11454
12306
  return message;
11455
12307
  },
11456
12308
  fromJSON(object) {
11457
- return applyListSecurityGroupsRequestCustom({
11458
- $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
12309
+ return applyListAggregatedSecurityGroupsRequestCustom({
12310
+ $type: "nebius.vpc.v1.ListAggregatedSecurityGroupsRequest",
11459
12311
  parentId: isSet(object.parentId ?? object.parent_id)
11460
12312
  ? String(object.parentId ?? object.parent_id)
11461
12313
  : "",
@@ -11482,10 +12334,10 @@ export const ListSecurityGroupsRequest = {
11482
12334
  return obj;
11483
12335
  },
11484
12336
  create(base) {
11485
- return ListSecurityGroupsRequest.fromPartial(base ?? {});
12337
+ return ListAggregatedSecurityGroupsRequest.fromPartial(base ?? {});
11486
12338
  },
11487
12339
  fromPartial(object) {
11488
- const message = createBaseListSecurityGroupsRequest();
12340
+ const message = createBaseListAggregatedSecurityGroupsRequest();
11489
12341
  message.parentId = (object.parentId !== undefined && object.parentId !== null)
11490
12342
  ? object.parentId
11491
12343
  : "";
@@ -11498,8 +12350,8 @@ export const ListSecurityGroupsRequest = {
11498
12350
  return message;
11499
12351
  },
11500
12352
  };
11501
- protoRegistry.registerMessage(ListSecurityGroupsRequest);
11502
- function ListSecurityGroupsRequestCustomInspect() {
12353
+ protoRegistry.registerMessage(ListAggregatedSecurityGroupsRequest);
12354
+ function ListAggregatedSecurityGroupsRequestCustomInspect() {
11503
12355
  const parts = [];
11504
12356
  if (this.parentId !== "")
11505
12357
  parts.push("parentId" + "=" + inspect(this.parentId));
@@ -11509,7 +12361,7 @@ function ListSecurityGroupsRequestCustomInspect() {
11509
12361
  parts.push("pageToken" + "=" + inspect(this.pageToken));
11510
12362
  return `${this.$type}(${parts.join(", ")})`;
11511
12363
  }
11512
- function ListSecurityGroupsRequestCustomJson() {
12364
+ function ListAggregatedSecurityGroupsRequestCustomJson() {
11513
12365
  const obj = {
11514
12366
  type: this.$type,
11515
12367
  };
@@ -11521,19 +12373,19 @@ function ListSecurityGroupsRequestCustomJson() {
11521
12373
  obj.pageToken = inspectJson(this.pageToken);
11522
12374
  return obj;
11523
12375
  }
11524
- function applyListSecurityGroupsRequestCustom(message) {
11525
- message[custom] = ListSecurityGroupsRequestCustomInspect;
11526
- message[customJson] = ListSecurityGroupsRequestCustomJson;
11527
- return attachMessageDescriptor(message, ListSecurityGroupsRequest.$descriptor);
12376
+ function applyListAggregatedSecurityGroupsRequestCustom(message) {
12377
+ message[custom] = ListAggregatedSecurityGroupsRequestCustomInspect;
12378
+ message[customJson] = ListAggregatedSecurityGroupsRequestCustomJson;
12379
+ return attachMessageDescriptor(message, ListAggregatedSecurityGroupsRequest.$descriptor);
11528
12380
  }
11529
- function createBaseListSecurityGroupsRequest() {
12381
+ function createBaseListAggregatedSecurityGroupsRequest() {
11530
12382
  const message = {
11531
- $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
12383
+ $type: "nebius.vpc.v1.ListAggregatedSecurityGroupsRequest",
11532
12384
  parentId: "",
11533
12385
  pageSize: Long.ZERO,
11534
12386
  pageToken: "",
11535
12387
  };
11536
- return applyListSecurityGroupsRequestCustom(message);
12388
+ return applyListAggregatedSecurityGroupsRequestCustom(message);
11537
12389
  }
11538
12390
  const ListSecurityGroupsByNetworkRequest_MESSAGE_DESCRIPTOR = {
11539
12391
  fields: {
@@ -12228,6 +13080,17 @@ export const SecurityGroupServiceServiceDescription = {
12228
13080
  responseSerialize: (value) => Buffer.from(ListSecurityGroupsResponse.encode(value).finish()),
12229
13081
  responseDeserialize: (value) => ListSecurityGroupsResponse.decode(value),
12230
13082
  },
13083
+ listAggregated: {
13084
+ path: "/nebius.vpc.v1.SecurityGroupService/ListAggregated",
13085
+ requestStream: false,
13086
+ responseStream: false,
13087
+ requestSerialize: (value) => Buffer.from(ListAggregatedSecurityGroupsRequest.encode(value).finish()),
13088
+ requestDescriptor: () => ListAggregatedSecurityGroupsRequest.$descriptor,
13089
+ sendResetMask: false,
13090
+ requestDeserialize: (value) => ListAggregatedSecurityGroupsRequest.decode(value),
13091
+ responseSerialize: (value) => Buffer.from(ListSecurityGroupsResponse.encode(value).finish()),
13092
+ responseDeserialize: (value) => ListSecurityGroupsResponse.decode(value),
13093
+ },
12231
13094
  listByNetwork: {
12232
13095
  path: "/nebius.vpc.v1.SecurityGroupService/ListByNetwork",
12233
13096
  requestStream: false,
@@ -12333,6 +13196,18 @@ export class SecurityGroupService {
12333
13196
  const deserialize = spec.responseDeserialize;
12334
13197
  return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
12335
13198
  }
13199
+ /**
13200
+ * Lists security groups across regions for the specified parent.
13201
+ *
13202
+ */
13203
+ listAggregated(...args) {
13204
+ const spec = this.spec.listAggregated;
13205
+ const request = args[0];
13206
+ const metadata = (args.length > 1 ? args[1] : undefined);
13207
+ const options = (args.length > 2 ? args[2] : undefined);
13208
+ const deserialize = spec.responseDeserialize;
13209
+ return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
13210
+ }
12336
13211
  /**
12337
13212
  * Lists security groups in a specified network.
12338
13213
  *
@@ -15456,6 +16331,158 @@ function createBaseListSubnetsRequest() {
15456
16331
  };
15457
16332
  return applyListSubnetsRequestCustom(message);
15458
16333
  }
16334
+ const ListAggregatedSubnetsRequest_MESSAGE_DESCRIPTOR = {
16335
+ fields: {
16336
+ "parentId": { pbName: "parent_id", scalarType: 9 },
16337
+ "pageSize": { pbName: "page_size", scalarType: 3 },
16338
+ "pageToken": { pbName: "page_token", scalarType: 9 },
16339
+ },
16340
+ };
16341
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedSubnetsRequest} messages. */
16342
+ export const ListAggregatedSubnetsRequest = {
16343
+ $type: "nebius.vpc.v1.ListAggregatedSubnetsRequest",
16344
+ $descriptor: ListAggregatedSubnetsRequest_MESSAGE_DESCRIPTOR,
16345
+ encode(message, writer = new BinaryWriter()) {
16346
+ if (message.parentId !== "") {
16347
+ writer.uint32(10).string(message.parentId);
16348
+ }
16349
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
16350
+ writer.uint32(16).int64(message.pageSize.toString());
16351
+ }
16352
+ if (message.pageToken !== "") {
16353
+ writer.uint32(26).string(message.pageToken);
16354
+ }
16355
+ if (message[unknownFieldsSymbol]) {
16356
+ writer.raw(message[unknownFieldsSymbol]);
16357
+ }
16358
+ return writer;
16359
+ },
16360
+ decode(input, length) {
16361
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
16362
+ const end = length === undefined ? reader.len : reader.pos + length;
16363
+ const message = createBaseListAggregatedSubnetsRequest();
16364
+ let writer = undefined;
16365
+ while (reader.pos < end) {
16366
+ const tag = reader.uint32();
16367
+ switch (tag >>> 3) {
16368
+ case 1: {
16369
+ if (tag !== 10)
16370
+ break;
16371
+ message.parentId = reader.string();
16372
+ continue;
16373
+ }
16374
+ case 2: {
16375
+ if (tag !== 16)
16376
+ break;
16377
+ message.pageSize = Long.fromValue(reader.int64());
16378
+ continue;
16379
+ }
16380
+ case 3: {
16381
+ if (tag !== 26)
16382
+ break;
16383
+ message.pageToken = reader.string();
16384
+ continue;
16385
+ }
16386
+ default:
16387
+ break;
16388
+ }
16389
+ if ((tag & 7) === 4 || tag === 0) {
16390
+ break;
16391
+ }
16392
+ {
16393
+ if (!writer)
16394
+ writer = new BinaryWriter();
16395
+ const skipped = reader.skip(tag & 7, tag >>> 3);
16396
+ writer.uint32(tag).raw(skipped);
16397
+ }
16398
+ }
16399
+ if (writer) {
16400
+ message[unknownFieldsSymbol] = writer.finish();
16401
+ }
16402
+ return message;
16403
+ },
16404
+ fromJSON(object) {
16405
+ return applyListAggregatedSubnetsRequestCustom({
16406
+ $type: "nebius.vpc.v1.ListAggregatedSubnetsRequest",
16407
+ parentId: isSet(object.parentId ?? object.parent_id)
16408
+ ? String(object.parentId ?? object.parent_id)
16409
+ : "",
16410
+ pageSize: isSet(object.pageSize ?? object.page_size)
16411
+ ? Long.fromValue(object.pageSize ?? object.page_size)
16412
+ : Long.ZERO,
16413
+ pageToken: isSet(object.pageToken ?? object.page_token)
16414
+ ? String(object.pageToken ?? object.page_token)
16415
+ : "",
16416
+ });
16417
+ },
16418
+ toJSON(message, use = "json") {
16419
+ const obj = {};
16420
+ const pick = (json, pb) => (use === "json" ? json : pb);
16421
+ if (message.parentId !== "") {
16422
+ obj[pick("parentId", "parent_id")] = message.parentId;
16423
+ }
16424
+ if (!message.pageSize?.isZero?.()) {
16425
+ obj[pick("pageSize", "page_size")] = (message.pageSize || Long.ZERO).toString();
16426
+ }
16427
+ if (message.pageToken !== "") {
16428
+ obj[pick("pageToken", "page_token")] = message.pageToken;
16429
+ }
16430
+ return obj;
16431
+ },
16432
+ create(base) {
16433
+ return ListAggregatedSubnetsRequest.fromPartial(base ?? {});
16434
+ },
16435
+ fromPartial(object) {
16436
+ const message = createBaseListAggregatedSubnetsRequest();
16437
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
16438
+ ? object.parentId
16439
+ : "";
16440
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
16441
+ ? Long.fromValue(object.pageSize)
16442
+ : Long.ZERO;
16443
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
16444
+ ? object.pageToken
16445
+ : "";
16446
+ return message;
16447
+ },
16448
+ };
16449
+ protoRegistry.registerMessage(ListAggregatedSubnetsRequest);
16450
+ function ListAggregatedSubnetsRequestCustomInspect() {
16451
+ const parts = [];
16452
+ if (this.parentId !== "")
16453
+ parts.push("parentId" + "=" + inspect(this.parentId));
16454
+ if (!this.pageSize?.isZero?.())
16455
+ parts.push("pageSize" + "=" + inspect(this.pageSize));
16456
+ if (this.pageToken !== "")
16457
+ parts.push("pageToken" + "=" + inspect(this.pageToken));
16458
+ return `${this.$type}(${parts.join(", ")})`;
16459
+ }
16460
+ function ListAggregatedSubnetsRequestCustomJson() {
16461
+ const obj = {
16462
+ type: this.$type,
16463
+ };
16464
+ if (this.parentId !== "")
16465
+ obj.parentId = inspectJson(this.parentId);
16466
+ if (!this.pageSize?.isZero?.())
16467
+ obj.pageSize = inspectJson(this.pageSize);
16468
+ if (this.pageToken !== "")
16469
+ obj.pageToken = inspectJson(this.pageToken);
16470
+ return obj;
16471
+ }
16472
+ function applyListAggregatedSubnetsRequestCustom(message) {
16473
+ message[custom] = ListAggregatedSubnetsRequestCustomInspect;
16474
+ message[customJson] = ListAggregatedSubnetsRequestCustomJson;
16475
+ return attachMessageDescriptor(message, ListAggregatedSubnetsRequest.$descriptor);
16476
+ }
16477
+ function createBaseListAggregatedSubnetsRequest() {
16478
+ const message = {
16479
+ $type: "nebius.vpc.v1.ListAggregatedSubnetsRequest",
16480
+ parentId: "",
16481
+ pageSize: Long.ZERO,
16482
+ pageToken: "",
16483
+ };
16484
+ return applyListAggregatedSubnetsRequestCustom(message);
16485
+ }
15459
16486
  const ListSubnetsByNetworkRequest_MESSAGE_DESCRIPTOR = {
15460
16487
  fields: {
15461
16488
  "networkId": { pbName: "network_id", scalarType: 9 },
@@ -16149,6 +17176,17 @@ export const SubnetServiceServiceDescription = {
16149
17176
  responseSerialize: (value) => Buffer.from(ListSubnetsResponse.encode(value).finish()),
16150
17177
  responseDeserialize: (value) => ListSubnetsResponse.decode(value),
16151
17178
  },
17179
+ listAggregated: {
17180
+ path: "/nebius.vpc.v1.SubnetService/ListAggregated",
17181
+ requestStream: false,
17182
+ responseStream: false,
17183
+ requestSerialize: (value) => Buffer.from(ListAggregatedSubnetsRequest.encode(value).finish()),
17184
+ requestDescriptor: () => ListAggregatedSubnetsRequest.$descriptor,
17185
+ sendResetMask: false,
17186
+ requestDeserialize: (value) => ListAggregatedSubnetsRequest.decode(value),
17187
+ responseSerialize: (value) => Buffer.from(ListSubnetsResponse.encode(value).finish()),
17188
+ responseDeserialize: (value) => ListSubnetsResponse.decode(value),
17189
+ },
16152
17190
  listByNetwork: {
16153
17191
  path: "/nebius.vpc.v1.SubnetService/ListByNetwork",
16154
17192
  requestStream: false,
@@ -16254,6 +17292,18 @@ export class SubnetService {
16254
17292
  const deserialize = spec.responseDeserialize;
16255
17293
  return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
16256
17294
  }
17295
+ /**
17296
+ * Lists subnets across regions for the specified parent.
17297
+ *
17298
+ */
17299
+ listAggregated(...args) {
17300
+ const spec = this.spec.listAggregated;
17301
+ const request = args[0];
17302
+ const metadata = (args.length > 1 ? args[1] : undefined);
17303
+ const options = (args.length > 2 ? args[2] : undefined);
17304
+ const deserialize = spec.responseDeserialize;
17305
+ return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
17306
+ }
16257
17307
  /**
16258
17308
  * Lists subnets that belong to a specified network.
16259
17309
  *