@nebius/js-sdk 0.2.64 → 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/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 +60 -2
- 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/version.d.ts +1 -1
- package/dist/cjs/version.js +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 +60 -2
- 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/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
|
@@ -12413,6 +12413,13 @@ function createBaseInstance() {
|
|
|
12413
12413
|
};
|
|
12414
12414
|
return applyInstanceCustom(message);
|
|
12415
12415
|
}
|
|
12416
|
+
const InstanceSpec_pricingModel_ONEOF_DESCRIPTOR = {
|
|
12417
|
+
fields: {
|
|
12418
|
+
"onDemand": { pbName: "on_demand", message: () => OnDemandSpec.$descriptor },
|
|
12419
|
+
"followsSpotPrice": { pbName: "follows_spot_price", message: () => FollowsSpotPriceSpec.$descriptor },
|
|
12420
|
+
"spotPricingPolicy": { pbName: "spot_pricing_policy", message: () => SpotPricingPolicySpec.$descriptor },
|
|
12421
|
+
},
|
|
12422
|
+
};
|
|
12416
12423
|
const InstanceSpec_MESSAGE_DESCRIPTOR = {
|
|
12417
12424
|
fields: {
|
|
12418
12425
|
"serviceAccountId": { pbName: "service_account_id", immutable: true, scalarType: 9 },
|
|
@@ -12430,6 +12437,7 @@ const InstanceSpec_MESSAGE_DESCRIPTOR = {
|
|
|
12430
12437
|
"nvlInstanceGroupId": { pbName: "nvl_instance_group_id", scalarType: 9 },
|
|
12431
12438
|
"reservationPolicy": { pbName: "reservation_policy", message: () => ReservationPolicy.$descriptor },
|
|
12432
12439
|
"localDisks": { pbName: "local_disks", message: () => LocalDisksSpec.$descriptor },
|
|
12440
|
+
"pricingModel": { pbName: "pricing_model", oneof: true, message: () => InstanceSpec_pricingModel_ONEOF_DESCRIPTOR },
|
|
12433
12441
|
},
|
|
12434
12442
|
};
|
|
12435
12443
|
/** Encodes, decodes, converts, and creates {@link InstanceSpec} messages. */
|
|
@@ -12500,6 +12508,22 @@ export const InstanceSpec = {
|
|
|
12500
12508
|
LocalDisksSpec.encode(message.localDisks, w);
|
|
12501
12509
|
w.join();
|
|
12502
12510
|
}
|
|
12511
|
+
if (message.pricingModel?.$case === undefined) { /* noop */ }
|
|
12512
|
+
else if (message.pricingModel?.$case === "onDemand") {
|
|
12513
|
+
const w = writer.uint32(202).fork();
|
|
12514
|
+
OnDemandSpec.encode(message.pricingModel.onDemand, w);
|
|
12515
|
+
w.join();
|
|
12516
|
+
}
|
|
12517
|
+
else if (message.pricingModel?.$case === "followsSpotPrice") {
|
|
12518
|
+
const w = writer.uint32(210).fork();
|
|
12519
|
+
FollowsSpotPriceSpec.encode(message.pricingModel.followsSpotPrice, w);
|
|
12520
|
+
w.join();
|
|
12521
|
+
}
|
|
12522
|
+
else if (message.pricingModel?.$case === "spotPricingPolicy") {
|
|
12523
|
+
const w = writer.uint32(218).fork();
|
|
12524
|
+
SpotPricingPolicySpec.encode(message.pricingModel.spotPricingPolicy, w);
|
|
12525
|
+
w.join();
|
|
12526
|
+
}
|
|
12503
12527
|
if (message[unknownFieldsSymbol]) {
|
|
12504
12528
|
writer.raw(message[unknownFieldsSymbol]);
|
|
12505
12529
|
}
|
|
@@ -12603,6 +12627,33 @@ export const InstanceSpec = {
|
|
|
12603
12627
|
message.localDisks = LocalDisksSpec.decode(reader, reader.uint32());
|
|
12604
12628
|
continue;
|
|
12605
12629
|
}
|
|
12630
|
+
case 25: {
|
|
12631
|
+
if (tag !== 202)
|
|
12632
|
+
break;
|
|
12633
|
+
message.pricingModel = {
|
|
12634
|
+
$case: "onDemand",
|
|
12635
|
+
onDemand: OnDemandSpec.decode(reader, reader.uint32())
|
|
12636
|
+
};
|
|
12637
|
+
continue;
|
|
12638
|
+
}
|
|
12639
|
+
case 26: {
|
|
12640
|
+
if (tag !== 210)
|
|
12641
|
+
break;
|
|
12642
|
+
message.pricingModel = {
|
|
12643
|
+
$case: "followsSpotPrice",
|
|
12644
|
+
followsSpotPrice: FollowsSpotPriceSpec.decode(reader, reader.uint32())
|
|
12645
|
+
};
|
|
12646
|
+
continue;
|
|
12647
|
+
}
|
|
12648
|
+
case 27: {
|
|
12649
|
+
if (tag !== 218)
|
|
12650
|
+
break;
|
|
12651
|
+
message.pricingModel = {
|
|
12652
|
+
$case: "spotPricingPolicy",
|
|
12653
|
+
spotPricingPolicy: SpotPricingPolicySpec.decode(reader, reader.uint32())
|
|
12654
|
+
};
|
|
12655
|
+
continue;
|
|
12656
|
+
}
|
|
12606
12657
|
default:
|
|
12607
12658
|
break;
|
|
12608
12659
|
}
|
|
@@ -12669,6 +12720,27 @@ export const InstanceSpec = {
|
|
|
12669
12720
|
localDisks: isSet(object.localDisks ?? object.local_disks)
|
|
12670
12721
|
? LocalDisksSpec.fromJSON(object.localDisks ?? object.local_disks)
|
|
12671
12722
|
: undefined,
|
|
12723
|
+
pricingModel: (() => {
|
|
12724
|
+
if (isSet(object.onDemand) || isSet(object.on_demand)) {
|
|
12725
|
+
return {
|
|
12726
|
+
$case: "onDemand",
|
|
12727
|
+
onDemand: OnDemandSpec.fromJSON(object.onDemand ?? object.on_demand)
|
|
12728
|
+
};
|
|
12729
|
+
}
|
|
12730
|
+
if (isSet(object.followsSpotPrice) || isSet(object.follows_spot_price)) {
|
|
12731
|
+
return {
|
|
12732
|
+
$case: "followsSpotPrice",
|
|
12733
|
+
followsSpotPrice: FollowsSpotPriceSpec.fromJSON(object.followsSpotPrice ?? object.follows_spot_price)
|
|
12734
|
+
};
|
|
12735
|
+
}
|
|
12736
|
+
if (isSet(object.spotPricingPolicy) || isSet(object.spot_pricing_policy)) {
|
|
12737
|
+
return {
|
|
12738
|
+
$case: "spotPricingPolicy",
|
|
12739
|
+
spotPricingPolicy: SpotPricingPolicySpec.fromJSON(object.spotPricingPolicy ?? object.spot_pricing_policy)
|
|
12740
|
+
};
|
|
12741
|
+
}
|
|
12742
|
+
return undefined;
|
|
12743
|
+
})(),
|
|
12672
12744
|
});
|
|
12673
12745
|
},
|
|
12674
12746
|
toJSON(message, use = "json") {
|
|
@@ -12731,6 +12803,21 @@ export const InstanceSpec = {
|
|
|
12731
12803
|
? LocalDisksSpec.toJSON(message.localDisks, use)
|
|
12732
12804
|
: undefined;
|
|
12733
12805
|
}
|
|
12806
|
+
switch (message.pricingModel?.$case) {
|
|
12807
|
+
case "onDemand": {
|
|
12808
|
+
obj[pick("onDemand", "on_demand")] = OnDemandSpec.toJSON(message.pricingModel.onDemand, use);
|
|
12809
|
+
break;
|
|
12810
|
+
}
|
|
12811
|
+
case "followsSpotPrice": {
|
|
12812
|
+
obj[pick("followsSpotPrice", "follows_spot_price")] = FollowsSpotPriceSpec.toJSON(message.pricingModel.followsSpotPrice, use);
|
|
12813
|
+
break;
|
|
12814
|
+
}
|
|
12815
|
+
case "spotPricingPolicy": {
|
|
12816
|
+
obj[pick("spotPricingPolicy", "spot_pricing_policy")] = SpotPricingPolicySpec.toJSON(message.pricingModel.spotPricingPolicy, use);
|
|
12817
|
+
break;
|
|
12818
|
+
}
|
|
12819
|
+
default: break;
|
|
12820
|
+
}
|
|
12734
12821
|
return obj;
|
|
12735
12822
|
},
|
|
12736
12823
|
create(base) {
|
|
@@ -12777,6 +12864,36 @@ export const InstanceSpec = {
|
|
|
12777
12864
|
message.localDisks = (object.localDisks !== undefined && object.localDisks !== null)
|
|
12778
12865
|
? LocalDisksSpec.fromPartial(object.localDisks)
|
|
12779
12866
|
: undefined;
|
|
12867
|
+
switch (object.pricingModel?.$case) {
|
|
12868
|
+
case "onDemand": {
|
|
12869
|
+
if (object.pricingModel.onDemand !== undefined && object.pricingModel.onDemand !== null) {
|
|
12870
|
+
message.pricingModel = {
|
|
12871
|
+
$case: "onDemand",
|
|
12872
|
+
onDemand: OnDemandSpec.fromPartial(object.pricingModel.onDemand),
|
|
12873
|
+
};
|
|
12874
|
+
}
|
|
12875
|
+
break;
|
|
12876
|
+
}
|
|
12877
|
+
case "followsSpotPrice": {
|
|
12878
|
+
if (object.pricingModel.followsSpotPrice !== undefined && object.pricingModel.followsSpotPrice !== null) {
|
|
12879
|
+
message.pricingModel = {
|
|
12880
|
+
$case: "followsSpotPrice",
|
|
12881
|
+
followsSpotPrice: FollowsSpotPriceSpec.fromPartial(object.pricingModel.followsSpotPrice),
|
|
12882
|
+
};
|
|
12883
|
+
}
|
|
12884
|
+
break;
|
|
12885
|
+
}
|
|
12886
|
+
case "spotPricingPolicy": {
|
|
12887
|
+
if (object.pricingModel.spotPricingPolicy !== undefined && object.pricingModel.spotPricingPolicy !== null) {
|
|
12888
|
+
message.pricingModel = {
|
|
12889
|
+
$case: "spotPricingPolicy",
|
|
12890
|
+
spotPricingPolicy: SpotPricingPolicySpec.fromPartial(object.pricingModel.spotPricingPolicy),
|
|
12891
|
+
};
|
|
12892
|
+
}
|
|
12893
|
+
break;
|
|
12894
|
+
}
|
|
12895
|
+
default: break;
|
|
12896
|
+
}
|
|
12780
12897
|
return message;
|
|
12781
12898
|
},
|
|
12782
12899
|
};
|
|
@@ -12874,6 +12991,7 @@ function createBaseInstanceSpec() {
|
|
|
12874
12991
|
nvlInstanceGroupId: "",
|
|
12875
12992
|
reservationPolicy: undefined,
|
|
12876
12993
|
localDisks: undefined,
|
|
12994
|
+
pricingModel: undefined,
|
|
12877
12995
|
};
|
|
12878
12996
|
return applyInstanceSpecCustom(message);
|
|
12879
12997
|
}
|
|
@@ -14947,6 +15065,268 @@ function createBasePassthroughGroupRequest() {
|
|
|
14947
15065
|
};
|
|
14948
15066
|
return applyPassthroughGroupRequestCustom(message);
|
|
14949
15067
|
}
|
|
15068
|
+
const OnDemandSpec_MESSAGE_DESCRIPTOR = {
|
|
15069
|
+
fields: {},
|
|
15070
|
+
};
|
|
15071
|
+
/** Encodes, decodes, converts, and creates {@link OnDemandSpec} messages. */
|
|
15072
|
+
export const OnDemandSpec = {
|
|
15073
|
+
$type: "nebius.compute.v1.OnDemandSpec",
|
|
15074
|
+
$descriptor: OnDemandSpec_MESSAGE_DESCRIPTOR,
|
|
15075
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15076
|
+
if (message[unknownFieldsSymbol]) {
|
|
15077
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
15078
|
+
}
|
|
15079
|
+
return writer;
|
|
15080
|
+
},
|
|
15081
|
+
decode(input, length) {
|
|
15082
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15083
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15084
|
+
const message = createBaseOnDemandSpec();
|
|
15085
|
+
let writer = undefined;
|
|
15086
|
+
while (reader.pos < end) {
|
|
15087
|
+
const tag = reader.uint32();
|
|
15088
|
+
switch (tag >>> 3) {
|
|
15089
|
+
default:
|
|
15090
|
+
break;
|
|
15091
|
+
}
|
|
15092
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15093
|
+
break;
|
|
15094
|
+
}
|
|
15095
|
+
{
|
|
15096
|
+
if (!writer)
|
|
15097
|
+
writer = new BinaryWriter();
|
|
15098
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
15099
|
+
writer.uint32(tag).raw(skipped);
|
|
15100
|
+
}
|
|
15101
|
+
}
|
|
15102
|
+
if (writer) {
|
|
15103
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
15104
|
+
}
|
|
15105
|
+
return message;
|
|
15106
|
+
},
|
|
15107
|
+
fromJSON(object) {
|
|
15108
|
+
return applyOnDemandSpecCustom({
|
|
15109
|
+
$type: "nebius.compute.v1.OnDemandSpec",
|
|
15110
|
+
});
|
|
15111
|
+
},
|
|
15112
|
+
toJSON(message, use = "json") {
|
|
15113
|
+
const obj = {};
|
|
15114
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
15115
|
+
return obj;
|
|
15116
|
+
},
|
|
15117
|
+
create(base) {
|
|
15118
|
+
return OnDemandSpec.fromPartial(base ?? {});
|
|
15119
|
+
},
|
|
15120
|
+
fromPartial(object) {
|
|
15121
|
+
const message = createBaseOnDemandSpec();
|
|
15122
|
+
return message;
|
|
15123
|
+
},
|
|
15124
|
+
};
|
|
15125
|
+
protoRegistry.registerMessage(OnDemandSpec);
|
|
15126
|
+
function OnDemandSpecCustomInspect() {
|
|
15127
|
+
const parts = [];
|
|
15128
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
15129
|
+
}
|
|
15130
|
+
function OnDemandSpecCustomJson() {
|
|
15131
|
+
const obj = {
|
|
15132
|
+
type: this.$type,
|
|
15133
|
+
};
|
|
15134
|
+
return obj;
|
|
15135
|
+
}
|
|
15136
|
+
function applyOnDemandSpecCustom(message) {
|
|
15137
|
+
message[custom] = OnDemandSpecCustomInspect;
|
|
15138
|
+
message[customJson] = OnDemandSpecCustomJson;
|
|
15139
|
+
return attachMessageDescriptor(message, OnDemandSpec.$descriptor);
|
|
15140
|
+
}
|
|
15141
|
+
function createBaseOnDemandSpec() {
|
|
15142
|
+
const message = {
|
|
15143
|
+
$type: "nebius.compute.v1.OnDemandSpec",
|
|
15144
|
+
};
|
|
15145
|
+
return applyOnDemandSpecCustom(message);
|
|
15146
|
+
}
|
|
15147
|
+
const FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR = {
|
|
15148
|
+
fields: {},
|
|
15149
|
+
};
|
|
15150
|
+
/** Encodes, decodes, converts, and creates {@link FollowsSpotPriceSpec} messages. */
|
|
15151
|
+
export const FollowsSpotPriceSpec = {
|
|
15152
|
+
$type: "nebius.compute.v1.FollowsSpotPriceSpec",
|
|
15153
|
+
$descriptor: FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR,
|
|
15154
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15155
|
+
if (message[unknownFieldsSymbol]) {
|
|
15156
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
15157
|
+
}
|
|
15158
|
+
return writer;
|
|
15159
|
+
},
|
|
15160
|
+
decode(input, length) {
|
|
15161
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15162
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15163
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
15164
|
+
let writer = undefined;
|
|
15165
|
+
while (reader.pos < end) {
|
|
15166
|
+
const tag = reader.uint32();
|
|
15167
|
+
switch (tag >>> 3) {
|
|
15168
|
+
default:
|
|
15169
|
+
break;
|
|
15170
|
+
}
|
|
15171
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15172
|
+
break;
|
|
15173
|
+
}
|
|
15174
|
+
{
|
|
15175
|
+
if (!writer)
|
|
15176
|
+
writer = new BinaryWriter();
|
|
15177
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
15178
|
+
writer.uint32(tag).raw(skipped);
|
|
15179
|
+
}
|
|
15180
|
+
}
|
|
15181
|
+
if (writer) {
|
|
15182
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
15183
|
+
}
|
|
15184
|
+
return message;
|
|
15185
|
+
},
|
|
15186
|
+
fromJSON(object) {
|
|
15187
|
+
return applyFollowsSpotPriceSpecCustom({
|
|
15188
|
+
$type: "nebius.compute.v1.FollowsSpotPriceSpec",
|
|
15189
|
+
});
|
|
15190
|
+
},
|
|
15191
|
+
toJSON(message, use = "json") {
|
|
15192
|
+
const obj = {};
|
|
15193
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
15194
|
+
return obj;
|
|
15195
|
+
},
|
|
15196
|
+
create(base) {
|
|
15197
|
+
return FollowsSpotPriceSpec.fromPartial(base ?? {});
|
|
15198
|
+
},
|
|
15199
|
+
fromPartial(object) {
|
|
15200
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
15201
|
+
return message;
|
|
15202
|
+
},
|
|
15203
|
+
};
|
|
15204
|
+
protoRegistry.registerMessage(FollowsSpotPriceSpec);
|
|
15205
|
+
function FollowsSpotPriceSpecCustomInspect() {
|
|
15206
|
+
const parts = [];
|
|
15207
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
15208
|
+
}
|
|
15209
|
+
function FollowsSpotPriceSpecCustomJson() {
|
|
15210
|
+
const obj = {
|
|
15211
|
+
type: this.$type,
|
|
15212
|
+
};
|
|
15213
|
+
return obj;
|
|
15214
|
+
}
|
|
15215
|
+
function applyFollowsSpotPriceSpecCustom(message) {
|
|
15216
|
+
message[custom] = FollowsSpotPriceSpecCustomInspect;
|
|
15217
|
+
message[customJson] = FollowsSpotPriceSpecCustomJson;
|
|
15218
|
+
return attachMessageDescriptor(message, FollowsSpotPriceSpec.$descriptor);
|
|
15219
|
+
}
|
|
15220
|
+
function createBaseFollowsSpotPriceSpec() {
|
|
15221
|
+
const message = {
|
|
15222
|
+
$type: "nebius.compute.v1.FollowsSpotPriceSpec",
|
|
15223
|
+
};
|
|
15224
|
+
return applyFollowsSpotPriceSpecCustom(message);
|
|
15225
|
+
}
|
|
15226
|
+
const SpotPricingPolicySpec_MESSAGE_DESCRIPTOR = {
|
|
15227
|
+
fields: {
|
|
15228
|
+
"id": { pbName: "id", scalarType: 9 },
|
|
15229
|
+
},
|
|
15230
|
+
};
|
|
15231
|
+
/** Encodes, decodes, converts, and creates {@link SpotPricingPolicySpec} messages. */
|
|
15232
|
+
export const SpotPricingPolicySpec = {
|
|
15233
|
+
$type: "nebius.compute.v1.SpotPricingPolicySpec",
|
|
15234
|
+
$descriptor: SpotPricingPolicySpec_MESSAGE_DESCRIPTOR,
|
|
15235
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15236
|
+
if (message.id !== "") {
|
|
15237
|
+
writer.uint32(10).string(message.id);
|
|
15238
|
+
}
|
|
15239
|
+
if (message[unknownFieldsSymbol]) {
|
|
15240
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
15241
|
+
}
|
|
15242
|
+
return writer;
|
|
15243
|
+
},
|
|
15244
|
+
decode(input, length) {
|
|
15245
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
15246
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15247
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
15248
|
+
let writer = undefined;
|
|
15249
|
+
while (reader.pos < end) {
|
|
15250
|
+
const tag = reader.uint32();
|
|
15251
|
+
switch (tag >>> 3) {
|
|
15252
|
+
case 1: {
|
|
15253
|
+
if (tag !== 10)
|
|
15254
|
+
break;
|
|
15255
|
+
message.id = reader.string();
|
|
15256
|
+
continue;
|
|
15257
|
+
}
|
|
15258
|
+
default:
|
|
15259
|
+
break;
|
|
15260
|
+
}
|
|
15261
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15262
|
+
break;
|
|
15263
|
+
}
|
|
15264
|
+
{
|
|
15265
|
+
if (!writer)
|
|
15266
|
+
writer = new BinaryWriter();
|
|
15267
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
15268
|
+
writer.uint32(tag).raw(skipped);
|
|
15269
|
+
}
|
|
15270
|
+
}
|
|
15271
|
+
if (writer) {
|
|
15272
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
15273
|
+
}
|
|
15274
|
+
return message;
|
|
15275
|
+
},
|
|
15276
|
+
fromJSON(object) {
|
|
15277
|
+
return applySpotPricingPolicySpecCustom({
|
|
15278
|
+
$type: "nebius.compute.v1.SpotPricingPolicySpec",
|
|
15279
|
+
id: isSet(object.id ?? object.id)
|
|
15280
|
+
? String(object.id ?? object.id)
|
|
15281
|
+
: "",
|
|
15282
|
+
});
|
|
15283
|
+
},
|
|
15284
|
+
toJSON(message, use = "json") {
|
|
15285
|
+
const obj = {};
|
|
15286
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
15287
|
+
if (message.id !== "") {
|
|
15288
|
+
obj[pick("id", "id")] = message.id;
|
|
15289
|
+
}
|
|
15290
|
+
return obj;
|
|
15291
|
+
},
|
|
15292
|
+
create(base) {
|
|
15293
|
+
return SpotPricingPolicySpec.fromPartial(base ?? {});
|
|
15294
|
+
},
|
|
15295
|
+
fromPartial(object) {
|
|
15296
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
15297
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
15298
|
+
? object.id
|
|
15299
|
+
: "";
|
|
15300
|
+
return message;
|
|
15301
|
+
},
|
|
15302
|
+
};
|
|
15303
|
+
protoRegistry.registerMessage(SpotPricingPolicySpec);
|
|
15304
|
+
function SpotPricingPolicySpecCustomInspect() {
|
|
15305
|
+
const parts = [];
|
|
15306
|
+
if (this.id !== "")
|
|
15307
|
+
parts.push("id" + "=" + inspect(this.id));
|
|
15308
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
15309
|
+
}
|
|
15310
|
+
function SpotPricingPolicySpecCustomJson() {
|
|
15311
|
+
const obj = {
|
|
15312
|
+
type: this.$type,
|
|
15313
|
+
};
|
|
15314
|
+
if (this.id !== "")
|
|
15315
|
+
obj.id = inspectJson(this.id);
|
|
15316
|
+
return obj;
|
|
15317
|
+
}
|
|
15318
|
+
function applySpotPricingPolicySpecCustom(message) {
|
|
15319
|
+
message[custom] = SpotPricingPolicySpecCustomInspect;
|
|
15320
|
+
message[customJson] = SpotPricingPolicySpecCustomJson;
|
|
15321
|
+
return attachMessageDescriptor(message, SpotPricingPolicySpec.$descriptor);
|
|
15322
|
+
}
|
|
15323
|
+
function createBaseSpotPricingPolicySpec() {
|
|
15324
|
+
const message = {
|
|
15325
|
+
$type: "nebius.compute.v1.SpotPricingPolicySpec",
|
|
15326
|
+
id: "",
|
|
15327
|
+
};
|
|
15328
|
+
return applySpotPricingPolicySpecCustom(message);
|
|
15329
|
+
}
|
|
14950
15330
|
const MaintenanceEvent_MESSAGE_DESCRIPTOR = {
|
|
14951
15331
|
fields: {
|
|
14952
15332
|
"id": { pbName: "id", scalarType: 9 },
|