@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.
- package/dist/cjs/api/google/protobuf/index.d.ts +34 -20
- package/dist/cjs/api/google/protobuf/index.d.ts.map +1 -1
- package/dist/cjs/api/google/protobuf/index.js +32 -0
- package/dist/cjs/api/google/protobuf/index.js.map +1 -1
- package/dist/cjs/api/nebius/ai/v1/index.d.ts +1353 -1
- package/dist/cjs/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/ai/v1/index.js +4151 -2
- package/dist/cjs/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/applications/v1alpha1/index.d.ts +1639 -0
- package/dist/cjs/api/nebius/applications/v1alpha1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/applications/v1alpha1/index.js +7660 -1
- package/dist/cjs/api/nebius/applications/v1alpha1/index.js.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.d.ts +8 -2
- package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +109 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.js +534 -2
- package/dist/cjs/api/nebius/mk8s/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.d.ts +128 -0
- package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.js +261 -1
- package/dist/cjs/api/nebius/msp/mlflow/v1alpha1/index.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/api/google/protobuf/index.d.ts +34 -20
- package/dist/esm/api/google/protobuf/index.d.ts.map +1 -1
- package/dist/esm/api/google/protobuf/index.js +32 -0
- package/dist/esm/api/google/protobuf/index.js.map +1 -1
- package/dist/esm/api/nebius/ai/v1/index.d.ts +1353 -1
- package/dist/esm/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/ai/v1/index.js +4149 -1
- package/dist/esm/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/applications/v1alpha1/index.d.ts +1639 -0
- package/dist/esm/api/nebius/applications/v1alpha1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/applications/v1alpha1/index.js +7658 -1
- package/dist/esm/api/nebius/applications/v1alpha1/index.js.map +1 -1
- package/dist/esm/api/nebius/compute/v1/index.d.ts +8 -2
- package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts +109 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.js +533 -1
- package/dist/esm/api/nebius/mk8s/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.d.ts +128 -0
- package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.js +260 -0
- package/dist/esm/api/nebius/msp/mlflow/v1alpha1/index.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* Generated by Nebius TS generator. DO NOT EDIT! */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.Problem = exports.ProgressData = exports.NodeGroupStatus = exports.LocalDisksSpecConfig = exports.PassthroughGroupRequest = exports.LocalDisksSpec = exports.ReservationPolicy = exports.PreemptibleSpec = exports.NodeAutoRepairCondition = exports.NodeGroupAutoRepairSpec = exports.PercentOrCount = exports.NodeGroupDeploymentStrategy = exports.NodeTaint = exports.NodeGroupAutoscalingSpec = exports.ExistingFilesystem = exports.AttachedFilesystemSpec = exports.SecurityGroup = exports.PublicIPAddress = exports.NetworkInterfaceTemplate = exports.GpuClusterSpec = exports.GpuSettings = exports.NodeMetadataTemplate = exports.NVLinkSpec = exports.NodeTemplate = exports.NodeGroupSpec = void 0;
|
|
4
|
+
exports.ReservationPolicy_Policy = exports.NodeTaint_Effect = exports.AttachedFilesystemSpec_AttachMode = exports.ConditionStatus = exports.NodeGroupService = exports.NodeGroupServiceBaseClient = exports.NodeGroupServiceServiceDescription = exports.UpgradeNodeGroupRequest = exports.DeleteNodeGroupRequest = exports.PreflightCheckNodeGroupResponse = exports.PreflightCheckNodeGroupRequest = exports.UpdateNodeGroupRequest = exports.ListNodeGroupsResponse = exports.ListNodeGroupsRequest = exports.GetNodeGroupRequest = exports.CreateNodeGroupRequest = exports.NodeGroupCompatibilityVersionItem = exports.NodeGroupCompatibilityVersion = exports.NodeGroupCompatibilityMatrix = exports.GetNodeGroupCompatibilityMatrixRequest = exports.ResourcesSpec = exports.DiskEncryption = exports.DiskSpec = exports.DiskEncryption_DiskEncryptionType = exports.DiskSpec_DiskType = exports.ControlPlaneStatusAuth = exports.ControlPlaneStatusEndpoints = exports.ControlPlaneStatus = exports.ClusterStatus = exports.Karpenter = exports.AuditLogsSpec = exports.KubeNetworkSpec = exports.PublicEndpointSpec = exports.ControlPlaneEndpointsSpec = exports.ControlPlaneSpec = exports.ClusterSpec = exports.Cluster = exports.ClusterStatus_State = exports.ClusterService = exports.ClusterServiceBaseClient = exports.ClusterServiceServiceDescription = exports.ClusterControlPlaneVersion = exports.ListClusterControlPlaneVersionsResponse = exports.ListClusterControlPlaneVersionsRequest = exports.DeleteClusterRequest = exports.UpdateClusterRequest = exports.ListClustersResponse = exports.ListClustersRequest = exports.GetClusterRequest = exports.CreateClusterRequest = void 0;
|
|
5
|
+
exports.Problem = exports.ProgressData = exports.NodeGroupStatus = exports.LocalDisksSpecConfig = exports.PassthroughGroupRequest = exports.LocalDisksSpec = exports.ReservationPolicy = exports.PreemptibleSpec = exports.NodeAutoRepairCondition = exports.NodeGroupAutoRepairSpec = exports.PercentOrCount = exports.NodeGroupDeploymentStrategy = exports.NodeTaint = exports.InstanceMetadataTemplate = exports.NodeGroupAutoscalingSpec = exports.ExistingFilesystem = exports.AttachedFilesystemSpec = exports.SecurityGroup = exports.PublicIPAddress = exports.NetworkInterfaceTemplate = exports.GpuClusterSpec = exports.GpuSettings = exports.NodeMetadataTemplate = exports.NVLinkSpec = exports.NodeTemplate = exports.NodeGroupSpec = exports.NodeGroup = exports.NodeGroupStatus_State = void 0;
|
|
6
6
|
const index_js_1 = require("../../../../runtime/protos/index.js");
|
|
7
7
|
const util_1 = require("util");
|
|
8
8
|
const protobuf_js_1 = require("../../../protobuf.js");
|
|
@@ -4763,6 +4763,322 @@ function createBaseUpdateNodeGroupRequest() {
|
|
|
4763
4763
|
};
|
|
4764
4764
|
return applyUpdateNodeGroupRequestCustom(message);
|
|
4765
4765
|
}
|
|
4766
|
+
const PreflightCheckNodeGroupRequest_MESSAGE_DESCRIPTOR = {
|
|
4767
|
+
fields: {
|
|
4768
|
+
"context": { pbName: "context", message: () => index_js_2.PreflightCheckContext.$descriptor },
|
|
4769
|
+
"metadata": { pbName: "metadata", message: () => index_js_2.ResourceMetadata.$descriptor },
|
|
4770
|
+
"spec": { pbName: "spec", message: () => exports.NodeGroupSpec.$descriptor },
|
|
4771
|
+
},
|
|
4772
|
+
};
|
|
4773
|
+
/** Encodes, decodes, converts, and creates {@link PreflightCheckNodeGroupRequest} messages. */
|
|
4774
|
+
exports.PreflightCheckNodeGroupRequest = {
|
|
4775
|
+
$type: "nebius.mk8s.v1.PreflightCheckNodeGroupRequest",
|
|
4776
|
+
$descriptor: PreflightCheckNodeGroupRequest_MESSAGE_DESCRIPTOR,
|
|
4777
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
4778
|
+
if (message.context !== undefined) {
|
|
4779
|
+
const w = writer.uint32(10).fork();
|
|
4780
|
+
index_js_2.PreflightCheckContext.encode(message.context, w);
|
|
4781
|
+
w.join();
|
|
4782
|
+
}
|
|
4783
|
+
if (message.metadata !== undefined) {
|
|
4784
|
+
const w = writer.uint32(18).fork();
|
|
4785
|
+
index_js_2.ResourceMetadata.encode(message.metadata, w);
|
|
4786
|
+
w.join();
|
|
4787
|
+
}
|
|
4788
|
+
if (message.spec !== undefined) {
|
|
4789
|
+
const w = writer.uint32(26).fork();
|
|
4790
|
+
exports.NodeGroupSpec.encode(message.spec, w);
|
|
4791
|
+
w.join();
|
|
4792
|
+
}
|
|
4793
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
4794
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
4795
|
+
}
|
|
4796
|
+
return writer;
|
|
4797
|
+
},
|
|
4798
|
+
decode(input, length) {
|
|
4799
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
4800
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4801
|
+
const message = createBasePreflightCheckNodeGroupRequest();
|
|
4802
|
+
let writer = undefined;
|
|
4803
|
+
while (reader.pos < end) {
|
|
4804
|
+
const tag = reader.uint32();
|
|
4805
|
+
switch (tag >>> 3) {
|
|
4806
|
+
case 1: {
|
|
4807
|
+
if (tag !== 10)
|
|
4808
|
+
break;
|
|
4809
|
+
message.context = index_js_2.PreflightCheckContext.decode(reader, reader.uint32());
|
|
4810
|
+
continue;
|
|
4811
|
+
}
|
|
4812
|
+
case 2: {
|
|
4813
|
+
if (tag !== 18)
|
|
4814
|
+
break;
|
|
4815
|
+
message.metadata = index_js_2.ResourceMetadata.decode(reader, reader.uint32());
|
|
4816
|
+
continue;
|
|
4817
|
+
}
|
|
4818
|
+
case 3: {
|
|
4819
|
+
if (tag !== 26)
|
|
4820
|
+
break;
|
|
4821
|
+
message.spec = exports.NodeGroupSpec.decode(reader, reader.uint32());
|
|
4822
|
+
continue;
|
|
4823
|
+
}
|
|
4824
|
+
default:
|
|
4825
|
+
break;
|
|
4826
|
+
}
|
|
4827
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4828
|
+
break;
|
|
4829
|
+
}
|
|
4830
|
+
{
|
|
4831
|
+
if (!writer)
|
|
4832
|
+
writer = new index_js_1.BinaryWriter();
|
|
4833
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
4834
|
+
writer.uint32(tag).raw(skipped);
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4837
|
+
if (writer) {
|
|
4838
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
4839
|
+
}
|
|
4840
|
+
return message;
|
|
4841
|
+
},
|
|
4842
|
+
fromJSON(object) {
|
|
4843
|
+
return applyPreflightCheckNodeGroupRequestCustom({
|
|
4844
|
+
$type: "nebius.mk8s.v1.PreflightCheckNodeGroupRequest",
|
|
4845
|
+
context: (0, index_js_1.isSet)(object.context ?? object.context)
|
|
4846
|
+
? index_js_2.PreflightCheckContext.fromJSON(object.context ?? object.context)
|
|
4847
|
+
: undefined,
|
|
4848
|
+
metadata: (0, index_js_1.isSet)(object.metadata ?? object.metadata)
|
|
4849
|
+
? index_js_2.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
|
|
4850
|
+
: undefined,
|
|
4851
|
+
spec: (0, index_js_1.isSet)(object.spec ?? object.spec)
|
|
4852
|
+
? exports.NodeGroupSpec.fromJSON(object.spec ?? object.spec)
|
|
4853
|
+
: undefined,
|
|
4854
|
+
});
|
|
4855
|
+
},
|
|
4856
|
+
toJSON(message, use = "json") {
|
|
4857
|
+
const obj = {};
|
|
4858
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
4859
|
+
if (message.context !== undefined) {
|
|
4860
|
+
obj[pick("context", "context")] = message.context
|
|
4861
|
+
? index_js_2.PreflightCheckContext.toJSON(message.context, use)
|
|
4862
|
+
: undefined;
|
|
4863
|
+
}
|
|
4864
|
+
if (message.metadata !== undefined) {
|
|
4865
|
+
obj[pick("metadata", "metadata")] = message.metadata
|
|
4866
|
+
? index_js_2.ResourceMetadata.toJSON(message.metadata, use)
|
|
4867
|
+
: undefined;
|
|
4868
|
+
}
|
|
4869
|
+
if (message.spec !== undefined) {
|
|
4870
|
+
obj[pick("spec", "spec")] = message.spec
|
|
4871
|
+
? exports.NodeGroupSpec.toJSON(message.spec, use)
|
|
4872
|
+
: undefined;
|
|
4873
|
+
}
|
|
4874
|
+
return obj;
|
|
4875
|
+
},
|
|
4876
|
+
create(base) {
|
|
4877
|
+
return exports.PreflightCheckNodeGroupRequest.fromPartial(base ?? {});
|
|
4878
|
+
},
|
|
4879
|
+
fromPartial(object) {
|
|
4880
|
+
const message = createBasePreflightCheckNodeGroupRequest();
|
|
4881
|
+
message.context = (object.context !== undefined && object.context !== null)
|
|
4882
|
+
? index_js_2.PreflightCheckContext.fromPartial(object.context)
|
|
4883
|
+
: undefined;
|
|
4884
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
|
4885
|
+
? index_js_2.ResourceMetadata.fromPartial(object.metadata)
|
|
4886
|
+
: undefined;
|
|
4887
|
+
message.spec = (object.spec !== undefined && object.spec !== null)
|
|
4888
|
+
? exports.NodeGroupSpec.fromPartial(object.spec)
|
|
4889
|
+
: undefined;
|
|
4890
|
+
return message;
|
|
4891
|
+
},
|
|
4892
|
+
};
|
|
4893
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.PreflightCheckNodeGroupRequest);
|
|
4894
|
+
function PreflightCheckNodeGroupRequestCustomInspect() {
|
|
4895
|
+
const parts = [];
|
|
4896
|
+
if (this.context !== undefined)
|
|
4897
|
+
parts.push("context" + "=" + (0, util_1.inspect)(this.context));
|
|
4898
|
+
if (this.metadata !== undefined)
|
|
4899
|
+
parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
|
|
4900
|
+
if (this.spec !== undefined)
|
|
4901
|
+
parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
|
|
4902
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
4903
|
+
}
|
|
4904
|
+
function PreflightCheckNodeGroupRequestCustomJson() {
|
|
4905
|
+
const obj = {
|
|
4906
|
+
type: this.$type,
|
|
4907
|
+
};
|
|
4908
|
+
if (this.context !== undefined)
|
|
4909
|
+
obj.context = (0, logging_js_1.inspectJson)(this.context);
|
|
4910
|
+
if (this.metadata !== undefined)
|
|
4911
|
+
obj.metadata = (0, logging_js_1.inspectJson)(this.metadata);
|
|
4912
|
+
if (this.spec !== undefined)
|
|
4913
|
+
obj.spec = (0, logging_js_1.inspectJson)(this.spec);
|
|
4914
|
+
return obj;
|
|
4915
|
+
}
|
|
4916
|
+
function applyPreflightCheckNodeGroupRequestCustom(message) {
|
|
4917
|
+
message[logging_js_1.custom] = PreflightCheckNodeGroupRequestCustomInspect;
|
|
4918
|
+
message[logging_js_1.customJson] = PreflightCheckNodeGroupRequestCustomJson;
|
|
4919
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.PreflightCheckNodeGroupRequest.$descriptor);
|
|
4920
|
+
}
|
|
4921
|
+
function createBasePreflightCheckNodeGroupRequest() {
|
|
4922
|
+
const message = {
|
|
4923
|
+
$type: "nebius.mk8s.v1.PreflightCheckNodeGroupRequest",
|
|
4924
|
+
context: undefined,
|
|
4925
|
+
metadata: undefined,
|
|
4926
|
+
spec: undefined,
|
|
4927
|
+
};
|
|
4928
|
+
return applyPreflightCheckNodeGroupRequestCustom(message);
|
|
4929
|
+
}
|
|
4930
|
+
const PreflightCheckNodeGroupResponse_MESSAGE_DESCRIPTOR = {
|
|
4931
|
+
fields: {
|
|
4932
|
+
"diagnostics": { pbName: "diagnostics", repeated: true, message: () => index_js_2.PreflightCheckDiagnostic.$descriptor },
|
|
4933
|
+
"pathsRequireRecreate": { pbName: "paths_require_recreate", scalarType: 9 },
|
|
4934
|
+
"requiresUserApproval": { pbName: "requires_user_approval", scalarType: 8 },
|
|
4935
|
+
},
|
|
4936
|
+
};
|
|
4937
|
+
/** Encodes, decodes, converts, and creates {@link PreflightCheckNodeGroupResponse} messages. */
|
|
4938
|
+
exports.PreflightCheckNodeGroupResponse = {
|
|
4939
|
+
$type: "nebius.mk8s.v1.PreflightCheckNodeGroupResponse",
|
|
4940
|
+
$descriptor: PreflightCheckNodeGroupResponse_MESSAGE_DESCRIPTOR,
|
|
4941
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
4942
|
+
for (const v of (message.diagnostics ?? [])) {
|
|
4943
|
+
const w = writer.uint32(10).fork();
|
|
4944
|
+
index_js_2.PreflightCheckDiagnostic.encode(v, w);
|
|
4945
|
+
w.join();
|
|
4946
|
+
}
|
|
4947
|
+
if (message.pathsRequireRecreate !== "") {
|
|
4948
|
+
writer.uint32(18).string(message.pathsRequireRecreate);
|
|
4949
|
+
}
|
|
4950
|
+
if (message.requiresUserApproval === true) {
|
|
4951
|
+
writer.uint32(24).bool(message.requiresUserApproval);
|
|
4952
|
+
}
|
|
4953
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
4954
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
4955
|
+
}
|
|
4956
|
+
return writer;
|
|
4957
|
+
},
|
|
4958
|
+
decode(input, length) {
|
|
4959
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
4960
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4961
|
+
const message = createBasePreflightCheckNodeGroupResponse();
|
|
4962
|
+
let writer = undefined;
|
|
4963
|
+
while (reader.pos < end) {
|
|
4964
|
+
const tag = reader.uint32();
|
|
4965
|
+
switch (tag >>> 3) {
|
|
4966
|
+
case 1: {
|
|
4967
|
+
if (tag !== 10)
|
|
4968
|
+
break;
|
|
4969
|
+
message.diagnostics.push(index_js_2.PreflightCheckDiagnostic.decode(reader, reader.uint32()));
|
|
4970
|
+
continue;
|
|
4971
|
+
}
|
|
4972
|
+
case 2: {
|
|
4973
|
+
if (tag !== 18)
|
|
4974
|
+
break;
|
|
4975
|
+
message.pathsRequireRecreate = reader.string();
|
|
4976
|
+
continue;
|
|
4977
|
+
}
|
|
4978
|
+
case 3: {
|
|
4979
|
+
if (tag !== 24)
|
|
4980
|
+
break;
|
|
4981
|
+
message.requiresUserApproval = reader.bool();
|
|
4982
|
+
continue;
|
|
4983
|
+
}
|
|
4984
|
+
default:
|
|
4985
|
+
break;
|
|
4986
|
+
}
|
|
4987
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4988
|
+
break;
|
|
4989
|
+
}
|
|
4990
|
+
{
|
|
4991
|
+
if (!writer)
|
|
4992
|
+
writer = new index_js_1.BinaryWriter();
|
|
4993
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
4994
|
+
writer.uint32(tag).raw(skipped);
|
|
4995
|
+
}
|
|
4996
|
+
}
|
|
4997
|
+
if (writer) {
|
|
4998
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
4999
|
+
}
|
|
5000
|
+
return message;
|
|
5001
|
+
},
|
|
5002
|
+
fromJSON(object) {
|
|
5003
|
+
return applyPreflightCheckNodeGroupResponseCustom({
|
|
5004
|
+
$type: "nebius.mk8s.v1.PreflightCheckNodeGroupResponse",
|
|
5005
|
+
diagnostics: globalThis.Array.isArray(object?.diagnostics ?? object?.diagnostics)
|
|
5006
|
+
? (object.diagnostics ?? object.diagnostics).map((e) => index_js_2.PreflightCheckDiagnostic.fromJSON(e))
|
|
5007
|
+
: [],
|
|
5008
|
+
pathsRequireRecreate: (0, index_js_1.isSet)(object.pathsRequireRecreate ?? object.paths_require_recreate)
|
|
5009
|
+
? String(object.pathsRequireRecreate ?? object.paths_require_recreate)
|
|
5010
|
+
: "",
|
|
5011
|
+
requiresUserApproval: (0, index_js_1.isSet)(object.requiresUserApproval ?? object.requires_user_approval)
|
|
5012
|
+
? Boolean(object.requiresUserApproval ?? object.requires_user_approval)
|
|
5013
|
+
: false,
|
|
5014
|
+
});
|
|
5015
|
+
},
|
|
5016
|
+
toJSON(message, use = "json") {
|
|
5017
|
+
const obj = {};
|
|
5018
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
5019
|
+
if (message.diagnostics?.length) {
|
|
5020
|
+
obj[pick("diagnostics", "diagnostics")] = message.diagnostics.map((e) => e ? index_js_2.PreflightCheckDiagnostic.toJSON(e, use) : undefined);
|
|
5021
|
+
}
|
|
5022
|
+
if (message.pathsRequireRecreate !== "") {
|
|
5023
|
+
obj[pick("pathsRequireRecreate", "paths_require_recreate")] = message.pathsRequireRecreate;
|
|
5024
|
+
}
|
|
5025
|
+
if (message.requiresUserApproval === true) {
|
|
5026
|
+
obj[pick("requiresUserApproval", "requires_user_approval")] = message.requiresUserApproval;
|
|
5027
|
+
}
|
|
5028
|
+
return obj;
|
|
5029
|
+
},
|
|
5030
|
+
create(base) {
|
|
5031
|
+
return exports.PreflightCheckNodeGroupResponse.fromPartial(base ?? {});
|
|
5032
|
+
},
|
|
5033
|
+
fromPartial(object) {
|
|
5034
|
+
const message = createBasePreflightCheckNodeGroupResponse();
|
|
5035
|
+
message.diagnostics = object.diagnostics?.map((e) => index_js_2.PreflightCheckDiagnostic.fromPartial(e)) || [];
|
|
5036
|
+
message.pathsRequireRecreate = (object.pathsRequireRecreate !== undefined && object.pathsRequireRecreate !== null)
|
|
5037
|
+
? object.pathsRequireRecreate
|
|
5038
|
+
: "";
|
|
5039
|
+
message.requiresUserApproval = (object.requiresUserApproval !== undefined && object.requiresUserApproval !== null)
|
|
5040
|
+
? object.requiresUserApproval
|
|
5041
|
+
: false;
|
|
5042
|
+
return message;
|
|
5043
|
+
},
|
|
5044
|
+
};
|
|
5045
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.PreflightCheckNodeGroupResponse);
|
|
5046
|
+
function PreflightCheckNodeGroupResponseCustomInspect() {
|
|
5047
|
+
const parts = [];
|
|
5048
|
+
if ((this.diagnostics?.length ?? 0) !== 0)
|
|
5049
|
+
parts.push("diagnostics" + "=" + (0, util_1.inspect)(this.diagnostics));
|
|
5050
|
+
if (this.pathsRequireRecreate !== "")
|
|
5051
|
+
parts.push("pathsRequireRecreate" + "=" + (0, util_1.inspect)(this.pathsRequireRecreate));
|
|
5052
|
+
if (this.requiresUserApproval === true)
|
|
5053
|
+
parts.push("requiresUserApproval" + "=" + (0, util_1.inspect)(this.requiresUserApproval));
|
|
5054
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
5055
|
+
}
|
|
5056
|
+
function PreflightCheckNodeGroupResponseCustomJson() {
|
|
5057
|
+
const obj = {
|
|
5058
|
+
type: this.$type,
|
|
5059
|
+
};
|
|
5060
|
+
if ((this.diagnostics?.length ?? 0) !== 0)
|
|
5061
|
+
obj.diagnostics = (0, logging_js_1.inspectJson)(this.diagnostics);
|
|
5062
|
+
if (this.pathsRequireRecreate !== "")
|
|
5063
|
+
obj.pathsRequireRecreate = (0, logging_js_1.inspectJson)(this.pathsRequireRecreate);
|
|
5064
|
+
if (this.requiresUserApproval === true)
|
|
5065
|
+
obj.requiresUserApproval = (0, logging_js_1.inspectJson)(this.requiresUserApproval);
|
|
5066
|
+
return obj;
|
|
5067
|
+
}
|
|
5068
|
+
function applyPreflightCheckNodeGroupResponseCustom(message) {
|
|
5069
|
+
message[logging_js_1.custom] = PreflightCheckNodeGroupResponseCustomInspect;
|
|
5070
|
+
message[logging_js_1.customJson] = PreflightCheckNodeGroupResponseCustomJson;
|
|
5071
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.PreflightCheckNodeGroupResponse.$descriptor);
|
|
5072
|
+
}
|
|
5073
|
+
function createBasePreflightCheckNodeGroupResponse() {
|
|
5074
|
+
const message = {
|
|
5075
|
+
$type: "nebius.mk8s.v1.PreflightCheckNodeGroupResponse",
|
|
5076
|
+
diagnostics: [],
|
|
5077
|
+
pathsRequireRecreate: "",
|
|
5078
|
+
requiresUserApproval: false,
|
|
5079
|
+
};
|
|
5080
|
+
return applyPreflightCheckNodeGroupResponseCustom(message);
|
|
5081
|
+
}
|
|
4766
5082
|
const DeleteNodeGroupRequest_MESSAGE_DESCRIPTOR = {
|
|
4767
5083
|
fields: {
|
|
4768
5084
|
"id": { pbName: "id", scalarType: 9 },
|
|
@@ -5103,6 +5419,17 @@ exports.NodeGroupServiceServiceDescription = {
|
|
|
5103
5419
|
responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
|
|
5104
5420
|
responseDeserialize: (value) => index_js_2.Operation.decode(value),
|
|
5105
5421
|
},
|
|
5422
|
+
preflightCheck: {
|
|
5423
|
+
path: "/nebius.mk8s.v1.NodeGroupService/PreflightCheck",
|
|
5424
|
+
requestStream: false,
|
|
5425
|
+
responseStream: false,
|
|
5426
|
+
requestSerialize: (value) => Buffer.from(exports.PreflightCheckNodeGroupRequest.encode(value).finish()),
|
|
5427
|
+
requestDescriptor: () => exports.PreflightCheckNodeGroupRequest.$descriptor,
|
|
5428
|
+
sendResetMask: false,
|
|
5429
|
+
requestDeserialize: (value) => exports.PreflightCheckNodeGroupRequest.decode(value),
|
|
5430
|
+
responseSerialize: (value) => Buffer.from(exports.PreflightCheckNodeGroupResponse.encode(value).finish()),
|
|
5431
|
+
responseDeserialize: (value) => exports.PreflightCheckNodeGroupResponse.decode(value),
|
|
5432
|
+
},
|
|
5106
5433
|
getCompatibilityMatrix: {
|
|
5107
5434
|
path: "/nebius.mk8s.v1.NodeGroupService/GetCompatibilityMatrix",
|
|
5108
5435
|
requestStream: false,
|
|
@@ -5228,6 +5555,17 @@ class NodeGroupService {
|
|
|
5228
5555
|
};
|
|
5229
5556
|
return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
5230
5557
|
}
|
|
5558
|
+
/**
|
|
5559
|
+
* Calls the `PreflightCheck` RPC.
|
|
5560
|
+
*/
|
|
5561
|
+
preflightCheck(...args) {
|
|
5562
|
+
const spec = this.spec.preflightCheck;
|
|
5563
|
+
const request = args[0];
|
|
5564
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
5565
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
5566
|
+
const deserialize = spec.responseDeserialize;
|
|
5567
|
+
return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
5568
|
+
}
|
|
5231
5569
|
/**
|
|
5232
5570
|
* Calls the `GetCompatibilityMatrix` RPC.
|
|
5233
5571
|
*/
|
|
@@ -5794,6 +6132,7 @@ const NodeTemplate_MESSAGE_DESCRIPTOR = {
|
|
|
5794
6132
|
"filesystems": { pbName: "filesystems", repeated: true, message: () => exports.AttachedFilesystemSpec.$descriptor },
|
|
5795
6133
|
"cloudInitUserData": { pbName: "cloud_init_user_data", scalarType: 9 },
|
|
5796
6134
|
"serviceAccountId": { pbName: "service_account_id", scalarType: 9 },
|
|
6135
|
+
"instanceMetadata": { pbName: "instance_metadata", message: () => exports.InstanceMetadataTemplate.$descriptor },
|
|
5797
6136
|
"preemptible": { pbName: "preemptible", message: () => exports.PreemptibleSpec.$descriptor },
|
|
5798
6137
|
"nvlink": { pbName: "nvlink", message: () => exports.NVLinkSpec.$descriptor },
|
|
5799
6138
|
"reservationPolicy": { pbName: "reservation_policy", message: () => exports.ReservationPolicy.$descriptor },
|
|
@@ -5855,6 +6194,11 @@ exports.NodeTemplate = {
|
|
|
5855
6194
|
if (message.serviceAccountId !== "") {
|
|
5856
6195
|
writer.uint32(82).string(message.serviceAccountId);
|
|
5857
6196
|
}
|
|
6197
|
+
if (message.instanceMetadata !== undefined) {
|
|
6198
|
+
const w = writer.uint32(98).fork();
|
|
6199
|
+
exports.InstanceMetadataTemplate.encode(message.instanceMetadata, w);
|
|
6200
|
+
w.join();
|
|
6201
|
+
}
|
|
5858
6202
|
if (message.preemptible !== undefined) {
|
|
5859
6203
|
const w = writer.uint32(122).fork();
|
|
5860
6204
|
exports.PreemptibleSpec.encode(message.preemptible, w);
|
|
@@ -5957,6 +6301,12 @@ exports.NodeTemplate = {
|
|
|
5957
6301
|
message.serviceAccountId = reader.string();
|
|
5958
6302
|
continue;
|
|
5959
6303
|
}
|
|
6304
|
+
case 12: {
|
|
6305
|
+
if (tag !== 98)
|
|
6306
|
+
break;
|
|
6307
|
+
message.instanceMetadata = exports.InstanceMetadataTemplate.decode(reader, reader.uint32());
|
|
6308
|
+
continue;
|
|
6309
|
+
}
|
|
5960
6310
|
case 15: {
|
|
5961
6311
|
if (tag !== 122)
|
|
5962
6312
|
break;
|
|
@@ -6041,6 +6391,9 @@ exports.NodeTemplate = {
|
|
|
6041
6391
|
serviceAccountId: (0, index_js_1.isSet)(object.serviceAccountId ?? object.service_account_id)
|
|
6042
6392
|
? String(object.serviceAccountId ?? object.service_account_id)
|
|
6043
6393
|
: "",
|
|
6394
|
+
instanceMetadata: (0, index_js_1.isSet)(object.instanceMetadata ?? object.instance_metadata)
|
|
6395
|
+
? exports.InstanceMetadataTemplate.fromJSON(object.instanceMetadata ?? object.instance_metadata)
|
|
6396
|
+
: undefined,
|
|
6044
6397
|
preemptible: (0, index_js_1.isSet)(object.preemptible ?? object.preemptible)
|
|
6045
6398
|
? exports.PreemptibleSpec.fromJSON(object.preemptible ?? object.preemptible)
|
|
6046
6399
|
: undefined,
|
|
@@ -6104,6 +6457,11 @@ exports.NodeTemplate = {
|
|
|
6104
6457
|
if (message.serviceAccountId !== "") {
|
|
6105
6458
|
obj[pick("serviceAccountId", "service_account_id")] = message.serviceAccountId;
|
|
6106
6459
|
}
|
|
6460
|
+
if (message.instanceMetadata !== undefined) {
|
|
6461
|
+
obj[pick("instanceMetadata", "instance_metadata")] = message.instanceMetadata
|
|
6462
|
+
? exports.InstanceMetadataTemplate.toJSON(message.instanceMetadata, use)
|
|
6463
|
+
: undefined;
|
|
6464
|
+
}
|
|
6107
6465
|
if (message.preemptible !== undefined) {
|
|
6108
6466
|
obj[pick("preemptible", "preemptible")] = message.preemptible
|
|
6109
6467
|
? exports.PreemptibleSpec.toJSON(message.preemptible, use)
|
|
@@ -6161,6 +6519,9 @@ exports.NodeTemplate = {
|
|
|
6161
6519
|
message.serviceAccountId = (object.serviceAccountId !== undefined && object.serviceAccountId !== null)
|
|
6162
6520
|
? object.serviceAccountId
|
|
6163
6521
|
: "";
|
|
6522
|
+
message.instanceMetadata = (object.instanceMetadata !== undefined && object.instanceMetadata !== null)
|
|
6523
|
+
? exports.InstanceMetadataTemplate.fromPartial(object.instanceMetadata)
|
|
6524
|
+
: undefined;
|
|
6164
6525
|
message.preemptible = (object.preemptible !== undefined && object.preemptible !== null)
|
|
6165
6526
|
? exports.PreemptibleSpec.fromPartial(object.preemptible)
|
|
6166
6527
|
: undefined;
|
|
@@ -6204,6 +6565,8 @@ function NodeTemplateCustomInspect() {
|
|
|
6204
6565
|
parts.push("cloudInitUserData" + "=***");
|
|
6205
6566
|
if (this.serviceAccountId !== "")
|
|
6206
6567
|
parts.push("serviceAccountId" + "=" + (0, util_1.inspect)(this.serviceAccountId));
|
|
6568
|
+
if (this.instanceMetadata !== undefined)
|
|
6569
|
+
parts.push("instanceMetadata" + "=" + (0, util_1.inspect)(this.instanceMetadata));
|
|
6207
6570
|
if (this.preemptible !== undefined)
|
|
6208
6571
|
parts.push("preemptible" + "=" + (0, util_1.inspect)(this.preemptible));
|
|
6209
6572
|
if (this.nvlink !== undefined)
|
|
@@ -6242,6 +6605,8 @@ function NodeTemplateCustomJson() {
|
|
|
6242
6605
|
obj.cloudInitUserData = "***";
|
|
6243
6606
|
if (this.serviceAccountId !== "")
|
|
6244
6607
|
obj.serviceAccountId = (0, logging_js_1.inspectJson)(this.serviceAccountId);
|
|
6608
|
+
if (this.instanceMetadata !== undefined)
|
|
6609
|
+
obj.instanceMetadata = (0, logging_js_1.inspectJson)(this.instanceMetadata);
|
|
6245
6610
|
if (this.preemptible !== undefined)
|
|
6246
6611
|
obj.preemptible = (0, logging_js_1.inspectJson)(this.preemptible);
|
|
6247
6612
|
if (this.nvlink !== undefined)
|
|
@@ -6273,6 +6638,7 @@ function createBaseNodeTemplate() {
|
|
|
6273
6638
|
filesystems: [],
|
|
6274
6639
|
cloudInitUserData: "",
|
|
6275
6640
|
serviceAccountId: "",
|
|
6641
|
+
instanceMetadata: undefined,
|
|
6276
6642
|
preemptible: undefined,
|
|
6277
6643
|
nvlink: undefined,
|
|
6278
6644
|
reservationPolicy: undefined,
|
|
@@ -6554,6 +6920,7 @@ function createBaseNodeMetadataTemplate() {
|
|
|
6554
6920
|
const GpuSettings_MESSAGE_DESCRIPTOR = {
|
|
6555
6921
|
fields: {
|
|
6556
6922
|
"driversPreset": { pbName: "drivers_preset", scalarType: 9 },
|
|
6923
|
+
"dra": { pbName: "dra", scalarType: 8 },
|
|
6557
6924
|
},
|
|
6558
6925
|
};
|
|
6559
6926
|
/** Encodes, decodes, converts, and creates {@link GpuSettings} messages. */
|
|
@@ -6564,6 +6931,9 @@ exports.GpuSettings = {
|
|
|
6564
6931
|
if (message.driversPreset !== "") {
|
|
6565
6932
|
writer.uint32(10).string(message.driversPreset);
|
|
6566
6933
|
}
|
|
6934
|
+
if (message.dra === true) {
|
|
6935
|
+
writer.uint32(24).bool(message.dra);
|
|
6936
|
+
}
|
|
6567
6937
|
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
6568
6938
|
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
6569
6939
|
}
|
|
@@ -6583,6 +6953,12 @@ exports.GpuSettings = {
|
|
|
6583
6953
|
message.driversPreset = reader.string();
|
|
6584
6954
|
continue;
|
|
6585
6955
|
}
|
|
6956
|
+
case 3: {
|
|
6957
|
+
if (tag !== 24)
|
|
6958
|
+
break;
|
|
6959
|
+
message.dra = reader.bool();
|
|
6960
|
+
continue;
|
|
6961
|
+
}
|
|
6586
6962
|
default:
|
|
6587
6963
|
break;
|
|
6588
6964
|
}
|
|
@@ -6607,6 +6983,9 @@ exports.GpuSettings = {
|
|
|
6607
6983
|
driversPreset: (0, index_js_1.isSet)(object.driversPreset ?? object.drivers_preset)
|
|
6608
6984
|
? String(object.driversPreset ?? object.drivers_preset)
|
|
6609
6985
|
: "",
|
|
6986
|
+
dra: (0, index_js_1.isSet)(object.dra ?? object.dra)
|
|
6987
|
+
? Boolean(object.dra ?? object.dra)
|
|
6988
|
+
: false,
|
|
6610
6989
|
});
|
|
6611
6990
|
},
|
|
6612
6991
|
toJSON(message, use = "json") {
|
|
@@ -6615,6 +6994,9 @@ exports.GpuSettings = {
|
|
|
6615
6994
|
if (message.driversPreset !== "") {
|
|
6616
6995
|
obj[pick("driversPreset", "drivers_preset")] = message.driversPreset;
|
|
6617
6996
|
}
|
|
6997
|
+
if (message.dra === true) {
|
|
6998
|
+
obj[pick("dra", "dra")] = message.dra;
|
|
6999
|
+
}
|
|
6618
7000
|
return obj;
|
|
6619
7001
|
},
|
|
6620
7002
|
create(base) {
|
|
@@ -6625,6 +7007,9 @@ exports.GpuSettings = {
|
|
|
6625
7007
|
message.driversPreset = (object.driversPreset !== undefined && object.driversPreset !== null)
|
|
6626
7008
|
? object.driversPreset
|
|
6627
7009
|
: "";
|
|
7010
|
+
message.dra = (object.dra !== undefined && object.dra !== null)
|
|
7011
|
+
? object.dra
|
|
7012
|
+
: false;
|
|
6628
7013
|
return message;
|
|
6629
7014
|
},
|
|
6630
7015
|
};
|
|
@@ -6633,6 +7018,8 @@ function GpuSettingsCustomInspect() {
|
|
|
6633
7018
|
const parts = [];
|
|
6634
7019
|
if (this.driversPreset !== "")
|
|
6635
7020
|
parts.push("driversPreset" + "=" + (0, util_1.inspect)(this.driversPreset));
|
|
7021
|
+
if (this.dra === true)
|
|
7022
|
+
parts.push("dra" + "=" + (0, util_1.inspect)(this.dra));
|
|
6636
7023
|
return `${this.$type}(${parts.join(", ")})`;
|
|
6637
7024
|
}
|
|
6638
7025
|
function GpuSettingsCustomJson() {
|
|
@@ -6641,6 +7028,8 @@ function GpuSettingsCustomJson() {
|
|
|
6641
7028
|
};
|
|
6642
7029
|
if (this.driversPreset !== "")
|
|
6643
7030
|
obj.driversPreset = (0, logging_js_1.inspectJson)(this.driversPreset);
|
|
7031
|
+
if (this.dra === true)
|
|
7032
|
+
obj.dra = (0, logging_js_1.inspectJson)(this.dra);
|
|
6644
7033
|
return obj;
|
|
6645
7034
|
}
|
|
6646
7035
|
function applyGpuSettingsCustom(message) {
|
|
@@ -6652,6 +7041,7 @@ function createBaseGpuSettings() {
|
|
|
6652
7041
|
const message = {
|
|
6653
7042
|
$type: "nebius.mk8s.v1.GpuSettings",
|
|
6654
7043
|
driversPreset: "",
|
|
7044
|
+
dra: false,
|
|
6655
7045
|
};
|
|
6656
7046
|
return applyGpuSettingsCustom(message);
|
|
6657
7047
|
}
|
|
@@ -7508,6 +7898,148 @@ function createBaseNodeGroupAutoscalingSpec() {
|
|
|
7508
7898
|
};
|
|
7509
7899
|
return applyNodeGroupAutoscalingSpecCustom(message);
|
|
7510
7900
|
}
|
|
7901
|
+
const InstanceMetadataTemplate_MESSAGE_DESCRIPTOR = {
|
|
7902
|
+
fields: {
|
|
7903
|
+
"labels": { pbName: "labels", map: true },
|
|
7904
|
+
},
|
|
7905
|
+
};
|
|
7906
|
+
/** Encodes, decodes, converts, and creates {@link InstanceMetadataTemplate} messages. */
|
|
7907
|
+
exports.InstanceMetadataTemplate = {
|
|
7908
|
+
$type: "nebius.mk8s.v1.InstanceMetadataTemplate",
|
|
7909
|
+
$descriptor: InstanceMetadataTemplate_MESSAGE_DESCRIPTOR,
|
|
7910
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
7911
|
+
for (const [k, v] of Object.entries(message.labels ?? {})) {
|
|
7912
|
+
const w = writer.uint32(18).fork();
|
|
7913
|
+
w.uint32(10).string(k);
|
|
7914
|
+
w.uint32(18).string(v);
|
|
7915
|
+
w.join();
|
|
7916
|
+
}
|
|
7917
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
7918
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
7919
|
+
}
|
|
7920
|
+
return writer;
|
|
7921
|
+
},
|
|
7922
|
+
decode(input, length) {
|
|
7923
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
7924
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7925
|
+
const message = createBaseInstanceMetadataTemplate();
|
|
7926
|
+
let writer = undefined;
|
|
7927
|
+
while (reader.pos < end) {
|
|
7928
|
+
const tag = reader.uint32();
|
|
7929
|
+
switch (tag >>> 3) {
|
|
7930
|
+
case 2: {
|
|
7931
|
+
if (tag !== 18)
|
|
7932
|
+
break; // wire type guard
|
|
7933
|
+
const end2 = reader.uint32() + reader.pos;
|
|
7934
|
+
let key = "";
|
|
7935
|
+
let value = undefined;
|
|
7936
|
+
while (reader.pos < end2) {
|
|
7937
|
+
const tag2 = reader.uint32();
|
|
7938
|
+
switch (tag2 >>> 3) {
|
|
7939
|
+
case 1: {
|
|
7940
|
+
key = reader.string();
|
|
7941
|
+
continue;
|
|
7942
|
+
}
|
|
7943
|
+
case 2: {
|
|
7944
|
+
value = reader.string();
|
|
7945
|
+
continue;
|
|
7946
|
+
}
|
|
7947
|
+
}
|
|
7948
|
+
if ((tag2 & 7) === 4 || tag2 === 0)
|
|
7949
|
+
break;
|
|
7950
|
+
reader.skip(tag2 & 7);
|
|
7951
|
+
}
|
|
7952
|
+
if (value !== undefined) {
|
|
7953
|
+
const stringKey = String(key);
|
|
7954
|
+
message.labels[stringKey] = value;
|
|
7955
|
+
}
|
|
7956
|
+
continue;
|
|
7957
|
+
}
|
|
7958
|
+
default:
|
|
7959
|
+
break;
|
|
7960
|
+
}
|
|
7961
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7962
|
+
break;
|
|
7963
|
+
}
|
|
7964
|
+
{
|
|
7965
|
+
if (!writer)
|
|
7966
|
+
writer = new index_js_1.BinaryWriter();
|
|
7967
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
7968
|
+
writer.uint32(tag).raw(skipped);
|
|
7969
|
+
}
|
|
7970
|
+
}
|
|
7971
|
+
if (writer) {
|
|
7972
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
7973
|
+
}
|
|
7974
|
+
return message;
|
|
7975
|
+
},
|
|
7976
|
+
fromJSON(object) {
|
|
7977
|
+
return applyInstanceMetadataTemplateCustom({
|
|
7978
|
+
$type: "nebius.mk8s.v1.InstanceMetadataTemplate",
|
|
7979
|
+
labels: ((0, index_js_1.isSet)(object.labels) && typeof object.labels === "object" ? object.labels
|
|
7980
|
+
: ((0, index_js_1.isSet)(object.labels) && typeof object.labels === "object" ? object.labels : undefined))
|
|
7981
|
+
? Object.entries((object.labels ?? object.labels)).reduce((acc, [key, value]) => {
|
|
7982
|
+
acc[key] = String(value);
|
|
7983
|
+
return acc;
|
|
7984
|
+
}, {})
|
|
7985
|
+
: {},
|
|
7986
|
+
});
|
|
7987
|
+
},
|
|
7988
|
+
toJSON(message, use = "json") {
|
|
7989
|
+
const obj = {};
|
|
7990
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
7991
|
+
if (message.labels) {
|
|
7992
|
+
const entries = Object.entries(message.labels);
|
|
7993
|
+
if (entries.length > 0) {
|
|
7994
|
+
obj[pick("labels", "labels")] = {};
|
|
7995
|
+
entries.forEach(([k, v]) => {
|
|
7996
|
+
obj[pick("labels", "labels")][k] = v;
|
|
7997
|
+
});
|
|
7998
|
+
}
|
|
7999
|
+
}
|
|
8000
|
+
return obj;
|
|
8001
|
+
},
|
|
8002
|
+
create(base) {
|
|
8003
|
+
return exports.InstanceMetadataTemplate.fromPartial(base ?? {});
|
|
8004
|
+
},
|
|
8005
|
+
fromPartial(object) {
|
|
8006
|
+
const message = createBaseInstanceMetadataTemplate();
|
|
8007
|
+
message.labels = Object.entries(object.labels ?? {}).reduce((acc, [key, value]) => {
|
|
8008
|
+
if (value !== undefined) {
|
|
8009
|
+
acc[key] = value;
|
|
8010
|
+
}
|
|
8011
|
+
return acc;
|
|
8012
|
+
}, {});
|
|
8013
|
+
return message;
|
|
8014
|
+
},
|
|
8015
|
+
};
|
|
8016
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.InstanceMetadataTemplate);
|
|
8017
|
+
function InstanceMetadataTemplateCustomInspect() {
|
|
8018
|
+
const parts = [];
|
|
8019
|
+
if (Object.keys(this.labels || {}).length)
|
|
8020
|
+
parts.push("labels" + "=" + (0, util_1.inspect)(this.labels));
|
|
8021
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
8022
|
+
}
|
|
8023
|
+
function InstanceMetadataTemplateCustomJson() {
|
|
8024
|
+
const obj = {
|
|
8025
|
+
type: this.$type,
|
|
8026
|
+
};
|
|
8027
|
+
if (Object.keys(this.labels || {}).length)
|
|
8028
|
+
obj.labels = (0, logging_js_1.inspectJson)(this.labels);
|
|
8029
|
+
return obj;
|
|
8030
|
+
}
|
|
8031
|
+
function applyInstanceMetadataTemplateCustom(message) {
|
|
8032
|
+
message[logging_js_1.custom] = InstanceMetadataTemplateCustomInspect;
|
|
8033
|
+
message[logging_js_1.customJson] = InstanceMetadataTemplateCustomJson;
|
|
8034
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.InstanceMetadataTemplate.$descriptor);
|
|
8035
|
+
}
|
|
8036
|
+
function createBaseInstanceMetadataTemplate() {
|
|
8037
|
+
const message = {
|
|
8038
|
+
$type: "nebius.mk8s.v1.InstanceMetadataTemplate",
|
|
8039
|
+
labels: {},
|
|
8040
|
+
};
|
|
8041
|
+
return applyInstanceMetadataTemplateCustom(message);
|
|
8042
|
+
}
|
|
7511
8043
|
const NodeTaint_MESSAGE_DESCRIPTOR = {
|
|
7512
8044
|
fields: {
|
|
7513
8045
|
"key": { pbName: "key", scalarType: 9 },
|