@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.
@@ -1329,6 +1329,30 @@ export const AllocationStatus_State = createEnum("nebius.vpc.v1.AllocationStatus
1329
1329
  DELETING: 4,
1330
1330
  }, AllocationStatus_State_VALUE_COMMENTS);
1331
1331
  protoRegistry.registerEnum(AllocationStatus_State);
1332
+ const NetworkInterfaceAssignment_Type_VALUE_COMMENTS = {
1333
+ PRIMARY: " Allocation is attached as the interface private IPv4 address.\n",
1334
+ ALIAS: " Allocation is attached as an IP alias.\n",
1335
+ PUBLIC: " Allocation is attached as the interface public IPv4 address.\n",
1336
+ };
1337
+ export const NetworkInterfaceAssignment_Type = createEnum("nebius.vpc.v1.NetworkInterfaceAssignment.Type", {
1338
+ TYPE_UNSPECIFIED: 0,
1339
+ /**
1340
+ * Allocation is attached as the interface private IPv4 address.
1341
+ *
1342
+ */
1343
+ PRIMARY: 1,
1344
+ /**
1345
+ * Allocation is attached as an IP alias.
1346
+ *
1347
+ */
1348
+ ALIAS: 2,
1349
+ /**
1350
+ * Allocation is attached as the interface public IPv4 address.
1351
+ *
1352
+ */
1353
+ PUBLIC: 3,
1354
+ }, NetworkInterfaceAssignment_Type_VALUE_COMMENTS);
1355
+ protoRegistry.registerEnum(NetworkInterfaceAssignment_Type);
1332
1356
  export const Allocation = {
1333
1357
  $type: "nebius.vpc.v1.Allocation",
1334
1358
  encode(message, writer = new BinaryWriter()) {
@@ -2475,6 +2499,9 @@ export const NetworkInterfaceAssignment = {
2475
2499
  if (message.name !== "") {
2476
2500
  writer.uint32(18).string(message.name);
2477
2501
  }
2502
+ if ((message.type ?? NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) !== NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) {
2503
+ NetworkInterfaceAssignment_Type.encodeField(writer, 3, message.type);
2504
+ }
2478
2505
  if (message[unknownFieldsSymbol]) {
2479
2506
  writer.raw(message[unknownFieldsSymbol]);
2480
2507
  }
@@ -2500,6 +2527,12 @@ export const NetworkInterfaceAssignment = {
2500
2527
  message.name = reader.string();
2501
2528
  continue;
2502
2529
  }
2530
+ case 3: {
2531
+ if (tag !== 24)
2532
+ break;
2533
+ message.type = NetworkInterfaceAssignment_Type.fromNumber(reader.int32());
2534
+ continue;
2535
+ }
2503
2536
  default:
2504
2537
  break;
2505
2538
  }
@@ -2527,6 +2560,9 @@ export const NetworkInterfaceAssignment = {
2527
2560
  name: isSet(object.name ?? object.name)
2528
2561
  ? String(object.name ?? object.name)
2529
2562
  : "",
2563
+ type: isSet(object.type ?? object.type)
2564
+ ? NetworkInterfaceAssignment_Type.fromJSON(object.type ?? object.type)
2565
+ : NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED,
2530
2566
  });
2531
2567
  },
2532
2568
  toJSON(message, use = "json") {
@@ -2538,6 +2574,9 @@ export const NetworkInterfaceAssignment = {
2538
2574
  if (message.name !== "") {
2539
2575
  obj[pick("name", "name")] = message.name;
2540
2576
  }
2577
+ if ((message.type ?? NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) !== NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) {
2578
+ obj[pick("type", "type")] = NetworkInterfaceAssignment_Type.toJSON(message.type);
2579
+ }
2541
2580
  return obj;
2542
2581
  },
2543
2582
  create(base) {
@@ -2551,6 +2590,9 @@ export const NetworkInterfaceAssignment = {
2551
2590
  message.name = (object.name !== undefined && object.name !== null)
2552
2591
  ? object.name
2553
2592
  : "";
2593
+ message.type = (object.type !== undefined && object.type !== null)
2594
+ ? NetworkInterfaceAssignment_Type.fromJSON(object.type.name)
2595
+ : NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED;
2554
2596
  return message;
2555
2597
  },
2556
2598
  };
@@ -2561,6 +2603,8 @@ function NetworkInterfaceAssignmentCustomInspect() {
2561
2603
  parts.push("instanceId" + "=" + inspect(this.instanceId));
2562
2604
  if (this.name !== "")
2563
2605
  parts.push("name" + "=" + inspect(this.name));
2606
+ if (this.type !== undefined)
2607
+ parts.push("type" + "=" + inspect(this.type));
2564
2608
  return `${this.$type}(${parts.join(", ")})`;
2565
2609
  }
2566
2610
  function NetworkInterfaceAssignmentCustomJson() {
@@ -2571,6 +2615,8 @@ function NetworkInterfaceAssignmentCustomJson() {
2571
2615
  obj.instanceId = inspectJson(this.instanceId);
2572
2616
  if (this.name !== "")
2573
2617
  obj.name = inspectJson(this.name);
2618
+ if (this.type !== undefined)
2619
+ obj.type = inspectJson(this.type);
2574
2620
  return obj;
2575
2621
  }
2576
2622
  function applyNetworkInterfaceAssignmentCustom(message) {
@@ -2583,6 +2629,7 @@ function createBaseNetworkInterfaceAssignment() {
2583
2629
  $type: "nebius.vpc.v1.NetworkInterfaceAssignment",
2584
2630
  instanceId: "",
2585
2631
  name: "",
2632
+ type: NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED,
2586
2633
  };
2587
2634
  return applyNetworkInterfaceAssignmentCustom(message);
2588
2635
  }
@@ -9752,6 +9799,9 @@ export const RouteStatus = {
9752
9799
  if ((message.type ?? RouteStatus_Type.TYPE_UNSPECIFIED) !== RouteStatus_Type.TYPE_UNSPECIFIED) {
9753
9800
  RouteStatus_Type.encodeField(writer, 3, message.type);
9754
9801
  }
9802
+ if ((message.priority ?? 0) !== 0) {
9803
+ writer.uint32(32).int32(message.priority);
9804
+ }
9755
9805
  if (message[unknownFieldsSymbol]) {
9756
9806
  writer.raw(message[unknownFieldsSymbol]);
9757
9807
  }
@@ -9783,6 +9833,12 @@ export const RouteStatus = {
9783
9833
  message.type = RouteStatus_Type.fromNumber(reader.int32());
9784
9834
  continue;
9785
9835
  }
9836
+ case 4: {
9837
+ if (tag !== 32)
9838
+ break;
9839
+ message.priority = reader.int32();
9840
+ continue;
9841
+ }
9786
9842
  default:
9787
9843
  break;
9788
9844
  }
@@ -9813,6 +9869,9 @@ export const RouteStatus = {
9813
9869
  type: isSet(object.type ?? object.type)
9814
9870
  ? RouteStatus_Type.fromJSON(object.type ?? object.type)
9815
9871
  : RouteStatus_Type.TYPE_UNSPECIFIED,
9872
+ priority: isSet(object.priority ?? object.priority)
9873
+ ? Number(object.priority ?? object.priority)
9874
+ : 0,
9816
9875
  });
9817
9876
  },
9818
9877
  toJSON(message, use = "json") {
@@ -9829,6 +9888,9 @@ export const RouteStatus = {
9829
9888
  if ((message.type ?? RouteStatus_Type.TYPE_UNSPECIFIED) !== RouteStatus_Type.TYPE_UNSPECIFIED) {
9830
9889
  obj[pick("type", "type")] = RouteStatus_Type.toJSON(message.type);
9831
9890
  }
9891
+ if ((message.priority ?? 0) !== 0) {
9892
+ obj[pick("priority", "priority")] = message.priority;
9893
+ }
9832
9894
  return obj;
9833
9895
  },
9834
9896
  create(base) {
@@ -9845,6 +9907,9 @@ export const RouteStatus = {
9845
9907
  message.type = (object.type !== undefined && object.type !== null)
9846
9908
  ? RouteStatus_Type.fromJSON(object.type.name)
9847
9909
  : RouteStatus_Type.TYPE_UNSPECIFIED;
9910
+ message.priority = (object.priority !== undefined && object.priority !== null)
9911
+ ? object.priority
9912
+ : 0;
9848
9913
  return message;
9849
9914
  },
9850
9915
  };
@@ -9857,6 +9922,8 @@ function RouteStatusCustomInspect() {
9857
9922
  parts.push("nextHop" + "=" + inspect(this.nextHop));
9858
9923
  if (this.type !== undefined)
9859
9924
  parts.push("type" + "=" + inspect(this.type));
9925
+ if ((this.priority ?? 0) !== 0)
9926
+ parts.push("priority" + "=" + inspect(this.priority));
9860
9927
  return `${this.$type}(${parts.join(", ")})`;
9861
9928
  }
9862
9929
  function RouteStatusCustomJson() {
@@ -9869,6 +9936,8 @@ function RouteStatusCustomJson() {
9869
9936
  obj.nextHop = inspectJson(this.nextHop);
9870
9937
  if (this.type !== undefined)
9871
9938
  obj.type = inspectJson(this.type);
9939
+ if ((this.priority ?? 0) !== 0)
9940
+ obj.priority = inspectJson(this.priority);
9872
9941
  return obj;
9873
9942
  }
9874
9943
  function applyRouteStatusCustom(message) {
@@ -9882,6 +9951,7 @@ function createBaseRouteStatus() {
9882
9951
  state: RouteStatus_State.STATE_UNSPECIFIED,
9883
9952
  nextHop: undefined,
9884
9953
  type: RouteStatus_Type.TYPE_UNSPECIFIED,
9954
+ priority: 0,
9885
9955
  };
9886
9956
  return applyRouteStatusCustom(message);
9887
9957
  }