@nebius/js-sdk 0.2.18 → 0.2.19

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
  }