@nebius/js-sdk 0.2.62 → 0.2.64

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 (51) hide show
  1. package/dist/cjs/api/google/protobuf/index.d.ts +34 -20
  2. package/dist/cjs/api/google/protobuf/index.d.ts.map +1 -1
  3. package/dist/cjs/api/google/protobuf/index.js +32 -0
  4. package/dist/cjs/api/google/protobuf/index.js.map +1 -1
  5. package/dist/cjs/api/nebius/ai/v1/index.d.ts +1353 -1
  6. package/dist/cjs/api/nebius/ai/v1/index.d.ts.map +1 -1
  7. package/dist/cjs/api/nebius/ai/v1/index.js +4151 -2
  8. package/dist/cjs/api/nebius/ai/v1/index.js.map +1 -1
  9. package/dist/cjs/api/nebius/applications/v1alpha1/index.d.ts +1639 -0
  10. package/dist/cjs/api/nebius/applications/v1alpha1/index.d.ts.map +1 -1
  11. package/dist/cjs/api/nebius/applications/v1alpha1/index.js +7660 -1
  12. package/dist/cjs/api/nebius/applications/v1alpha1/index.js.map +1 -1
  13. package/dist/cjs/api/nebius/compute/v1/index.d.ts +8 -2
  14. package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
  15. package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
  16. package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +109 -1
  17. package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
  18. package/dist/cjs/api/nebius/mk8s/v1/index.js +534 -2
  19. package/dist/cjs/api/nebius/mk8s/v1/index.js.map +1 -1
  20. package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.d.ts +128 -0
  21. package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.d.ts.map +1 -1
  22. package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.js +261 -1
  23. package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.js.map +1 -1
  24. package/dist/cjs/version.d.ts +1 -1
  25. package/dist/cjs/version.js +1 -1
  26. package/dist/esm/api/google/protobuf/index.d.ts +34 -20
  27. package/dist/esm/api/google/protobuf/index.d.ts.map +1 -1
  28. package/dist/esm/api/google/protobuf/index.js +32 -0
  29. package/dist/esm/api/google/protobuf/index.js.map +1 -1
  30. package/dist/esm/api/nebius/ai/v1/index.d.ts +1353 -1
  31. package/dist/esm/api/nebius/ai/v1/index.d.ts.map +1 -1
  32. package/dist/esm/api/nebius/ai/v1/index.js +4149 -1
  33. package/dist/esm/api/nebius/ai/v1/index.js.map +1 -1
  34. package/dist/esm/api/nebius/applications/v1alpha1/index.d.ts +1639 -0
  35. package/dist/esm/api/nebius/applications/v1alpha1/index.d.ts.map +1 -1
  36. package/dist/esm/api/nebius/applications/v1alpha1/index.js +7658 -1
  37. package/dist/esm/api/nebius/applications/v1alpha1/index.js.map +1 -1
  38. package/dist/esm/api/nebius/compute/v1/index.d.ts +8 -2
  39. package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
  40. package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
  41. package/dist/esm/api/nebius/mk8s/v1/index.d.ts +109 -1
  42. package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
  43. package/dist/esm/api/nebius/mk8s/v1/index.js +533 -1
  44. package/dist/esm/api/nebius/mk8s/v1/index.js.map +1 -1
  45. package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.d.ts +128 -0
  46. package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.d.ts.map +1 -1
  47. package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.js +260 -0
  48. package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.js.map +1 -1
  49. package/dist/esm/version.d.ts +1 -1
  50. package/dist/esm/version.js +1 -1
  51. package/package.json +1 -1
@@ -6,7 +6,7 @@ import { custom, customJson, inspectJson } from "../../../../runtime/util/loggin
6
6
  import { makeGenericClientConstructor } from "@grpc/grpc-js";
7
7
  import { Request as SDKRequestClass } from "../../../../runtime/request.js";
8
8
  import { Operation as OperationWrapper } from "../../../../runtime/operation.js";
9
- import { GetByNameRequest, Operation, OperationService, RecurrentResourceEvent, ResourceMetadata } from "../../common/v1/index.js";
9
+ import { GetByNameRequest, Operation, OperationService, PreflightCheckContext, PreflightCheckDiagnostic, RecurrentResourceEvent, ResourceMetadata } from "../../common/v1/index.js";
10
10
  const __deprecatedWarned = new Set();
11
11
  const CreateClusterRequest_MESSAGE_DESCRIPTOR = {
12
12
  fields: {
@@ -4758,6 +4758,322 @@ function createBaseUpdateNodeGroupRequest() {
4758
4758
  };
4759
4759
  return applyUpdateNodeGroupRequestCustom(message);
4760
4760
  }
4761
+ const PreflightCheckNodeGroupRequest_MESSAGE_DESCRIPTOR = {
4762
+ fields: {
4763
+ "context": { pbName: "context", message: () => PreflightCheckContext.$descriptor },
4764
+ "metadata": { pbName: "metadata", message: () => ResourceMetadata.$descriptor },
4765
+ "spec": { pbName: "spec", message: () => NodeGroupSpec.$descriptor },
4766
+ },
4767
+ };
4768
+ /** Encodes, decodes, converts, and creates {@link PreflightCheckNodeGroupRequest} messages. */
4769
+ export const PreflightCheckNodeGroupRequest = {
4770
+ $type: "nebius.mk8s.v1.PreflightCheckNodeGroupRequest",
4771
+ $descriptor: PreflightCheckNodeGroupRequest_MESSAGE_DESCRIPTOR,
4772
+ encode(message, writer = new BinaryWriter()) {
4773
+ if (message.context !== undefined) {
4774
+ const w = writer.uint32(10).fork();
4775
+ PreflightCheckContext.encode(message.context, w);
4776
+ w.join();
4777
+ }
4778
+ if (message.metadata !== undefined) {
4779
+ const w = writer.uint32(18).fork();
4780
+ ResourceMetadata.encode(message.metadata, w);
4781
+ w.join();
4782
+ }
4783
+ if (message.spec !== undefined) {
4784
+ const w = writer.uint32(26).fork();
4785
+ NodeGroupSpec.encode(message.spec, w);
4786
+ w.join();
4787
+ }
4788
+ if (message[unknownFieldsSymbol]) {
4789
+ writer.raw(message[unknownFieldsSymbol]);
4790
+ }
4791
+ return writer;
4792
+ },
4793
+ decode(input, length) {
4794
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4795
+ const end = length === undefined ? reader.len : reader.pos + length;
4796
+ const message = createBasePreflightCheckNodeGroupRequest();
4797
+ let writer = undefined;
4798
+ while (reader.pos < end) {
4799
+ const tag = reader.uint32();
4800
+ switch (tag >>> 3) {
4801
+ case 1: {
4802
+ if (tag !== 10)
4803
+ break;
4804
+ message.context = PreflightCheckContext.decode(reader, reader.uint32());
4805
+ continue;
4806
+ }
4807
+ case 2: {
4808
+ if (tag !== 18)
4809
+ break;
4810
+ message.metadata = ResourceMetadata.decode(reader, reader.uint32());
4811
+ continue;
4812
+ }
4813
+ case 3: {
4814
+ if (tag !== 26)
4815
+ break;
4816
+ message.spec = NodeGroupSpec.decode(reader, reader.uint32());
4817
+ continue;
4818
+ }
4819
+ default:
4820
+ break;
4821
+ }
4822
+ if ((tag & 7) === 4 || tag === 0) {
4823
+ break;
4824
+ }
4825
+ {
4826
+ if (!writer)
4827
+ writer = new BinaryWriter();
4828
+ const skipped = reader.skip(tag & 7, tag >>> 3);
4829
+ writer.uint32(tag).raw(skipped);
4830
+ }
4831
+ }
4832
+ if (writer) {
4833
+ message[unknownFieldsSymbol] = writer.finish();
4834
+ }
4835
+ return message;
4836
+ },
4837
+ fromJSON(object) {
4838
+ return applyPreflightCheckNodeGroupRequestCustom({
4839
+ $type: "nebius.mk8s.v1.PreflightCheckNodeGroupRequest",
4840
+ context: isSet(object.context ?? object.context)
4841
+ ? PreflightCheckContext.fromJSON(object.context ?? object.context)
4842
+ : undefined,
4843
+ metadata: isSet(object.metadata ?? object.metadata)
4844
+ ? ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
4845
+ : undefined,
4846
+ spec: isSet(object.spec ?? object.spec)
4847
+ ? NodeGroupSpec.fromJSON(object.spec ?? object.spec)
4848
+ : undefined,
4849
+ });
4850
+ },
4851
+ toJSON(message, use = "json") {
4852
+ const obj = {};
4853
+ const pick = (json, pb) => (use === "json" ? json : pb);
4854
+ if (message.context !== undefined) {
4855
+ obj[pick("context", "context")] = message.context
4856
+ ? PreflightCheckContext.toJSON(message.context, use)
4857
+ : undefined;
4858
+ }
4859
+ if (message.metadata !== undefined) {
4860
+ obj[pick("metadata", "metadata")] = message.metadata
4861
+ ? ResourceMetadata.toJSON(message.metadata, use)
4862
+ : undefined;
4863
+ }
4864
+ if (message.spec !== undefined) {
4865
+ obj[pick("spec", "spec")] = message.spec
4866
+ ? NodeGroupSpec.toJSON(message.spec, use)
4867
+ : undefined;
4868
+ }
4869
+ return obj;
4870
+ },
4871
+ create(base) {
4872
+ return PreflightCheckNodeGroupRequest.fromPartial(base ?? {});
4873
+ },
4874
+ fromPartial(object) {
4875
+ const message = createBasePreflightCheckNodeGroupRequest();
4876
+ message.context = (object.context !== undefined && object.context !== null)
4877
+ ? PreflightCheckContext.fromPartial(object.context)
4878
+ : undefined;
4879
+ message.metadata = (object.metadata !== undefined && object.metadata !== null)
4880
+ ? ResourceMetadata.fromPartial(object.metadata)
4881
+ : undefined;
4882
+ message.spec = (object.spec !== undefined && object.spec !== null)
4883
+ ? NodeGroupSpec.fromPartial(object.spec)
4884
+ : undefined;
4885
+ return message;
4886
+ },
4887
+ };
4888
+ protoRegistry.registerMessage(PreflightCheckNodeGroupRequest);
4889
+ function PreflightCheckNodeGroupRequestCustomInspect() {
4890
+ const parts = [];
4891
+ if (this.context !== undefined)
4892
+ parts.push("context" + "=" + inspect(this.context));
4893
+ if (this.metadata !== undefined)
4894
+ parts.push("metadata" + "=" + inspect(this.metadata));
4895
+ if (this.spec !== undefined)
4896
+ parts.push("spec" + "=" + inspect(this.spec));
4897
+ return `${this.$type}(${parts.join(", ")})`;
4898
+ }
4899
+ function PreflightCheckNodeGroupRequestCustomJson() {
4900
+ const obj = {
4901
+ type: this.$type,
4902
+ };
4903
+ if (this.context !== undefined)
4904
+ obj.context = inspectJson(this.context);
4905
+ if (this.metadata !== undefined)
4906
+ obj.metadata = inspectJson(this.metadata);
4907
+ if (this.spec !== undefined)
4908
+ obj.spec = inspectJson(this.spec);
4909
+ return obj;
4910
+ }
4911
+ function applyPreflightCheckNodeGroupRequestCustom(message) {
4912
+ message[custom] = PreflightCheckNodeGroupRequestCustomInspect;
4913
+ message[customJson] = PreflightCheckNodeGroupRequestCustomJson;
4914
+ return attachMessageDescriptor(message, PreflightCheckNodeGroupRequest.$descriptor);
4915
+ }
4916
+ function createBasePreflightCheckNodeGroupRequest() {
4917
+ const message = {
4918
+ $type: "nebius.mk8s.v1.PreflightCheckNodeGroupRequest",
4919
+ context: undefined,
4920
+ metadata: undefined,
4921
+ spec: undefined,
4922
+ };
4923
+ return applyPreflightCheckNodeGroupRequestCustom(message);
4924
+ }
4925
+ const PreflightCheckNodeGroupResponse_MESSAGE_DESCRIPTOR = {
4926
+ fields: {
4927
+ "diagnostics": { pbName: "diagnostics", repeated: true, message: () => PreflightCheckDiagnostic.$descriptor },
4928
+ "pathsRequireRecreate": { pbName: "paths_require_recreate", scalarType: 9 },
4929
+ "requiresUserApproval": { pbName: "requires_user_approval", scalarType: 8 },
4930
+ },
4931
+ };
4932
+ /** Encodes, decodes, converts, and creates {@link PreflightCheckNodeGroupResponse} messages. */
4933
+ export const PreflightCheckNodeGroupResponse = {
4934
+ $type: "nebius.mk8s.v1.PreflightCheckNodeGroupResponse",
4935
+ $descriptor: PreflightCheckNodeGroupResponse_MESSAGE_DESCRIPTOR,
4936
+ encode(message, writer = new BinaryWriter()) {
4937
+ for (const v of (message.diagnostics ?? [])) {
4938
+ const w = writer.uint32(10).fork();
4939
+ PreflightCheckDiagnostic.encode(v, w);
4940
+ w.join();
4941
+ }
4942
+ if (message.pathsRequireRecreate !== "") {
4943
+ writer.uint32(18).string(message.pathsRequireRecreate);
4944
+ }
4945
+ if (message.requiresUserApproval === true) {
4946
+ writer.uint32(24).bool(message.requiresUserApproval);
4947
+ }
4948
+ if (message[unknownFieldsSymbol]) {
4949
+ writer.raw(message[unknownFieldsSymbol]);
4950
+ }
4951
+ return writer;
4952
+ },
4953
+ decode(input, length) {
4954
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
4955
+ const end = length === undefined ? reader.len : reader.pos + length;
4956
+ const message = createBasePreflightCheckNodeGroupResponse();
4957
+ let writer = undefined;
4958
+ while (reader.pos < end) {
4959
+ const tag = reader.uint32();
4960
+ switch (tag >>> 3) {
4961
+ case 1: {
4962
+ if (tag !== 10)
4963
+ break;
4964
+ message.diagnostics.push(PreflightCheckDiagnostic.decode(reader, reader.uint32()));
4965
+ continue;
4966
+ }
4967
+ case 2: {
4968
+ if (tag !== 18)
4969
+ break;
4970
+ message.pathsRequireRecreate = reader.string();
4971
+ continue;
4972
+ }
4973
+ case 3: {
4974
+ if (tag !== 24)
4975
+ break;
4976
+ message.requiresUserApproval = reader.bool();
4977
+ continue;
4978
+ }
4979
+ default:
4980
+ break;
4981
+ }
4982
+ if ((tag & 7) === 4 || tag === 0) {
4983
+ break;
4984
+ }
4985
+ {
4986
+ if (!writer)
4987
+ writer = new BinaryWriter();
4988
+ const skipped = reader.skip(tag & 7, tag >>> 3);
4989
+ writer.uint32(tag).raw(skipped);
4990
+ }
4991
+ }
4992
+ if (writer) {
4993
+ message[unknownFieldsSymbol] = writer.finish();
4994
+ }
4995
+ return message;
4996
+ },
4997
+ fromJSON(object) {
4998
+ return applyPreflightCheckNodeGroupResponseCustom({
4999
+ $type: "nebius.mk8s.v1.PreflightCheckNodeGroupResponse",
5000
+ diagnostics: globalThis.Array.isArray(object?.diagnostics ?? object?.diagnostics)
5001
+ ? (object.diagnostics ?? object.diagnostics).map((e) => PreflightCheckDiagnostic.fromJSON(e))
5002
+ : [],
5003
+ pathsRequireRecreate: isSet(object.pathsRequireRecreate ?? object.paths_require_recreate)
5004
+ ? String(object.pathsRequireRecreate ?? object.paths_require_recreate)
5005
+ : "",
5006
+ requiresUserApproval: isSet(object.requiresUserApproval ?? object.requires_user_approval)
5007
+ ? Boolean(object.requiresUserApproval ?? object.requires_user_approval)
5008
+ : false,
5009
+ });
5010
+ },
5011
+ toJSON(message, use = "json") {
5012
+ const obj = {};
5013
+ const pick = (json, pb) => (use === "json" ? json : pb);
5014
+ if (message.diagnostics?.length) {
5015
+ obj[pick("diagnostics", "diagnostics")] = message.diagnostics.map((e) => e ? PreflightCheckDiagnostic.toJSON(e, use) : undefined);
5016
+ }
5017
+ if (message.pathsRequireRecreate !== "") {
5018
+ obj[pick("pathsRequireRecreate", "paths_require_recreate")] = message.pathsRequireRecreate;
5019
+ }
5020
+ if (message.requiresUserApproval === true) {
5021
+ obj[pick("requiresUserApproval", "requires_user_approval")] = message.requiresUserApproval;
5022
+ }
5023
+ return obj;
5024
+ },
5025
+ create(base) {
5026
+ return PreflightCheckNodeGroupResponse.fromPartial(base ?? {});
5027
+ },
5028
+ fromPartial(object) {
5029
+ const message = createBasePreflightCheckNodeGroupResponse();
5030
+ message.diagnostics = object.diagnostics?.map((e) => PreflightCheckDiagnostic.fromPartial(e)) || [];
5031
+ message.pathsRequireRecreate = (object.pathsRequireRecreate !== undefined && object.pathsRequireRecreate !== null)
5032
+ ? object.pathsRequireRecreate
5033
+ : "";
5034
+ message.requiresUserApproval = (object.requiresUserApproval !== undefined && object.requiresUserApproval !== null)
5035
+ ? object.requiresUserApproval
5036
+ : false;
5037
+ return message;
5038
+ },
5039
+ };
5040
+ protoRegistry.registerMessage(PreflightCheckNodeGroupResponse);
5041
+ function PreflightCheckNodeGroupResponseCustomInspect() {
5042
+ const parts = [];
5043
+ if ((this.diagnostics?.length ?? 0) !== 0)
5044
+ parts.push("diagnostics" + "=" + inspect(this.diagnostics));
5045
+ if (this.pathsRequireRecreate !== "")
5046
+ parts.push("pathsRequireRecreate" + "=" + inspect(this.pathsRequireRecreate));
5047
+ if (this.requiresUserApproval === true)
5048
+ parts.push("requiresUserApproval" + "=" + inspect(this.requiresUserApproval));
5049
+ return `${this.$type}(${parts.join(", ")})`;
5050
+ }
5051
+ function PreflightCheckNodeGroupResponseCustomJson() {
5052
+ const obj = {
5053
+ type: this.$type,
5054
+ };
5055
+ if ((this.diagnostics?.length ?? 0) !== 0)
5056
+ obj.diagnostics = inspectJson(this.diagnostics);
5057
+ if (this.pathsRequireRecreate !== "")
5058
+ obj.pathsRequireRecreate = inspectJson(this.pathsRequireRecreate);
5059
+ if (this.requiresUserApproval === true)
5060
+ obj.requiresUserApproval = inspectJson(this.requiresUserApproval);
5061
+ return obj;
5062
+ }
5063
+ function applyPreflightCheckNodeGroupResponseCustom(message) {
5064
+ message[custom] = PreflightCheckNodeGroupResponseCustomInspect;
5065
+ message[customJson] = PreflightCheckNodeGroupResponseCustomJson;
5066
+ return attachMessageDescriptor(message, PreflightCheckNodeGroupResponse.$descriptor);
5067
+ }
5068
+ function createBasePreflightCheckNodeGroupResponse() {
5069
+ const message = {
5070
+ $type: "nebius.mk8s.v1.PreflightCheckNodeGroupResponse",
5071
+ diagnostics: [],
5072
+ pathsRequireRecreate: "",
5073
+ requiresUserApproval: false,
5074
+ };
5075
+ return applyPreflightCheckNodeGroupResponseCustom(message);
5076
+ }
4761
5077
  const DeleteNodeGroupRequest_MESSAGE_DESCRIPTOR = {
4762
5078
  fields: {
4763
5079
  "id": { pbName: "id", scalarType: 9 },
@@ -5098,6 +5414,17 @@ export const NodeGroupServiceServiceDescription = {
5098
5414
  responseSerialize: (value) => Buffer.from(Operation.encode(value).finish()),
5099
5415
  responseDeserialize: (value) => Operation.decode(value),
5100
5416
  },
5417
+ preflightCheck: {
5418
+ path: "/nebius.mk8s.v1.NodeGroupService/PreflightCheck",
5419
+ requestStream: false,
5420
+ responseStream: false,
5421
+ requestSerialize: (value) => Buffer.from(PreflightCheckNodeGroupRequest.encode(value).finish()),
5422
+ requestDescriptor: () => PreflightCheckNodeGroupRequest.$descriptor,
5423
+ sendResetMask: false,
5424
+ requestDeserialize: (value) => PreflightCheckNodeGroupRequest.decode(value),
5425
+ responseSerialize: (value) => Buffer.from(PreflightCheckNodeGroupResponse.encode(value).finish()),
5426
+ responseDeserialize: (value) => PreflightCheckNodeGroupResponse.decode(value),
5427
+ },
5101
5428
  getCompatibilityMatrix: {
5102
5429
  path: "/nebius.mk8s.v1.NodeGroupService/GetCompatibilityMatrix",
5103
5430
  requestStream: false,
@@ -5223,6 +5550,17 @@ export class NodeGroupService {
5223
5550
  };
5224
5551
  return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
5225
5552
  }
5553
+ /**
5554
+ * Calls the `PreflightCheck` RPC.
5555
+ */
5556
+ preflightCheck(...args) {
5557
+ const spec = this.spec.preflightCheck;
5558
+ const request = args[0];
5559
+ const metadata = (args.length > 1 ? args[1] : undefined);
5560
+ const options = (args.length > 2 ? args[2] : undefined);
5561
+ const deserialize = spec.responseDeserialize;
5562
+ return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
5563
+ }
5226
5564
  /**
5227
5565
  * Calls the `GetCompatibilityMatrix` RPC.
5228
5566
  */
@@ -5788,6 +6126,7 @@ const NodeTemplate_MESSAGE_DESCRIPTOR = {
5788
6126
  "filesystems": { pbName: "filesystems", repeated: true, message: () => AttachedFilesystemSpec.$descriptor },
5789
6127
  "cloudInitUserData": { pbName: "cloud_init_user_data", scalarType: 9 },
5790
6128
  "serviceAccountId": { pbName: "service_account_id", scalarType: 9 },
6129
+ "instanceMetadata": { pbName: "instance_metadata", message: () => InstanceMetadataTemplate.$descriptor },
5791
6130
  "preemptible": { pbName: "preemptible", message: () => PreemptibleSpec.$descriptor },
5792
6131
  "nvlink": { pbName: "nvlink", message: () => NVLinkSpec.$descriptor },
5793
6132
  "reservationPolicy": { pbName: "reservation_policy", message: () => ReservationPolicy.$descriptor },
@@ -5849,6 +6188,11 @@ export const NodeTemplate = {
5849
6188
  if (message.serviceAccountId !== "") {
5850
6189
  writer.uint32(82).string(message.serviceAccountId);
5851
6190
  }
6191
+ if (message.instanceMetadata !== undefined) {
6192
+ const w = writer.uint32(98).fork();
6193
+ InstanceMetadataTemplate.encode(message.instanceMetadata, w);
6194
+ w.join();
6195
+ }
5852
6196
  if (message.preemptible !== undefined) {
5853
6197
  const w = writer.uint32(122).fork();
5854
6198
  PreemptibleSpec.encode(message.preemptible, w);
@@ -5951,6 +6295,12 @@ export const NodeTemplate = {
5951
6295
  message.serviceAccountId = reader.string();
5952
6296
  continue;
5953
6297
  }
6298
+ case 12: {
6299
+ if (tag !== 98)
6300
+ break;
6301
+ message.instanceMetadata = InstanceMetadataTemplate.decode(reader, reader.uint32());
6302
+ continue;
6303
+ }
5954
6304
  case 15: {
5955
6305
  if (tag !== 122)
5956
6306
  break;
@@ -6035,6 +6385,9 @@ export const NodeTemplate = {
6035
6385
  serviceAccountId: isSet(object.serviceAccountId ?? object.service_account_id)
6036
6386
  ? String(object.serviceAccountId ?? object.service_account_id)
6037
6387
  : "",
6388
+ instanceMetadata: isSet(object.instanceMetadata ?? object.instance_metadata)
6389
+ ? InstanceMetadataTemplate.fromJSON(object.instanceMetadata ?? object.instance_metadata)
6390
+ : undefined,
6038
6391
  preemptible: isSet(object.preemptible ?? object.preemptible)
6039
6392
  ? PreemptibleSpec.fromJSON(object.preemptible ?? object.preemptible)
6040
6393
  : undefined,
@@ -6098,6 +6451,11 @@ export const NodeTemplate = {
6098
6451
  if (message.serviceAccountId !== "") {
6099
6452
  obj[pick("serviceAccountId", "service_account_id")] = message.serviceAccountId;
6100
6453
  }
6454
+ if (message.instanceMetadata !== undefined) {
6455
+ obj[pick("instanceMetadata", "instance_metadata")] = message.instanceMetadata
6456
+ ? InstanceMetadataTemplate.toJSON(message.instanceMetadata, use)
6457
+ : undefined;
6458
+ }
6101
6459
  if (message.preemptible !== undefined) {
6102
6460
  obj[pick("preemptible", "preemptible")] = message.preemptible
6103
6461
  ? PreemptibleSpec.toJSON(message.preemptible, use)
@@ -6155,6 +6513,9 @@ export const NodeTemplate = {
6155
6513
  message.serviceAccountId = (object.serviceAccountId !== undefined && object.serviceAccountId !== null)
6156
6514
  ? object.serviceAccountId
6157
6515
  : "";
6516
+ message.instanceMetadata = (object.instanceMetadata !== undefined && object.instanceMetadata !== null)
6517
+ ? InstanceMetadataTemplate.fromPartial(object.instanceMetadata)
6518
+ : undefined;
6158
6519
  message.preemptible = (object.preemptible !== undefined && object.preemptible !== null)
6159
6520
  ? PreemptibleSpec.fromPartial(object.preemptible)
6160
6521
  : undefined;
@@ -6198,6 +6559,8 @@ function NodeTemplateCustomInspect() {
6198
6559
  parts.push("cloudInitUserData" + "=***");
6199
6560
  if (this.serviceAccountId !== "")
6200
6561
  parts.push("serviceAccountId" + "=" + inspect(this.serviceAccountId));
6562
+ if (this.instanceMetadata !== undefined)
6563
+ parts.push("instanceMetadata" + "=" + inspect(this.instanceMetadata));
6201
6564
  if (this.preemptible !== undefined)
6202
6565
  parts.push("preemptible" + "=" + inspect(this.preemptible));
6203
6566
  if (this.nvlink !== undefined)
@@ -6236,6 +6599,8 @@ function NodeTemplateCustomJson() {
6236
6599
  obj.cloudInitUserData = "***";
6237
6600
  if (this.serviceAccountId !== "")
6238
6601
  obj.serviceAccountId = inspectJson(this.serviceAccountId);
6602
+ if (this.instanceMetadata !== undefined)
6603
+ obj.instanceMetadata = inspectJson(this.instanceMetadata);
6239
6604
  if (this.preemptible !== undefined)
6240
6605
  obj.preemptible = inspectJson(this.preemptible);
6241
6606
  if (this.nvlink !== undefined)
@@ -6267,6 +6632,7 @@ function createBaseNodeTemplate() {
6267
6632
  filesystems: [],
6268
6633
  cloudInitUserData: "",
6269
6634
  serviceAccountId: "",
6635
+ instanceMetadata: undefined,
6270
6636
  preemptible: undefined,
6271
6637
  nvlink: undefined,
6272
6638
  reservationPolicy: undefined,
@@ -6548,6 +6914,7 @@ function createBaseNodeMetadataTemplate() {
6548
6914
  const GpuSettings_MESSAGE_DESCRIPTOR = {
6549
6915
  fields: {
6550
6916
  "driversPreset": { pbName: "drivers_preset", scalarType: 9 },
6917
+ "dra": { pbName: "dra", scalarType: 8 },
6551
6918
  },
6552
6919
  };
6553
6920
  /** Encodes, decodes, converts, and creates {@link GpuSettings} messages. */
@@ -6558,6 +6925,9 @@ export const GpuSettings = {
6558
6925
  if (message.driversPreset !== "") {
6559
6926
  writer.uint32(10).string(message.driversPreset);
6560
6927
  }
6928
+ if (message.dra === true) {
6929
+ writer.uint32(24).bool(message.dra);
6930
+ }
6561
6931
  if (message[unknownFieldsSymbol]) {
6562
6932
  writer.raw(message[unknownFieldsSymbol]);
6563
6933
  }
@@ -6577,6 +6947,12 @@ export const GpuSettings = {
6577
6947
  message.driversPreset = reader.string();
6578
6948
  continue;
6579
6949
  }
6950
+ case 3: {
6951
+ if (tag !== 24)
6952
+ break;
6953
+ message.dra = reader.bool();
6954
+ continue;
6955
+ }
6580
6956
  default:
6581
6957
  break;
6582
6958
  }
@@ -6601,6 +6977,9 @@ export const GpuSettings = {
6601
6977
  driversPreset: isSet(object.driversPreset ?? object.drivers_preset)
6602
6978
  ? String(object.driversPreset ?? object.drivers_preset)
6603
6979
  : "",
6980
+ dra: isSet(object.dra ?? object.dra)
6981
+ ? Boolean(object.dra ?? object.dra)
6982
+ : false,
6604
6983
  });
6605
6984
  },
6606
6985
  toJSON(message, use = "json") {
@@ -6609,6 +6988,9 @@ export const GpuSettings = {
6609
6988
  if (message.driversPreset !== "") {
6610
6989
  obj[pick("driversPreset", "drivers_preset")] = message.driversPreset;
6611
6990
  }
6991
+ if (message.dra === true) {
6992
+ obj[pick("dra", "dra")] = message.dra;
6993
+ }
6612
6994
  return obj;
6613
6995
  },
6614
6996
  create(base) {
@@ -6619,6 +7001,9 @@ export const GpuSettings = {
6619
7001
  message.driversPreset = (object.driversPreset !== undefined && object.driversPreset !== null)
6620
7002
  ? object.driversPreset
6621
7003
  : "";
7004
+ message.dra = (object.dra !== undefined && object.dra !== null)
7005
+ ? object.dra
7006
+ : false;
6622
7007
  return message;
6623
7008
  },
6624
7009
  };
@@ -6627,6 +7012,8 @@ function GpuSettingsCustomInspect() {
6627
7012
  const parts = [];
6628
7013
  if (this.driversPreset !== "")
6629
7014
  parts.push("driversPreset" + "=" + inspect(this.driversPreset));
7015
+ if (this.dra === true)
7016
+ parts.push("dra" + "=" + inspect(this.dra));
6630
7017
  return `${this.$type}(${parts.join(", ")})`;
6631
7018
  }
6632
7019
  function GpuSettingsCustomJson() {
@@ -6635,6 +7022,8 @@ function GpuSettingsCustomJson() {
6635
7022
  };
6636
7023
  if (this.driversPreset !== "")
6637
7024
  obj.driversPreset = inspectJson(this.driversPreset);
7025
+ if (this.dra === true)
7026
+ obj.dra = inspectJson(this.dra);
6638
7027
  return obj;
6639
7028
  }
6640
7029
  function applyGpuSettingsCustom(message) {
@@ -6646,6 +7035,7 @@ function createBaseGpuSettings() {
6646
7035
  const message = {
6647
7036
  $type: "nebius.mk8s.v1.GpuSettings",
6648
7037
  driversPreset: "",
7038
+ dra: false,
6649
7039
  };
6650
7040
  return applyGpuSettingsCustom(message);
6651
7041
  }
@@ -7502,6 +7892,148 @@ function createBaseNodeGroupAutoscalingSpec() {
7502
7892
  };
7503
7893
  return applyNodeGroupAutoscalingSpecCustom(message);
7504
7894
  }
7895
+ const InstanceMetadataTemplate_MESSAGE_DESCRIPTOR = {
7896
+ fields: {
7897
+ "labels": { pbName: "labels", map: true },
7898
+ },
7899
+ };
7900
+ /** Encodes, decodes, converts, and creates {@link InstanceMetadataTemplate} messages. */
7901
+ export const InstanceMetadataTemplate = {
7902
+ $type: "nebius.mk8s.v1.InstanceMetadataTemplate",
7903
+ $descriptor: InstanceMetadataTemplate_MESSAGE_DESCRIPTOR,
7904
+ encode(message, writer = new BinaryWriter()) {
7905
+ for (const [k, v] of Object.entries(message.labels ?? {})) {
7906
+ const w = writer.uint32(18).fork();
7907
+ w.uint32(10).string(k);
7908
+ w.uint32(18).string(v);
7909
+ w.join();
7910
+ }
7911
+ if (message[unknownFieldsSymbol]) {
7912
+ writer.raw(message[unknownFieldsSymbol]);
7913
+ }
7914
+ return writer;
7915
+ },
7916
+ decode(input, length) {
7917
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
7918
+ const end = length === undefined ? reader.len : reader.pos + length;
7919
+ const message = createBaseInstanceMetadataTemplate();
7920
+ let writer = undefined;
7921
+ while (reader.pos < end) {
7922
+ const tag = reader.uint32();
7923
+ switch (tag >>> 3) {
7924
+ case 2: {
7925
+ if (tag !== 18)
7926
+ break; // wire type guard
7927
+ const end2 = reader.uint32() + reader.pos;
7928
+ let key = "";
7929
+ let value = undefined;
7930
+ while (reader.pos < end2) {
7931
+ const tag2 = reader.uint32();
7932
+ switch (tag2 >>> 3) {
7933
+ case 1: {
7934
+ key = reader.string();
7935
+ continue;
7936
+ }
7937
+ case 2: {
7938
+ value = reader.string();
7939
+ continue;
7940
+ }
7941
+ }
7942
+ if ((tag2 & 7) === 4 || tag2 === 0)
7943
+ break;
7944
+ reader.skip(tag2 & 7);
7945
+ }
7946
+ if (value !== undefined) {
7947
+ const stringKey = String(key);
7948
+ message.labels[stringKey] = value;
7949
+ }
7950
+ continue;
7951
+ }
7952
+ default:
7953
+ break;
7954
+ }
7955
+ if ((tag & 7) === 4 || tag === 0) {
7956
+ break;
7957
+ }
7958
+ {
7959
+ if (!writer)
7960
+ writer = new BinaryWriter();
7961
+ const skipped = reader.skip(tag & 7, tag >>> 3);
7962
+ writer.uint32(tag).raw(skipped);
7963
+ }
7964
+ }
7965
+ if (writer) {
7966
+ message[unknownFieldsSymbol] = writer.finish();
7967
+ }
7968
+ return message;
7969
+ },
7970
+ fromJSON(object) {
7971
+ return applyInstanceMetadataTemplateCustom({
7972
+ $type: "nebius.mk8s.v1.InstanceMetadataTemplate",
7973
+ labels: (isSet(object.labels) && typeof object.labels === "object" ? object.labels
7974
+ : (isSet(object.labels) && typeof object.labels === "object" ? object.labels : undefined))
7975
+ ? Object.entries((object.labels ?? object.labels)).reduce((acc, [key, value]) => {
7976
+ acc[key] = String(value);
7977
+ return acc;
7978
+ }, {})
7979
+ : {},
7980
+ });
7981
+ },
7982
+ toJSON(message, use = "json") {
7983
+ const obj = {};
7984
+ const pick = (json, pb) => (use === "json" ? json : pb);
7985
+ if (message.labels) {
7986
+ const entries = Object.entries(message.labels);
7987
+ if (entries.length > 0) {
7988
+ obj[pick("labels", "labels")] = {};
7989
+ entries.forEach(([k, v]) => {
7990
+ obj[pick("labels", "labels")][k] = v;
7991
+ });
7992
+ }
7993
+ }
7994
+ return obj;
7995
+ },
7996
+ create(base) {
7997
+ return InstanceMetadataTemplate.fromPartial(base ?? {});
7998
+ },
7999
+ fromPartial(object) {
8000
+ const message = createBaseInstanceMetadataTemplate();
8001
+ message.labels = Object.entries(object.labels ?? {}).reduce((acc, [key, value]) => {
8002
+ if (value !== undefined) {
8003
+ acc[key] = value;
8004
+ }
8005
+ return acc;
8006
+ }, {});
8007
+ return message;
8008
+ },
8009
+ };
8010
+ protoRegistry.registerMessage(InstanceMetadataTemplate);
8011
+ function InstanceMetadataTemplateCustomInspect() {
8012
+ const parts = [];
8013
+ if (Object.keys(this.labels || {}).length)
8014
+ parts.push("labels" + "=" + inspect(this.labels));
8015
+ return `${this.$type}(${parts.join(", ")})`;
8016
+ }
8017
+ function InstanceMetadataTemplateCustomJson() {
8018
+ const obj = {
8019
+ type: this.$type,
8020
+ };
8021
+ if (Object.keys(this.labels || {}).length)
8022
+ obj.labels = inspectJson(this.labels);
8023
+ return obj;
8024
+ }
8025
+ function applyInstanceMetadataTemplateCustom(message) {
8026
+ message[custom] = InstanceMetadataTemplateCustomInspect;
8027
+ message[customJson] = InstanceMetadataTemplateCustomJson;
8028
+ return attachMessageDescriptor(message, InstanceMetadataTemplate.$descriptor);
8029
+ }
8030
+ function createBaseInstanceMetadataTemplate() {
8031
+ const message = {
8032
+ $type: "nebius.mk8s.v1.InstanceMetadataTemplate",
8033
+ labels: {},
8034
+ };
8035
+ return applyInstanceMetadataTemplateCustom(message);
8036
+ }
7505
8037
  const NodeTaint_MESSAGE_DESCRIPTOR = {
7506
8038
  fields: {
7507
8039
  "key": { pbName: "key", scalarType: 9 },