@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
|
@@ -6113,6 +6113,13 @@ function createBaseNodeGroupSpec() {
|
|
|
6113
6113
|
};
|
|
6114
6114
|
return applyNodeGroupSpecCustom(message);
|
|
6115
6115
|
}
|
|
6116
|
+
const NodeTemplate_pricingModel_ONEOF_DESCRIPTOR = {
|
|
6117
|
+
fields: {
|
|
6118
|
+
"onDemand": { pbName: "on_demand", message: () => OnDemandSpec.$descriptor },
|
|
6119
|
+
"followsSpotPrice": { pbName: "follows_spot_price", message: () => FollowsSpotPriceSpec.$descriptor },
|
|
6120
|
+
"spotPricingPolicy": { pbName: "spot_pricing_policy", message: () => SpotPricingPolicySpec.$descriptor },
|
|
6121
|
+
},
|
|
6122
|
+
};
|
|
6116
6123
|
const NodeTemplate_MESSAGE_DESCRIPTOR = {
|
|
6117
6124
|
fields: {
|
|
6118
6125
|
"metadata": { pbName: "metadata", message: () => NodeMetadataTemplate.$descriptor },
|
|
@@ -6132,6 +6139,7 @@ const NodeTemplate_MESSAGE_DESCRIPTOR = {
|
|
|
6132
6139
|
"reservationPolicy": { pbName: "reservation_policy", message: () => ReservationPolicy.$descriptor },
|
|
6133
6140
|
"localDisks": { pbName: "local_disks", message: () => LocalDisksSpec.$descriptor },
|
|
6134
6141
|
"maxPods": { pbName: "max_pods", scalarType: 3 },
|
|
6142
|
+
"pricingModel": { pbName: "pricing_model", oneof: true, message: () => NodeTemplate_pricingModel_ONEOF_DESCRIPTOR },
|
|
6135
6143
|
},
|
|
6136
6144
|
};
|
|
6137
6145
|
/** Encodes, decodes, converts, and creates {@link NodeTemplate} messages. */
|
|
@@ -6216,6 +6224,22 @@ export const NodeTemplate = {
|
|
|
6216
6224
|
if (message.maxPods !== undefined && !message.maxPods.isZero?.()) {
|
|
6217
6225
|
writer.uint32(160).int64(message.maxPods.toString());
|
|
6218
6226
|
}
|
|
6227
|
+
if (message.pricingModel?.$case === undefined) { /* noop */ }
|
|
6228
|
+
else if (message.pricingModel?.$case === "onDemand") {
|
|
6229
|
+
const w = writer.uint32(170).fork();
|
|
6230
|
+
OnDemandSpec.encode(message.pricingModel.onDemand, w);
|
|
6231
|
+
w.join();
|
|
6232
|
+
}
|
|
6233
|
+
else if (message.pricingModel?.$case === "followsSpotPrice") {
|
|
6234
|
+
const w = writer.uint32(178).fork();
|
|
6235
|
+
FollowsSpotPriceSpec.encode(message.pricingModel.followsSpotPrice, w);
|
|
6236
|
+
w.join();
|
|
6237
|
+
}
|
|
6238
|
+
else if (message.pricingModel?.$case === "spotPricingPolicy") {
|
|
6239
|
+
const w = writer.uint32(186).fork();
|
|
6240
|
+
SpotPricingPolicySpec.encode(message.pricingModel.spotPricingPolicy, w);
|
|
6241
|
+
w.join();
|
|
6242
|
+
}
|
|
6219
6243
|
if (message[unknownFieldsSymbol]) {
|
|
6220
6244
|
writer.raw(message[unknownFieldsSymbol]);
|
|
6221
6245
|
}
|
|
@@ -6331,6 +6355,33 @@ export const NodeTemplate = {
|
|
|
6331
6355
|
message.maxPods = Long.fromValue(reader.int64());
|
|
6332
6356
|
continue;
|
|
6333
6357
|
}
|
|
6358
|
+
case 21: {
|
|
6359
|
+
if (tag !== 170)
|
|
6360
|
+
break;
|
|
6361
|
+
message.pricingModel = {
|
|
6362
|
+
$case: "onDemand",
|
|
6363
|
+
onDemand: OnDemandSpec.decode(reader, reader.uint32())
|
|
6364
|
+
};
|
|
6365
|
+
continue;
|
|
6366
|
+
}
|
|
6367
|
+
case 22: {
|
|
6368
|
+
if (tag !== 178)
|
|
6369
|
+
break;
|
|
6370
|
+
message.pricingModel = {
|
|
6371
|
+
$case: "followsSpotPrice",
|
|
6372
|
+
followsSpotPrice: FollowsSpotPriceSpec.decode(reader, reader.uint32())
|
|
6373
|
+
};
|
|
6374
|
+
continue;
|
|
6375
|
+
}
|
|
6376
|
+
case 23: {
|
|
6377
|
+
if (tag !== 186)
|
|
6378
|
+
break;
|
|
6379
|
+
message.pricingModel = {
|
|
6380
|
+
$case: "spotPricingPolicy",
|
|
6381
|
+
spotPricingPolicy: SpotPricingPolicySpec.decode(reader, reader.uint32())
|
|
6382
|
+
};
|
|
6383
|
+
continue;
|
|
6384
|
+
}
|
|
6334
6385
|
default:
|
|
6335
6386
|
break;
|
|
6336
6387
|
}
|
|
@@ -6403,6 +6454,27 @@ export const NodeTemplate = {
|
|
|
6403
6454
|
maxPods: isSet(object.maxPods ?? object.max_pods)
|
|
6404
6455
|
? Long.fromValue(object.maxPods ?? object.max_pods)
|
|
6405
6456
|
: Long.ZERO,
|
|
6457
|
+
pricingModel: (() => {
|
|
6458
|
+
if (isSet(object.onDemand) || isSet(object.on_demand)) {
|
|
6459
|
+
return {
|
|
6460
|
+
$case: "onDemand",
|
|
6461
|
+
onDemand: OnDemandSpec.fromJSON(object.onDemand ?? object.on_demand)
|
|
6462
|
+
};
|
|
6463
|
+
}
|
|
6464
|
+
if (isSet(object.followsSpotPrice) || isSet(object.follows_spot_price)) {
|
|
6465
|
+
return {
|
|
6466
|
+
$case: "followsSpotPrice",
|
|
6467
|
+
followsSpotPrice: FollowsSpotPriceSpec.fromJSON(object.followsSpotPrice ?? object.follows_spot_price)
|
|
6468
|
+
};
|
|
6469
|
+
}
|
|
6470
|
+
if (isSet(object.spotPricingPolicy) || isSet(object.spot_pricing_policy)) {
|
|
6471
|
+
return {
|
|
6472
|
+
$case: "spotPricingPolicy",
|
|
6473
|
+
spotPricingPolicy: SpotPricingPolicySpec.fromJSON(object.spotPricingPolicy ?? object.spot_pricing_policy)
|
|
6474
|
+
};
|
|
6475
|
+
}
|
|
6476
|
+
return undefined;
|
|
6477
|
+
})(),
|
|
6406
6478
|
});
|
|
6407
6479
|
},
|
|
6408
6480
|
toJSON(message, use = "json") {
|
|
@@ -6479,6 +6551,21 @@ export const NodeTemplate = {
|
|
|
6479
6551
|
if (!message.maxPods?.isZero?.()) {
|
|
6480
6552
|
obj[pick("maxPods", "max_pods")] = (message.maxPods || Long.ZERO).toString();
|
|
6481
6553
|
}
|
|
6554
|
+
switch (message.pricingModel?.$case) {
|
|
6555
|
+
case "onDemand": {
|
|
6556
|
+
obj[pick("onDemand", "on_demand")] = OnDemandSpec.toJSON(message.pricingModel.onDemand, use);
|
|
6557
|
+
break;
|
|
6558
|
+
}
|
|
6559
|
+
case "followsSpotPrice": {
|
|
6560
|
+
obj[pick("followsSpotPrice", "follows_spot_price")] = FollowsSpotPriceSpec.toJSON(message.pricingModel.followsSpotPrice, use);
|
|
6561
|
+
break;
|
|
6562
|
+
}
|
|
6563
|
+
case "spotPricingPolicy": {
|
|
6564
|
+
obj[pick("spotPricingPolicy", "spot_pricing_policy")] = SpotPricingPolicySpec.toJSON(message.pricingModel.spotPricingPolicy, use);
|
|
6565
|
+
break;
|
|
6566
|
+
}
|
|
6567
|
+
default: break;
|
|
6568
|
+
}
|
|
6482
6569
|
return obj;
|
|
6483
6570
|
},
|
|
6484
6571
|
create(base) {
|
|
@@ -6531,6 +6618,36 @@ export const NodeTemplate = {
|
|
|
6531
6618
|
message.maxPods = (object.maxPods !== undefined && object.maxPods !== null)
|
|
6532
6619
|
? Long.fromValue(object.maxPods)
|
|
6533
6620
|
: Long.ZERO;
|
|
6621
|
+
switch (object.pricingModel?.$case) {
|
|
6622
|
+
case "onDemand": {
|
|
6623
|
+
if (object.pricingModel.onDemand !== undefined && object.pricingModel.onDemand !== null) {
|
|
6624
|
+
message.pricingModel = {
|
|
6625
|
+
$case: "onDemand",
|
|
6626
|
+
onDemand: OnDemandSpec.fromPartial(object.pricingModel.onDemand),
|
|
6627
|
+
};
|
|
6628
|
+
}
|
|
6629
|
+
break;
|
|
6630
|
+
}
|
|
6631
|
+
case "followsSpotPrice": {
|
|
6632
|
+
if (object.pricingModel.followsSpotPrice !== undefined && object.pricingModel.followsSpotPrice !== null) {
|
|
6633
|
+
message.pricingModel = {
|
|
6634
|
+
$case: "followsSpotPrice",
|
|
6635
|
+
followsSpotPrice: FollowsSpotPriceSpec.fromPartial(object.pricingModel.followsSpotPrice),
|
|
6636
|
+
};
|
|
6637
|
+
}
|
|
6638
|
+
break;
|
|
6639
|
+
}
|
|
6640
|
+
case "spotPricingPolicy": {
|
|
6641
|
+
if (object.pricingModel.spotPricingPolicy !== undefined && object.pricingModel.spotPricingPolicy !== null) {
|
|
6642
|
+
message.pricingModel = {
|
|
6643
|
+
$case: "spotPricingPolicy",
|
|
6644
|
+
spotPricingPolicy: SpotPricingPolicySpec.fromPartial(object.pricingModel.spotPricingPolicy),
|
|
6645
|
+
};
|
|
6646
|
+
}
|
|
6647
|
+
break;
|
|
6648
|
+
}
|
|
6649
|
+
default: break;
|
|
6650
|
+
}
|
|
6534
6651
|
return message;
|
|
6535
6652
|
},
|
|
6536
6653
|
};
|
|
@@ -6638,6 +6755,7 @@ function createBaseNodeTemplate() {
|
|
|
6638
6755
|
reservationPolicy: undefined,
|
|
6639
6756
|
localDisks: undefined,
|
|
6640
6757
|
maxPods: Long.ZERO,
|
|
6758
|
+
pricingModel: undefined,
|
|
6641
6759
|
};
|
|
6642
6760
|
return applyNodeTemplateCustom(message);
|
|
6643
6761
|
}
|
|
@@ -8903,6 +9021,268 @@ function createBasePreemptibleSpec() {
|
|
|
8903
9021
|
};
|
|
8904
9022
|
return applyPreemptibleSpecCustom(message);
|
|
8905
9023
|
}
|
|
9024
|
+
const OnDemandSpec_MESSAGE_DESCRIPTOR = {
|
|
9025
|
+
fields: {},
|
|
9026
|
+
};
|
|
9027
|
+
/** Encodes, decodes, converts, and creates {@link OnDemandSpec} messages. */
|
|
9028
|
+
export const OnDemandSpec = {
|
|
9029
|
+
$type: "nebius.mk8s.v1.OnDemandSpec",
|
|
9030
|
+
$descriptor: OnDemandSpec_MESSAGE_DESCRIPTOR,
|
|
9031
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9032
|
+
if (message[unknownFieldsSymbol]) {
|
|
9033
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
9034
|
+
}
|
|
9035
|
+
return writer;
|
|
9036
|
+
},
|
|
9037
|
+
decode(input, length) {
|
|
9038
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9039
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9040
|
+
const message = createBaseOnDemandSpec();
|
|
9041
|
+
let writer = undefined;
|
|
9042
|
+
while (reader.pos < end) {
|
|
9043
|
+
const tag = reader.uint32();
|
|
9044
|
+
switch (tag >>> 3) {
|
|
9045
|
+
default:
|
|
9046
|
+
break;
|
|
9047
|
+
}
|
|
9048
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9049
|
+
break;
|
|
9050
|
+
}
|
|
9051
|
+
{
|
|
9052
|
+
if (!writer)
|
|
9053
|
+
writer = new BinaryWriter();
|
|
9054
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
9055
|
+
writer.uint32(tag).raw(skipped);
|
|
9056
|
+
}
|
|
9057
|
+
}
|
|
9058
|
+
if (writer) {
|
|
9059
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
9060
|
+
}
|
|
9061
|
+
return message;
|
|
9062
|
+
},
|
|
9063
|
+
fromJSON(object) {
|
|
9064
|
+
return applyOnDemandSpecCustom({
|
|
9065
|
+
$type: "nebius.mk8s.v1.OnDemandSpec",
|
|
9066
|
+
});
|
|
9067
|
+
},
|
|
9068
|
+
toJSON(message, use = "json") {
|
|
9069
|
+
const obj = {};
|
|
9070
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
9071
|
+
return obj;
|
|
9072
|
+
},
|
|
9073
|
+
create(base) {
|
|
9074
|
+
return OnDemandSpec.fromPartial(base ?? {});
|
|
9075
|
+
},
|
|
9076
|
+
fromPartial(object) {
|
|
9077
|
+
const message = createBaseOnDemandSpec();
|
|
9078
|
+
return message;
|
|
9079
|
+
},
|
|
9080
|
+
};
|
|
9081
|
+
protoRegistry.registerMessage(OnDemandSpec);
|
|
9082
|
+
function OnDemandSpecCustomInspect() {
|
|
9083
|
+
const parts = [];
|
|
9084
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
9085
|
+
}
|
|
9086
|
+
function OnDemandSpecCustomJson() {
|
|
9087
|
+
const obj = {
|
|
9088
|
+
type: this.$type,
|
|
9089
|
+
};
|
|
9090
|
+
return obj;
|
|
9091
|
+
}
|
|
9092
|
+
function applyOnDemandSpecCustom(message) {
|
|
9093
|
+
message[custom] = OnDemandSpecCustomInspect;
|
|
9094
|
+
message[customJson] = OnDemandSpecCustomJson;
|
|
9095
|
+
return attachMessageDescriptor(message, OnDemandSpec.$descriptor);
|
|
9096
|
+
}
|
|
9097
|
+
function createBaseOnDemandSpec() {
|
|
9098
|
+
const message = {
|
|
9099
|
+
$type: "nebius.mk8s.v1.OnDemandSpec",
|
|
9100
|
+
};
|
|
9101
|
+
return applyOnDemandSpecCustom(message);
|
|
9102
|
+
}
|
|
9103
|
+
const FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR = {
|
|
9104
|
+
fields: {},
|
|
9105
|
+
};
|
|
9106
|
+
/** Encodes, decodes, converts, and creates {@link FollowsSpotPriceSpec} messages. */
|
|
9107
|
+
export const FollowsSpotPriceSpec = {
|
|
9108
|
+
$type: "nebius.mk8s.v1.FollowsSpotPriceSpec",
|
|
9109
|
+
$descriptor: FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR,
|
|
9110
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9111
|
+
if (message[unknownFieldsSymbol]) {
|
|
9112
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
9113
|
+
}
|
|
9114
|
+
return writer;
|
|
9115
|
+
},
|
|
9116
|
+
decode(input, length) {
|
|
9117
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9118
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9119
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
9120
|
+
let writer = undefined;
|
|
9121
|
+
while (reader.pos < end) {
|
|
9122
|
+
const tag = reader.uint32();
|
|
9123
|
+
switch (tag >>> 3) {
|
|
9124
|
+
default:
|
|
9125
|
+
break;
|
|
9126
|
+
}
|
|
9127
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9128
|
+
break;
|
|
9129
|
+
}
|
|
9130
|
+
{
|
|
9131
|
+
if (!writer)
|
|
9132
|
+
writer = new BinaryWriter();
|
|
9133
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
9134
|
+
writer.uint32(tag).raw(skipped);
|
|
9135
|
+
}
|
|
9136
|
+
}
|
|
9137
|
+
if (writer) {
|
|
9138
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
9139
|
+
}
|
|
9140
|
+
return message;
|
|
9141
|
+
},
|
|
9142
|
+
fromJSON(object) {
|
|
9143
|
+
return applyFollowsSpotPriceSpecCustom({
|
|
9144
|
+
$type: "nebius.mk8s.v1.FollowsSpotPriceSpec",
|
|
9145
|
+
});
|
|
9146
|
+
},
|
|
9147
|
+
toJSON(message, use = "json") {
|
|
9148
|
+
const obj = {};
|
|
9149
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
9150
|
+
return obj;
|
|
9151
|
+
},
|
|
9152
|
+
create(base) {
|
|
9153
|
+
return FollowsSpotPriceSpec.fromPartial(base ?? {});
|
|
9154
|
+
},
|
|
9155
|
+
fromPartial(object) {
|
|
9156
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
9157
|
+
return message;
|
|
9158
|
+
},
|
|
9159
|
+
};
|
|
9160
|
+
protoRegistry.registerMessage(FollowsSpotPriceSpec);
|
|
9161
|
+
function FollowsSpotPriceSpecCustomInspect() {
|
|
9162
|
+
const parts = [];
|
|
9163
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
9164
|
+
}
|
|
9165
|
+
function FollowsSpotPriceSpecCustomJson() {
|
|
9166
|
+
const obj = {
|
|
9167
|
+
type: this.$type,
|
|
9168
|
+
};
|
|
9169
|
+
return obj;
|
|
9170
|
+
}
|
|
9171
|
+
function applyFollowsSpotPriceSpecCustom(message) {
|
|
9172
|
+
message[custom] = FollowsSpotPriceSpecCustomInspect;
|
|
9173
|
+
message[customJson] = FollowsSpotPriceSpecCustomJson;
|
|
9174
|
+
return attachMessageDescriptor(message, FollowsSpotPriceSpec.$descriptor);
|
|
9175
|
+
}
|
|
9176
|
+
function createBaseFollowsSpotPriceSpec() {
|
|
9177
|
+
const message = {
|
|
9178
|
+
$type: "nebius.mk8s.v1.FollowsSpotPriceSpec",
|
|
9179
|
+
};
|
|
9180
|
+
return applyFollowsSpotPriceSpecCustom(message);
|
|
9181
|
+
}
|
|
9182
|
+
const SpotPricingPolicySpec_MESSAGE_DESCRIPTOR = {
|
|
9183
|
+
fields: {
|
|
9184
|
+
"id": { pbName: "id", scalarType: 9 },
|
|
9185
|
+
},
|
|
9186
|
+
};
|
|
9187
|
+
/** Encodes, decodes, converts, and creates {@link SpotPricingPolicySpec} messages. */
|
|
9188
|
+
export const SpotPricingPolicySpec = {
|
|
9189
|
+
$type: "nebius.mk8s.v1.SpotPricingPolicySpec",
|
|
9190
|
+
$descriptor: SpotPricingPolicySpec_MESSAGE_DESCRIPTOR,
|
|
9191
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9192
|
+
if (message.id !== "") {
|
|
9193
|
+
writer.uint32(10).string(message.id);
|
|
9194
|
+
}
|
|
9195
|
+
if (message[unknownFieldsSymbol]) {
|
|
9196
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
9197
|
+
}
|
|
9198
|
+
return writer;
|
|
9199
|
+
},
|
|
9200
|
+
decode(input, length) {
|
|
9201
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9202
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9203
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
9204
|
+
let writer = undefined;
|
|
9205
|
+
while (reader.pos < end) {
|
|
9206
|
+
const tag = reader.uint32();
|
|
9207
|
+
switch (tag >>> 3) {
|
|
9208
|
+
case 1: {
|
|
9209
|
+
if (tag !== 10)
|
|
9210
|
+
break;
|
|
9211
|
+
message.id = reader.string();
|
|
9212
|
+
continue;
|
|
9213
|
+
}
|
|
9214
|
+
default:
|
|
9215
|
+
break;
|
|
9216
|
+
}
|
|
9217
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9218
|
+
break;
|
|
9219
|
+
}
|
|
9220
|
+
{
|
|
9221
|
+
if (!writer)
|
|
9222
|
+
writer = new BinaryWriter();
|
|
9223
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
9224
|
+
writer.uint32(tag).raw(skipped);
|
|
9225
|
+
}
|
|
9226
|
+
}
|
|
9227
|
+
if (writer) {
|
|
9228
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
9229
|
+
}
|
|
9230
|
+
return message;
|
|
9231
|
+
},
|
|
9232
|
+
fromJSON(object) {
|
|
9233
|
+
return applySpotPricingPolicySpecCustom({
|
|
9234
|
+
$type: "nebius.mk8s.v1.SpotPricingPolicySpec",
|
|
9235
|
+
id: isSet(object.id ?? object.id)
|
|
9236
|
+
? String(object.id ?? object.id)
|
|
9237
|
+
: "",
|
|
9238
|
+
});
|
|
9239
|
+
},
|
|
9240
|
+
toJSON(message, use = "json") {
|
|
9241
|
+
const obj = {};
|
|
9242
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
9243
|
+
if (message.id !== "") {
|
|
9244
|
+
obj[pick("id", "id")] = message.id;
|
|
9245
|
+
}
|
|
9246
|
+
return obj;
|
|
9247
|
+
},
|
|
9248
|
+
create(base) {
|
|
9249
|
+
return SpotPricingPolicySpec.fromPartial(base ?? {});
|
|
9250
|
+
},
|
|
9251
|
+
fromPartial(object) {
|
|
9252
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
9253
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
9254
|
+
? object.id
|
|
9255
|
+
: "";
|
|
9256
|
+
return message;
|
|
9257
|
+
},
|
|
9258
|
+
};
|
|
9259
|
+
protoRegistry.registerMessage(SpotPricingPolicySpec);
|
|
9260
|
+
function SpotPricingPolicySpecCustomInspect() {
|
|
9261
|
+
const parts = [];
|
|
9262
|
+
if (this.id !== "")
|
|
9263
|
+
parts.push("id" + "=" + inspect(this.id));
|
|
9264
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
9265
|
+
}
|
|
9266
|
+
function SpotPricingPolicySpecCustomJson() {
|
|
9267
|
+
const obj = {
|
|
9268
|
+
type: this.$type,
|
|
9269
|
+
};
|
|
9270
|
+
if (this.id !== "")
|
|
9271
|
+
obj.id = inspectJson(this.id);
|
|
9272
|
+
return obj;
|
|
9273
|
+
}
|
|
9274
|
+
function applySpotPricingPolicySpecCustom(message) {
|
|
9275
|
+
message[custom] = SpotPricingPolicySpecCustomInspect;
|
|
9276
|
+
message[customJson] = SpotPricingPolicySpecCustomJson;
|
|
9277
|
+
return attachMessageDescriptor(message, SpotPricingPolicySpec.$descriptor);
|
|
9278
|
+
}
|
|
9279
|
+
function createBaseSpotPricingPolicySpec() {
|
|
9280
|
+
const message = {
|
|
9281
|
+
$type: "nebius.mk8s.v1.SpotPricingPolicySpec",
|
|
9282
|
+
id: "",
|
|
9283
|
+
};
|
|
9284
|
+
return applySpotPricingPolicySpecCustom(message);
|
|
9285
|
+
}
|
|
8906
9286
|
const ReservationPolicy_MESSAGE_DESCRIPTOR = {
|
|
8907
9287
|
fields: {
|
|
8908
9288
|
"policy": { pbName: "policy", scalarType: 14 },
|