@nebius/js-sdk 0.2.63 → 0.2.65
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 +81 -0
- package/dist/cjs/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/ai/v1/index.js +545 -1
- package/dist/cjs/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/billing/v1/index.d.ts +714 -2
- package/dist/cjs/api/nebius/billing/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/billing/v1/index.js +1970 -1
- package/dist/cjs/api/nebius/billing/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.d.ts +64 -3
- package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.js +382 -2
- package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.d.ts +28 -8
- package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.js +25 -5
- package/dist/cjs/api/nebius/iam/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +78 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.js +340 -2
- package/dist/cjs/api/nebius/mk8s/v1/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 +81 -0
- package/dist/esm/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/ai/v1/index.js +544 -0
- package/dist/esm/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/billing/v1/index.d.ts +714 -2
- package/dist/esm/api/nebius/billing/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/billing/v1/index.js +1970 -2
- package/dist/esm/api/nebius/billing/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/compute/v1/index.d.ts +64 -3
- package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/compute/v1/index.js +380 -0
- package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/iam/v1/index.d.ts +28 -8
- package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/iam/v1/index.js +25 -5
- package/dist/esm/api/nebius/iam/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts +78 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.js +339 -1
- package/dist/esm/api/nebius/mk8s/v1/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
- package/dist/cjs/api/nebius/monitoring/v1/index.d.ts +0 -607
- package/dist/cjs/api/nebius/monitoring/v1/index.d.ts.map +0 -1
- package/dist/cjs/api/nebius/monitoring/v1/index.js +0 -1538
- package/dist/cjs/api/nebius/monitoring/v1/index.js.map +0 -1
- package/dist/cjs/api/nebius/monitoring/v1.d.ts +0 -1
- package/dist/cjs/api/nebius/monitoring/v1.js +0 -2
- package/dist/esm/api/nebius/monitoring/v1/index.d.ts +0 -607
- package/dist/esm/api/nebius/monitoring/v1/index.d.ts.map +0 -1
- package/dist/esm/api/nebius/monitoring/v1/index.js +0 -1534
- package/dist/esm/api/nebius/monitoring/v1/index.js.map +0 -1
- package/dist/esm/api/nebius/monitoring/v1.d.ts +0 -1
- package/dist/esm/api/nebius/monitoring/v1.js +0 -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.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 = 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
|
*/
|