@nebius/js-sdk 0.2.39 → 0.2.41

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.
@@ -15746,6 +15746,7 @@ const NetworkInterfaceStatus_MESSAGE_DESCRIPTOR = {
15746
15746
  "aliases": { pbName: "aliases", message: () => IPAliasesStatus.$descriptor },
15747
15747
  "macAddress": { pbName: "mac_address", scalarType: 9 },
15748
15748
  "fqdn": { pbName: "fqdn", scalarType: 9 },
15749
+ "securityGroups": { pbName: "security_groups", repeated: true, message: () => SecurityGroupStatus.$descriptor },
15749
15750
  },
15750
15751
  };
15751
15752
  export const NetworkInterfaceStatus = {
@@ -15779,6 +15780,11 @@ export const NetworkInterfaceStatus = {
15779
15780
  if (message.fqdn !== "") {
15780
15781
  writer.uint32(74).string(message.fqdn);
15781
15782
  }
15783
+ for (const v of (message.securityGroups ?? [])) {
15784
+ const w = writer.uint32(82).fork();
15785
+ SecurityGroupStatus.encode(v, w);
15786
+ w.join();
15787
+ }
15782
15788
  if (message[unknownFieldsSymbol]) {
15783
15789
  writer.raw(message[unknownFieldsSymbol]);
15784
15790
  }
@@ -15834,6 +15840,12 @@ export const NetworkInterfaceStatus = {
15834
15840
  message.fqdn = reader.string();
15835
15841
  continue;
15836
15842
  }
15843
+ case 10: {
15844
+ if (tag !== 82)
15845
+ break;
15846
+ message.securityGroups.push(SecurityGroupStatus.decode(reader, reader.uint32()));
15847
+ continue;
15848
+ }
15837
15849
  default:
15838
15850
  break;
15839
15851
  }
@@ -15876,6 +15888,9 @@ export const NetworkInterfaceStatus = {
15876
15888
  fqdn: isSet(object.fqdn ?? object.fqdn)
15877
15889
  ? String(object.fqdn ?? object.fqdn)
15878
15890
  : "",
15891
+ securityGroups: globalThis.Array.isArray(object?.securityGroups ?? object?.security_groups)
15892
+ ? (object.securityGroups ?? object.security_groups).map((e) => SecurityGroupStatus.fromJSON(e))
15893
+ : [],
15879
15894
  });
15880
15895
  },
15881
15896
  toJSON(message, use = "json") {
@@ -15908,6 +15923,9 @@ export const NetworkInterfaceStatus = {
15908
15923
  if (message.fqdn !== "") {
15909
15924
  obj[pick("fqdn", "fqdn")] = message.fqdn;
15910
15925
  }
15926
+ if (message.securityGroups?.length) {
15927
+ obj[pick("securityGroups", "security_groups")] = message.securityGroups.map((e) => e ? SecurityGroupStatus.toJSON(e, use) : undefined);
15928
+ }
15911
15929
  return obj;
15912
15930
  },
15913
15931
  create(base) {
@@ -15936,6 +15954,7 @@ export const NetworkInterfaceStatus = {
15936
15954
  message.fqdn = (object.fqdn !== undefined && object.fqdn !== null)
15937
15955
  ? object.fqdn
15938
15956
  : "";
15957
+ message.securityGroups = object.securityGroups?.map((e) => SecurityGroupStatus.fromPartial(e)) || [];
15939
15958
  return message;
15940
15959
  },
15941
15960
  };
@@ -15956,6 +15975,8 @@ function NetworkInterfaceStatusCustomInspect() {
15956
15975
  parts.push("macAddress" + "=" + inspect(this.macAddress));
15957
15976
  if (this.fqdn !== "")
15958
15977
  parts.push("fqdn" + "=" + inspect(this.fqdn));
15978
+ if ((this.securityGroups?.length ?? 0) !== 0)
15979
+ parts.push("securityGroups" + "=" + inspect(this.securityGroups));
15959
15980
  return `${this.$type}(${parts.join(", ")})`;
15960
15981
  }
15961
15982
  function NetworkInterfaceStatusCustomJson() {
@@ -15976,6 +15997,8 @@ function NetworkInterfaceStatusCustomJson() {
15976
15997
  obj.macAddress = inspectJson(this.macAddress);
15977
15998
  if (this.fqdn !== "")
15978
15999
  obj.fqdn = inspectJson(this.fqdn);
16000
+ if ((this.securityGroups?.length ?? 0) !== 0)
16001
+ obj.securityGroups = inspectJson(this.securityGroups);
15979
16002
  return obj;
15980
16003
  }
15981
16004
  function applyNetworkInterfaceStatusCustom(message) {
@@ -15993,6 +16016,7 @@ function createBaseNetworkInterfaceStatus() {
15993
16016
  aliases: undefined,
15994
16017
  macAddress: "",
15995
16018
  fqdn: "",
16019
+ securityGroups: [],
15996
16020
  };
15997
16021
  return applyNetworkInterfaceStatusCustom(message);
15998
16022
  }
@@ -16478,6 +16502,109 @@ function createBaseSecurityGroup() {
16478
16502
  };
16479
16503
  return applySecurityGroupCustom(message);
16480
16504
  }
16505
+ const SecurityGroupStatus_MESSAGE_DESCRIPTOR = {
16506
+ fields: {
16507
+ "id": { pbName: "id", scalarType: 9 },
16508
+ },
16509
+ };
16510
+ export const SecurityGroupStatus = {
16511
+ $type: "nebius.compute.v1.SecurityGroupStatus",
16512
+ $descriptor: SecurityGroupStatus_MESSAGE_DESCRIPTOR,
16513
+ encode(message, writer = new BinaryWriter()) {
16514
+ if (message.id !== "") {
16515
+ writer.uint32(10).string(message.id);
16516
+ }
16517
+ if (message[unknownFieldsSymbol]) {
16518
+ writer.raw(message[unknownFieldsSymbol]);
16519
+ }
16520
+ return writer;
16521
+ },
16522
+ decode(input, length) {
16523
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
16524
+ const end = length === undefined ? reader.len : reader.pos + length;
16525
+ const message = createBaseSecurityGroupStatus();
16526
+ let writer = undefined;
16527
+ while (reader.pos < end) {
16528
+ const tag = reader.uint32();
16529
+ switch (tag >>> 3) {
16530
+ case 1: {
16531
+ if (tag !== 10)
16532
+ break;
16533
+ message.id = reader.string();
16534
+ continue;
16535
+ }
16536
+ default:
16537
+ break;
16538
+ }
16539
+ if ((tag & 7) === 4 || tag === 0) {
16540
+ break;
16541
+ }
16542
+ {
16543
+ if (!writer)
16544
+ writer = new BinaryWriter();
16545
+ const skipped = reader.skip(tag & 7, tag >>> 3);
16546
+ writer.uint32(tag).raw(skipped);
16547
+ }
16548
+ }
16549
+ if (writer) {
16550
+ message[unknownFieldsSymbol] = writer.finish();
16551
+ }
16552
+ return message;
16553
+ },
16554
+ fromJSON(object) {
16555
+ return applySecurityGroupStatusCustom({
16556
+ $type: "nebius.compute.v1.SecurityGroupStatus",
16557
+ id: isSet(object.id ?? object.id)
16558
+ ? String(object.id ?? object.id)
16559
+ : "",
16560
+ });
16561
+ },
16562
+ toJSON(message, use = "json") {
16563
+ const obj = {};
16564
+ const pick = (json, pb) => (use === "json" ? json : pb);
16565
+ if (message.id !== "") {
16566
+ obj[pick("id", "id")] = message.id;
16567
+ }
16568
+ return obj;
16569
+ },
16570
+ create(base) {
16571
+ return SecurityGroupStatus.fromPartial(base ?? {});
16572
+ },
16573
+ fromPartial(object) {
16574
+ const message = createBaseSecurityGroupStatus();
16575
+ message.id = (object.id !== undefined && object.id !== null)
16576
+ ? object.id
16577
+ : "";
16578
+ return message;
16579
+ },
16580
+ };
16581
+ protoRegistry.registerMessage(SecurityGroupStatus);
16582
+ function SecurityGroupStatusCustomInspect() {
16583
+ const parts = [];
16584
+ if (this.id !== "")
16585
+ parts.push("id" + "=" + inspect(this.id));
16586
+ return `${this.$type}(${parts.join(", ")})`;
16587
+ }
16588
+ function SecurityGroupStatusCustomJson() {
16589
+ const obj = {
16590
+ type: this.$type,
16591
+ };
16592
+ if (this.id !== "")
16593
+ obj.id = inspectJson(this.id);
16594
+ return obj;
16595
+ }
16596
+ function applySecurityGroupStatusCustom(message) {
16597
+ message[custom] = SecurityGroupStatusCustomInspect;
16598
+ message[customJson] = SecurityGroupStatusCustomJson;
16599
+ return attachMessageDescriptor(message, SecurityGroupStatus.$descriptor);
16600
+ }
16601
+ function createBaseSecurityGroupStatus() {
16602
+ const message = {
16603
+ $type: "nebius.compute.v1.SecurityGroupStatus",
16604
+ id: "",
16605
+ };
16606
+ return applySecurityGroupStatusCustom(message);
16607
+ }
16481
16608
  const NodeSetUnhealthyRequest_MESSAGE_DESCRIPTOR = {
16482
16609
  fields: {
16483
16610
  "instanceId": { pbName: "instance_id", scalarType: 9 },