@nebius/js-sdk 0.2.65 → 0.2.67
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/audit/v2/index.d.ts +0 -13
- package/dist/cjs/api/nebius/audit/v2/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/audit/v2/index.js.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.d.ts +79 -5
- package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.js +316 -3
- package/dist/cjs/api/nebius/iam/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +52 -0
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.js +381 -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/audit/v2/index.d.ts +0 -13
- package/dist/esm/api/nebius/audit/v2/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/audit/v2/index.js.map +1 -1
- package/dist/esm/api/nebius/iam/v1/index.d.ts +79 -5
- package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/iam/v1/index.js +313 -0
- package/dist/esm/api/nebius/iam/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts +52 -0
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.js +380 -0
- 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
|
@@ -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.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;
|
|
5
|
+
exports.Problem = exports.ProgressData = exports.NodeGroupStatus = exports.LocalDisksSpecConfig = exports.PassthroughGroupRequest = exports.LocalDisksSpec = exports.ReservationPolicy = exports.SpotPricingPolicySpec = exports.FollowsSpotPriceSpec = exports.OnDemandSpec = 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");
|
|
@@ -6119,6 +6119,13 @@ function createBaseNodeGroupSpec() {
|
|
|
6119
6119
|
};
|
|
6120
6120
|
return applyNodeGroupSpecCustom(message);
|
|
6121
6121
|
}
|
|
6122
|
+
const NodeTemplate_pricingModel_ONEOF_DESCRIPTOR = {
|
|
6123
|
+
fields: {
|
|
6124
|
+
"onDemand": { pbName: "on_demand", message: () => exports.OnDemandSpec.$descriptor },
|
|
6125
|
+
"followsSpotPrice": { pbName: "follows_spot_price", message: () => exports.FollowsSpotPriceSpec.$descriptor },
|
|
6126
|
+
"spotPricingPolicy": { pbName: "spot_pricing_policy", message: () => exports.SpotPricingPolicySpec.$descriptor },
|
|
6127
|
+
},
|
|
6128
|
+
};
|
|
6122
6129
|
const NodeTemplate_MESSAGE_DESCRIPTOR = {
|
|
6123
6130
|
fields: {
|
|
6124
6131
|
"metadata": { pbName: "metadata", message: () => exports.NodeMetadataTemplate.$descriptor },
|
|
@@ -6138,6 +6145,7 @@ const NodeTemplate_MESSAGE_DESCRIPTOR = {
|
|
|
6138
6145
|
"reservationPolicy": { pbName: "reservation_policy", message: () => exports.ReservationPolicy.$descriptor },
|
|
6139
6146
|
"localDisks": { pbName: "local_disks", message: () => exports.LocalDisksSpec.$descriptor },
|
|
6140
6147
|
"maxPods": { pbName: "max_pods", scalarType: 3 },
|
|
6148
|
+
"pricingModel": { pbName: "pricing_model", oneof: true, message: () => NodeTemplate_pricingModel_ONEOF_DESCRIPTOR },
|
|
6141
6149
|
},
|
|
6142
6150
|
};
|
|
6143
6151
|
/** Encodes, decodes, converts, and creates {@link NodeTemplate} messages. */
|
|
@@ -6222,6 +6230,22 @@ exports.NodeTemplate = {
|
|
|
6222
6230
|
if (message.maxPods !== undefined && !message.maxPods.isZero?.()) {
|
|
6223
6231
|
writer.uint32(160).int64(message.maxPods.toString());
|
|
6224
6232
|
}
|
|
6233
|
+
if (message.pricingModel?.$case === undefined) { /* noop */ }
|
|
6234
|
+
else if (message.pricingModel?.$case === "onDemand") {
|
|
6235
|
+
const w = writer.uint32(170).fork();
|
|
6236
|
+
exports.OnDemandSpec.encode(message.pricingModel.onDemand, w);
|
|
6237
|
+
w.join();
|
|
6238
|
+
}
|
|
6239
|
+
else if (message.pricingModel?.$case === "followsSpotPrice") {
|
|
6240
|
+
const w = writer.uint32(178).fork();
|
|
6241
|
+
exports.FollowsSpotPriceSpec.encode(message.pricingModel.followsSpotPrice, w);
|
|
6242
|
+
w.join();
|
|
6243
|
+
}
|
|
6244
|
+
else if (message.pricingModel?.$case === "spotPricingPolicy") {
|
|
6245
|
+
const w = writer.uint32(186).fork();
|
|
6246
|
+
exports.SpotPricingPolicySpec.encode(message.pricingModel.spotPricingPolicy, w);
|
|
6247
|
+
w.join();
|
|
6248
|
+
}
|
|
6225
6249
|
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
6226
6250
|
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
6227
6251
|
}
|
|
@@ -6337,6 +6361,33 @@ exports.NodeTemplate = {
|
|
|
6337
6361
|
message.maxPods = index_js_1.Long.fromValue(reader.int64());
|
|
6338
6362
|
continue;
|
|
6339
6363
|
}
|
|
6364
|
+
case 21: {
|
|
6365
|
+
if (tag !== 170)
|
|
6366
|
+
break;
|
|
6367
|
+
message.pricingModel = {
|
|
6368
|
+
$case: "onDemand",
|
|
6369
|
+
onDemand: exports.OnDemandSpec.decode(reader, reader.uint32())
|
|
6370
|
+
};
|
|
6371
|
+
continue;
|
|
6372
|
+
}
|
|
6373
|
+
case 22: {
|
|
6374
|
+
if (tag !== 178)
|
|
6375
|
+
break;
|
|
6376
|
+
message.pricingModel = {
|
|
6377
|
+
$case: "followsSpotPrice",
|
|
6378
|
+
followsSpotPrice: exports.FollowsSpotPriceSpec.decode(reader, reader.uint32())
|
|
6379
|
+
};
|
|
6380
|
+
continue;
|
|
6381
|
+
}
|
|
6382
|
+
case 23: {
|
|
6383
|
+
if (tag !== 186)
|
|
6384
|
+
break;
|
|
6385
|
+
message.pricingModel = {
|
|
6386
|
+
$case: "spotPricingPolicy",
|
|
6387
|
+
spotPricingPolicy: exports.SpotPricingPolicySpec.decode(reader, reader.uint32())
|
|
6388
|
+
};
|
|
6389
|
+
continue;
|
|
6390
|
+
}
|
|
6340
6391
|
default:
|
|
6341
6392
|
break;
|
|
6342
6393
|
}
|
|
@@ -6409,6 +6460,27 @@ exports.NodeTemplate = {
|
|
|
6409
6460
|
maxPods: (0, index_js_1.isSet)(object.maxPods ?? object.max_pods)
|
|
6410
6461
|
? index_js_1.Long.fromValue(object.maxPods ?? object.max_pods)
|
|
6411
6462
|
: index_js_1.Long.ZERO,
|
|
6463
|
+
pricingModel: (() => {
|
|
6464
|
+
if ((0, index_js_1.isSet)(object.onDemand) || (0, index_js_1.isSet)(object.on_demand)) {
|
|
6465
|
+
return {
|
|
6466
|
+
$case: "onDemand",
|
|
6467
|
+
onDemand: exports.OnDemandSpec.fromJSON(object.onDemand ?? object.on_demand)
|
|
6468
|
+
};
|
|
6469
|
+
}
|
|
6470
|
+
if ((0, index_js_1.isSet)(object.followsSpotPrice) || (0, index_js_1.isSet)(object.follows_spot_price)) {
|
|
6471
|
+
return {
|
|
6472
|
+
$case: "followsSpotPrice",
|
|
6473
|
+
followsSpotPrice: exports.FollowsSpotPriceSpec.fromJSON(object.followsSpotPrice ?? object.follows_spot_price)
|
|
6474
|
+
};
|
|
6475
|
+
}
|
|
6476
|
+
if ((0, index_js_1.isSet)(object.spotPricingPolicy) || (0, index_js_1.isSet)(object.spot_pricing_policy)) {
|
|
6477
|
+
return {
|
|
6478
|
+
$case: "spotPricingPolicy",
|
|
6479
|
+
spotPricingPolicy: exports.SpotPricingPolicySpec.fromJSON(object.spotPricingPolicy ?? object.spot_pricing_policy)
|
|
6480
|
+
};
|
|
6481
|
+
}
|
|
6482
|
+
return undefined;
|
|
6483
|
+
})(),
|
|
6412
6484
|
});
|
|
6413
6485
|
},
|
|
6414
6486
|
toJSON(message, use = "json") {
|
|
@@ -6485,6 +6557,21 @@ exports.NodeTemplate = {
|
|
|
6485
6557
|
if (!message.maxPods?.isZero?.()) {
|
|
6486
6558
|
obj[pick("maxPods", "max_pods")] = (message.maxPods || index_js_1.Long.ZERO).toString();
|
|
6487
6559
|
}
|
|
6560
|
+
switch (message.pricingModel?.$case) {
|
|
6561
|
+
case "onDemand": {
|
|
6562
|
+
obj[pick("onDemand", "on_demand")] = exports.OnDemandSpec.toJSON(message.pricingModel.onDemand, use);
|
|
6563
|
+
break;
|
|
6564
|
+
}
|
|
6565
|
+
case "followsSpotPrice": {
|
|
6566
|
+
obj[pick("followsSpotPrice", "follows_spot_price")] = exports.FollowsSpotPriceSpec.toJSON(message.pricingModel.followsSpotPrice, use);
|
|
6567
|
+
break;
|
|
6568
|
+
}
|
|
6569
|
+
case "spotPricingPolicy": {
|
|
6570
|
+
obj[pick("spotPricingPolicy", "spot_pricing_policy")] = exports.SpotPricingPolicySpec.toJSON(message.pricingModel.spotPricingPolicy, use);
|
|
6571
|
+
break;
|
|
6572
|
+
}
|
|
6573
|
+
default: break;
|
|
6574
|
+
}
|
|
6488
6575
|
return obj;
|
|
6489
6576
|
},
|
|
6490
6577
|
create(base) {
|
|
@@ -6537,6 +6624,36 @@ exports.NodeTemplate = {
|
|
|
6537
6624
|
message.maxPods = (object.maxPods !== undefined && object.maxPods !== null)
|
|
6538
6625
|
? index_js_1.Long.fromValue(object.maxPods)
|
|
6539
6626
|
: index_js_1.Long.ZERO;
|
|
6627
|
+
switch (object.pricingModel?.$case) {
|
|
6628
|
+
case "onDemand": {
|
|
6629
|
+
if (object.pricingModel.onDemand !== undefined && object.pricingModel.onDemand !== null) {
|
|
6630
|
+
message.pricingModel = {
|
|
6631
|
+
$case: "onDemand",
|
|
6632
|
+
onDemand: exports.OnDemandSpec.fromPartial(object.pricingModel.onDemand),
|
|
6633
|
+
};
|
|
6634
|
+
}
|
|
6635
|
+
break;
|
|
6636
|
+
}
|
|
6637
|
+
case "followsSpotPrice": {
|
|
6638
|
+
if (object.pricingModel.followsSpotPrice !== undefined && object.pricingModel.followsSpotPrice !== null) {
|
|
6639
|
+
message.pricingModel = {
|
|
6640
|
+
$case: "followsSpotPrice",
|
|
6641
|
+
followsSpotPrice: exports.FollowsSpotPriceSpec.fromPartial(object.pricingModel.followsSpotPrice),
|
|
6642
|
+
};
|
|
6643
|
+
}
|
|
6644
|
+
break;
|
|
6645
|
+
}
|
|
6646
|
+
case "spotPricingPolicy": {
|
|
6647
|
+
if (object.pricingModel.spotPricingPolicy !== undefined && object.pricingModel.spotPricingPolicy !== null) {
|
|
6648
|
+
message.pricingModel = {
|
|
6649
|
+
$case: "spotPricingPolicy",
|
|
6650
|
+
spotPricingPolicy: exports.SpotPricingPolicySpec.fromPartial(object.pricingModel.spotPricingPolicy),
|
|
6651
|
+
};
|
|
6652
|
+
}
|
|
6653
|
+
break;
|
|
6654
|
+
}
|
|
6655
|
+
default: break;
|
|
6656
|
+
}
|
|
6540
6657
|
return message;
|
|
6541
6658
|
},
|
|
6542
6659
|
};
|
|
@@ -6644,6 +6761,7 @@ function createBaseNodeTemplate() {
|
|
|
6644
6761
|
reservationPolicy: undefined,
|
|
6645
6762
|
localDisks: undefined,
|
|
6646
6763
|
maxPods: index_js_1.Long.ZERO,
|
|
6764
|
+
pricingModel: undefined,
|
|
6647
6765
|
};
|
|
6648
6766
|
return applyNodeTemplateCustom(message);
|
|
6649
6767
|
}
|
|
@@ -8909,6 +9027,268 @@ function createBasePreemptibleSpec() {
|
|
|
8909
9027
|
};
|
|
8910
9028
|
return applyPreemptibleSpecCustom(message);
|
|
8911
9029
|
}
|
|
9030
|
+
const OnDemandSpec_MESSAGE_DESCRIPTOR = {
|
|
9031
|
+
fields: {},
|
|
9032
|
+
};
|
|
9033
|
+
/** Encodes, decodes, converts, and creates {@link OnDemandSpec} messages. */
|
|
9034
|
+
exports.OnDemandSpec = {
|
|
9035
|
+
$type: "nebius.mk8s.v1.OnDemandSpec",
|
|
9036
|
+
$descriptor: OnDemandSpec_MESSAGE_DESCRIPTOR,
|
|
9037
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
9038
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
9039
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
9040
|
+
}
|
|
9041
|
+
return writer;
|
|
9042
|
+
},
|
|
9043
|
+
decode(input, length) {
|
|
9044
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
9045
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9046
|
+
const message = createBaseOnDemandSpec();
|
|
9047
|
+
let writer = undefined;
|
|
9048
|
+
while (reader.pos < end) {
|
|
9049
|
+
const tag = reader.uint32();
|
|
9050
|
+
switch (tag >>> 3) {
|
|
9051
|
+
default:
|
|
9052
|
+
break;
|
|
9053
|
+
}
|
|
9054
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9055
|
+
break;
|
|
9056
|
+
}
|
|
9057
|
+
{
|
|
9058
|
+
if (!writer)
|
|
9059
|
+
writer = new index_js_1.BinaryWriter();
|
|
9060
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
9061
|
+
writer.uint32(tag).raw(skipped);
|
|
9062
|
+
}
|
|
9063
|
+
}
|
|
9064
|
+
if (writer) {
|
|
9065
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
9066
|
+
}
|
|
9067
|
+
return message;
|
|
9068
|
+
},
|
|
9069
|
+
fromJSON(object) {
|
|
9070
|
+
return applyOnDemandSpecCustom({
|
|
9071
|
+
$type: "nebius.mk8s.v1.OnDemandSpec",
|
|
9072
|
+
});
|
|
9073
|
+
},
|
|
9074
|
+
toJSON(message, use = "json") {
|
|
9075
|
+
const obj = {};
|
|
9076
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
9077
|
+
return obj;
|
|
9078
|
+
},
|
|
9079
|
+
create(base) {
|
|
9080
|
+
return exports.OnDemandSpec.fromPartial(base ?? {});
|
|
9081
|
+
},
|
|
9082
|
+
fromPartial(object) {
|
|
9083
|
+
const message = createBaseOnDemandSpec();
|
|
9084
|
+
return message;
|
|
9085
|
+
},
|
|
9086
|
+
};
|
|
9087
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.OnDemandSpec);
|
|
9088
|
+
function OnDemandSpecCustomInspect() {
|
|
9089
|
+
const parts = [];
|
|
9090
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
9091
|
+
}
|
|
9092
|
+
function OnDemandSpecCustomJson() {
|
|
9093
|
+
const obj = {
|
|
9094
|
+
type: this.$type,
|
|
9095
|
+
};
|
|
9096
|
+
return obj;
|
|
9097
|
+
}
|
|
9098
|
+
function applyOnDemandSpecCustom(message) {
|
|
9099
|
+
message[logging_js_1.custom] = OnDemandSpecCustomInspect;
|
|
9100
|
+
message[logging_js_1.customJson] = OnDemandSpecCustomJson;
|
|
9101
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.OnDemandSpec.$descriptor);
|
|
9102
|
+
}
|
|
9103
|
+
function createBaseOnDemandSpec() {
|
|
9104
|
+
const message = {
|
|
9105
|
+
$type: "nebius.mk8s.v1.OnDemandSpec",
|
|
9106
|
+
};
|
|
9107
|
+
return applyOnDemandSpecCustom(message);
|
|
9108
|
+
}
|
|
9109
|
+
const FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR = {
|
|
9110
|
+
fields: {},
|
|
9111
|
+
};
|
|
9112
|
+
/** Encodes, decodes, converts, and creates {@link FollowsSpotPriceSpec} messages. */
|
|
9113
|
+
exports.FollowsSpotPriceSpec = {
|
|
9114
|
+
$type: "nebius.mk8s.v1.FollowsSpotPriceSpec",
|
|
9115
|
+
$descriptor: FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR,
|
|
9116
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
9117
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
9118
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
9119
|
+
}
|
|
9120
|
+
return writer;
|
|
9121
|
+
},
|
|
9122
|
+
decode(input, length) {
|
|
9123
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
9124
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9125
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
9126
|
+
let writer = undefined;
|
|
9127
|
+
while (reader.pos < end) {
|
|
9128
|
+
const tag = reader.uint32();
|
|
9129
|
+
switch (tag >>> 3) {
|
|
9130
|
+
default:
|
|
9131
|
+
break;
|
|
9132
|
+
}
|
|
9133
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9134
|
+
break;
|
|
9135
|
+
}
|
|
9136
|
+
{
|
|
9137
|
+
if (!writer)
|
|
9138
|
+
writer = new index_js_1.BinaryWriter();
|
|
9139
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
9140
|
+
writer.uint32(tag).raw(skipped);
|
|
9141
|
+
}
|
|
9142
|
+
}
|
|
9143
|
+
if (writer) {
|
|
9144
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
9145
|
+
}
|
|
9146
|
+
return message;
|
|
9147
|
+
},
|
|
9148
|
+
fromJSON(object) {
|
|
9149
|
+
return applyFollowsSpotPriceSpecCustom({
|
|
9150
|
+
$type: "nebius.mk8s.v1.FollowsSpotPriceSpec",
|
|
9151
|
+
});
|
|
9152
|
+
},
|
|
9153
|
+
toJSON(message, use = "json") {
|
|
9154
|
+
const obj = {};
|
|
9155
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
9156
|
+
return obj;
|
|
9157
|
+
},
|
|
9158
|
+
create(base) {
|
|
9159
|
+
return exports.FollowsSpotPriceSpec.fromPartial(base ?? {});
|
|
9160
|
+
},
|
|
9161
|
+
fromPartial(object) {
|
|
9162
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
9163
|
+
return message;
|
|
9164
|
+
},
|
|
9165
|
+
};
|
|
9166
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.FollowsSpotPriceSpec);
|
|
9167
|
+
function FollowsSpotPriceSpecCustomInspect() {
|
|
9168
|
+
const parts = [];
|
|
9169
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
9170
|
+
}
|
|
9171
|
+
function FollowsSpotPriceSpecCustomJson() {
|
|
9172
|
+
const obj = {
|
|
9173
|
+
type: this.$type,
|
|
9174
|
+
};
|
|
9175
|
+
return obj;
|
|
9176
|
+
}
|
|
9177
|
+
function applyFollowsSpotPriceSpecCustom(message) {
|
|
9178
|
+
message[logging_js_1.custom] = FollowsSpotPriceSpecCustomInspect;
|
|
9179
|
+
message[logging_js_1.customJson] = FollowsSpotPriceSpecCustomJson;
|
|
9180
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.FollowsSpotPriceSpec.$descriptor);
|
|
9181
|
+
}
|
|
9182
|
+
function createBaseFollowsSpotPriceSpec() {
|
|
9183
|
+
const message = {
|
|
9184
|
+
$type: "nebius.mk8s.v1.FollowsSpotPriceSpec",
|
|
9185
|
+
};
|
|
9186
|
+
return applyFollowsSpotPriceSpecCustom(message);
|
|
9187
|
+
}
|
|
9188
|
+
const SpotPricingPolicySpec_MESSAGE_DESCRIPTOR = {
|
|
9189
|
+
fields: {
|
|
9190
|
+
"id": { pbName: "id", scalarType: 9 },
|
|
9191
|
+
},
|
|
9192
|
+
};
|
|
9193
|
+
/** Encodes, decodes, converts, and creates {@link SpotPricingPolicySpec} messages. */
|
|
9194
|
+
exports.SpotPricingPolicySpec = {
|
|
9195
|
+
$type: "nebius.mk8s.v1.SpotPricingPolicySpec",
|
|
9196
|
+
$descriptor: SpotPricingPolicySpec_MESSAGE_DESCRIPTOR,
|
|
9197
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
9198
|
+
if (message.id !== "") {
|
|
9199
|
+
writer.uint32(10).string(message.id);
|
|
9200
|
+
}
|
|
9201
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
9202
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
9203
|
+
}
|
|
9204
|
+
return writer;
|
|
9205
|
+
},
|
|
9206
|
+
decode(input, length) {
|
|
9207
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
9208
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9209
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
9210
|
+
let writer = undefined;
|
|
9211
|
+
while (reader.pos < end) {
|
|
9212
|
+
const tag = reader.uint32();
|
|
9213
|
+
switch (tag >>> 3) {
|
|
9214
|
+
case 1: {
|
|
9215
|
+
if (tag !== 10)
|
|
9216
|
+
break;
|
|
9217
|
+
message.id = reader.string();
|
|
9218
|
+
continue;
|
|
9219
|
+
}
|
|
9220
|
+
default:
|
|
9221
|
+
break;
|
|
9222
|
+
}
|
|
9223
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9224
|
+
break;
|
|
9225
|
+
}
|
|
9226
|
+
{
|
|
9227
|
+
if (!writer)
|
|
9228
|
+
writer = new index_js_1.BinaryWriter();
|
|
9229
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
9230
|
+
writer.uint32(tag).raw(skipped);
|
|
9231
|
+
}
|
|
9232
|
+
}
|
|
9233
|
+
if (writer) {
|
|
9234
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
9235
|
+
}
|
|
9236
|
+
return message;
|
|
9237
|
+
},
|
|
9238
|
+
fromJSON(object) {
|
|
9239
|
+
return applySpotPricingPolicySpecCustom({
|
|
9240
|
+
$type: "nebius.mk8s.v1.SpotPricingPolicySpec",
|
|
9241
|
+
id: (0, index_js_1.isSet)(object.id ?? object.id)
|
|
9242
|
+
? String(object.id ?? object.id)
|
|
9243
|
+
: "",
|
|
9244
|
+
});
|
|
9245
|
+
},
|
|
9246
|
+
toJSON(message, use = "json") {
|
|
9247
|
+
const obj = {};
|
|
9248
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
9249
|
+
if (message.id !== "") {
|
|
9250
|
+
obj[pick("id", "id")] = message.id;
|
|
9251
|
+
}
|
|
9252
|
+
return obj;
|
|
9253
|
+
},
|
|
9254
|
+
create(base) {
|
|
9255
|
+
return exports.SpotPricingPolicySpec.fromPartial(base ?? {});
|
|
9256
|
+
},
|
|
9257
|
+
fromPartial(object) {
|
|
9258
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
9259
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
9260
|
+
? object.id
|
|
9261
|
+
: "";
|
|
9262
|
+
return message;
|
|
9263
|
+
},
|
|
9264
|
+
};
|
|
9265
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.SpotPricingPolicySpec);
|
|
9266
|
+
function SpotPricingPolicySpecCustomInspect() {
|
|
9267
|
+
const parts = [];
|
|
9268
|
+
if (this.id !== "")
|
|
9269
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
9270
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
9271
|
+
}
|
|
9272
|
+
function SpotPricingPolicySpecCustomJson() {
|
|
9273
|
+
const obj = {
|
|
9274
|
+
type: this.$type,
|
|
9275
|
+
};
|
|
9276
|
+
if (this.id !== "")
|
|
9277
|
+
obj.id = (0, logging_js_1.inspectJson)(this.id);
|
|
9278
|
+
return obj;
|
|
9279
|
+
}
|
|
9280
|
+
function applySpotPricingPolicySpecCustom(message) {
|
|
9281
|
+
message[logging_js_1.custom] = SpotPricingPolicySpecCustomInspect;
|
|
9282
|
+
message[logging_js_1.customJson] = SpotPricingPolicySpecCustomJson;
|
|
9283
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.SpotPricingPolicySpec.$descriptor);
|
|
9284
|
+
}
|
|
9285
|
+
function createBaseSpotPricingPolicySpec() {
|
|
9286
|
+
const message = {
|
|
9287
|
+
$type: "nebius.mk8s.v1.SpotPricingPolicySpec",
|
|
9288
|
+
id: "",
|
|
9289
|
+
};
|
|
9290
|
+
return applySpotPricingPolicySpecCustom(message);
|
|
9291
|
+
}
|
|
8912
9292
|
const ReservationPolicy_MESSAGE_DESCRIPTOR = {
|
|
8913
9293
|
fields: {
|
|
8914
9294
|
"policy": { pbName: "policy", scalarType: 14 },
|