@nebius/js-sdk 0.2.18 → 0.2.20

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.
@@ -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.PoolServiceBaseClient = 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.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.ListSecurityGroupsRequest = 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 = void 0;
6
- exports.SubnetPool = 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 = 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.SubnetStatus = exports.SubnetCidr = void 0;
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.SubnetStatus = exports.SubnetCidr = exports.SubnetPool = 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");
@@ -1336,6 +1336,30 @@ exports.AllocationStatus_State = (0, index_js_1.createEnum)("nebius.vpc.v1.Alloc
1336
1336
  DELETING: 4,
1337
1337
  }, AllocationStatus_State_VALUE_COMMENTS);
1338
1338
  protobuf_js_1.protoRegistry.registerEnum(exports.AllocationStatus_State);
1339
+ const NetworkInterfaceAssignment_Type_VALUE_COMMENTS = {
1340
+ PRIMARY: " Allocation is attached as the interface private IPv4 address.\n",
1341
+ ALIAS: " Allocation is attached as an IP alias.\n",
1342
+ PUBLIC: " Allocation is attached as the interface public IPv4 address.\n",
1343
+ };
1344
+ exports.NetworkInterfaceAssignment_Type = (0, index_js_1.createEnum)("nebius.vpc.v1.NetworkInterfaceAssignment.Type", {
1345
+ TYPE_UNSPECIFIED: 0,
1346
+ /**
1347
+ * Allocation is attached as the interface private IPv4 address.
1348
+ *
1349
+ */
1350
+ PRIMARY: 1,
1351
+ /**
1352
+ * Allocation is attached as an IP alias.
1353
+ *
1354
+ */
1355
+ ALIAS: 2,
1356
+ /**
1357
+ * Allocation is attached as the interface public IPv4 address.
1358
+ *
1359
+ */
1360
+ PUBLIC: 3,
1361
+ }, NetworkInterfaceAssignment_Type_VALUE_COMMENTS);
1362
+ protobuf_js_1.protoRegistry.registerEnum(exports.NetworkInterfaceAssignment_Type);
1339
1363
  exports.Allocation = {
1340
1364
  $type: "nebius.vpc.v1.Allocation",
1341
1365
  encode(message, writer = new index_js_1.BinaryWriter()) {
@@ -2482,6 +2506,9 @@ exports.NetworkInterfaceAssignment = {
2482
2506
  if (message.name !== "") {
2483
2507
  writer.uint32(18).string(message.name);
2484
2508
  }
2509
+ if ((message.type ?? exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) !== exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) {
2510
+ exports.NetworkInterfaceAssignment_Type.encodeField(writer, 3, message.type);
2511
+ }
2485
2512
  if (message[index_js_1.unknownFieldsSymbol]) {
2486
2513
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
2487
2514
  }
@@ -2507,6 +2534,12 @@ exports.NetworkInterfaceAssignment = {
2507
2534
  message.name = reader.string();
2508
2535
  continue;
2509
2536
  }
2537
+ case 3: {
2538
+ if (tag !== 24)
2539
+ break;
2540
+ message.type = exports.NetworkInterfaceAssignment_Type.fromNumber(reader.int32());
2541
+ continue;
2542
+ }
2510
2543
  default:
2511
2544
  break;
2512
2545
  }
@@ -2534,6 +2567,9 @@ exports.NetworkInterfaceAssignment = {
2534
2567
  name: (0, index_js_1.isSet)(object.name ?? object.name)
2535
2568
  ? String(object.name ?? object.name)
2536
2569
  : "",
2570
+ type: (0, index_js_1.isSet)(object.type ?? object.type)
2571
+ ? exports.NetworkInterfaceAssignment_Type.fromJSON(object.type ?? object.type)
2572
+ : exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED,
2537
2573
  });
2538
2574
  },
2539
2575
  toJSON(message, use = "json") {
@@ -2545,6 +2581,9 @@ exports.NetworkInterfaceAssignment = {
2545
2581
  if (message.name !== "") {
2546
2582
  obj[pick("name", "name")] = message.name;
2547
2583
  }
2584
+ if ((message.type ?? exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) !== exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) {
2585
+ obj[pick("type", "type")] = exports.NetworkInterfaceAssignment_Type.toJSON(message.type);
2586
+ }
2548
2587
  return obj;
2549
2588
  },
2550
2589
  create(base) {
@@ -2558,6 +2597,9 @@ exports.NetworkInterfaceAssignment = {
2558
2597
  message.name = (object.name !== undefined && object.name !== null)
2559
2598
  ? object.name
2560
2599
  : "";
2600
+ message.type = (object.type !== undefined && object.type !== null)
2601
+ ? exports.NetworkInterfaceAssignment_Type.fromJSON(object.type.name)
2602
+ : exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED;
2561
2603
  return message;
2562
2604
  },
2563
2605
  };
@@ -2568,6 +2610,8 @@ function NetworkInterfaceAssignmentCustomInspect() {
2568
2610
  parts.push("instanceId" + "=" + (0, util_1.inspect)(this.instanceId));
2569
2611
  if (this.name !== "")
2570
2612
  parts.push("name" + "=" + (0, util_1.inspect)(this.name));
2613
+ if (this.type !== undefined)
2614
+ parts.push("type" + "=" + (0, util_1.inspect)(this.type));
2571
2615
  return `${this.$type}(${parts.join(", ")})`;
2572
2616
  }
2573
2617
  function NetworkInterfaceAssignmentCustomJson() {
@@ -2578,6 +2622,8 @@ function NetworkInterfaceAssignmentCustomJson() {
2578
2622
  obj.instanceId = (0, logging_js_1.inspectJson)(this.instanceId);
2579
2623
  if (this.name !== "")
2580
2624
  obj.name = (0, logging_js_1.inspectJson)(this.name);
2625
+ if (this.type !== undefined)
2626
+ obj.type = (0, logging_js_1.inspectJson)(this.type);
2581
2627
  return obj;
2582
2628
  }
2583
2629
  function applyNetworkInterfaceAssignmentCustom(message) {
@@ -2590,6 +2636,7 @@ function createBaseNetworkInterfaceAssignment() {
2590
2636
  $type: "nebius.vpc.v1.NetworkInterfaceAssignment",
2591
2637
  instanceId: "",
2592
2638
  name: "",
2639
+ type: exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED,
2593
2640
  };
2594
2641
  return applyNetworkInterfaceAssignmentCustom(message);
2595
2642
  }
@@ -9763,6 +9810,9 @@ exports.RouteStatus = {
9763
9810
  if ((message.type ?? exports.RouteStatus_Type.TYPE_UNSPECIFIED) !== exports.RouteStatus_Type.TYPE_UNSPECIFIED) {
9764
9811
  exports.RouteStatus_Type.encodeField(writer, 3, message.type);
9765
9812
  }
9813
+ if ((message.priority ?? 0) !== 0) {
9814
+ writer.uint32(32).int32(message.priority);
9815
+ }
9766
9816
  if (message[index_js_1.unknownFieldsSymbol]) {
9767
9817
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
9768
9818
  }
@@ -9794,6 +9844,12 @@ exports.RouteStatus = {
9794
9844
  message.type = exports.RouteStatus_Type.fromNumber(reader.int32());
9795
9845
  continue;
9796
9846
  }
9847
+ case 4: {
9848
+ if (tag !== 32)
9849
+ break;
9850
+ message.priority = reader.int32();
9851
+ continue;
9852
+ }
9797
9853
  default:
9798
9854
  break;
9799
9855
  }
@@ -9824,6 +9880,9 @@ exports.RouteStatus = {
9824
9880
  type: (0, index_js_1.isSet)(object.type ?? object.type)
9825
9881
  ? exports.RouteStatus_Type.fromJSON(object.type ?? object.type)
9826
9882
  : exports.RouteStatus_Type.TYPE_UNSPECIFIED,
9883
+ priority: (0, index_js_1.isSet)(object.priority ?? object.priority)
9884
+ ? Number(object.priority ?? object.priority)
9885
+ : 0,
9827
9886
  });
9828
9887
  },
9829
9888
  toJSON(message, use = "json") {
@@ -9840,6 +9899,9 @@ exports.RouteStatus = {
9840
9899
  if ((message.type ?? exports.RouteStatus_Type.TYPE_UNSPECIFIED) !== exports.RouteStatus_Type.TYPE_UNSPECIFIED) {
9841
9900
  obj[pick("type", "type")] = exports.RouteStatus_Type.toJSON(message.type);
9842
9901
  }
9902
+ if ((message.priority ?? 0) !== 0) {
9903
+ obj[pick("priority", "priority")] = message.priority;
9904
+ }
9843
9905
  return obj;
9844
9906
  },
9845
9907
  create(base) {
@@ -9856,6 +9918,9 @@ exports.RouteStatus = {
9856
9918
  message.type = (object.type !== undefined && object.type !== null)
9857
9919
  ? exports.RouteStatus_Type.fromJSON(object.type.name)
9858
9920
  : exports.RouteStatus_Type.TYPE_UNSPECIFIED;
9921
+ message.priority = (object.priority !== undefined && object.priority !== null)
9922
+ ? object.priority
9923
+ : 0;
9859
9924
  return message;
9860
9925
  },
9861
9926
  };
@@ -9868,6 +9933,8 @@ function RouteStatusCustomInspect() {
9868
9933
  parts.push("nextHop" + "=" + (0, util_1.inspect)(this.nextHop));
9869
9934
  if (this.type !== undefined)
9870
9935
  parts.push("type" + "=" + (0, util_1.inspect)(this.type));
9936
+ if ((this.priority ?? 0) !== 0)
9937
+ parts.push("priority" + "=" + (0, util_1.inspect)(this.priority));
9871
9938
  return `${this.$type}(${parts.join(", ")})`;
9872
9939
  }
9873
9940
  function RouteStatusCustomJson() {
@@ -9880,6 +9947,8 @@ function RouteStatusCustomJson() {
9880
9947
  obj.nextHop = (0, logging_js_1.inspectJson)(this.nextHop);
9881
9948
  if (this.type !== undefined)
9882
9949
  obj.type = (0, logging_js_1.inspectJson)(this.type);
9950
+ if ((this.priority ?? 0) !== 0)
9951
+ obj.priority = (0, logging_js_1.inspectJson)(this.priority);
9883
9952
  return obj;
9884
9953
  }
9885
9954
  function applyRouteStatusCustom(message) {
@@ -9893,6 +9962,7 @@ function createBaseRouteStatus() {
9893
9962
  state: exports.RouteStatus_State.STATE_UNSPECIFIED,
9894
9963
  nextHop: undefined,
9895
9964
  type: exports.RouteStatus_Type.TYPE_UNSPECIFIED,
9965
+ priority: 0,
9896
9966
  };
9897
9967
  return applyRouteStatusCustom(message);
9898
9968
  }