@nebius/js-sdk 0.1.46 → 0.1.48
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/nebius/mk8s/v1/index.d.ts +57 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.js +386 -1
- 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/nebius/mk8s/v1/index.d.ts +57 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* Generated by Nebius TS generator. DO NOT EDIT! */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.NodeTemplate = exports.NodeGroupSpec = exports.NodeGroup = exports.NodeGroupStatus_State = exports.ReservationPolicy_Policy = exports.NodeTaint_Effect = exports.AttachedFilesystemSpec_AttachMode = exports.ConditionStatus = exports.NodeGroupService = exports.NodeGroupServiceBaseClient = exports.NodeGroupServiceServiceDescription = exports.UpgradeNodeGroupRequest = exports.DeleteNodeGroupRequest = exports.UpdateNodeGroupRequest = exports.ListNodeGroupsResponse = exports.ListNodeGroupsRequest = exports.GetNodeGroupRequest = exports.CreateNodeGroupRequest = exports.NodeGroupCompatibilityVersionItem = exports.NodeGroupCompatibilityVersion = exports.NodeGroupCompatibilityMatrix = exports.GetNodeGroupCompatibilityMatrixRequest = exports.ResourcesSpec = exports.DiskSpec = 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.ReservationPolicy = exports.PreemptibleSpec = exports.NodeAutoRepairCondition = exports.NodeGroupAutoRepairSpec = exports.PercentOrCount = exports.NodeGroupDeploymentStrategy = exports.NodeTaint = exports.NodeGroupAutoscalingSpec = exports.ExistingFilesystem = exports.AttachedFilesystemSpec = exports.PublicIPAddress = exports.NetworkInterfaceTemplate = exports.GpuClusterSpec = exports.GpuSettings = exports.NodeMetadataTemplate = 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.NodeGroupAutoscalingSpec = exports.ExistingFilesystem = exports.AttachedFilesystemSpec = exports.PublicIPAddress = exports.NetworkInterfaceTemplate = exports.GpuClusterSpec = exports.GpuSettings = exports.NodeMetadataTemplate = void 0;
|
|
6
6
|
const index_1 = require("../../../../runtime/protos/index");
|
|
7
7
|
const util_1 = require("util");
|
|
8
8
|
const protobuf_1 = require("../../../protobuf");
|
|
@@ -5101,6 +5101,11 @@ exports.NodeTemplate = {
|
|
|
5101
5101
|
exports.ReservationPolicy.encode(message.reservationPolicy, w);
|
|
5102
5102
|
w.join();
|
|
5103
5103
|
}
|
|
5104
|
+
if (message.localDisks !== undefined) {
|
|
5105
|
+
const w = writer.uint32(154).fork();
|
|
5106
|
+
exports.LocalDisksSpec.encode(message.localDisks, w);
|
|
5107
|
+
w.join();
|
|
5108
|
+
}
|
|
5104
5109
|
if (message[index_1.unknownFieldsSymbol]) {
|
|
5105
5110
|
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
5106
5111
|
}
|
|
@@ -5192,6 +5197,12 @@ exports.NodeTemplate = {
|
|
|
5192
5197
|
message.reservationPolicy = exports.ReservationPolicy.decode(reader, reader.uint32());
|
|
5193
5198
|
continue;
|
|
5194
5199
|
}
|
|
5200
|
+
case 19: {
|
|
5201
|
+
if (tag !== 154)
|
|
5202
|
+
break;
|
|
5203
|
+
message.localDisks = exports.LocalDisksSpec.decode(reader, reader.uint32());
|
|
5204
|
+
continue;
|
|
5205
|
+
}
|
|
5195
5206
|
default:
|
|
5196
5207
|
break;
|
|
5197
5208
|
}
|
|
@@ -5252,6 +5263,9 @@ exports.NodeTemplate = {
|
|
|
5252
5263
|
reservationPolicy: (0, index_1.isSet)(object.reservationPolicy ?? object.reservation_policy)
|
|
5253
5264
|
? exports.ReservationPolicy.fromJSON(object.reservationPolicy ?? object.reservation_policy)
|
|
5254
5265
|
: undefined,
|
|
5266
|
+
localDisks: (0, index_1.isSet)(object.localDisks ?? object.local_disks)
|
|
5267
|
+
? exports.LocalDisksSpec.fromJSON(object.localDisks ?? object.local_disks)
|
|
5268
|
+
: undefined,
|
|
5255
5269
|
});
|
|
5256
5270
|
},
|
|
5257
5271
|
toJSON(message, use = "json") {
|
|
@@ -5310,6 +5324,11 @@ exports.NodeTemplate = {
|
|
|
5310
5324
|
? exports.ReservationPolicy.toJSON(message.reservationPolicy, use)
|
|
5311
5325
|
: undefined;
|
|
5312
5326
|
}
|
|
5327
|
+
if (message.localDisks !== undefined) {
|
|
5328
|
+
obj[pick("localDisks", "local_disks")] = message.localDisks
|
|
5329
|
+
? exports.LocalDisksSpec.toJSON(message.localDisks, use)
|
|
5330
|
+
: undefined;
|
|
5331
|
+
}
|
|
5313
5332
|
return obj;
|
|
5314
5333
|
},
|
|
5315
5334
|
create(base) {
|
|
@@ -5350,6 +5369,9 @@ exports.NodeTemplate = {
|
|
|
5350
5369
|
message.reservationPolicy = (object.reservationPolicy !== undefined && object.reservationPolicy !== null)
|
|
5351
5370
|
? exports.ReservationPolicy.fromPartial(object.reservationPolicy)
|
|
5352
5371
|
: undefined;
|
|
5372
|
+
message.localDisks = (object.localDisks !== undefined && object.localDisks !== null)
|
|
5373
|
+
? exports.LocalDisksSpec.fromPartial(object.localDisks)
|
|
5374
|
+
: undefined;
|
|
5353
5375
|
return message;
|
|
5354
5376
|
},
|
|
5355
5377
|
};
|
|
@@ -5382,6 +5404,8 @@ function NodeTemplateCustomInspect() {
|
|
|
5382
5404
|
parts.push("preemptible" + "=" + (0, util_1.inspect)(this.preemptible));
|
|
5383
5405
|
if (this.reservationPolicy !== undefined)
|
|
5384
5406
|
parts.push("reservationPolicy" + "=" + (0, util_1.inspect)(this.reservationPolicy));
|
|
5407
|
+
if (this.localDisks !== undefined)
|
|
5408
|
+
parts.push("localDisks" + "=" + (0, util_1.inspect)(this.localDisks));
|
|
5385
5409
|
return `${this.$type}(${parts.join(", ")})`;
|
|
5386
5410
|
}
|
|
5387
5411
|
function NodeTemplateCustomJson() {
|
|
@@ -5414,6 +5438,8 @@ function NodeTemplateCustomJson() {
|
|
|
5414
5438
|
obj.preemptible = (0, logging_1.inspectJson)(this.preemptible);
|
|
5415
5439
|
if (this.reservationPolicy !== undefined)
|
|
5416
5440
|
obj.reservationPolicy = (0, logging_1.inspectJson)(this.reservationPolicy);
|
|
5441
|
+
if (this.localDisks !== undefined)
|
|
5442
|
+
obj.localDisks = (0, logging_1.inspectJson)(this.localDisks);
|
|
5417
5443
|
return obj;
|
|
5418
5444
|
}
|
|
5419
5445
|
function applyNodeTemplateCustom(message) {
|
|
@@ -5437,6 +5463,7 @@ function createBaseNodeTemplate() {
|
|
|
5437
5463
|
serviceAccountId: "",
|
|
5438
5464
|
preemptible: undefined,
|
|
5439
5465
|
reservationPolicy: undefined,
|
|
5466
|
+
localDisks: undefined,
|
|
5440
5467
|
};
|
|
5441
5468
|
return applyNodeTemplateCustom(message);
|
|
5442
5469
|
}
|
|
@@ -7277,6 +7304,364 @@ function createBaseReservationPolicy() {
|
|
|
7277
7304
|
};
|
|
7278
7305
|
return applyReservationPolicyCustom(message);
|
|
7279
7306
|
}
|
|
7307
|
+
exports.LocalDisksSpec = {
|
|
7308
|
+
$type: "nebius.mk8s.v1.LocalDisksSpec",
|
|
7309
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
7310
|
+
if (message.config !== undefined) {
|
|
7311
|
+
const w = writer.uint32(810).fork();
|
|
7312
|
+
exports.LocalDisksSpecConfig.encode(message.config, w);
|
|
7313
|
+
w.join();
|
|
7314
|
+
}
|
|
7315
|
+
if (message.request?.$case === undefined) { /* noop */ }
|
|
7316
|
+
else if (message.request?.$case === "passthroughGroup") {
|
|
7317
|
+
const w = writer.uint32(10).fork();
|
|
7318
|
+
exports.PassthroughGroupRequest.encode(message.request.passthroughGroup, w);
|
|
7319
|
+
w.join();
|
|
7320
|
+
}
|
|
7321
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
7322
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
7323
|
+
}
|
|
7324
|
+
return writer;
|
|
7325
|
+
},
|
|
7326
|
+
decode(input, length) {
|
|
7327
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
7328
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7329
|
+
const message = createBaseLocalDisksSpec();
|
|
7330
|
+
let writer = undefined;
|
|
7331
|
+
while (reader.pos < end) {
|
|
7332
|
+
const tag = reader.uint32();
|
|
7333
|
+
switch (tag >>> 3) {
|
|
7334
|
+
case 101: {
|
|
7335
|
+
if (tag !== 810)
|
|
7336
|
+
break;
|
|
7337
|
+
message.config = exports.LocalDisksSpecConfig.decode(reader, reader.uint32());
|
|
7338
|
+
continue;
|
|
7339
|
+
}
|
|
7340
|
+
case 1: {
|
|
7341
|
+
if (tag !== 10)
|
|
7342
|
+
break;
|
|
7343
|
+
message.request = {
|
|
7344
|
+
$case: "passthroughGroup",
|
|
7345
|
+
passthroughGroup: exports.PassthroughGroupRequest.decode(reader, reader.uint32())
|
|
7346
|
+
};
|
|
7347
|
+
continue;
|
|
7348
|
+
}
|
|
7349
|
+
default:
|
|
7350
|
+
break;
|
|
7351
|
+
}
|
|
7352
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7353
|
+
break;
|
|
7354
|
+
}
|
|
7355
|
+
{
|
|
7356
|
+
if (!writer)
|
|
7357
|
+
writer = new index_1.BinaryWriter();
|
|
7358
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
7359
|
+
writer.uint32(tag).raw(skipped);
|
|
7360
|
+
}
|
|
7361
|
+
}
|
|
7362
|
+
if (writer) {
|
|
7363
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
7364
|
+
}
|
|
7365
|
+
return message;
|
|
7366
|
+
},
|
|
7367
|
+
fromJSON(object) {
|
|
7368
|
+
return applyLocalDisksSpecCustom({
|
|
7369
|
+
$type: "nebius.mk8s.v1.LocalDisksSpec",
|
|
7370
|
+
config: (0, index_1.isSet)(object.config ?? object.config)
|
|
7371
|
+
? exports.LocalDisksSpecConfig.fromJSON(object.config ?? object.config)
|
|
7372
|
+
: undefined,
|
|
7373
|
+
request: (() => {
|
|
7374
|
+
if ((0, index_1.isSet)(object.passthroughGroup) || (0, index_1.isSet)(object.passthrough_group)) {
|
|
7375
|
+
return {
|
|
7376
|
+
$case: "passthroughGroup",
|
|
7377
|
+
passthroughGroup: exports.PassthroughGroupRequest.fromJSON(object.passthroughGroup ?? object.passthrough_group)
|
|
7378
|
+
};
|
|
7379
|
+
}
|
|
7380
|
+
return undefined;
|
|
7381
|
+
})(),
|
|
7382
|
+
});
|
|
7383
|
+
},
|
|
7384
|
+
toJSON(message, use = "json") {
|
|
7385
|
+
const obj = {};
|
|
7386
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
7387
|
+
if (message.config !== undefined) {
|
|
7388
|
+
obj[pick("config", "config")] = message.config
|
|
7389
|
+
? exports.LocalDisksSpecConfig.toJSON(message.config, use)
|
|
7390
|
+
: undefined;
|
|
7391
|
+
}
|
|
7392
|
+
switch (message.request?.$case) {
|
|
7393
|
+
case "passthroughGroup": {
|
|
7394
|
+
obj[pick("passthroughGroup", "passthrough_group")] = exports.PassthroughGroupRequest.toJSON(message.request.passthroughGroup, use);
|
|
7395
|
+
break;
|
|
7396
|
+
}
|
|
7397
|
+
default: break;
|
|
7398
|
+
}
|
|
7399
|
+
return obj;
|
|
7400
|
+
},
|
|
7401
|
+
create(base) {
|
|
7402
|
+
return exports.LocalDisksSpec.fromPartial(base ?? {});
|
|
7403
|
+
},
|
|
7404
|
+
fromPartial(object) {
|
|
7405
|
+
const message = createBaseLocalDisksSpec();
|
|
7406
|
+
message.config = (object.config !== undefined && object.config !== null)
|
|
7407
|
+
? exports.LocalDisksSpecConfig.fromPartial(object.config)
|
|
7408
|
+
: undefined;
|
|
7409
|
+
switch (object.request?.$case) {
|
|
7410
|
+
case "passthroughGroup": {
|
|
7411
|
+
if (object.request.passthroughGroup !== undefined && object.request.passthroughGroup !== null) {
|
|
7412
|
+
message.request = {
|
|
7413
|
+
$case: "passthroughGroup",
|
|
7414
|
+
passthroughGroup: exports.PassthroughGroupRequest.fromPartial(object.request.passthroughGroup),
|
|
7415
|
+
};
|
|
7416
|
+
}
|
|
7417
|
+
break;
|
|
7418
|
+
}
|
|
7419
|
+
default: break;
|
|
7420
|
+
}
|
|
7421
|
+
return message;
|
|
7422
|
+
},
|
|
7423
|
+
};
|
|
7424
|
+
protobuf_1.protoRegistry.registerMessage(exports.LocalDisksSpec);
|
|
7425
|
+
function LocalDisksSpecCustomInspect() {
|
|
7426
|
+
const parts = [];
|
|
7427
|
+
if (this.config !== undefined)
|
|
7428
|
+
parts.push("config" + "=" + (0, util_1.inspect)(this.config));
|
|
7429
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
7430
|
+
}
|
|
7431
|
+
function LocalDisksSpecCustomJson() {
|
|
7432
|
+
const obj = {
|
|
7433
|
+
type: this.$type,
|
|
7434
|
+
};
|
|
7435
|
+
if (this.config !== undefined)
|
|
7436
|
+
obj.config = (0, logging_1.inspectJson)(this.config);
|
|
7437
|
+
return obj;
|
|
7438
|
+
}
|
|
7439
|
+
function applyLocalDisksSpecCustom(message) {
|
|
7440
|
+
message[logging_1.custom] = LocalDisksSpecCustomInspect;
|
|
7441
|
+
message[logging_1.customJson] = LocalDisksSpecCustomJson;
|
|
7442
|
+
return message;
|
|
7443
|
+
}
|
|
7444
|
+
function createBaseLocalDisksSpec() {
|
|
7445
|
+
const message = {
|
|
7446
|
+
$type: "nebius.mk8s.v1.LocalDisksSpec",
|
|
7447
|
+
config: undefined,
|
|
7448
|
+
request: undefined,
|
|
7449
|
+
};
|
|
7450
|
+
return applyLocalDisksSpecCustom(message);
|
|
7451
|
+
}
|
|
7452
|
+
exports.PassthroughGroupRequest = {
|
|
7453
|
+
$type: "nebius.mk8s.v1.PassthroughGroupRequest",
|
|
7454
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
7455
|
+
if (message.requested === true) {
|
|
7456
|
+
writer.uint32(8).bool(message.requested);
|
|
7457
|
+
}
|
|
7458
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
7459
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
7460
|
+
}
|
|
7461
|
+
return writer;
|
|
7462
|
+
},
|
|
7463
|
+
decode(input, length) {
|
|
7464
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
7465
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7466
|
+
const message = createBasePassthroughGroupRequest();
|
|
7467
|
+
let writer = undefined;
|
|
7468
|
+
while (reader.pos < end) {
|
|
7469
|
+
const tag = reader.uint32();
|
|
7470
|
+
switch (tag >>> 3) {
|
|
7471
|
+
case 1: {
|
|
7472
|
+
if (tag !== 8)
|
|
7473
|
+
break;
|
|
7474
|
+
message.requested = reader.bool();
|
|
7475
|
+
continue;
|
|
7476
|
+
}
|
|
7477
|
+
default:
|
|
7478
|
+
break;
|
|
7479
|
+
}
|
|
7480
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7481
|
+
break;
|
|
7482
|
+
}
|
|
7483
|
+
{
|
|
7484
|
+
if (!writer)
|
|
7485
|
+
writer = new index_1.BinaryWriter();
|
|
7486
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
7487
|
+
writer.uint32(tag).raw(skipped);
|
|
7488
|
+
}
|
|
7489
|
+
}
|
|
7490
|
+
if (writer) {
|
|
7491
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
7492
|
+
}
|
|
7493
|
+
return message;
|
|
7494
|
+
},
|
|
7495
|
+
fromJSON(object) {
|
|
7496
|
+
return applyPassthroughGroupRequestCustom({
|
|
7497
|
+
$type: "nebius.mk8s.v1.PassthroughGroupRequest",
|
|
7498
|
+
requested: (0, index_1.isSet)(object.requested ?? object.requested)
|
|
7499
|
+
? Boolean(object.requested ?? object.requested)
|
|
7500
|
+
: false,
|
|
7501
|
+
});
|
|
7502
|
+
},
|
|
7503
|
+
toJSON(message, use = "json") {
|
|
7504
|
+
const obj = {};
|
|
7505
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
7506
|
+
if (message.requested === true) {
|
|
7507
|
+
obj[pick("requested", "requested")] = message.requested;
|
|
7508
|
+
}
|
|
7509
|
+
return obj;
|
|
7510
|
+
},
|
|
7511
|
+
create(base) {
|
|
7512
|
+
return exports.PassthroughGroupRequest.fromPartial(base ?? {});
|
|
7513
|
+
},
|
|
7514
|
+
fromPartial(object) {
|
|
7515
|
+
const message = createBasePassthroughGroupRequest();
|
|
7516
|
+
message.requested = (object.requested !== undefined && object.requested !== null)
|
|
7517
|
+
? object.requested
|
|
7518
|
+
: false;
|
|
7519
|
+
return message;
|
|
7520
|
+
},
|
|
7521
|
+
};
|
|
7522
|
+
protobuf_1.protoRegistry.registerMessage(exports.PassthroughGroupRequest);
|
|
7523
|
+
function PassthroughGroupRequestCustomInspect() {
|
|
7524
|
+
const parts = [];
|
|
7525
|
+
if (this.requested === true)
|
|
7526
|
+
parts.push("requested" + "=" + (0, util_1.inspect)(this.requested));
|
|
7527
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
7528
|
+
}
|
|
7529
|
+
function PassthroughGroupRequestCustomJson() {
|
|
7530
|
+
const obj = {
|
|
7531
|
+
type: this.$type,
|
|
7532
|
+
};
|
|
7533
|
+
if (this.requested === true)
|
|
7534
|
+
obj.requested = (0, logging_1.inspectJson)(this.requested);
|
|
7535
|
+
return obj;
|
|
7536
|
+
}
|
|
7537
|
+
function applyPassthroughGroupRequestCustom(message) {
|
|
7538
|
+
message[logging_1.custom] = PassthroughGroupRequestCustomInspect;
|
|
7539
|
+
message[logging_1.customJson] = PassthroughGroupRequestCustomJson;
|
|
7540
|
+
return message;
|
|
7541
|
+
}
|
|
7542
|
+
function createBasePassthroughGroupRequest() {
|
|
7543
|
+
const message = {
|
|
7544
|
+
$type: "nebius.mk8s.v1.PassthroughGroupRequest",
|
|
7545
|
+
requested: false,
|
|
7546
|
+
};
|
|
7547
|
+
return applyPassthroughGroupRequestCustom(message);
|
|
7548
|
+
}
|
|
7549
|
+
exports.LocalDisksSpecConfig = {
|
|
7550
|
+
$type: "nebius.mk8s.v1.LocalDisksSpecConfig",
|
|
7551
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
7552
|
+
if (message.type?.$case === undefined) { /* noop */ }
|
|
7553
|
+
else if (message.type?.$case === "none") {
|
|
7554
|
+
writer.uint32(8).bool(message.type.none);
|
|
7555
|
+
}
|
|
7556
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
7557
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
7558
|
+
}
|
|
7559
|
+
return writer;
|
|
7560
|
+
},
|
|
7561
|
+
decode(input, length) {
|
|
7562
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
7563
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7564
|
+
const message = createBaseLocalDisksSpecConfig();
|
|
7565
|
+
let writer = undefined;
|
|
7566
|
+
while (reader.pos < end) {
|
|
7567
|
+
const tag = reader.uint32();
|
|
7568
|
+
switch (tag >>> 3) {
|
|
7569
|
+
case 1: {
|
|
7570
|
+
if (tag !== 8)
|
|
7571
|
+
break;
|
|
7572
|
+
message.type = {
|
|
7573
|
+
$case: "none",
|
|
7574
|
+
none: reader.bool()
|
|
7575
|
+
};
|
|
7576
|
+
continue;
|
|
7577
|
+
}
|
|
7578
|
+
default:
|
|
7579
|
+
break;
|
|
7580
|
+
}
|
|
7581
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7582
|
+
break;
|
|
7583
|
+
}
|
|
7584
|
+
{
|
|
7585
|
+
if (!writer)
|
|
7586
|
+
writer = new index_1.BinaryWriter();
|
|
7587
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
7588
|
+
writer.uint32(tag).raw(skipped);
|
|
7589
|
+
}
|
|
7590
|
+
}
|
|
7591
|
+
if (writer) {
|
|
7592
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
7593
|
+
}
|
|
7594
|
+
return message;
|
|
7595
|
+
},
|
|
7596
|
+
fromJSON(object) {
|
|
7597
|
+
return applyLocalDisksSpecConfigCustom({
|
|
7598
|
+
$type: "nebius.mk8s.v1.LocalDisksSpecConfig",
|
|
7599
|
+
type: (() => {
|
|
7600
|
+
if ((0, index_1.isSet)(object.none) || (0, index_1.isSet)(object.none)) {
|
|
7601
|
+
return {
|
|
7602
|
+
$case: "none",
|
|
7603
|
+
none: Boolean(object.none ?? object.none)
|
|
7604
|
+
};
|
|
7605
|
+
}
|
|
7606
|
+
return undefined;
|
|
7607
|
+
})(),
|
|
7608
|
+
});
|
|
7609
|
+
},
|
|
7610
|
+
toJSON(message, use = "json") {
|
|
7611
|
+
const obj = {};
|
|
7612
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
7613
|
+
switch (message.type?.$case) {
|
|
7614
|
+
case "none": {
|
|
7615
|
+
obj[pick("none", "none")] = message.type.none;
|
|
7616
|
+
break;
|
|
7617
|
+
}
|
|
7618
|
+
default: break;
|
|
7619
|
+
}
|
|
7620
|
+
return obj;
|
|
7621
|
+
},
|
|
7622
|
+
create(base) {
|
|
7623
|
+
return exports.LocalDisksSpecConfig.fromPartial(base ?? {});
|
|
7624
|
+
},
|
|
7625
|
+
fromPartial(object) {
|
|
7626
|
+
const message = createBaseLocalDisksSpecConfig();
|
|
7627
|
+
switch (object.type?.$case) {
|
|
7628
|
+
case "none": {
|
|
7629
|
+
if (object.type?.none !== undefined && object.type?.none !== null) {
|
|
7630
|
+
message.type = {
|
|
7631
|
+
$case: "none",
|
|
7632
|
+
none: object.type.none,
|
|
7633
|
+
};
|
|
7634
|
+
}
|
|
7635
|
+
break;
|
|
7636
|
+
}
|
|
7637
|
+
default: break;
|
|
7638
|
+
}
|
|
7639
|
+
return message;
|
|
7640
|
+
},
|
|
7641
|
+
};
|
|
7642
|
+
protobuf_1.protoRegistry.registerMessage(exports.LocalDisksSpecConfig);
|
|
7643
|
+
function LocalDisksSpecConfigCustomInspect() {
|
|
7644
|
+
const parts = [];
|
|
7645
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
7646
|
+
}
|
|
7647
|
+
function LocalDisksSpecConfigCustomJson() {
|
|
7648
|
+
const obj = {
|
|
7649
|
+
type: this.$type,
|
|
7650
|
+
};
|
|
7651
|
+
return obj;
|
|
7652
|
+
}
|
|
7653
|
+
function applyLocalDisksSpecConfigCustom(message) {
|
|
7654
|
+
message[logging_1.custom] = LocalDisksSpecConfigCustomInspect;
|
|
7655
|
+
message[logging_1.customJson] = LocalDisksSpecConfigCustomJson;
|
|
7656
|
+
return message;
|
|
7657
|
+
}
|
|
7658
|
+
function createBaseLocalDisksSpecConfig() {
|
|
7659
|
+
const message = {
|
|
7660
|
+
$type: "nebius.mk8s.v1.LocalDisksSpecConfig",
|
|
7661
|
+
type: undefined,
|
|
7662
|
+
};
|
|
7663
|
+
return applyLocalDisksSpecConfigCustom(message);
|
|
7664
|
+
}
|
|
7280
7665
|
exports.NodeGroupStatus = {
|
|
7281
7666
|
$type: "nebius.mk8s.v1.NodeGroupStatus",
|
|
7282
7667
|
encode(message, writer = new index_1.BinaryWriter()) {
|