@nebius/js-sdk 0.2.69 → 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 (47) hide show
  1. package/dist/cjs/api/nebius/audit/v2/index.d.ts +0 -22
  2. package/dist/cjs/api/nebius/audit/v2/index.d.ts.map +1 -1
  3. package/dist/cjs/api/nebius/audit/v2/index.js +1 -139
  4. package/dist/cjs/api/nebius/audit/v2/index.js.map +1 -1
  5. package/dist/cjs/api/nebius/billing/v1/index.d.ts +4 -2
  6. package/dist/cjs/api/nebius/billing/v1/index.d.ts.map +1 -1
  7. package/dist/cjs/api/nebius/billing/v1/index.js +7 -5
  8. package/dist/cjs/api/nebius/billing/v1/index.js.map +1 -1
  9. package/dist/cjs/api/nebius/compute/v1/index.d.ts +3 -2
  10. package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
  11. package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
  12. package/dist/cjs/api/nebius/iam/v1/index.d.ts +3 -3
  13. package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -1
  14. package/dist/cjs/api/nebius/registry/v1/index.d.ts +2 -0
  15. package/dist/cjs/api/nebius/registry/v1/index.d.ts.map +1 -1
  16. package/dist/cjs/api/nebius/registry/v1/index.js +24 -0
  17. package/dist/cjs/api/nebius/registry/v1/index.js.map +1 -1
  18. package/dist/cjs/api/nebius/vpc/v1/index.d.ts +408 -0
  19. package/dist/cjs/api/nebius/vpc/v1/index.d.ts.map +1 -1
  20. package/dist/cjs/api/nebius/vpc/v1/index.js +1203 -153
  21. package/dist/cjs/api/nebius/vpc/v1/index.js.map +1 -1
  22. package/dist/cjs/version.d.ts +1 -1
  23. package/dist/cjs/version.js +1 -1
  24. package/dist/esm/api/nebius/audit/v2/index.d.ts +0 -22
  25. package/dist/esm/api/nebius/audit/v2/index.d.ts.map +1 -1
  26. package/dist/esm/api/nebius/audit/v2/index.js +0 -138
  27. package/dist/esm/api/nebius/audit/v2/index.js.map +1 -1
  28. package/dist/esm/api/nebius/billing/v1/index.d.ts +4 -2
  29. package/dist/esm/api/nebius/billing/v1/index.d.ts.map +1 -1
  30. package/dist/esm/api/nebius/billing/v1/index.js +7 -5
  31. package/dist/esm/api/nebius/billing/v1/index.js.map +1 -1
  32. package/dist/esm/api/nebius/compute/v1/index.d.ts +3 -2
  33. package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
  34. package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
  35. package/dist/esm/api/nebius/iam/v1/index.d.ts +3 -3
  36. package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -1
  37. package/dist/esm/api/nebius/registry/v1/index.d.ts +2 -0
  38. package/dist/esm/api/nebius/registry/v1/index.d.ts.map +1 -1
  39. package/dist/esm/api/nebius/registry/v1/index.js +24 -0
  40. package/dist/esm/api/nebius/registry/v1/index.js.map +1 -1
  41. package/dist/esm/api/nebius/vpc/v1/index.d.ts +408 -0
  42. package/dist/esm/api/nebius/vpc/v1/index.d.ts.map +1 -1
  43. package/dist/esm/api/nebius/vpc/v1/index.js +1199 -149
  44. package/dist/esm/api/nebius/vpc/v1/index.js.map +1 -1
  45. package/dist/esm/version.d.ts +1 -1
  46. package/dist/esm/version.js +1 -1
  47. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  /* Generated by Nebius TS generator. DO NOT EDIT! */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.PoolServiceServiceDescription = exports.DeletePoolRequest = exports.UpdatePoolRequest = exports.CreatePoolRequest = exports.ListPoolsResponse = exports.ListPoolsBySourcePoolRequest = exports.ListPoolsRequest = exports.GetPoolByNameRequest = exports.GetPoolRequest = exports.NetworkStatus = exports.NetworkPool = exports.IPv4PublicNetworkPools = exports.IPv4PrivateNetworkPools = exports.NetworkSpec = exports.Network = exports.NetworkStatus_State = exports.NetworkService = exports.NetworkServiceBaseClient = exports.NetworkServiceServiceDescription = exports.DeleteNetworkRequest = exports.UpdateNetworkRequest = exports.CreateDefaultNetworkRequest = exports.CreateNetworkRequest = exports.ListNetworksResponse = exports.ListNetworksRequest = exports.GetNetworkByNameRequest = exports.GetNetworkRequest = exports.LoadBalancerAssignment = exports.NetworkInterfaceAssignment = exports.Assignment = exports.AllocationDetails = exports.AllocationStatus = exports.IPv4PublicAllocationSpec = exports.IPv4PrivateAllocationSpec = exports.AllocationSpec = exports.Allocation = exports.NetworkInterfaceAssignment_Type = exports.AllocationStatus_State = exports.AllocationService = exports.AllocationServiceBaseClient = exports.AllocationServiceServiceDescription = exports.DeleteAllocationRequest = exports.UpdateAllocationRequest = exports.CreateAllocationRequest = exports.ListAllocationsResponse = exports.ListAllocationsBySubnetRequest = exports.ListAllocationsByPoolRequest = exports.ListAllocationsRequest = exports.GetAllocationByNameRequest = exports.GetAllocationRequest = void 0;
5
- exports.GetSecurityGroupByNameRequest = exports.GetSecurityGroupRequest = exports.DefaultEgressGatewayState = exports.AllocationNextHopState = exports.NextHopState = exports.RouteStatus = exports.AllocationNextHop = exports.NextHop = exports.DestinationMatch = exports.RouteSpec = exports.Route = exports.RouteStatus_Type = exports.RouteStatus_State = exports.RouteTableAssignment = exports.RouteTableStatus = exports.RouteTableSpec = exports.RouteTable = exports.RouteTableStatus_State = exports.RouteTableService = exports.RouteTableServiceBaseClient = exports.RouteTableServiceServiceDescription = exports.DeleteRouteTableRequest = exports.UpdateRouteTableRequest = exports.CreateRouteTableRequest = exports.ListRouteTablesResponse = exports.ListRouteTablesByNetworkRequest = exports.ListRouteTablesRequest = exports.GetRouteTableByNameRequest = exports.GetRouteTableRequest = exports.RouteService = exports.RouteServiceBaseClient = exports.RouteServiceServiceDescription = exports.DeleteRouteRequest = exports.UpdateRouteRequest = exports.CreateRouteRequest = exports.ListRoutesResponse = exports.ListRoutesRequest = exports.GetRouteByNameRequest = exports.GetRouteRequest = exports.PoolAssignment = exports.PoolStatus = exports.PoolCidr = exports.PoolSpec = exports.Pool = exports.PoolStatus_State = exports.IpVisibility = exports.IpVersion = exports.AddressBlockState = exports.PoolService = exports.PoolServiceBaseClient = void 0;
6
- exports.IPv4PublicSubnetPools = exports.IPv4PrivateSubnetPools = exports.SubnetSpec = exports.Subnet = exports.SubnetStatus_State = exports.SubnetService = exports.SubnetServiceBaseClient = exports.SubnetServiceServiceDescription = exports.DeleteSubnetRequest = exports.UpdateSubnetRequest = exports.CreateSubnetRequest = exports.ListSubnetsResponse = exports.ListSubnetsByNetworkRequest = exports.ListSubnetsRequest = exports.GetSubnetByNameRequest = exports.GetSubnetRequest = exports.RuleMatchStatus = exports.SecurityRuleStatus = exports.RuleEgress = exports.RuleIngress = exports.SecurityRuleSpec = exports.SecurityRule = exports.SecurityRuleStatus_State = exports.RuleType = exports.RuleAccessAction = exports.RuleProtocol = exports.RuleDirection = exports.SecurityRuleService = exports.SecurityRuleServiceBaseClient = exports.SecurityRuleServiceServiceDescription = exports.DeleteSecurityRuleRequest = exports.UpdateSecurityRuleRequest = exports.CreateSecurityRuleRequest = exports.ListSecurityRulesResponse = exports.ListSecurityRulesRequest = exports.GetSecurityRuleByNameRequest = exports.GetSecurityRuleRequest = exports.SecurityGroupStatus = exports.SecurityGroupSpec = exports.SecurityGroup = exports.SecurityGroupStatus_State = exports.SecurityGroupService = exports.SecurityGroupServiceBaseClient = exports.SecurityGroupServiceServiceDescription = exports.DeleteSecurityGroupRequest = exports.UpdateSecurityGroupRequest = exports.CreateSecurityGroupRequest = exports.ListSecurityGroupsResponse = exports.ListSecurityGroupsByNetworkRequest = exports.ListSecurityGroupsRequest = void 0;
7
- exports.TargetStatus = exports.TargetGroupStatus = exports.ComputeInstance = exports.Target = exports.TargetGroupSpec = exports.TargetGroup = exports.TargetStatus_TargetState = exports.TargetGroupService = exports.TargetGroupServiceBaseClient = exports.TargetGroupServiceServiceDescription = exports.UpdateTargetGroupRequest = exports.GetTargetGroupRequest = exports.SubnetAssociatedRouteTable = exports.SubnetStatusPool = exports.SubnetStatus = exports.SubnetCidr = exports.SubnetPool = void 0;
4
+ exports.CreatePoolRequest = exports.ListPoolsResponse = exports.ListPoolsBySourcePoolRequest = exports.ListAggregatedPoolsRequest = exports.ListPoolsRequest = exports.GetPoolByNameRequest = exports.GetPoolRequest = exports.NetworkStatus = exports.NetworkPool = exports.IPv4PublicNetworkPools = exports.IPv4PrivateNetworkPools = exports.NetworkSpec = exports.Network = exports.NetworkStatus_State = exports.NetworkService = exports.NetworkServiceBaseClient = exports.NetworkServiceServiceDescription = exports.DeleteNetworkRequest = exports.UpdateNetworkRequest = exports.CreateDefaultNetworkRequest = exports.CreateNetworkRequest = exports.ListNetworksResponse = exports.ListAggregatedNetworksRequest = exports.ListNetworksRequest = exports.GetNetworkByNameRequest = exports.GetNetworkRequest = exports.LoadBalancerAssignment = exports.NetworkInterfaceAssignment = exports.Assignment = exports.AllocationDetails = exports.AllocationStatus = exports.IPv4PublicAllocationSpec = exports.IPv4PrivateAllocationSpec = exports.AllocationSpec = exports.Allocation = exports.NetworkInterfaceAssignment_Type = exports.AllocationStatus_State = exports.AllocationService = exports.AllocationServiceBaseClient = exports.AllocationServiceServiceDescription = exports.DeleteAllocationRequest = exports.UpdateAllocationRequest = exports.CreateAllocationRequest = exports.ListAllocationsResponse = exports.ListAllocationsBySubnetRequest = exports.ListAllocationsByPoolRequest = exports.ListAggregatedAllocationsRequest = exports.ListAllocationsRequest = exports.GetAllocationByNameRequest = exports.GetAllocationRequest = void 0;
5
+ exports.NextHopState = exports.RouteStatus = exports.AllocationNextHop = exports.NextHop = exports.DestinationMatch = exports.RouteSpec = exports.Route = exports.RouteStatus_Type = exports.RouteStatus_State = exports.RouteTableAssignment = exports.RouteTableStatus = exports.RouteTableSpec = exports.RouteTable = exports.RouteTableStatus_State = exports.RouteTableService = exports.RouteTableServiceBaseClient = exports.RouteTableServiceServiceDescription = exports.DeleteRouteTableRequest = exports.UpdateRouteTableRequest = exports.CreateRouteTableRequest = exports.ListRouteTablesResponse = exports.ListRouteTablesByNetworkRequest = exports.ListAggregatedRouteTablesRequest = exports.ListRouteTablesRequest = exports.GetRouteTableByNameRequest = exports.GetRouteTableRequest = exports.RouteService = exports.RouteServiceBaseClient = exports.RouteServiceServiceDescription = exports.DeleteRouteRequest = exports.UpdateRouteRequest = exports.CreateRouteRequest = exports.ListRoutesResponse = exports.ListRoutesRequest = exports.GetRouteByNameRequest = exports.GetRouteRequest = exports.PoolAssignment = exports.PoolStatus = exports.PoolCidr = exports.PoolSpec = exports.Pool = exports.PoolStatus_State = exports.IpVisibility = exports.IpVersion = exports.AddressBlockState = exports.PoolService = exports.PoolServiceBaseClient = exports.PoolServiceServiceDescription = exports.DeletePoolRequest = exports.UpdatePoolRequest = void 0;
6
+ exports.SubnetServiceBaseClient = exports.SubnetServiceServiceDescription = exports.DeleteSubnetRequest = exports.UpdateSubnetRequest = exports.CreateSubnetRequest = exports.ListSubnetsResponse = exports.ListSubnetsByNetworkRequest = exports.ListAggregatedSubnetsRequest = exports.ListSubnetsRequest = exports.GetSubnetByNameRequest = exports.GetSubnetRequest = exports.RuleMatchStatus = exports.SecurityRuleStatus = exports.RuleEgress = exports.RuleIngress = exports.SecurityRuleSpec = exports.SecurityRule = exports.SecurityRuleStatus_State = exports.RuleType = exports.RuleAccessAction = exports.RuleProtocol = exports.RuleDirection = exports.SecurityRuleService = exports.SecurityRuleServiceBaseClient = exports.SecurityRuleServiceServiceDescription = exports.DeleteSecurityRuleRequest = exports.UpdateSecurityRuleRequest = exports.CreateSecurityRuleRequest = exports.ListSecurityRulesResponse = exports.ListSecurityRulesRequest = exports.GetSecurityRuleByNameRequest = exports.GetSecurityRuleRequest = exports.SecurityGroupStatus = exports.SecurityGroupSpec = exports.SecurityGroup = exports.SecurityGroupStatus_State = exports.SecurityGroupService = exports.SecurityGroupServiceBaseClient = exports.SecurityGroupServiceServiceDescription = exports.DeleteSecurityGroupRequest = exports.UpdateSecurityGroupRequest = exports.CreateSecurityGroupRequest = exports.ListSecurityGroupsResponse = exports.ListSecurityGroupsByNetworkRequest = exports.ListAggregatedSecurityGroupsRequest = exports.ListSecurityGroupsRequest = exports.GetSecurityGroupByNameRequest = exports.GetSecurityGroupRequest = exports.DefaultEgressGatewayState = exports.AllocationNextHopState = void 0;
7
+ exports.TargetStatus = exports.TargetGroupStatus = exports.ComputeInstance = exports.Target = exports.TargetGroupSpec = exports.TargetGroup = exports.TargetStatus_TargetState = exports.TargetGroupService = exports.TargetGroupServiceBaseClient = exports.TargetGroupServiceServiceDescription = exports.UpdateTargetGroupRequest = exports.GetTargetGroupRequest = exports.SubnetAssociatedRouteTable = exports.SubnetStatusPool = exports.SubnetStatus = exports.SubnetCidr = exports.SubnetPool = exports.IPv4PublicSubnetPools = exports.IPv4PrivateSubnetPools = exports.SubnetSpec = exports.Subnet = exports.SubnetStatus_State = exports.SubnetService = void 0;
8
8
  const index_js_1 = require("../../../../runtime/protos/index.js");
9
9
  const util_1 = require("util");
10
10
  const protobuf_js_1 = require("../../../protobuf.js");
@@ -398,6 +398,158 @@ function createBaseListAllocationsRequest() {
398
398
  };
399
399
  return applyListAllocationsRequestCustom(message);
400
400
  }
401
+ const ListAggregatedAllocationsRequest_MESSAGE_DESCRIPTOR = {
402
+ fields: {
403
+ "parentId": { pbName: "parent_id", scalarType: 9 },
404
+ "pageSize": { pbName: "page_size", scalarType: 3 },
405
+ "pageToken": { pbName: "page_token", scalarType: 9 },
406
+ },
407
+ };
408
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedAllocationsRequest} messages. */
409
+ exports.ListAggregatedAllocationsRequest = {
410
+ $type: "nebius.vpc.v1.ListAggregatedAllocationsRequest",
411
+ $descriptor: ListAggregatedAllocationsRequest_MESSAGE_DESCRIPTOR,
412
+ encode(message, writer = new index_js_1.BinaryWriter()) {
413
+ if (message.parentId !== "") {
414
+ writer.uint32(10).string(message.parentId);
415
+ }
416
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
417
+ writer.uint32(16).int64(message.pageSize.toString());
418
+ }
419
+ if (message.pageToken !== "") {
420
+ writer.uint32(26).string(message.pageToken);
421
+ }
422
+ if (message[index_js_1.unknownFieldsSymbol]) {
423
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
424
+ }
425
+ return writer;
426
+ },
427
+ decode(input, length) {
428
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
429
+ const end = length === undefined ? reader.len : reader.pos + length;
430
+ const message = createBaseListAggregatedAllocationsRequest();
431
+ let writer = undefined;
432
+ while (reader.pos < end) {
433
+ const tag = reader.uint32();
434
+ switch (tag >>> 3) {
435
+ case 1: {
436
+ if (tag !== 10)
437
+ break;
438
+ message.parentId = reader.string();
439
+ continue;
440
+ }
441
+ case 2: {
442
+ if (tag !== 16)
443
+ break;
444
+ message.pageSize = index_js_1.Long.fromValue(reader.int64());
445
+ continue;
446
+ }
447
+ case 3: {
448
+ if (tag !== 26)
449
+ break;
450
+ message.pageToken = reader.string();
451
+ continue;
452
+ }
453
+ default:
454
+ break;
455
+ }
456
+ if ((tag & 7) === 4 || tag === 0) {
457
+ break;
458
+ }
459
+ {
460
+ if (!writer)
461
+ writer = new index_js_1.BinaryWriter();
462
+ const skipped = reader.skip(tag & 7, tag >>> 3);
463
+ writer.uint32(tag).raw(skipped);
464
+ }
465
+ }
466
+ if (writer) {
467
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
468
+ }
469
+ return message;
470
+ },
471
+ fromJSON(object) {
472
+ return applyListAggregatedAllocationsRequestCustom({
473
+ $type: "nebius.vpc.v1.ListAggregatedAllocationsRequest",
474
+ parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
475
+ ? String(object.parentId ?? object.parent_id)
476
+ : "",
477
+ pageSize: (0, index_js_1.isSet)(object.pageSize ?? object.page_size)
478
+ ? index_js_1.Long.fromValue(object.pageSize ?? object.page_size)
479
+ : index_js_1.Long.ZERO,
480
+ pageToken: (0, index_js_1.isSet)(object.pageToken ?? object.page_token)
481
+ ? String(object.pageToken ?? object.page_token)
482
+ : "",
483
+ });
484
+ },
485
+ toJSON(message, use = "json") {
486
+ const obj = {};
487
+ const pick = (json, pb) => (use === "json" ? json : pb);
488
+ if (message.parentId !== "") {
489
+ obj[pick("parentId", "parent_id")] = message.parentId;
490
+ }
491
+ if (!message.pageSize?.isZero?.()) {
492
+ obj[pick("pageSize", "page_size")] = (message.pageSize || index_js_1.Long.ZERO).toString();
493
+ }
494
+ if (message.pageToken !== "") {
495
+ obj[pick("pageToken", "page_token")] = message.pageToken;
496
+ }
497
+ return obj;
498
+ },
499
+ create(base) {
500
+ return exports.ListAggregatedAllocationsRequest.fromPartial(base ?? {});
501
+ },
502
+ fromPartial(object) {
503
+ const message = createBaseListAggregatedAllocationsRequest();
504
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
505
+ ? object.parentId
506
+ : "";
507
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
508
+ ? index_js_1.Long.fromValue(object.pageSize)
509
+ : index_js_1.Long.ZERO;
510
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
511
+ ? object.pageToken
512
+ : "";
513
+ return message;
514
+ },
515
+ };
516
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListAggregatedAllocationsRequest);
517
+ function ListAggregatedAllocationsRequestCustomInspect() {
518
+ const parts = [];
519
+ if (this.parentId !== "")
520
+ parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
521
+ if (!this.pageSize?.isZero?.())
522
+ parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
523
+ if (this.pageToken !== "")
524
+ parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
525
+ return `${this.$type}(${parts.join(", ")})`;
526
+ }
527
+ function ListAggregatedAllocationsRequestCustomJson() {
528
+ const obj = {
529
+ type: this.$type,
530
+ };
531
+ if (this.parentId !== "")
532
+ obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
533
+ if (!this.pageSize?.isZero?.())
534
+ obj.pageSize = (0, logging_js_1.inspectJson)(this.pageSize);
535
+ if (this.pageToken !== "")
536
+ obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
537
+ return obj;
538
+ }
539
+ function applyListAggregatedAllocationsRequestCustom(message) {
540
+ message[logging_js_1.custom] = ListAggregatedAllocationsRequestCustomInspect;
541
+ message[logging_js_1.customJson] = ListAggregatedAllocationsRequestCustomJson;
542
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.ListAggregatedAllocationsRequest.$descriptor);
543
+ }
544
+ function createBaseListAggregatedAllocationsRequest() {
545
+ const message = {
546
+ $type: "nebius.vpc.v1.ListAggregatedAllocationsRequest",
547
+ parentId: "",
548
+ pageSize: index_js_1.Long.ZERO,
549
+ pageToken: "",
550
+ };
551
+ return applyListAggregatedAllocationsRequestCustom(message);
552
+ }
401
553
  const ListAllocationsByPoolRequest_MESSAGE_DESCRIPTOR = {
402
554
  fields: {
403
555
  "poolId": { pbName: "pool_id", scalarType: 9 },
@@ -1243,6 +1395,17 @@ exports.AllocationServiceServiceDescription = {
1243
1395
  responseSerialize: (value) => Buffer.from(exports.ListAllocationsResponse.encode(value).finish()),
1244
1396
  responseDeserialize: (value) => exports.ListAllocationsResponse.decode(value),
1245
1397
  },
1398
+ listAggregated: {
1399
+ path: "/nebius.vpc.v1.AllocationService/ListAggregated",
1400
+ requestStream: false,
1401
+ responseStream: false,
1402
+ requestSerialize: (value) => Buffer.from(exports.ListAggregatedAllocationsRequest.encode(value).finish()),
1403
+ requestDescriptor: () => exports.ListAggregatedAllocationsRequest.$descriptor,
1404
+ sendResetMask: false,
1405
+ requestDeserialize: (value) => exports.ListAggregatedAllocationsRequest.decode(value),
1406
+ responseSerialize: (value) => Buffer.from(exports.ListAllocationsResponse.encode(value).finish()),
1407
+ responseDeserialize: (value) => exports.ListAllocationsResponse.decode(value),
1408
+ },
1246
1409
  listByPool: {
1247
1410
  path: "/nebius.vpc.v1.AllocationService/ListByPool",
1248
1411
  requestStream: false,
@@ -1359,6 +1522,18 @@ class AllocationService {
1359
1522
  const deserialize = spec.responseDeserialize;
1360
1523
  return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1361
1524
  }
1525
+ /**
1526
+ * Lists allocations across regions for the specified parent.
1527
+ *
1528
+ */
1529
+ listAggregated(...args) {
1530
+ const spec = this.spec.listAggregated;
1531
+ const request = args[0];
1532
+ const metadata = (args.length > 1 ? args[1] : undefined);
1533
+ const options = (args.length > 2 ? args[2] : undefined);
1534
+ const deserialize = spec.responseDeserialize;
1535
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1536
+ }
1362
1537
  /**
1363
1538
  * Lists allocations from a specified pool.
1364
1539
  *
@@ -3349,24 +3524,26 @@ function createBaseListNetworksRequest() {
3349
3524
  };
3350
3525
  return applyListNetworksRequestCustom(message);
3351
3526
  }
3352
- const ListNetworksResponse_MESSAGE_DESCRIPTOR = {
3527
+ const ListAggregatedNetworksRequest_MESSAGE_DESCRIPTOR = {
3353
3528
  fields: {
3354
- "items": { pbName: "items", repeated: true, message: () => exports.Network.$descriptor },
3355
- "nextPageToken": { pbName: "next_page_token", scalarType: 9 },
3529
+ "parentId": { pbName: "parent_id", scalarType: 9 },
3530
+ "pageSize": { pbName: "page_size", scalarType: 3 },
3531
+ "pageToken": { pbName: "page_token", scalarType: 9 },
3356
3532
  },
3357
3533
  };
3358
- /** Encodes, decodes, converts, and creates {@link ListNetworksResponse} messages. */
3359
- exports.ListNetworksResponse = {
3360
- $type: "nebius.vpc.v1.ListNetworksResponse",
3361
- $descriptor: ListNetworksResponse_MESSAGE_DESCRIPTOR,
3534
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedNetworksRequest} messages. */
3535
+ exports.ListAggregatedNetworksRequest = {
3536
+ $type: "nebius.vpc.v1.ListAggregatedNetworksRequest",
3537
+ $descriptor: ListAggregatedNetworksRequest_MESSAGE_DESCRIPTOR,
3362
3538
  encode(message, writer = new index_js_1.BinaryWriter()) {
3363
- for (const v of (message.items ?? [])) {
3364
- const w = writer.uint32(10).fork();
3365
- exports.Network.encode(v, w);
3366
- w.join();
3539
+ if (message.parentId !== "") {
3540
+ writer.uint32(10).string(message.parentId);
3367
3541
  }
3368
- if (message.nextPageToken !== "") {
3369
- writer.uint32(18).string(message.nextPageToken);
3542
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
3543
+ writer.uint32(16).int64(message.pageSize.toString());
3544
+ }
3545
+ if (message.pageToken !== "") {
3546
+ writer.uint32(26).string(message.pageToken);
3370
3547
  }
3371
3548
  if (message[index_js_1.unknownFieldsSymbol]) {
3372
3549
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
@@ -3376,7 +3553,7 @@ exports.ListNetworksResponse = {
3376
3553
  decode(input, length) {
3377
3554
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
3378
3555
  const end = length === undefined ? reader.len : reader.pos + length;
3379
- const message = createBaseListNetworksResponse();
3556
+ const message = createBaseListAggregatedNetworksRequest();
3380
3557
  let writer = undefined;
3381
3558
  while (reader.pos < end) {
3382
3559
  const tag = reader.uint32();
@@ -3384,13 +3561,19 @@ exports.ListNetworksResponse = {
3384
3561
  case 1: {
3385
3562
  if (tag !== 10)
3386
3563
  break;
3387
- message.items.push(exports.Network.decode(reader, reader.uint32()));
3564
+ message.parentId = reader.string();
3388
3565
  continue;
3389
3566
  }
3390
3567
  case 2: {
3391
- if (tag !== 18)
3568
+ if (tag !== 16)
3392
3569
  break;
3393
- message.nextPageToken = reader.string();
3570
+ message.pageSize = index_js_1.Long.fromValue(reader.int64());
3571
+ continue;
3572
+ }
3573
+ case 3: {
3574
+ if (tag !== 26)
3575
+ break;
3576
+ message.pageToken = reader.string();
3394
3577
  continue;
3395
3578
  }
3396
3579
  default:
@@ -3412,68 +3595,212 @@ exports.ListNetworksResponse = {
3412
3595
  return message;
3413
3596
  },
3414
3597
  fromJSON(object) {
3415
- return applyListNetworksResponseCustom({
3416
- $type: "nebius.vpc.v1.ListNetworksResponse",
3417
- items: globalThis.Array.isArray(object?.items ?? object?.items)
3418
- ? (object.items ?? object.items).map((e) => exports.Network.fromJSON(e))
3419
- : [],
3420
- nextPageToken: (0, index_js_1.isSet)(object.nextPageToken ?? object.next_page_token)
3421
- ? String(object.nextPageToken ?? object.next_page_token)
3598
+ return applyListAggregatedNetworksRequestCustom({
3599
+ $type: "nebius.vpc.v1.ListAggregatedNetworksRequest",
3600
+ parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
3601
+ ? String(object.parentId ?? object.parent_id)
3602
+ : "",
3603
+ pageSize: (0, index_js_1.isSet)(object.pageSize ?? object.page_size)
3604
+ ? index_js_1.Long.fromValue(object.pageSize ?? object.page_size)
3605
+ : index_js_1.Long.ZERO,
3606
+ pageToken: (0, index_js_1.isSet)(object.pageToken ?? object.page_token)
3607
+ ? String(object.pageToken ?? object.page_token)
3422
3608
  : "",
3423
3609
  });
3424
3610
  },
3425
3611
  toJSON(message, use = "json") {
3426
3612
  const obj = {};
3427
3613
  const pick = (json, pb) => (use === "json" ? json : pb);
3428
- if (message.items?.length) {
3429
- obj[pick("items", "items")] = message.items.map((e) => e ? exports.Network.toJSON(e, use) : undefined);
3614
+ if (message.parentId !== "") {
3615
+ obj[pick("parentId", "parent_id")] = message.parentId;
3430
3616
  }
3431
- if (message.nextPageToken !== "") {
3432
- obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
3617
+ if (!message.pageSize?.isZero?.()) {
3618
+ obj[pick("pageSize", "page_size")] = (message.pageSize || index_js_1.Long.ZERO).toString();
3619
+ }
3620
+ if (message.pageToken !== "") {
3621
+ obj[pick("pageToken", "page_token")] = message.pageToken;
3433
3622
  }
3434
3623
  return obj;
3435
3624
  },
3436
3625
  create(base) {
3437
- return exports.ListNetworksResponse.fromPartial(base ?? {});
3626
+ return exports.ListAggregatedNetworksRequest.fromPartial(base ?? {});
3438
3627
  },
3439
3628
  fromPartial(object) {
3440
- const message = createBaseListNetworksResponse();
3441
- message.items = object.items?.map((e) => exports.Network.fromPartial(e)) || [];
3442
- message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
3443
- ? object.nextPageToken
3629
+ const message = createBaseListAggregatedNetworksRequest();
3630
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
3631
+ ? object.parentId
3632
+ : "";
3633
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
3634
+ ? index_js_1.Long.fromValue(object.pageSize)
3635
+ : index_js_1.Long.ZERO;
3636
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
3637
+ ? object.pageToken
3444
3638
  : "";
3445
3639
  return message;
3446
3640
  },
3447
3641
  };
3448
- protobuf_js_1.protoRegistry.registerMessage(exports.ListNetworksResponse);
3449
- function ListNetworksResponseCustomInspect() {
3642
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListAggregatedNetworksRequest);
3643
+ function ListAggregatedNetworksRequestCustomInspect() {
3450
3644
  const parts = [];
3451
- if ((this.items?.length ?? 0) !== 0)
3452
- parts.push("items" + "=" + (0, util_1.inspect)(this.items));
3453
- if (this.nextPageToken !== "")
3454
- parts.push("nextPageToken" + "=" + (0, util_1.inspect)(this.nextPageToken));
3645
+ if (this.parentId !== "")
3646
+ parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
3647
+ if (!this.pageSize?.isZero?.())
3648
+ parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
3649
+ if (this.pageToken !== "")
3650
+ parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
3455
3651
  return `${this.$type}(${parts.join(", ")})`;
3456
3652
  }
3457
- function ListNetworksResponseCustomJson() {
3653
+ function ListAggregatedNetworksRequestCustomJson() {
3458
3654
  const obj = {
3459
3655
  type: this.$type,
3460
3656
  };
3461
- if ((this.items?.length ?? 0) !== 0)
3462
- obj.items = (0, logging_js_1.inspectJson)(this.items);
3463
- if (this.nextPageToken !== "")
3464
- obj.nextPageToken = (0, logging_js_1.inspectJson)(this.nextPageToken);
3657
+ if (this.parentId !== "")
3658
+ obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
3659
+ if (!this.pageSize?.isZero?.())
3660
+ obj.pageSize = (0, logging_js_1.inspectJson)(this.pageSize);
3661
+ if (this.pageToken !== "")
3662
+ obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
3465
3663
  return obj;
3466
3664
  }
3467
- function applyListNetworksResponseCustom(message) {
3468
- message[logging_js_1.custom] = ListNetworksResponseCustomInspect;
3469
- message[logging_js_1.customJson] = ListNetworksResponseCustomJson;
3470
- return (0, index_js_1.attachMessageDescriptor)(message, exports.ListNetworksResponse.$descriptor);
3665
+ function applyListAggregatedNetworksRequestCustom(message) {
3666
+ message[logging_js_1.custom] = ListAggregatedNetworksRequestCustomInspect;
3667
+ message[logging_js_1.customJson] = ListAggregatedNetworksRequestCustomJson;
3668
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.ListAggregatedNetworksRequest.$descriptor);
3471
3669
  }
3472
- function createBaseListNetworksResponse() {
3670
+ function createBaseListAggregatedNetworksRequest() {
3473
3671
  const message = {
3474
- $type: "nebius.vpc.v1.ListNetworksResponse",
3475
- items: [],
3476
- nextPageToken: "",
3672
+ $type: "nebius.vpc.v1.ListAggregatedNetworksRequest",
3673
+ parentId: "",
3674
+ pageSize: index_js_1.Long.ZERO,
3675
+ pageToken: "",
3676
+ };
3677
+ return applyListAggregatedNetworksRequestCustom(message);
3678
+ }
3679
+ const ListNetworksResponse_MESSAGE_DESCRIPTOR = {
3680
+ fields: {
3681
+ "items": { pbName: "items", repeated: true, message: () => exports.Network.$descriptor },
3682
+ "nextPageToken": { pbName: "next_page_token", scalarType: 9 },
3683
+ },
3684
+ };
3685
+ /** Encodes, decodes, converts, and creates {@link ListNetworksResponse} messages. */
3686
+ exports.ListNetworksResponse = {
3687
+ $type: "nebius.vpc.v1.ListNetworksResponse",
3688
+ $descriptor: ListNetworksResponse_MESSAGE_DESCRIPTOR,
3689
+ encode(message, writer = new index_js_1.BinaryWriter()) {
3690
+ for (const v of (message.items ?? [])) {
3691
+ const w = writer.uint32(10).fork();
3692
+ exports.Network.encode(v, w);
3693
+ w.join();
3694
+ }
3695
+ if (message.nextPageToken !== "") {
3696
+ writer.uint32(18).string(message.nextPageToken);
3697
+ }
3698
+ if (message[index_js_1.unknownFieldsSymbol]) {
3699
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
3700
+ }
3701
+ return writer;
3702
+ },
3703
+ decode(input, length) {
3704
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
3705
+ const end = length === undefined ? reader.len : reader.pos + length;
3706
+ const message = createBaseListNetworksResponse();
3707
+ let writer = undefined;
3708
+ while (reader.pos < end) {
3709
+ const tag = reader.uint32();
3710
+ switch (tag >>> 3) {
3711
+ case 1: {
3712
+ if (tag !== 10)
3713
+ break;
3714
+ message.items.push(exports.Network.decode(reader, reader.uint32()));
3715
+ continue;
3716
+ }
3717
+ case 2: {
3718
+ if (tag !== 18)
3719
+ break;
3720
+ message.nextPageToken = reader.string();
3721
+ continue;
3722
+ }
3723
+ default:
3724
+ break;
3725
+ }
3726
+ if ((tag & 7) === 4 || tag === 0) {
3727
+ break;
3728
+ }
3729
+ {
3730
+ if (!writer)
3731
+ writer = new index_js_1.BinaryWriter();
3732
+ const skipped = reader.skip(tag & 7, tag >>> 3);
3733
+ writer.uint32(tag).raw(skipped);
3734
+ }
3735
+ }
3736
+ if (writer) {
3737
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
3738
+ }
3739
+ return message;
3740
+ },
3741
+ fromJSON(object) {
3742
+ return applyListNetworksResponseCustom({
3743
+ $type: "nebius.vpc.v1.ListNetworksResponse",
3744
+ items: globalThis.Array.isArray(object?.items ?? object?.items)
3745
+ ? (object.items ?? object.items).map((e) => exports.Network.fromJSON(e))
3746
+ : [],
3747
+ nextPageToken: (0, index_js_1.isSet)(object.nextPageToken ?? object.next_page_token)
3748
+ ? String(object.nextPageToken ?? object.next_page_token)
3749
+ : "",
3750
+ });
3751
+ },
3752
+ toJSON(message, use = "json") {
3753
+ const obj = {};
3754
+ const pick = (json, pb) => (use === "json" ? json : pb);
3755
+ if (message.items?.length) {
3756
+ obj[pick("items", "items")] = message.items.map((e) => e ? exports.Network.toJSON(e, use) : undefined);
3757
+ }
3758
+ if (message.nextPageToken !== "") {
3759
+ obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
3760
+ }
3761
+ return obj;
3762
+ },
3763
+ create(base) {
3764
+ return exports.ListNetworksResponse.fromPartial(base ?? {});
3765
+ },
3766
+ fromPartial(object) {
3767
+ const message = createBaseListNetworksResponse();
3768
+ message.items = object.items?.map((e) => exports.Network.fromPartial(e)) || [];
3769
+ message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
3770
+ ? object.nextPageToken
3771
+ : "";
3772
+ return message;
3773
+ },
3774
+ };
3775
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListNetworksResponse);
3776
+ function ListNetworksResponseCustomInspect() {
3777
+ const parts = [];
3778
+ if ((this.items?.length ?? 0) !== 0)
3779
+ parts.push("items" + "=" + (0, util_1.inspect)(this.items));
3780
+ if (this.nextPageToken !== "")
3781
+ parts.push("nextPageToken" + "=" + (0, util_1.inspect)(this.nextPageToken));
3782
+ return `${this.$type}(${parts.join(", ")})`;
3783
+ }
3784
+ function ListNetworksResponseCustomJson() {
3785
+ const obj = {
3786
+ type: this.$type,
3787
+ };
3788
+ if ((this.items?.length ?? 0) !== 0)
3789
+ obj.items = (0, logging_js_1.inspectJson)(this.items);
3790
+ if (this.nextPageToken !== "")
3791
+ obj.nextPageToken = (0, logging_js_1.inspectJson)(this.nextPageToken);
3792
+ return obj;
3793
+ }
3794
+ function applyListNetworksResponseCustom(message) {
3795
+ message[logging_js_1.custom] = ListNetworksResponseCustomInspect;
3796
+ message[logging_js_1.customJson] = ListNetworksResponseCustomJson;
3797
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.ListNetworksResponse.$descriptor);
3798
+ }
3799
+ function createBaseListNetworksResponse() {
3800
+ const message = {
3801
+ $type: "nebius.vpc.v1.ListNetworksResponse",
3802
+ items: [],
3803
+ nextPageToken: "",
3477
3804
  };
3478
3805
  return applyListNetworksResponseCustom(message);
3479
3806
  }
@@ -3998,6 +4325,17 @@ exports.NetworkServiceServiceDescription = {
3998
4325
  responseSerialize: (value) => Buffer.from(exports.ListNetworksResponse.encode(value).finish()),
3999
4326
  responseDeserialize: (value) => exports.ListNetworksResponse.decode(value),
4000
4327
  },
4328
+ listAggregated: {
4329
+ path: "/nebius.vpc.v1.NetworkService/ListAggregated",
4330
+ requestStream: false,
4331
+ responseStream: false,
4332
+ requestSerialize: (value) => Buffer.from(exports.ListAggregatedNetworksRequest.encode(value).finish()),
4333
+ requestDescriptor: () => exports.ListAggregatedNetworksRequest.$descriptor,
4334
+ sendResetMask: false,
4335
+ requestDeserialize: (value) => exports.ListAggregatedNetworksRequest.decode(value),
4336
+ responseSerialize: (value) => Buffer.from(exports.ListNetworksResponse.encode(value).finish()),
4337
+ responseDeserialize: (value) => exports.ListNetworksResponse.decode(value),
4338
+ },
4001
4339
  create: {
4002
4340
  path: "/nebius.vpc.v1.NetworkService/Create",
4003
4341
  requestStream: false,
@@ -4103,6 +4441,18 @@ class NetworkService {
4103
4441
  const deserialize = spec.responseDeserialize;
4104
4442
  return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
4105
4443
  }
4444
+ /**
4445
+ * Lists networks across regions for the specified parent.
4446
+ *
4447
+ */
4448
+ listAggregated(...args) {
4449
+ const spec = this.spec.listAggregated;
4450
+ const request = args[0];
4451
+ const metadata = (args.length > 1 ? args[1] : undefined);
4452
+ const options = (args.length > 2 ? args[2] : undefined);
4453
+ const deserialize = spec.responseDeserialize;
4454
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
4455
+ }
4106
4456
  /**
4107
4457
  * Creates a new network with the specified configuration.
4108
4458
  *
@@ -5316,6 +5666,158 @@ function createBaseListPoolsRequest() {
5316
5666
  };
5317
5667
  return applyListPoolsRequestCustom(message);
5318
5668
  }
5669
+ const ListAggregatedPoolsRequest_MESSAGE_DESCRIPTOR = {
5670
+ fields: {
5671
+ "parentId": { pbName: "parent_id", scalarType: 9 },
5672
+ "pageSize": { pbName: "page_size", scalarType: 3 },
5673
+ "pageToken": { pbName: "page_token", scalarType: 9 },
5674
+ },
5675
+ };
5676
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedPoolsRequest} messages. */
5677
+ exports.ListAggregatedPoolsRequest = {
5678
+ $type: "nebius.vpc.v1.ListAggregatedPoolsRequest",
5679
+ $descriptor: ListAggregatedPoolsRequest_MESSAGE_DESCRIPTOR,
5680
+ encode(message, writer = new index_js_1.BinaryWriter()) {
5681
+ if (message.parentId !== "") {
5682
+ writer.uint32(10).string(message.parentId);
5683
+ }
5684
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
5685
+ writer.uint32(16).int64(message.pageSize.toString());
5686
+ }
5687
+ if (message.pageToken !== "") {
5688
+ writer.uint32(26).string(message.pageToken);
5689
+ }
5690
+ if (message[index_js_1.unknownFieldsSymbol]) {
5691
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
5692
+ }
5693
+ return writer;
5694
+ },
5695
+ decode(input, length) {
5696
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
5697
+ const end = length === undefined ? reader.len : reader.pos + length;
5698
+ const message = createBaseListAggregatedPoolsRequest();
5699
+ let writer = undefined;
5700
+ while (reader.pos < end) {
5701
+ const tag = reader.uint32();
5702
+ switch (tag >>> 3) {
5703
+ case 1: {
5704
+ if (tag !== 10)
5705
+ break;
5706
+ message.parentId = reader.string();
5707
+ continue;
5708
+ }
5709
+ case 2: {
5710
+ if (tag !== 16)
5711
+ break;
5712
+ message.pageSize = index_js_1.Long.fromValue(reader.int64());
5713
+ continue;
5714
+ }
5715
+ case 3: {
5716
+ if (tag !== 26)
5717
+ break;
5718
+ message.pageToken = reader.string();
5719
+ continue;
5720
+ }
5721
+ default:
5722
+ break;
5723
+ }
5724
+ if ((tag & 7) === 4 || tag === 0) {
5725
+ break;
5726
+ }
5727
+ {
5728
+ if (!writer)
5729
+ writer = new index_js_1.BinaryWriter();
5730
+ const skipped = reader.skip(tag & 7, tag >>> 3);
5731
+ writer.uint32(tag).raw(skipped);
5732
+ }
5733
+ }
5734
+ if (writer) {
5735
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
5736
+ }
5737
+ return message;
5738
+ },
5739
+ fromJSON(object) {
5740
+ return applyListAggregatedPoolsRequestCustom({
5741
+ $type: "nebius.vpc.v1.ListAggregatedPoolsRequest",
5742
+ parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
5743
+ ? String(object.parentId ?? object.parent_id)
5744
+ : "",
5745
+ pageSize: (0, index_js_1.isSet)(object.pageSize ?? object.page_size)
5746
+ ? index_js_1.Long.fromValue(object.pageSize ?? object.page_size)
5747
+ : index_js_1.Long.ZERO,
5748
+ pageToken: (0, index_js_1.isSet)(object.pageToken ?? object.page_token)
5749
+ ? String(object.pageToken ?? object.page_token)
5750
+ : "",
5751
+ });
5752
+ },
5753
+ toJSON(message, use = "json") {
5754
+ const obj = {};
5755
+ const pick = (json, pb) => (use === "json" ? json : pb);
5756
+ if (message.parentId !== "") {
5757
+ obj[pick("parentId", "parent_id")] = message.parentId;
5758
+ }
5759
+ if (!message.pageSize?.isZero?.()) {
5760
+ obj[pick("pageSize", "page_size")] = (message.pageSize || index_js_1.Long.ZERO).toString();
5761
+ }
5762
+ if (message.pageToken !== "") {
5763
+ obj[pick("pageToken", "page_token")] = message.pageToken;
5764
+ }
5765
+ return obj;
5766
+ },
5767
+ create(base) {
5768
+ return exports.ListAggregatedPoolsRequest.fromPartial(base ?? {});
5769
+ },
5770
+ fromPartial(object) {
5771
+ const message = createBaseListAggregatedPoolsRequest();
5772
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
5773
+ ? object.parentId
5774
+ : "";
5775
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
5776
+ ? index_js_1.Long.fromValue(object.pageSize)
5777
+ : index_js_1.Long.ZERO;
5778
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
5779
+ ? object.pageToken
5780
+ : "";
5781
+ return message;
5782
+ },
5783
+ };
5784
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListAggregatedPoolsRequest);
5785
+ function ListAggregatedPoolsRequestCustomInspect() {
5786
+ const parts = [];
5787
+ if (this.parentId !== "")
5788
+ parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
5789
+ if (!this.pageSize?.isZero?.())
5790
+ parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
5791
+ if (this.pageToken !== "")
5792
+ parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
5793
+ return `${this.$type}(${parts.join(", ")})`;
5794
+ }
5795
+ function ListAggregatedPoolsRequestCustomJson() {
5796
+ const obj = {
5797
+ type: this.$type,
5798
+ };
5799
+ if (this.parentId !== "")
5800
+ obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
5801
+ if (!this.pageSize?.isZero?.())
5802
+ obj.pageSize = (0, logging_js_1.inspectJson)(this.pageSize);
5803
+ if (this.pageToken !== "")
5804
+ obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
5805
+ return obj;
5806
+ }
5807
+ function applyListAggregatedPoolsRequestCustom(message) {
5808
+ message[logging_js_1.custom] = ListAggregatedPoolsRequestCustomInspect;
5809
+ message[logging_js_1.customJson] = ListAggregatedPoolsRequestCustomJson;
5810
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.ListAggregatedPoolsRequest.$descriptor);
5811
+ }
5812
+ function createBaseListAggregatedPoolsRequest() {
5813
+ const message = {
5814
+ $type: "nebius.vpc.v1.ListAggregatedPoolsRequest",
5815
+ parentId: "",
5816
+ pageSize: index_js_1.Long.ZERO,
5817
+ pageToken: "",
5818
+ };
5819
+ return applyListAggregatedPoolsRequestCustom(message);
5820
+ }
5319
5821
  const ListPoolsBySourcePoolRequest_MESSAGE_DESCRIPTOR = {
5320
5822
  fields: {
5321
5823
  "poolId": { pbName: "pool_id", scalarType: 9 },
@@ -6009,6 +6511,17 @@ exports.PoolServiceServiceDescription = {
6009
6511
  responseSerialize: (value) => Buffer.from(exports.ListPoolsResponse.encode(value).finish()),
6010
6512
  responseDeserialize: (value) => exports.ListPoolsResponse.decode(value),
6011
6513
  },
6514
+ listAggregated: {
6515
+ path: "/nebius.vpc.v1.PoolService/ListAggregated",
6516
+ requestStream: false,
6517
+ responseStream: false,
6518
+ requestSerialize: (value) => Buffer.from(exports.ListAggregatedPoolsRequest.encode(value).finish()),
6519
+ requestDescriptor: () => exports.ListAggregatedPoolsRequest.$descriptor,
6520
+ sendResetMask: false,
6521
+ requestDeserialize: (value) => exports.ListAggregatedPoolsRequest.decode(value),
6522
+ responseSerialize: (value) => Buffer.from(exports.ListPoolsResponse.encode(value).finish()),
6523
+ responseDeserialize: (value) => exports.ListPoolsResponse.decode(value),
6524
+ },
6012
6525
  listBySourcePool: {
6013
6526
  path: "/nebius.vpc.v1.PoolService/ListBySourcePool",
6014
6527
  requestStream: false,
@@ -6114,6 +6627,18 @@ class PoolService {
6114
6627
  const deserialize = spec.responseDeserialize;
6115
6628
  return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
6116
6629
  }
6630
+ /**
6631
+ * Lists pools across regions for the specified parent.
6632
+ *
6633
+ */
6634
+ listAggregated(...args) {
6635
+ const spec = this.spec.listAggregated;
6636
+ const request = args[0];
6637
+ const metadata = (args.length > 1 ? args[1] : undefined);
6638
+ const options = (args.length > 2 ? args[2] : undefined);
6639
+ const deserialize = spec.responseDeserialize;
6640
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
6641
+ }
6117
6642
  /**
6118
6643
  * Lists pools that use a specified pool as their source.
6119
6644
  *
@@ -8240,8 +8765,140 @@ exports.GetRouteTableByNameRequest = {
8240
8765
  if (message.parentId !== "") {
8241
8766
  writer.uint32(10).string(message.parentId);
8242
8767
  }
8243
- if (message.name !== "") {
8244
- writer.uint32(18).string(message.name);
8768
+ if (message.name !== "") {
8769
+ writer.uint32(18).string(message.name);
8770
+ }
8771
+ if (message[index_js_1.unknownFieldsSymbol]) {
8772
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
8773
+ }
8774
+ return writer;
8775
+ },
8776
+ decode(input, length) {
8777
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
8778
+ const end = length === undefined ? reader.len : reader.pos + length;
8779
+ const message = createBaseGetRouteTableByNameRequest();
8780
+ let writer = undefined;
8781
+ while (reader.pos < end) {
8782
+ const tag = reader.uint32();
8783
+ switch (tag >>> 3) {
8784
+ case 1: {
8785
+ if (tag !== 10)
8786
+ break;
8787
+ message.parentId = reader.string();
8788
+ continue;
8789
+ }
8790
+ case 2: {
8791
+ if (tag !== 18)
8792
+ break;
8793
+ message.name = reader.string();
8794
+ continue;
8795
+ }
8796
+ default:
8797
+ break;
8798
+ }
8799
+ if ((tag & 7) === 4 || tag === 0) {
8800
+ break;
8801
+ }
8802
+ {
8803
+ if (!writer)
8804
+ writer = new index_js_1.BinaryWriter();
8805
+ const skipped = reader.skip(tag & 7, tag >>> 3);
8806
+ writer.uint32(tag).raw(skipped);
8807
+ }
8808
+ }
8809
+ if (writer) {
8810
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
8811
+ }
8812
+ return message;
8813
+ },
8814
+ fromJSON(object) {
8815
+ return applyGetRouteTableByNameRequestCustom({
8816
+ $type: "nebius.vpc.v1.GetRouteTableByNameRequest",
8817
+ parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
8818
+ ? String(object.parentId ?? object.parent_id)
8819
+ : "",
8820
+ name: (0, index_js_1.isSet)(object.name ?? object.name)
8821
+ ? String(object.name ?? object.name)
8822
+ : "",
8823
+ });
8824
+ },
8825
+ toJSON(message, use = "json") {
8826
+ const obj = {};
8827
+ const pick = (json, pb) => (use === "json" ? json : pb);
8828
+ if (message.parentId !== "") {
8829
+ obj[pick("parentId", "parent_id")] = message.parentId;
8830
+ }
8831
+ if (message.name !== "") {
8832
+ obj[pick("name", "name")] = message.name;
8833
+ }
8834
+ return obj;
8835
+ },
8836
+ create(base) {
8837
+ return exports.GetRouteTableByNameRequest.fromPartial(base ?? {});
8838
+ },
8839
+ fromPartial(object) {
8840
+ const message = createBaseGetRouteTableByNameRequest();
8841
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
8842
+ ? object.parentId
8843
+ : "";
8844
+ message.name = (object.name !== undefined && object.name !== null)
8845
+ ? object.name
8846
+ : "";
8847
+ return message;
8848
+ },
8849
+ };
8850
+ protobuf_js_1.protoRegistry.registerMessage(exports.GetRouteTableByNameRequest);
8851
+ function GetRouteTableByNameRequestCustomInspect() {
8852
+ const parts = [];
8853
+ if (this.parentId !== "")
8854
+ parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
8855
+ if (this.name !== "")
8856
+ parts.push("name" + "=" + (0, util_1.inspect)(this.name));
8857
+ return `${this.$type}(${parts.join(", ")})`;
8858
+ }
8859
+ function GetRouteTableByNameRequestCustomJson() {
8860
+ const obj = {
8861
+ type: this.$type,
8862
+ };
8863
+ if (this.parentId !== "")
8864
+ obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
8865
+ if (this.name !== "")
8866
+ obj.name = (0, logging_js_1.inspectJson)(this.name);
8867
+ return obj;
8868
+ }
8869
+ function applyGetRouteTableByNameRequestCustom(message) {
8870
+ message[logging_js_1.custom] = GetRouteTableByNameRequestCustomInspect;
8871
+ message[logging_js_1.customJson] = GetRouteTableByNameRequestCustomJson;
8872
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.GetRouteTableByNameRequest.$descriptor);
8873
+ }
8874
+ function createBaseGetRouteTableByNameRequest() {
8875
+ const message = {
8876
+ $type: "nebius.vpc.v1.GetRouteTableByNameRequest",
8877
+ parentId: "",
8878
+ name: "",
8879
+ };
8880
+ return applyGetRouteTableByNameRequestCustom(message);
8881
+ }
8882
+ const ListRouteTablesRequest_MESSAGE_DESCRIPTOR = {
8883
+ fields: {
8884
+ "parentId": { pbName: "parent_id", scalarType: 9 },
8885
+ "pageSize": { pbName: "page_size", scalarType: 3 },
8886
+ "pageToken": { pbName: "page_token", scalarType: 9 },
8887
+ },
8888
+ };
8889
+ /** Encodes, decodes, converts, and creates {@link ListRouteTablesRequest} messages. */
8890
+ exports.ListRouteTablesRequest = {
8891
+ $type: "nebius.vpc.v1.ListRouteTablesRequest",
8892
+ $descriptor: ListRouteTablesRequest_MESSAGE_DESCRIPTOR,
8893
+ encode(message, writer = new index_js_1.BinaryWriter()) {
8894
+ if (message.parentId !== "") {
8895
+ writer.uint32(10).string(message.parentId);
8896
+ }
8897
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
8898
+ writer.uint32(16).int64(message.pageSize.toString());
8899
+ }
8900
+ if (message.pageToken !== "") {
8901
+ writer.uint32(26).string(message.pageToken);
8245
8902
  }
8246
8903
  if (message[index_js_1.unknownFieldsSymbol]) {
8247
8904
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
@@ -8251,7 +8908,7 @@ exports.GetRouteTableByNameRequest = {
8251
8908
  decode(input, length) {
8252
8909
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
8253
8910
  const end = length === undefined ? reader.len : reader.pos + length;
8254
- const message = createBaseGetRouteTableByNameRequest();
8911
+ const message = createBaseListRouteTablesRequest();
8255
8912
  let writer = undefined;
8256
8913
  while (reader.pos < end) {
8257
8914
  const tag = reader.uint32();
@@ -8263,9 +8920,15 @@ exports.GetRouteTableByNameRequest = {
8263
8920
  continue;
8264
8921
  }
8265
8922
  case 2: {
8266
- if (tag !== 18)
8923
+ if (tag !== 16)
8267
8924
  break;
8268
- message.name = reader.string();
8925
+ message.pageSize = index_js_1.Long.fromValue(reader.int64());
8926
+ continue;
8927
+ }
8928
+ case 3: {
8929
+ if (tag !== 26)
8930
+ break;
8931
+ message.pageToken = reader.string();
8269
8932
  continue;
8270
8933
  }
8271
8934
  default:
@@ -8287,13 +8950,16 @@ exports.GetRouteTableByNameRequest = {
8287
8950
  return message;
8288
8951
  },
8289
8952
  fromJSON(object) {
8290
- return applyGetRouteTableByNameRequestCustom({
8291
- $type: "nebius.vpc.v1.GetRouteTableByNameRequest",
8953
+ return applyListRouteTablesRequestCustom({
8954
+ $type: "nebius.vpc.v1.ListRouteTablesRequest",
8292
8955
  parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
8293
8956
  ? String(object.parentId ?? object.parent_id)
8294
8957
  : "",
8295
- name: (0, index_js_1.isSet)(object.name ?? object.name)
8296
- ? String(object.name ?? object.name)
8958
+ pageSize: (0, index_js_1.isSet)(object.pageSize ?? object.page_size)
8959
+ ? index_js_1.Long.fromValue(object.pageSize ?? object.page_size)
8960
+ : index_js_1.Long.ZERO,
8961
+ pageToken: (0, index_js_1.isSet)(object.pageToken ?? object.page_token)
8962
+ ? String(object.pageToken ?? object.page_token)
8297
8963
  : "",
8298
8964
  });
8299
8965
  },
@@ -8303,68 +8969,79 @@ exports.GetRouteTableByNameRequest = {
8303
8969
  if (message.parentId !== "") {
8304
8970
  obj[pick("parentId", "parent_id")] = message.parentId;
8305
8971
  }
8306
- if (message.name !== "") {
8307
- obj[pick("name", "name")] = message.name;
8972
+ if (!message.pageSize?.isZero?.()) {
8973
+ obj[pick("pageSize", "page_size")] = (message.pageSize || index_js_1.Long.ZERO).toString();
8974
+ }
8975
+ if (message.pageToken !== "") {
8976
+ obj[pick("pageToken", "page_token")] = message.pageToken;
8308
8977
  }
8309
8978
  return obj;
8310
8979
  },
8311
8980
  create(base) {
8312
- return exports.GetRouteTableByNameRequest.fromPartial(base ?? {});
8981
+ return exports.ListRouteTablesRequest.fromPartial(base ?? {});
8313
8982
  },
8314
8983
  fromPartial(object) {
8315
- const message = createBaseGetRouteTableByNameRequest();
8984
+ const message = createBaseListRouteTablesRequest();
8316
8985
  message.parentId = (object.parentId !== undefined && object.parentId !== null)
8317
8986
  ? object.parentId
8318
8987
  : "";
8319
- message.name = (object.name !== undefined && object.name !== null)
8320
- ? object.name
8988
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
8989
+ ? index_js_1.Long.fromValue(object.pageSize)
8990
+ : index_js_1.Long.ZERO;
8991
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
8992
+ ? object.pageToken
8321
8993
  : "";
8322
8994
  return message;
8323
8995
  },
8324
8996
  };
8325
- protobuf_js_1.protoRegistry.registerMessage(exports.GetRouteTableByNameRequest);
8326
- function GetRouteTableByNameRequestCustomInspect() {
8997
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListRouteTablesRequest);
8998
+ function ListRouteTablesRequestCustomInspect() {
8327
8999
  const parts = [];
8328
9000
  if (this.parentId !== "")
8329
9001
  parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
8330
- if (this.name !== "")
8331
- parts.push("name" + "=" + (0, util_1.inspect)(this.name));
9002
+ if (!this.pageSize?.isZero?.())
9003
+ parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
9004
+ if (this.pageToken !== "")
9005
+ parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
8332
9006
  return `${this.$type}(${parts.join(", ")})`;
8333
9007
  }
8334
- function GetRouteTableByNameRequestCustomJson() {
9008
+ function ListRouteTablesRequestCustomJson() {
8335
9009
  const obj = {
8336
9010
  type: this.$type,
8337
9011
  };
8338
9012
  if (this.parentId !== "")
8339
9013
  obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
8340
- if (this.name !== "")
8341
- obj.name = (0, logging_js_1.inspectJson)(this.name);
9014
+ if (!this.pageSize?.isZero?.())
9015
+ obj.pageSize = (0, logging_js_1.inspectJson)(this.pageSize);
9016
+ if (this.pageToken !== "")
9017
+ obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
8342
9018
  return obj;
8343
9019
  }
8344
- function applyGetRouteTableByNameRequestCustom(message) {
8345
- message[logging_js_1.custom] = GetRouteTableByNameRequestCustomInspect;
8346
- message[logging_js_1.customJson] = GetRouteTableByNameRequestCustomJson;
8347
- return (0, index_js_1.attachMessageDescriptor)(message, exports.GetRouteTableByNameRequest.$descriptor);
9020
+ function applyListRouteTablesRequestCustom(message) {
9021
+ message[logging_js_1.custom] = ListRouteTablesRequestCustomInspect;
9022
+ message[logging_js_1.customJson] = ListRouteTablesRequestCustomJson;
9023
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.ListRouteTablesRequest.$descriptor);
8348
9024
  }
8349
- function createBaseGetRouteTableByNameRequest() {
9025
+ function createBaseListRouteTablesRequest() {
8350
9026
  const message = {
8351
- $type: "nebius.vpc.v1.GetRouteTableByNameRequest",
9027
+ $type: "nebius.vpc.v1.ListRouteTablesRequest",
8352
9028
  parentId: "",
8353
- name: "",
9029
+ pageSize: index_js_1.Long.ZERO,
9030
+ pageToken: "",
8354
9031
  };
8355
- return applyGetRouteTableByNameRequestCustom(message);
9032
+ return applyListRouteTablesRequestCustom(message);
8356
9033
  }
8357
- const ListRouteTablesRequest_MESSAGE_DESCRIPTOR = {
9034
+ const ListAggregatedRouteTablesRequest_MESSAGE_DESCRIPTOR = {
8358
9035
  fields: {
8359
9036
  "parentId": { pbName: "parent_id", scalarType: 9 },
8360
9037
  "pageSize": { pbName: "page_size", scalarType: 3 },
8361
9038
  "pageToken": { pbName: "page_token", scalarType: 9 },
8362
9039
  },
8363
9040
  };
8364
- /** Encodes, decodes, converts, and creates {@link ListRouteTablesRequest} messages. */
8365
- exports.ListRouteTablesRequest = {
8366
- $type: "nebius.vpc.v1.ListRouteTablesRequest",
8367
- $descriptor: ListRouteTablesRequest_MESSAGE_DESCRIPTOR,
9041
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedRouteTablesRequest} messages. */
9042
+ exports.ListAggregatedRouteTablesRequest = {
9043
+ $type: "nebius.vpc.v1.ListAggregatedRouteTablesRequest",
9044
+ $descriptor: ListAggregatedRouteTablesRequest_MESSAGE_DESCRIPTOR,
8368
9045
  encode(message, writer = new index_js_1.BinaryWriter()) {
8369
9046
  if (message.parentId !== "") {
8370
9047
  writer.uint32(10).string(message.parentId);
@@ -8383,7 +9060,7 @@ exports.ListRouteTablesRequest = {
8383
9060
  decode(input, length) {
8384
9061
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
8385
9062
  const end = length === undefined ? reader.len : reader.pos + length;
8386
- const message = createBaseListRouteTablesRequest();
9063
+ const message = createBaseListAggregatedRouteTablesRequest();
8387
9064
  let writer = undefined;
8388
9065
  while (reader.pos < end) {
8389
9066
  const tag = reader.uint32();
@@ -8425,8 +9102,8 @@ exports.ListRouteTablesRequest = {
8425
9102
  return message;
8426
9103
  },
8427
9104
  fromJSON(object) {
8428
- return applyListRouteTablesRequestCustom({
8429
- $type: "nebius.vpc.v1.ListRouteTablesRequest",
9105
+ return applyListAggregatedRouteTablesRequestCustom({
9106
+ $type: "nebius.vpc.v1.ListAggregatedRouteTablesRequest",
8430
9107
  parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
8431
9108
  ? String(object.parentId ?? object.parent_id)
8432
9109
  : "",
@@ -8453,10 +9130,10 @@ exports.ListRouteTablesRequest = {
8453
9130
  return obj;
8454
9131
  },
8455
9132
  create(base) {
8456
- return exports.ListRouteTablesRequest.fromPartial(base ?? {});
9133
+ return exports.ListAggregatedRouteTablesRequest.fromPartial(base ?? {});
8457
9134
  },
8458
9135
  fromPartial(object) {
8459
- const message = createBaseListRouteTablesRequest();
9136
+ const message = createBaseListAggregatedRouteTablesRequest();
8460
9137
  message.parentId = (object.parentId !== undefined && object.parentId !== null)
8461
9138
  ? object.parentId
8462
9139
  : "";
@@ -8469,8 +9146,8 @@ exports.ListRouteTablesRequest = {
8469
9146
  return message;
8470
9147
  },
8471
9148
  };
8472
- protobuf_js_1.protoRegistry.registerMessage(exports.ListRouteTablesRequest);
8473
- function ListRouteTablesRequestCustomInspect() {
9149
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListAggregatedRouteTablesRequest);
9150
+ function ListAggregatedRouteTablesRequestCustomInspect() {
8474
9151
  const parts = [];
8475
9152
  if (this.parentId !== "")
8476
9153
  parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
@@ -8480,7 +9157,7 @@ function ListRouteTablesRequestCustomInspect() {
8480
9157
  parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
8481
9158
  return `${this.$type}(${parts.join(", ")})`;
8482
9159
  }
8483
- function ListRouteTablesRequestCustomJson() {
9160
+ function ListAggregatedRouteTablesRequestCustomJson() {
8484
9161
  const obj = {
8485
9162
  type: this.$type,
8486
9163
  };
@@ -8492,19 +9169,19 @@ function ListRouteTablesRequestCustomJson() {
8492
9169
  obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
8493
9170
  return obj;
8494
9171
  }
8495
- function applyListRouteTablesRequestCustom(message) {
8496
- message[logging_js_1.custom] = ListRouteTablesRequestCustomInspect;
8497
- message[logging_js_1.customJson] = ListRouteTablesRequestCustomJson;
8498
- return (0, index_js_1.attachMessageDescriptor)(message, exports.ListRouteTablesRequest.$descriptor);
9172
+ function applyListAggregatedRouteTablesRequestCustom(message) {
9173
+ message[logging_js_1.custom] = ListAggregatedRouteTablesRequestCustomInspect;
9174
+ message[logging_js_1.customJson] = ListAggregatedRouteTablesRequestCustomJson;
9175
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.ListAggregatedRouteTablesRequest.$descriptor);
8499
9176
  }
8500
- function createBaseListRouteTablesRequest() {
9177
+ function createBaseListAggregatedRouteTablesRequest() {
8501
9178
  const message = {
8502
- $type: "nebius.vpc.v1.ListRouteTablesRequest",
9179
+ $type: "nebius.vpc.v1.ListAggregatedRouteTablesRequest",
8503
9180
  parentId: "",
8504
9181
  pageSize: index_js_1.Long.ZERO,
8505
9182
  pageToken: "",
8506
9183
  };
8507
- return applyListRouteTablesRequestCustom(message);
9184
+ return applyListAggregatedRouteTablesRequestCustom(message);
8508
9185
  }
8509
9186
  const ListRouteTablesByNetworkRequest_MESSAGE_DESCRIPTOR = {
8510
9187
  fields: {
@@ -9199,6 +9876,17 @@ exports.RouteTableServiceServiceDescription = {
9199
9876
  responseSerialize: (value) => Buffer.from(exports.ListRouteTablesResponse.encode(value).finish()),
9200
9877
  responseDeserialize: (value) => exports.ListRouteTablesResponse.decode(value),
9201
9878
  },
9879
+ listAggregated: {
9880
+ path: "/nebius.vpc.v1.RouteTableService/ListAggregated",
9881
+ requestStream: false,
9882
+ responseStream: false,
9883
+ requestSerialize: (value) => Buffer.from(exports.ListAggregatedRouteTablesRequest.encode(value).finish()),
9884
+ requestDescriptor: () => exports.ListAggregatedRouteTablesRequest.$descriptor,
9885
+ sendResetMask: false,
9886
+ requestDeserialize: (value) => exports.ListAggregatedRouteTablesRequest.decode(value),
9887
+ responseSerialize: (value) => Buffer.from(exports.ListRouteTablesResponse.encode(value).finish()),
9888
+ responseDeserialize: (value) => exports.ListRouteTablesResponse.decode(value),
9889
+ },
9202
9890
  listByNetwork: {
9203
9891
  path: "/nebius.vpc.v1.RouteTableService/ListByNetwork",
9204
9892
  requestStream: false,
@@ -9304,6 +9992,18 @@ class RouteTableService {
9304
9992
  const deserialize = spec.responseDeserialize;
9305
9993
  return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
9306
9994
  }
9995
+ /**
9996
+ * Lists route tables across regions for the specified parent.
9997
+ *
9998
+ */
9999
+ listAggregated(...args) {
10000
+ const spec = this.spec.listAggregated;
10001
+ const request = args[0];
10002
+ const metadata = (args.length > 1 ? args[1] : undefined);
10003
+ const options = (args.length > 2 ? args[2] : undefined);
10004
+ const deserialize = spec.responseDeserialize;
10005
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
10006
+ }
9307
10007
  /**
9308
10008
  * Lists route tables that belong to a specified network.
9309
10009
  *
@@ -11303,9 +12003,147 @@ exports.GetSecurityGroupByNameRequest = {
11303
12003
  continue;
11304
12004
  }
11305
12005
  case 2: {
11306
- if (tag !== 18)
12006
+ if (tag !== 18)
12007
+ break;
12008
+ message.name = reader.string();
12009
+ continue;
12010
+ }
12011
+ default:
12012
+ break;
12013
+ }
12014
+ if ((tag & 7) === 4 || tag === 0) {
12015
+ break;
12016
+ }
12017
+ {
12018
+ if (!writer)
12019
+ writer = new index_js_1.BinaryWriter();
12020
+ const skipped = reader.skip(tag & 7, tag >>> 3);
12021
+ writer.uint32(tag).raw(skipped);
12022
+ }
12023
+ }
12024
+ if (writer) {
12025
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
12026
+ }
12027
+ return message;
12028
+ },
12029
+ fromJSON(object) {
12030
+ return applyGetSecurityGroupByNameRequestCustom({
12031
+ $type: "nebius.vpc.v1.GetSecurityGroupByNameRequest",
12032
+ parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
12033
+ ? String(object.parentId ?? object.parent_id)
12034
+ : "",
12035
+ name: (0, index_js_1.isSet)(object.name ?? object.name)
12036
+ ? String(object.name ?? object.name)
12037
+ : "",
12038
+ });
12039
+ },
12040
+ toJSON(message, use = "json") {
12041
+ const obj = {};
12042
+ const pick = (json, pb) => (use === "json" ? json : pb);
12043
+ if (message.parentId !== "") {
12044
+ obj[pick("parentId", "parent_id")] = message.parentId;
12045
+ }
12046
+ if (message.name !== "") {
12047
+ obj[pick("name", "name")] = message.name;
12048
+ }
12049
+ return obj;
12050
+ },
12051
+ create(base) {
12052
+ return exports.GetSecurityGroupByNameRequest.fromPartial(base ?? {});
12053
+ },
12054
+ fromPartial(object) {
12055
+ const message = createBaseGetSecurityGroupByNameRequest();
12056
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
12057
+ ? object.parentId
12058
+ : "";
12059
+ message.name = (object.name !== undefined && object.name !== null)
12060
+ ? object.name
12061
+ : "";
12062
+ return message;
12063
+ },
12064
+ };
12065
+ protobuf_js_1.protoRegistry.registerMessage(exports.GetSecurityGroupByNameRequest);
12066
+ function GetSecurityGroupByNameRequestCustomInspect() {
12067
+ const parts = [];
12068
+ if (this.parentId !== "")
12069
+ parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
12070
+ if (this.name !== "")
12071
+ parts.push("name" + "=" + (0, util_1.inspect)(this.name));
12072
+ return `${this.$type}(${parts.join(", ")})`;
12073
+ }
12074
+ function GetSecurityGroupByNameRequestCustomJson() {
12075
+ const obj = {
12076
+ type: this.$type,
12077
+ };
12078
+ if (this.parentId !== "")
12079
+ obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
12080
+ if (this.name !== "")
12081
+ obj.name = (0, logging_js_1.inspectJson)(this.name);
12082
+ return obj;
12083
+ }
12084
+ function applyGetSecurityGroupByNameRequestCustom(message) {
12085
+ message[logging_js_1.custom] = GetSecurityGroupByNameRequestCustomInspect;
12086
+ message[logging_js_1.customJson] = GetSecurityGroupByNameRequestCustomJson;
12087
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.GetSecurityGroupByNameRequest.$descriptor);
12088
+ }
12089
+ function createBaseGetSecurityGroupByNameRequest() {
12090
+ const message = {
12091
+ $type: "nebius.vpc.v1.GetSecurityGroupByNameRequest",
12092
+ parentId: "",
12093
+ name: "",
12094
+ };
12095
+ return applyGetSecurityGroupByNameRequestCustom(message);
12096
+ }
12097
+ const ListSecurityGroupsRequest_MESSAGE_DESCRIPTOR = {
12098
+ fields: {
12099
+ "parentId": { pbName: "parent_id", scalarType: 9 },
12100
+ "pageSize": { pbName: "page_size", scalarType: 3 },
12101
+ "pageToken": { pbName: "page_token", scalarType: 9 },
12102
+ },
12103
+ };
12104
+ /** Encodes, decodes, converts, and creates {@link ListSecurityGroupsRequest} messages. */
12105
+ exports.ListSecurityGroupsRequest = {
12106
+ $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
12107
+ $descriptor: ListSecurityGroupsRequest_MESSAGE_DESCRIPTOR,
12108
+ encode(message, writer = new index_js_1.BinaryWriter()) {
12109
+ if (message.parentId !== "") {
12110
+ writer.uint32(10).string(message.parentId);
12111
+ }
12112
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
12113
+ writer.uint32(16).int64(message.pageSize.toString());
12114
+ }
12115
+ if (message.pageToken !== "") {
12116
+ writer.uint32(26).string(message.pageToken);
12117
+ }
12118
+ if (message[index_js_1.unknownFieldsSymbol]) {
12119
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
12120
+ }
12121
+ return writer;
12122
+ },
12123
+ decode(input, length) {
12124
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
12125
+ const end = length === undefined ? reader.len : reader.pos + length;
12126
+ const message = createBaseListSecurityGroupsRequest();
12127
+ let writer = undefined;
12128
+ while (reader.pos < end) {
12129
+ const tag = reader.uint32();
12130
+ switch (tag >>> 3) {
12131
+ case 1: {
12132
+ if (tag !== 10)
12133
+ break;
12134
+ message.parentId = reader.string();
12135
+ continue;
12136
+ }
12137
+ case 2: {
12138
+ if (tag !== 16)
11307
12139
  break;
11308
- message.name = reader.string();
12140
+ message.pageSize = index_js_1.Long.fromValue(reader.int64());
12141
+ continue;
12142
+ }
12143
+ case 3: {
12144
+ if (tag !== 26)
12145
+ break;
12146
+ message.pageToken = reader.string();
11309
12147
  continue;
11310
12148
  }
11311
12149
  default:
@@ -11327,13 +12165,16 @@ exports.GetSecurityGroupByNameRequest = {
11327
12165
  return message;
11328
12166
  },
11329
12167
  fromJSON(object) {
11330
- return applyGetSecurityGroupByNameRequestCustom({
11331
- $type: "nebius.vpc.v1.GetSecurityGroupByNameRequest",
12168
+ return applyListSecurityGroupsRequestCustom({
12169
+ $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
11332
12170
  parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
11333
12171
  ? String(object.parentId ?? object.parent_id)
11334
12172
  : "",
11335
- name: (0, index_js_1.isSet)(object.name ?? object.name)
11336
- ? String(object.name ?? object.name)
12173
+ pageSize: (0, index_js_1.isSet)(object.pageSize ?? object.page_size)
12174
+ ? index_js_1.Long.fromValue(object.pageSize ?? object.page_size)
12175
+ : index_js_1.Long.ZERO,
12176
+ pageToken: (0, index_js_1.isSet)(object.pageToken ?? object.page_token)
12177
+ ? String(object.pageToken ?? object.page_token)
11337
12178
  : "",
11338
12179
  });
11339
12180
  },
@@ -11343,68 +12184,79 @@ exports.GetSecurityGroupByNameRequest = {
11343
12184
  if (message.parentId !== "") {
11344
12185
  obj[pick("parentId", "parent_id")] = message.parentId;
11345
12186
  }
11346
- if (message.name !== "") {
11347
- obj[pick("name", "name")] = message.name;
12187
+ if (!message.pageSize?.isZero?.()) {
12188
+ obj[pick("pageSize", "page_size")] = (message.pageSize || index_js_1.Long.ZERO).toString();
12189
+ }
12190
+ if (message.pageToken !== "") {
12191
+ obj[pick("pageToken", "page_token")] = message.pageToken;
11348
12192
  }
11349
12193
  return obj;
11350
12194
  },
11351
12195
  create(base) {
11352
- return exports.GetSecurityGroupByNameRequest.fromPartial(base ?? {});
12196
+ return exports.ListSecurityGroupsRequest.fromPartial(base ?? {});
11353
12197
  },
11354
12198
  fromPartial(object) {
11355
- const message = createBaseGetSecurityGroupByNameRequest();
12199
+ const message = createBaseListSecurityGroupsRequest();
11356
12200
  message.parentId = (object.parentId !== undefined && object.parentId !== null)
11357
12201
  ? object.parentId
11358
12202
  : "";
11359
- message.name = (object.name !== undefined && object.name !== null)
11360
- ? object.name
12203
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
12204
+ ? index_js_1.Long.fromValue(object.pageSize)
12205
+ : index_js_1.Long.ZERO;
12206
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
12207
+ ? object.pageToken
11361
12208
  : "";
11362
12209
  return message;
11363
12210
  },
11364
12211
  };
11365
- protobuf_js_1.protoRegistry.registerMessage(exports.GetSecurityGroupByNameRequest);
11366
- function GetSecurityGroupByNameRequestCustomInspect() {
12212
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListSecurityGroupsRequest);
12213
+ function ListSecurityGroupsRequestCustomInspect() {
11367
12214
  const parts = [];
11368
12215
  if (this.parentId !== "")
11369
12216
  parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
11370
- if (this.name !== "")
11371
- parts.push("name" + "=" + (0, util_1.inspect)(this.name));
12217
+ if (!this.pageSize?.isZero?.())
12218
+ parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
12219
+ if (this.pageToken !== "")
12220
+ parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
11372
12221
  return `${this.$type}(${parts.join(", ")})`;
11373
12222
  }
11374
- function GetSecurityGroupByNameRequestCustomJson() {
12223
+ function ListSecurityGroupsRequestCustomJson() {
11375
12224
  const obj = {
11376
12225
  type: this.$type,
11377
12226
  };
11378
12227
  if (this.parentId !== "")
11379
12228
  obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
11380
- if (this.name !== "")
11381
- obj.name = (0, logging_js_1.inspectJson)(this.name);
12229
+ if (!this.pageSize?.isZero?.())
12230
+ obj.pageSize = (0, logging_js_1.inspectJson)(this.pageSize);
12231
+ if (this.pageToken !== "")
12232
+ obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
11382
12233
  return obj;
11383
12234
  }
11384
- function applyGetSecurityGroupByNameRequestCustom(message) {
11385
- message[logging_js_1.custom] = GetSecurityGroupByNameRequestCustomInspect;
11386
- message[logging_js_1.customJson] = GetSecurityGroupByNameRequestCustomJson;
11387
- return (0, index_js_1.attachMessageDescriptor)(message, exports.GetSecurityGroupByNameRequest.$descriptor);
12235
+ function applyListSecurityGroupsRequestCustom(message) {
12236
+ message[logging_js_1.custom] = ListSecurityGroupsRequestCustomInspect;
12237
+ message[logging_js_1.customJson] = ListSecurityGroupsRequestCustomJson;
12238
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.ListSecurityGroupsRequest.$descriptor);
11388
12239
  }
11389
- function createBaseGetSecurityGroupByNameRequest() {
12240
+ function createBaseListSecurityGroupsRequest() {
11390
12241
  const message = {
11391
- $type: "nebius.vpc.v1.GetSecurityGroupByNameRequest",
12242
+ $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
11392
12243
  parentId: "",
11393
- name: "",
12244
+ pageSize: index_js_1.Long.ZERO,
12245
+ pageToken: "",
11394
12246
  };
11395
- return applyGetSecurityGroupByNameRequestCustom(message);
12247
+ return applyListSecurityGroupsRequestCustom(message);
11396
12248
  }
11397
- const ListSecurityGroupsRequest_MESSAGE_DESCRIPTOR = {
12249
+ const ListAggregatedSecurityGroupsRequest_MESSAGE_DESCRIPTOR = {
11398
12250
  fields: {
11399
12251
  "parentId": { pbName: "parent_id", scalarType: 9 },
11400
12252
  "pageSize": { pbName: "page_size", scalarType: 3 },
11401
12253
  "pageToken": { pbName: "page_token", scalarType: 9 },
11402
12254
  },
11403
12255
  };
11404
- /** Encodes, decodes, converts, and creates {@link ListSecurityGroupsRequest} messages. */
11405
- exports.ListSecurityGroupsRequest = {
11406
- $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
11407
- $descriptor: ListSecurityGroupsRequest_MESSAGE_DESCRIPTOR,
12256
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedSecurityGroupsRequest} messages. */
12257
+ exports.ListAggregatedSecurityGroupsRequest = {
12258
+ $type: "nebius.vpc.v1.ListAggregatedSecurityGroupsRequest",
12259
+ $descriptor: ListAggregatedSecurityGroupsRequest_MESSAGE_DESCRIPTOR,
11408
12260
  encode(message, writer = new index_js_1.BinaryWriter()) {
11409
12261
  if (message.parentId !== "") {
11410
12262
  writer.uint32(10).string(message.parentId);
@@ -11423,7 +12275,7 @@ exports.ListSecurityGroupsRequest = {
11423
12275
  decode(input, length) {
11424
12276
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
11425
12277
  const end = length === undefined ? reader.len : reader.pos + length;
11426
- const message = createBaseListSecurityGroupsRequest();
12278
+ const message = createBaseListAggregatedSecurityGroupsRequest();
11427
12279
  let writer = undefined;
11428
12280
  while (reader.pos < end) {
11429
12281
  const tag = reader.uint32();
@@ -11465,8 +12317,8 @@ exports.ListSecurityGroupsRequest = {
11465
12317
  return message;
11466
12318
  },
11467
12319
  fromJSON(object) {
11468
- return applyListSecurityGroupsRequestCustom({
11469
- $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
12320
+ return applyListAggregatedSecurityGroupsRequestCustom({
12321
+ $type: "nebius.vpc.v1.ListAggregatedSecurityGroupsRequest",
11470
12322
  parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
11471
12323
  ? String(object.parentId ?? object.parent_id)
11472
12324
  : "",
@@ -11493,10 +12345,10 @@ exports.ListSecurityGroupsRequest = {
11493
12345
  return obj;
11494
12346
  },
11495
12347
  create(base) {
11496
- return exports.ListSecurityGroupsRequest.fromPartial(base ?? {});
12348
+ return exports.ListAggregatedSecurityGroupsRequest.fromPartial(base ?? {});
11497
12349
  },
11498
12350
  fromPartial(object) {
11499
- const message = createBaseListSecurityGroupsRequest();
12351
+ const message = createBaseListAggregatedSecurityGroupsRequest();
11500
12352
  message.parentId = (object.parentId !== undefined && object.parentId !== null)
11501
12353
  ? object.parentId
11502
12354
  : "";
@@ -11509,8 +12361,8 @@ exports.ListSecurityGroupsRequest = {
11509
12361
  return message;
11510
12362
  },
11511
12363
  };
11512
- protobuf_js_1.protoRegistry.registerMessage(exports.ListSecurityGroupsRequest);
11513
- function ListSecurityGroupsRequestCustomInspect() {
12364
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListAggregatedSecurityGroupsRequest);
12365
+ function ListAggregatedSecurityGroupsRequestCustomInspect() {
11514
12366
  const parts = [];
11515
12367
  if (this.parentId !== "")
11516
12368
  parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
@@ -11520,7 +12372,7 @@ function ListSecurityGroupsRequestCustomInspect() {
11520
12372
  parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
11521
12373
  return `${this.$type}(${parts.join(", ")})`;
11522
12374
  }
11523
- function ListSecurityGroupsRequestCustomJson() {
12375
+ function ListAggregatedSecurityGroupsRequestCustomJson() {
11524
12376
  const obj = {
11525
12377
  type: this.$type,
11526
12378
  };
@@ -11532,19 +12384,19 @@ function ListSecurityGroupsRequestCustomJson() {
11532
12384
  obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
11533
12385
  return obj;
11534
12386
  }
11535
- function applyListSecurityGroupsRequestCustom(message) {
11536
- message[logging_js_1.custom] = ListSecurityGroupsRequestCustomInspect;
11537
- message[logging_js_1.customJson] = ListSecurityGroupsRequestCustomJson;
11538
- return (0, index_js_1.attachMessageDescriptor)(message, exports.ListSecurityGroupsRequest.$descriptor);
12387
+ function applyListAggregatedSecurityGroupsRequestCustom(message) {
12388
+ message[logging_js_1.custom] = ListAggregatedSecurityGroupsRequestCustomInspect;
12389
+ message[logging_js_1.customJson] = ListAggregatedSecurityGroupsRequestCustomJson;
12390
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.ListAggregatedSecurityGroupsRequest.$descriptor);
11539
12391
  }
11540
- function createBaseListSecurityGroupsRequest() {
12392
+ function createBaseListAggregatedSecurityGroupsRequest() {
11541
12393
  const message = {
11542
- $type: "nebius.vpc.v1.ListSecurityGroupsRequest",
12394
+ $type: "nebius.vpc.v1.ListAggregatedSecurityGroupsRequest",
11543
12395
  parentId: "",
11544
12396
  pageSize: index_js_1.Long.ZERO,
11545
12397
  pageToken: "",
11546
12398
  };
11547
- return applyListSecurityGroupsRequestCustom(message);
12399
+ return applyListAggregatedSecurityGroupsRequestCustom(message);
11548
12400
  }
11549
12401
  const ListSecurityGroupsByNetworkRequest_MESSAGE_DESCRIPTOR = {
11550
12402
  fields: {
@@ -12239,6 +13091,17 @@ exports.SecurityGroupServiceServiceDescription = {
12239
13091
  responseSerialize: (value) => Buffer.from(exports.ListSecurityGroupsResponse.encode(value).finish()),
12240
13092
  responseDeserialize: (value) => exports.ListSecurityGroupsResponse.decode(value),
12241
13093
  },
13094
+ listAggregated: {
13095
+ path: "/nebius.vpc.v1.SecurityGroupService/ListAggregated",
13096
+ requestStream: false,
13097
+ responseStream: false,
13098
+ requestSerialize: (value) => Buffer.from(exports.ListAggregatedSecurityGroupsRequest.encode(value).finish()),
13099
+ requestDescriptor: () => exports.ListAggregatedSecurityGroupsRequest.$descriptor,
13100
+ sendResetMask: false,
13101
+ requestDeserialize: (value) => exports.ListAggregatedSecurityGroupsRequest.decode(value),
13102
+ responseSerialize: (value) => Buffer.from(exports.ListSecurityGroupsResponse.encode(value).finish()),
13103
+ responseDeserialize: (value) => exports.ListSecurityGroupsResponse.decode(value),
13104
+ },
12242
13105
  listByNetwork: {
12243
13106
  path: "/nebius.vpc.v1.SecurityGroupService/ListByNetwork",
12244
13107
  requestStream: false,
@@ -12344,6 +13207,18 @@ class SecurityGroupService {
12344
13207
  const deserialize = spec.responseDeserialize;
12345
13208
  return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
12346
13209
  }
13210
+ /**
13211
+ * Lists security groups across regions for the specified parent.
13212
+ *
13213
+ */
13214
+ listAggregated(...args) {
13215
+ const spec = this.spec.listAggregated;
13216
+ const request = args[0];
13217
+ const metadata = (args.length > 1 ? args[1] : undefined);
13218
+ const options = (args.length > 2 ? args[2] : undefined);
13219
+ const deserialize = spec.responseDeserialize;
13220
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
13221
+ }
12347
13222
  /**
12348
13223
  * Lists security groups in a specified network.
12349
13224
  *
@@ -15469,6 +16344,158 @@ function createBaseListSubnetsRequest() {
15469
16344
  };
15470
16345
  return applyListSubnetsRequestCustom(message);
15471
16346
  }
16347
+ const ListAggregatedSubnetsRequest_MESSAGE_DESCRIPTOR = {
16348
+ fields: {
16349
+ "parentId": { pbName: "parent_id", scalarType: 9 },
16350
+ "pageSize": { pbName: "page_size", scalarType: 3 },
16351
+ "pageToken": { pbName: "page_token", scalarType: 9 },
16352
+ },
16353
+ };
16354
+ /** Encodes, decodes, converts, and creates {@link ListAggregatedSubnetsRequest} messages. */
16355
+ exports.ListAggregatedSubnetsRequest = {
16356
+ $type: "nebius.vpc.v1.ListAggregatedSubnetsRequest",
16357
+ $descriptor: ListAggregatedSubnetsRequest_MESSAGE_DESCRIPTOR,
16358
+ encode(message, writer = new index_js_1.BinaryWriter()) {
16359
+ if (message.parentId !== "") {
16360
+ writer.uint32(10).string(message.parentId);
16361
+ }
16362
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
16363
+ writer.uint32(16).int64(message.pageSize.toString());
16364
+ }
16365
+ if (message.pageToken !== "") {
16366
+ writer.uint32(26).string(message.pageToken);
16367
+ }
16368
+ if (message[index_js_1.unknownFieldsSymbol]) {
16369
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
16370
+ }
16371
+ return writer;
16372
+ },
16373
+ decode(input, length) {
16374
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
16375
+ const end = length === undefined ? reader.len : reader.pos + length;
16376
+ const message = createBaseListAggregatedSubnetsRequest();
16377
+ let writer = undefined;
16378
+ while (reader.pos < end) {
16379
+ const tag = reader.uint32();
16380
+ switch (tag >>> 3) {
16381
+ case 1: {
16382
+ if (tag !== 10)
16383
+ break;
16384
+ message.parentId = reader.string();
16385
+ continue;
16386
+ }
16387
+ case 2: {
16388
+ if (tag !== 16)
16389
+ break;
16390
+ message.pageSize = index_js_1.Long.fromValue(reader.int64());
16391
+ continue;
16392
+ }
16393
+ case 3: {
16394
+ if (tag !== 26)
16395
+ break;
16396
+ message.pageToken = reader.string();
16397
+ continue;
16398
+ }
16399
+ default:
16400
+ break;
16401
+ }
16402
+ if ((tag & 7) === 4 || tag === 0) {
16403
+ break;
16404
+ }
16405
+ {
16406
+ if (!writer)
16407
+ writer = new index_js_1.BinaryWriter();
16408
+ const skipped = reader.skip(tag & 7, tag >>> 3);
16409
+ writer.uint32(tag).raw(skipped);
16410
+ }
16411
+ }
16412
+ if (writer) {
16413
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
16414
+ }
16415
+ return message;
16416
+ },
16417
+ fromJSON(object) {
16418
+ return applyListAggregatedSubnetsRequestCustom({
16419
+ $type: "nebius.vpc.v1.ListAggregatedSubnetsRequest",
16420
+ parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
16421
+ ? String(object.parentId ?? object.parent_id)
16422
+ : "",
16423
+ pageSize: (0, index_js_1.isSet)(object.pageSize ?? object.page_size)
16424
+ ? index_js_1.Long.fromValue(object.pageSize ?? object.page_size)
16425
+ : index_js_1.Long.ZERO,
16426
+ pageToken: (0, index_js_1.isSet)(object.pageToken ?? object.page_token)
16427
+ ? String(object.pageToken ?? object.page_token)
16428
+ : "",
16429
+ });
16430
+ },
16431
+ toJSON(message, use = "json") {
16432
+ const obj = {};
16433
+ const pick = (json, pb) => (use === "json" ? json : pb);
16434
+ if (message.parentId !== "") {
16435
+ obj[pick("parentId", "parent_id")] = message.parentId;
16436
+ }
16437
+ if (!message.pageSize?.isZero?.()) {
16438
+ obj[pick("pageSize", "page_size")] = (message.pageSize || index_js_1.Long.ZERO).toString();
16439
+ }
16440
+ if (message.pageToken !== "") {
16441
+ obj[pick("pageToken", "page_token")] = message.pageToken;
16442
+ }
16443
+ return obj;
16444
+ },
16445
+ create(base) {
16446
+ return exports.ListAggregatedSubnetsRequest.fromPartial(base ?? {});
16447
+ },
16448
+ fromPartial(object) {
16449
+ const message = createBaseListAggregatedSubnetsRequest();
16450
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
16451
+ ? object.parentId
16452
+ : "";
16453
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
16454
+ ? index_js_1.Long.fromValue(object.pageSize)
16455
+ : index_js_1.Long.ZERO;
16456
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
16457
+ ? object.pageToken
16458
+ : "";
16459
+ return message;
16460
+ },
16461
+ };
16462
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListAggregatedSubnetsRequest);
16463
+ function ListAggregatedSubnetsRequestCustomInspect() {
16464
+ const parts = [];
16465
+ if (this.parentId !== "")
16466
+ parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
16467
+ if (!this.pageSize?.isZero?.())
16468
+ parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
16469
+ if (this.pageToken !== "")
16470
+ parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
16471
+ return `${this.$type}(${parts.join(", ")})`;
16472
+ }
16473
+ function ListAggregatedSubnetsRequestCustomJson() {
16474
+ const obj = {
16475
+ type: this.$type,
16476
+ };
16477
+ if (this.parentId !== "")
16478
+ obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
16479
+ if (!this.pageSize?.isZero?.())
16480
+ obj.pageSize = (0, logging_js_1.inspectJson)(this.pageSize);
16481
+ if (this.pageToken !== "")
16482
+ obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
16483
+ return obj;
16484
+ }
16485
+ function applyListAggregatedSubnetsRequestCustom(message) {
16486
+ message[logging_js_1.custom] = ListAggregatedSubnetsRequestCustomInspect;
16487
+ message[logging_js_1.customJson] = ListAggregatedSubnetsRequestCustomJson;
16488
+ return (0, index_js_1.attachMessageDescriptor)(message, exports.ListAggregatedSubnetsRequest.$descriptor);
16489
+ }
16490
+ function createBaseListAggregatedSubnetsRequest() {
16491
+ const message = {
16492
+ $type: "nebius.vpc.v1.ListAggregatedSubnetsRequest",
16493
+ parentId: "",
16494
+ pageSize: index_js_1.Long.ZERO,
16495
+ pageToken: "",
16496
+ };
16497
+ return applyListAggregatedSubnetsRequestCustom(message);
16498
+ }
15472
16499
  const ListSubnetsByNetworkRequest_MESSAGE_DESCRIPTOR = {
15473
16500
  fields: {
15474
16501
  "networkId": { pbName: "network_id", scalarType: 9 },
@@ -16162,6 +17189,17 @@ exports.SubnetServiceServiceDescription = {
16162
17189
  responseSerialize: (value) => Buffer.from(exports.ListSubnetsResponse.encode(value).finish()),
16163
17190
  responseDeserialize: (value) => exports.ListSubnetsResponse.decode(value),
16164
17191
  },
17192
+ listAggregated: {
17193
+ path: "/nebius.vpc.v1.SubnetService/ListAggregated",
17194
+ requestStream: false,
17195
+ responseStream: false,
17196
+ requestSerialize: (value) => Buffer.from(exports.ListAggregatedSubnetsRequest.encode(value).finish()),
17197
+ requestDescriptor: () => exports.ListAggregatedSubnetsRequest.$descriptor,
17198
+ sendResetMask: false,
17199
+ requestDeserialize: (value) => exports.ListAggregatedSubnetsRequest.decode(value),
17200
+ responseSerialize: (value) => Buffer.from(exports.ListSubnetsResponse.encode(value).finish()),
17201
+ responseDeserialize: (value) => exports.ListSubnetsResponse.decode(value),
17202
+ },
16165
17203
  listByNetwork: {
16166
17204
  path: "/nebius.vpc.v1.SubnetService/ListByNetwork",
16167
17205
  requestStream: false,
@@ -16267,6 +17305,18 @@ class SubnetService {
16267
17305
  const deserialize = spec.responseDeserialize;
16268
17306
  return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
16269
17307
  }
17308
+ /**
17309
+ * Lists subnets across regions for the specified parent.
17310
+ *
17311
+ */
17312
+ listAggregated(...args) {
17313
+ const spec = this.spec.listAggregated;
17314
+ const request = args[0];
17315
+ const metadata = (args.length > 1 ? args[1] : undefined);
17316
+ const options = (args.length > 2 ? args[2] : undefined);
17317
+ const deserialize = spec.responseDeserialize;
17318
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
17319
+ }
16270
17320
  /**
16271
17321
  * Lists subnets that belong to a specified network.
16272
17322
  *