@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
|
@@ -3833,6 +3833,7 @@ const DevlabStateDetails_MESSAGE_DESCRIPTOR = {
|
|
|
3833
3833
|
fields: {
|
|
3834
3834
|
"code": { pbName: "code", scalarType: 9 },
|
|
3835
3835
|
"message": { pbName: "message", scalarType: 9 },
|
|
3836
|
+
"serviceError": { pbName: "service_error", message: () => ServiceError.$descriptor },
|
|
3836
3837
|
},
|
|
3837
3838
|
};
|
|
3838
3839
|
/** Encodes, decodes, converts, and creates {@link DevlabStateDetails} messages. */
|
|
@@ -3846,6 +3847,11 @@ export const DevlabStateDetails = {
|
|
|
3846
3847
|
if (message.message !== "") {
|
|
3847
3848
|
writer.uint32(18).string(message.message);
|
|
3848
3849
|
}
|
|
3850
|
+
if (message.serviceError !== undefined) {
|
|
3851
|
+
const w = writer.uint32(26).fork();
|
|
3852
|
+
ServiceError.encode(message.serviceError, w);
|
|
3853
|
+
w.join();
|
|
3854
|
+
}
|
|
3849
3855
|
if (message[unknownFieldsSymbol]) {
|
|
3850
3856
|
writer.raw(message[unknownFieldsSymbol]);
|
|
3851
3857
|
}
|
|
@@ -3871,6 +3877,12 @@ export const DevlabStateDetails = {
|
|
|
3871
3877
|
message.message = reader.string();
|
|
3872
3878
|
continue;
|
|
3873
3879
|
}
|
|
3880
|
+
case 3: {
|
|
3881
|
+
if (tag !== 26)
|
|
3882
|
+
break;
|
|
3883
|
+
message.serviceError = ServiceError.decode(reader, reader.uint32());
|
|
3884
|
+
continue;
|
|
3885
|
+
}
|
|
3874
3886
|
default:
|
|
3875
3887
|
break;
|
|
3876
3888
|
}
|
|
@@ -3898,6 +3910,9 @@ export const DevlabStateDetails = {
|
|
|
3898
3910
|
message: isSet(object.message ?? object.message)
|
|
3899
3911
|
? String(object.message ?? object.message)
|
|
3900
3912
|
: "",
|
|
3913
|
+
serviceError: isSet(object.serviceError ?? object.service_error)
|
|
3914
|
+
? ServiceError.fromJSON(object.serviceError ?? object.service_error)
|
|
3915
|
+
: undefined,
|
|
3901
3916
|
});
|
|
3902
3917
|
},
|
|
3903
3918
|
toJSON(message, use = "json") {
|
|
@@ -3909,6 +3924,11 @@ export const DevlabStateDetails = {
|
|
|
3909
3924
|
if (message.message !== "") {
|
|
3910
3925
|
obj[pick("message", "message")] = message.message;
|
|
3911
3926
|
}
|
|
3927
|
+
if (message.serviceError !== undefined) {
|
|
3928
|
+
obj[pick("serviceError", "service_error")] = message.serviceError
|
|
3929
|
+
? ServiceError.toJSON(message.serviceError, use)
|
|
3930
|
+
: undefined;
|
|
3931
|
+
}
|
|
3912
3932
|
return obj;
|
|
3913
3933
|
},
|
|
3914
3934
|
create(base) {
|
|
@@ -3922,6 +3942,9 @@ export const DevlabStateDetails = {
|
|
|
3922
3942
|
message.message = (object.message !== undefined && object.message !== null)
|
|
3923
3943
|
? object.message
|
|
3924
3944
|
: "";
|
|
3945
|
+
message.serviceError = (object.serviceError !== undefined && object.serviceError !== null)
|
|
3946
|
+
? ServiceError.fromPartial(object.serviceError)
|
|
3947
|
+
: undefined;
|
|
3925
3948
|
return message;
|
|
3926
3949
|
},
|
|
3927
3950
|
};
|
|
@@ -3932,6 +3955,8 @@ function DevlabStateDetailsCustomInspect() {
|
|
|
3932
3955
|
parts.push("code" + "=" + inspect(this.code));
|
|
3933
3956
|
if (this.message !== "")
|
|
3934
3957
|
parts.push("message" + "=" + inspect(this.message));
|
|
3958
|
+
if (this.serviceError !== undefined)
|
|
3959
|
+
parts.push("serviceError" + "=" + inspect(this.serviceError));
|
|
3935
3960
|
return `${this.$type}(${parts.join(", ")})`;
|
|
3936
3961
|
}
|
|
3937
3962
|
function DevlabStateDetailsCustomJson() {
|
|
@@ -3942,6 +3967,8 @@ function DevlabStateDetailsCustomJson() {
|
|
|
3942
3967
|
obj.code = inspectJson(this.code);
|
|
3943
3968
|
if (this.message !== "")
|
|
3944
3969
|
obj.message = inspectJson(this.message);
|
|
3970
|
+
if (this.serviceError !== undefined)
|
|
3971
|
+
obj.serviceError = inspectJson(this.serviceError);
|
|
3945
3972
|
return obj;
|
|
3946
3973
|
}
|
|
3947
3974
|
function applyDevlabStateDetailsCustom(message) {
|
|
@@ -3954,6 +3981,7 @@ function createBaseDevlabStateDetails() {
|
|
|
3954
3981
|
$type: "nebius.ai.v1.DevlabStateDetails",
|
|
3955
3982
|
code: "",
|
|
3956
3983
|
message: "",
|
|
3984
|
+
serviceError: undefined,
|
|
3957
3985
|
};
|
|
3958
3986
|
return applyDevlabStateDetailsCustom(message);
|
|
3959
3987
|
}
|
|
@@ -5864,6 +5892,7 @@ const EndpointSpec_MESSAGE_DESCRIPTOR = {
|
|
|
5864
5892
|
"publicIp": { pbName: "public_ip", scalarType: 8 },
|
|
5865
5893
|
"sshAuthorizedKeys": { pbName: "ssh_authorized_keys", scalarType: 9, repeated: true },
|
|
5866
5894
|
"preemptible": { pbName: "preemptible", scalarType: 8 },
|
|
5895
|
+
"pricingModel": { pbName: "pricing_model", immutable: true, message: () => PricingModelSpec.$descriptor },
|
|
5867
5896
|
"authToken": { pbName: "auth_token", scalarType: 9 },
|
|
5868
5897
|
"authTokenMysteryboxSecret": { pbName: "auth_token_mysterybox_secret", message: () => EndpointSpec_MysteryBoxSecretRef.$descriptor },
|
|
5869
5898
|
"injectedFiles": { pbName: "injected_files", immutable: true, repeated: true, message: () => EndpointSpec_FileInjection.$descriptor },
|
|
@@ -5932,6 +5961,11 @@ export const EndpointSpec = {
|
|
|
5932
5961
|
if (message.preemptible === true) {
|
|
5933
5962
|
writer.uint32(216).bool(message.preemptible);
|
|
5934
5963
|
}
|
|
5964
|
+
if (message.pricingModel !== undefined) {
|
|
5965
|
+
const w = writer.uint32(226).fork();
|
|
5966
|
+
PricingModelSpec.encode(message.pricingModel, w);
|
|
5967
|
+
w.join();
|
|
5968
|
+
}
|
|
5935
5969
|
if (message.authToken !== "") {
|
|
5936
5970
|
writer.uint32(242).string(message.authToken);
|
|
5937
5971
|
}
|
|
@@ -6054,6 +6088,12 @@ export const EndpointSpec = {
|
|
|
6054
6088
|
message.preemptible = reader.bool();
|
|
6055
6089
|
continue;
|
|
6056
6090
|
}
|
|
6091
|
+
case 28: {
|
|
6092
|
+
if (tag !== 226)
|
|
6093
|
+
break;
|
|
6094
|
+
message.pricingModel = PricingModelSpec.decode(reader, reader.uint32());
|
|
6095
|
+
continue;
|
|
6096
|
+
}
|
|
6057
6097
|
case 30: {
|
|
6058
6098
|
if (tag !== 242)
|
|
6059
6099
|
break;
|
|
@@ -6141,6 +6181,9 @@ export const EndpointSpec = {
|
|
|
6141
6181
|
preemptible: isSet(object.preemptible ?? object.preemptible)
|
|
6142
6182
|
? Boolean(object.preemptible ?? object.preemptible)
|
|
6143
6183
|
: false,
|
|
6184
|
+
pricingModel: isSet(object.pricingModel ?? object.pricing_model)
|
|
6185
|
+
? PricingModelSpec.fromJSON(object.pricingModel ?? object.pricing_model)
|
|
6186
|
+
: undefined,
|
|
6144
6187
|
authToken: isSet(object.authToken ?? object.auth_token)
|
|
6145
6188
|
? String(object.authToken ?? object.auth_token)
|
|
6146
6189
|
: "",
|
|
@@ -6207,6 +6250,11 @@ export const EndpointSpec = {
|
|
|
6207
6250
|
if (message.preemptible === true) {
|
|
6208
6251
|
obj[pick("preemptible", "preemptible")] = message.preemptible;
|
|
6209
6252
|
}
|
|
6253
|
+
if (message.pricingModel !== undefined) {
|
|
6254
|
+
obj[pick("pricingModel", "pricing_model")] = message.pricingModel
|
|
6255
|
+
? PricingModelSpec.toJSON(message.pricingModel, use)
|
|
6256
|
+
: undefined;
|
|
6257
|
+
}
|
|
6210
6258
|
if (message.authToken !== "") {
|
|
6211
6259
|
obj[pick("authToken", "auth_token")] = message.authToken;
|
|
6212
6260
|
}
|
|
@@ -6265,6 +6313,9 @@ export const EndpointSpec = {
|
|
|
6265
6313
|
message.preemptible = (object.preemptible !== undefined && object.preemptible !== null)
|
|
6266
6314
|
? object.preemptible
|
|
6267
6315
|
: false;
|
|
6316
|
+
message.pricingModel = (object.pricingModel !== undefined && object.pricingModel !== null)
|
|
6317
|
+
? PricingModelSpec.fromPartial(object.pricingModel)
|
|
6318
|
+
: undefined;
|
|
6268
6319
|
message.authToken = (object.authToken !== undefined && object.authToken !== null)
|
|
6269
6320
|
? object.authToken
|
|
6270
6321
|
: "";
|
|
@@ -6310,6 +6361,8 @@ function EndpointSpecCustomInspect() {
|
|
|
6310
6361
|
parts.push("sshAuthorizedKeys" + "=" + inspect(this.sshAuthorizedKeys));
|
|
6311
6362
|
if (this.preemptible === true)
|
|
6312
6363
|
parts.push("preemptible" + "=" + inspect(this.preemptible));
|
|
6364
|
+
if (this.pricingModel !== undefined)
|
|
6365
|
+
parts.push("pricingModel" + "=" + inspect(this.pricingModel));
|
|
6313
6366
|
if (this.authToken !== "")
|
|
6314
6367
|
parts.push("authToken" + "=***");
|
|
6315
6368
|
if (this.authTokenMysteryboxSecret !== undefined)
|
|
@@ -6354,6 +6407,8 @@ function EndpointSpecCustomJson() {
|
|
|
6354
6407
|
obj.sshAuthorizedKeys = inspectJson(this.sshAuthorizedKeys);
|
|
6355
6408
|
if (this.preemptible === true)
|
|
6356
6409
|
obj.preemptible = inspectJson(this.preemptible);
|
|
6410
|
+
if (this.pricingModel !== undefined)
|
|
6411
|
+
obj.pricingModel = inspectJson(this.pricingModel);
|
|
6357
6412
|
if (this.authToken !== "")
|
|
6358
6413
|
obj.authToken = "***";
|
|
6359
6414
|
if (this.authTokenMysteryboxSecret !== undefined)
|
|
@@ -6386,6 +6441,7 @@ function createBaseEndpointSpec() {
|
|
|
6386
6441
|
publicIp: false,
|
|
6387
6442
|
sshAuthorizedKeys: [],
|
|
6388
6443
|
preemptible: false,
|
|
6444
|
+
pricingModel: undefined,
|
|
6389
6445
|
authToken: "",
|
|
6390
6446
|
authTokenMysteryboxSecret: undefined,
|
|
6391
6447
|
injectedFiles: [],
|
|
@@ -10111,6 +10167,7 @@ const JobSpec_MESSAGE_DESCRIPTOR = {
|
|
|
10111
10167
|
"publicIp": { pbName: "public_ip", scalarType: 8 },
|
|
10112
10168
|
"sshAuthorizedKeys": { pbName: "ssh_authorized_keys", scalarType: 9, repeated: true },
|
|
10113
10169
|
"preemptible": { pbName: "preemptible", scalarType: 8 },
|
|
10170
|
+
"pricingModel": { pbName: "pricing_model", immutable: true, message: () => PricingModelSpec.$descriptor },
|
|
10114
10171
|
"restartAttempts": { pbName: "restart_attempts", scalarType: 3 },
|
|
10115
10172
|
"timeout": { pbName: "timeout", message: () => wkt[".google.protobuf.Duration"].$descriptor },
|
|
10116
10173
|
"injectedFiles": { pbName: "injected_files", immutable: true, repeated: true, message: () => JobSpec_FileInjection.$descriptor },
|
|
@@ -10179,6 +10236,11 @@ export const JobSpec = {
|
|
|
10179
10236
|
if (message.preemptible === true) {
|
|
10180
10237
|
writer.uint32(216).bool(message.preemptible);
|
|
10181
10238
|
}
|
|
10239
|
+
if (message.pricingModel !== undefined) {
|
|
10240
|
+
const w = writer.uint32(226).fork();
|
|
10241
|
+
PricingModelSpec.encode(message.pricingModel, w);
|
|
10242
|
+
w.join();
|
|
10243
|
+
}
|
|
10182
10244
|
if (message.restartAttempts !== undefined && !message.restartAttempts.isZero?.()) {
|
|
10183
10245
|
writer.uint32(240).int64(message.restartAttempts.toString());
|
|
10184
10246
|
}
|
|
@@ -10301,6 +10363,12 @@ export const JobSpec = {
|
|
|
10301
10363
|
message.preemptible = reader.bool();
|
|
10302
10364
|
continue;
|
|
10303
10365
|
}
|
|
10366
|
+
case 28: {
|
|
10367
|
+
if (tag !== 226)
|
|
10368
|
+
break;
|
|
10369
|
+
message.pricingModel = PricingModelSpec.decode(reader, reader.uint32());
|
|
10370
|
+
continue;
|
|
10371
|
+
}
|
|
10304
10372
|
case 30: {
|
|
10305
10373
|
if (tag !== 240)
|
|
10306
10374
|
break;
|
|
@@ -10389,6 +10457,9 @@ export const JobSpec = {
|
|
|
10389
10457
|
preemptible: isSet(object.preemptible ?? object.preemptible)
|
|
10390
10458
|
? Boolean(object.preemptible ?? object.preemptible)
|
|
10391
10459
|
: false,
|
|
10460
|
+
pricingModel: isSet(object.pricingModel ?? object.pricing_model)
|
|
10461
|
+
? PricingModelSpec.fromJSON(object.pricingModel ?? object.pricing_model)
|
|
10462
|
+
: undefined,
|
|
10392
10463
|
restartAttempts: isSet(object.restartAttempts ?? object.restart_attempts)
|
|
10393
10464
|
? Long.fromValue(object.restartAttempts ?? object.restart_attempts)
|
|
10394
10465
|
: Long.ZERO,
|
|
@@ -10455,6 +10526,11 @@ export const JobSpec = {
|
|
|
10455
10526
|
if (message.preemptible === true) {
|
|
10456
10527
|
obj[pick("preemptible", "preemptible")] = message.preemptible;
|
|
10457
10528
|
}
|
|
10529
|
+
if (message.pricingModel !== undefined) {
|
|
10530
|
+
obj[pick("pricingModel", "pricing_model")] = message.pricingModel
|
|
10531
|
+
? PricingModelSpec.toJSON(message.pricingModel, use)
|
|
10532
|
+
: undefined;
|
|
10533
|
+
}
|
|
10458
10534
|
if (!message.restartAttempts?.isZero?.()) {
|
|
10459
10535
|
obj[pick("restartAttempts", "restart_attempts")] = (message.restartAttempts || Long.ZERO).toString();
|
|
10460
10536
|
}
|
|
@@ -10511,6 +10587,9 @@ export const JobSpec = {
|
|
|
10511
10587
|
message.preemptible = (object.preemptible !== undefined && object.preemptible !== null)
|
|
10512
10588
|
? object.preemptible
|
|
10513
10589
|
: false;
|
|
10590
|
+
message.pricingModel = (object.pricingModel !== undefined && object.pricingModel !== null)
|
|
10591
|
+
? PricingModelSpec.fromPartial(object.pricingModel)
|
|
10592
|
+
: undefined;
|
|
10514
10593
|
message.restartAttempts = (object.restartAttempts !== undefined && object.restartAttempts !== null)
|
|
10515
10594
|
? Long.fromValue(object.restartAttempts)
|
|
10516
10595
|
: Long.ZERO;
|
|
@@ -10556,6 +10635,8 @@ function JobSpecCustomInspect() {
|
|
|
10556
10635
|
parts.push("sshAuthorizedKeys" + "=" + inspect(this.sshAuthorizedKeys));
|
|
10557
10636
|
if (this.preemptible === true)
|
|
10558
10637
|
parts.push("preemptible" + "=" + inspect(this.preemptible));
|
|
10638
|
+
if (this.pricingModel !== undefined)
|
|
10639
|
+
parts.push("pricingModel" + "=" + inspect(this.pricingModel));
|
|
10559
10640
|
if (!this.restartAttempts?.isZero?.())
|
|
10560
10641
|
parts.push("restartAttempts" + "=" + inspect(this.restartAttempts));
|
|
10561
10642
|
if (this.timeout !== undefined)
|
|
@@ -10600,6 +10681,8 @@ function JobSpecCustomJson() {
|
|
|
10600
10681
|
obj.sshAuthorizedKeys = inspectJson(this.sshAuthorizedKeys);
|
|
10601
10682
|
if (this.preemptible === true)
|
|
10602
10683
|
obj.preemptible = inspectJson(this.preemptible);
|
|
10684
|
+
if (this.pricingModel !== undefined)
|
|
10685
|
+
obj.pricingModel = inspectJson(this.pricingModel);
|
|
10603
10686
|
if (!this.restartAttempts?.isZero?.())
|
|
10604
10687
|
obj.restartAttempts = inspectJson(this.restartAttempts);
|
|
10605
10688
|
if (this.timeout !== undefined)
|
|
@@ -10632,6 +10715,7 @@ function createBaseJobSpec() {
|
|
|
10632
10715
|
publicIp: false,
|
|
10633
10716
|
sshAuthorizedKeys: [],
|
|
10634
10717
|
preemptible: false,
|
|
10718
|
+
pricingModel: undefined,
|
|
10635
10719
|
restartAttempts: Long.ZERO,
|
|
10636
10720
|
timeout: undefined,
|
|
10637
10721
|
injectedFiles: [],
|
|
@@ -12810,4 +12894,464 @@ function createBaseJobInstanceStatus() {
|
|
|
12810
12894
|
};
|
|
12811
12895
|
return applyJobInstanceStatusCustom(message);
|
|
12812
12896
|
}
|
|
12897
|
+
const PricingModelSpec_model_ONEOF_DESCRIPTOR = {
|
|
12898
|
+
fields: {
|
|
12899
|
+
"onDemand": { pbName: "on_demand", immutable: true, message: () => OnDemandSpec.$descriptor },
|
|
12900
|
+
"followsSpotPrice": { pbName: "follows_spot_price", immutable: true, message: () => FollowsSpotPriceSpec.$descriptor },
|
|
12901
|
+
"spotPricingPolicy": { pbName: "spot_pricing_policy", immutable: true, message: () => SpotPricingPolicySpec.$descriptor },
|
|
12902
|
+
},
|
|
12903
|
+
};
|
|
12904
|
+
const PricingModelSpec_MESSAGE_DESCRIPTOR = {
|
|
12905
|
+
fields: {
|
|
12906
|
+
"model": { pbName: "model", oneof: true, immutableOneof: true, message: () => PricingModelSpec_model_ONEOF_DESCRIPTOR },
|
|
12907
|
+
},
|
|
12908
|
+
};
|
|
12909
|
+
/** Encodes, decodes, converts, and creates {@link PricingModelSpec} messages. */
|
|
12910
|
+
export const PricingModelSpec = {
|
|
12911
|
+
$type: "nebius.ai.v1.PricingModelSpec",
|
|
12912
|
+
$descriptor: PricingModelSpec_MESSAGE_DESCRIPTOR,
|
|
12913
|
+
encode(message, writer = new BinaryWriter()) {
|
|
12914
|
+
if (message.model?.$case === undefined) { /* noop */ }
|
|
12915
|
+
else if (message.model?.$case === "onDemand") {
|
|
12916
|
+
const w = writer.uint32(10).fork();
|
|
12917
|
+
OnDemandSpec.encode(message.model.onDemand, w);
|
|
12918
|
+
w.join();
|
|
12919
|
+
}
|
|
12920
|
+
else if (message.model?.$case === "followsSpotPrice") {
|
|
12921
|
+
const w = writer.uint32(18).fork();
|
|
12922
|
+
FollowsSpotPriceSpec.encode(message.model.followsSpotPrice, w);
|
|
12923
|
+
w.join();
|
|
12924
|
+
}
|
|
12925
|
+
else if (message.model?.$case === "spotPricingPolicy") {
|
|
12926
|
+
const w = writer.uint32(26).fork();
|
|
12927
|
+
SpotPricingPolicySpec.encode(message.model.spotPricingPolicy, w);
|
|
12928
|
+
w.join();
|
|
12929
|
+
}
|
|
12930
|
+
if (message[unknownFieldsSymbol]) {
|
|
12931
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
12932
|
+
}
|
|
12933
|
+
return writer;
|
|
12934
|
+
},
|
|
12935
|
+
decode(input, length) {
|
|
12936
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
12937
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
12938
|
+
const message = createBasePricingModelSpec();
|
|
12939
|
+
let writer = undefined;
|
|
12940
|
+
while (reader.pos < end) {
|
|
12941
|
+
const tag = reader.uint32();
|
|
12942
|
+
switch (tag >>> 3) {
|
|
12943
|
+
case 1: {
|
|
12944
|
+
if (tag !== 10)
|
|
12945
|
+
break;
|
|
12946
|
+
message.model = {
|
|
12947
|
+
$case: "onDemand",
|
|
12948
|
+
onDemand: OnDemandSpec.decode(reader, reader.uint32())
|
|
12949
|
+
};
|
|
12950
|
+
continue;
|
|
12951
|
+
}
|
|
12952
|
+
case 2: {
|
|
12953
|
+
if (tag !== 18)
|
|
12954
|
+
break;
|
|
12955
|
+
message.model = {
|
|
12956
|
+
$case: "followsSpotPrice",
|
|
12957
|
+
followsSpotPrice: FollowsSpotPriceSpec.decode(reader, reader.uint32())
|
|
12958
|
+
};
|
|
12959
|
+
continue;
|
|
12960
|
+
}
|
|
12961
|
+
case 3: {
|
|
12962
|
+
if (tag !== 26)
|
|
12963
|
+
break;
|
|
12964
|
+
message.model = {
|
|
12965
|
+
$case: "spotPricingPolicy",
|
|
12966
|
+
spotPricingPolicy: SpotPricingPolicySpec.decode(reader, reader.uint32())
|
|
12967
|
+
};
|
|
12968
|
+
continue;
|
|
12969
|
+
}
|
|
12970
|
+
default:
|
|
12971
|
+
break;
|
|
12972
|
+
}
|
|
12973
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12974
|
+
break;
|
|
12975
|
+
}
|
|
12976
|
+
{
|
|
12977
|
+
if (!writer)
|
|
12978
|
+
writer = new BinaryWriter();
|
|
12979
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
12980
|
+
writer.uint32(tag).raw(skipped);
|
|
12981
|
+
}
|
|
12982
|
+
}
|
|
12983
|
+
if (writer) {
|
|
12984
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
12985
|
+
}
|
|
12986
|
+
return message;
|
|
12987
|
+
},
|
|
12988
|
+
fromJSON(object) {
|
|
12989
|
+
return applyPricingModelSpecCustom({
|
|
12990
|
+
$type: "nebius.ai.v1.PricingModelSpec",
|
|
12991
|
+
model: (() => {
|
|
12992
|
+
if (isSet(object.onDemand) || isSet(object.on_demand)) {
|
|
12993
|
+
return {
|
|
12994
|
+
$case: "onDemand",
|
|
12995
|
+
onDemand: OnDemandSpec.fromJSON(object.onDemand ?? object.on_demand)
|
|
12996
|
+
};
|
|
12997
|
+
}
|
|
12998
|
+
if (isSet(object.followsSpotPrice) || isSet(object.follows_spot_price)) {
|
|
12999
|
+
return {
|
|
13000
|
+
$case: "followsSpotPrice",
|
|
13001
|
+
followsSpotPrice: FollowsSpotPriceSpec.fromJSON(object.followsSpotPrice ?? object.follows_spot_price)
|
|
13002
|
+
};
|
|
13003
|
+
}
|
|
13004
|
+
if (isSet(object.spotPricingPolicy) || isSet(object.spot_pricing_policy)) {
|
|
13005
|
+
return {
|
|
13006
|
+
$case: "spotPricingPolicy",
|
|
13007
|
+
spotPricingPolicy: SpotPricingPolicySpec.fromJSON(object.spotPricingPolicy ?? object.spot_pricing_policy)
|
|
13008
|
+
};
|
|
13009
|
+
}
|
|
13010
|
+
return undefined;
|
|
13011
|
+
})(),
|
|
13012
|
+
});
|
|
13013
|
+
},
|
|
13014
|
+
toJSON(message, use = "json") {
|
|
13015
|
+
const obj = {};
|
|
13016
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
13017
|
+
switch (message.model?.$case) {
|
|
13018
|
+
case "onDemand": {
|
|
13019
|
+
obj[pick("onDemand", "on_demand")] = OnDemandSpec.toJSON(message.model.onDemand, use);
|
|
13020
|
+
break;
|
|
13021
|
+
}
|
|
13022
|
+
case "followsSpotPrice": {
|
|
13023
|
+
obj[pick("followsSpotPrice", "follows_spot_price")] = FollowsSpotPriceSpec.toJSON(message.model.followsSpotPrice, use);
|
|
13024
|
+
break;
|
|
13025
|
+
}
|
|
13026
|
+
case "spotPricingPolicy": {
|
|
13027
|
+
obj[pick("spotPricingPolicy", "spot_pricing_policy")] = SpotPricingPolicySpec.toJSON(message.model.spotPricingPolicy, use);
|
|
13028
|
+
break;
|
|
13029
|
+
}
|
|
13030
|
+
default: break;
|
|
13031
|
+
}
|
|
13032
|
+
return obj;
|
|
13033
|
+
},
|
|
13034
|
+
create(base) {
|
|
13035
|
+
return PricingModelSpec.fromPartial(base ?? {});
|
|
13036
|
+
},
|
|
13037
|
+
fromPartial(object) {
|
|
13038
|
+
const message = createBasePricingModelSpec();
|
|
13039
|
+
switch (object.model?.$case) {
|
|
13040
|
+
case "onDemand": {
|
|
13041
|
+
if (object.model.onDemand !== undefined && object.model.onDemand !== null) {
|
|
13042
|
+
message.model = {
|
|
13043
|
+
$case: "onDemand",
|
|
13044
|
+
onDemand: OnDemandSpec.fromPartial(object.model.onDemand),
|
|
13045
|
+
};
|
|
13046
|
+
}
|
|
13047
|
+
break;
|
|
13048
|
+
}
|
|
13049
|
+
case "followsSpotPrice": {
|
|
13050
|
+
if (object.model.followsSpotPrice !== undefined && object.model.followsSpotPrice !== null) {
|
|
13051
|
+
message.model = {
|
|
13052
|
+
$case: "followsSpotPrice",
|
|
13053
|
+
followsSpotPrice: FollowsSpotPriceSpec.fromPartial(object.model.followsSpotPrice),
|
|
13054
|
+
};
|
|
13055
|
+
}
|
|
13056
|
+
break;
|
|
13057
|
+
}
|
|
13058
|
+
case "spotPricingPolicy": {
|
|
13059
|
+
if (object.model.spotPricingPolicy !== undefined && object.model.spotPricingPolicy !== null) {
|
|
13060
|
+
message.model = {
|
|
13061
|
+
$case: "spotPricingPolicy",
|
|
13062
|
+
spotPricingPolicy: SpotPricingPolicySpec.fromPartial(object.model.spotPricingPolicy),
|
|
13063
|
+
};
|
|
13064
|
+
}
|
|
13065
|
+
break;
|
|
13066
|
+
}
|
|
13067
|
+
default: break;
|
|
13068
|
+
}
|
|
13069
|
+
return message;
|
|
13070
|
+
},
|
|
13071
|
+
};
|
|
13072
|
+
protoRegistry.registerMessage(PricingModelSpec);
|
|
13073
|
+
function PricingModelSpecCustomInspect() {
|
|
13074
|
+
const parts = [];
|
|
13075
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
13076
|
+
}
|
|
13077
|
+
function PricingModelSpecCustomJson() {
|
|
13078
|
+
const obj = {
|
|
13079
|
+
type: this.$type,
|
|
13080
|
+
};
|
|
13081
|
+
return obj;
|
|
13082
|
+
}
|
|
13083
|
+
function applyPricingModelSpecCustom(message) {
|
|
13084
|
+
message[custom] = PricingModelSpecCustomInspect;
|
|
13085
|
+
message[customJson] = PricingModelSpecCustomJson;
|
|
13086
|
+
return attachMessageDescriptor(message, PricingModelSpec.$descriptor);
|
|
13087
|
+
}
|
|
13088
|
+
function createBasePricingModelSpec() {
|
|
13089
|
+
const message = {
|
|
13090
|
+
$type: "nebius.ai.v1.PricingModelSpec",
|
|
13091
|
+
model: undefined,
|
|
13092
|
+
};
|
|
13093
|
+
return applyPricingModelSpecCustom(message);
|
|
13094
|
+
}
|
|
13095
|
+
const OnDemandSpec_MESSAGE_DESCRIPTOR = {
|
|
13096
|
+
fields: {},
|
|
13097
|
+
};
|
|
13098
|
+
/** Encodes, decodes, converts, and creates {@link OnDemandSpec} messages. */
|
|
13099
|
+
export const OnDemandSpec = {
|
|
13100
|
+
$type: "nebius.ai.v1.OnDemandSpec",
|
|
13101
|
+
$descriptor: OnDemandSpec_MESSAGE_DESCRIPTOR,
|
|
13102
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13103
|
+
if (message[unknownFieldsSymbol]) {
|
|
13104
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
13105
|
+
}
|
|
13106
|
+
return writer;
|
|
13107
|
+
},
|
|
13108
|
+
decode(input, length) {
|
|
13109
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13110
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13111
|
+
const message = createBaseOnDemandSpec();
|
|
13112
|
+
let writer = undefined;
|
|
13113
|
+
while (reader.pos < end) {
|
|
13114
|
+
const tag = reader.uint32();
|
|
13115
|
+
switch (tag >>> 3) {
|
|
13116
|
+
default:
|
|
13117
|
+
break;
|
|
13118
|
+
}
|
|
13119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13120
|
+
break;
|
|
13121
|
+
}
|
|
13122
|
+
{
|
|
13123
|
+
if (!writer)
|
|
13124
|
+
writer = new BinaryWriter();
|
|
13125
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
13126
|
+
writer.uint32(tag).raw(skipped);
|
|
13127
|
+
}
|
|
13128
|
+
}
|
|
13129
|
+
if (writer) {
|
|
13130
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
13131
|
+
}
|
|
13132
|
+
return message;
|
|
13133
|
+
},
|
|
13134
|
+
fromJSON(object) {
|
|
13135
|
+
return applyOnDemandSpecCustom({
|
|
13136
|
+
$type: "nebius.ai.v1.OnDemandSpec",
|
|
13137
|
+
});
|
|
13138
|
+
},
|
|
13139
|
+
toJSON(message, use = "json") {
|
|
13140
|
+
const obj = {};
|
|
13141
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
13142
|
+
return obj;
|
|
13143
|
+
},
|
|
13144
|
+
create(base) {
|
|
13145
|
+
return OnDemandSpec.fromPartial(base ?? {});
|
|
13146
|
+
},
|
|
13147
|
+
fromPartial(object) {
|
|
13148
|
+
const message = createBaseOnDemandSpec();
|
|
13149
|
+
return message;
|
|
13150
|
+
},
|
|
13151
|
+
};
|
|
13152
|
+
protoRegistry.registerMessage(OnDemandSpec);
|
|
13153
|
+
function OnDemandSpecCustomInspect() {
|
|
13154
|
+
const parts = [];
|
|
13155
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
13156
|
+
}
|
|
13157
|
+
function OnDemandSpecCustomJson() {
|
|
13158
|
+
const obj = {
|
|
13159
|
+
type: this.$type,
|
|
13160
|
+
};
|
|
13161
|
+
return obj;
|
|
13162
|
+
}
|
|
13163
|
+
function applyOnDemandSpecCustom(message) {
|
|
13164
|
+
message[custom] = OnDemandSpecCustomInspect;
|
|
13165
|
+
message[customJson] = OnDemandSpecCustomJson;
|
|
13166
|
+
return attachMessageDescriptor(message, OnDemandSpec.$descriptor);
|
|
13167
|
+
}
|
|
13168
|
+
function createBaseOnDemandSpec() {
|
|
13169
|
+
const message = {
|
|
13170
|
+
$type: "nebius.ai.v1.OnDemandSpec",
|
|
13171
|
+
};
|
|
13172
|
+
return applyOnDemandSpecCustom(message);
|
|
13173
|
+
}
|
|
13174
|
+
const FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR = {
|
|
13175
|
+
fields: {},
|
|
13176
|
+
};
|
|
13177
|
+
/** Encodes, decodes, converts, and creates {@link FollowsSpotPriceSpec} messages. */
|
|
13178
|
+
export const FollowsSpotPriceSpec = {
|
|
13179
|
+
$type: "nebius.ai.v1.FollowsSpotPriceSpec",
|
|
13180
|
+
$descriptor: FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR,
|
|
13181
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13182
|
+
if (message[unknownFieldsSymbol]) {
|
|
13183
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
13184
|
+
}
|
|
13185
|
+
return writer;
|
|
13186
|
+
},
|
|
13187
|
+
decode(input, length) {
|
|
13188
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13189
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13190
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
13191
|
+
let writer = undefined;
|
|
13192
|
+
while (reader.pos < end) {
|
|
13193
|
+
const tag = reader.uint32();
|
|
13194
|
+
switch (tag >>> 3) {
|
|
13195
|
+
default:
|
|
13196
|
+
break;
|
|
13197
|
+
}
|
|
13198
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13199
|
+
break;
|
|
13200
|
+
}
|
|
13201
|
+
{
|
|
13202
|
+
if (!writer)
|
|
13203
|
+
writer = new BinaryWriter();
|
|
13204
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
13205
|
+
writer.uint32(tag).raw(skipped);
|
|
13206
|
+
}
|
|
13207
|
+
}
|
|
13208
|
+
if (writer) {
|
|
13209
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
13210
|
+
}
|
|
13211
|
+
return message;
|
|
13212
|
+
},
|
|
13213
|
+
fromJSON(object) {
|
|
13214
|
+
return applyFollowsSpotPriceSpecCustom({
|
|
13215
|
+
$type: "nebius.ai.v1.FollowsSpotPriceSpec",
|
|
13216
|
+
});
|
|
13217
|
+
},
|
|
13218
|
+
toJSON(message, use = "json") {
|
|
13219
|
+
const obj = {};
|
|
13220
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
13221
|
+
return obj;
|
|
13222
|
+
},
|
|
13223
|
+
create(base) {
|
|
13224
|
+
return FollowsSpotPriceSpec.fromPartial(base ?? {});
|
|
13225
|
+
},
|
|
13226
|
+
fromPartial(object) {
|
|
13227
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
13228
|
+
return message;
|
|
13229
|
+
},
|
|
13230
|
+
};
|
|
13231
|
+
protoRegistry.registerMessage(FollowsSpotPriceSpec);
|
|
13232
|
+
function FollowsSpotPriceSpecCustomInspect() {
|
|
13233
|
+
const parts = [];
|
|
13234
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
13235
|
+
}
|
|
13236
|
+
function FollowsSpotPriceSpecCustomJson() {
|
|
13237
|
+
const obj = {
|
|
13238
|
+
type: this.$type,
|
|
13239
|
+
};
|
|
13240
|
+
return obj;
|
|
13241
|
+
}
|
|
13242
|
+
function applyFollowsSpotPriceSpecCustom(message) {
|
|
13243
|
+
message[custom] = FollowsSpotPriceSpecCustomInspect;
|
|
13244
|
+
message[customJson] = FollowsSpotPriceSpecCustomJson;
|
|
13245
|
+
return attachMessageDescriptor(message, FollowsSpotPriceSpec.$descriptor);
|
|
13246
|
+
}
|
|
13247
|
+
function createBaseFollowsSpotPriceSpec() {
|
|
13248
|
+
const message = {
|
|
13249
|
+
$type: "nebius.ai.v1.FollowsSpotPriceSpec",
|
|
13250
|
+
};
|
|
13251
|
+
return applyFollowsSpotPriceSpecCustom(message);
|
|
13252
|
+
}
|
|
13253
|
+
const SpotPricingPolicySpec_MESSAGE_DESCRIPTOR = {
|
|
13254
|
+
fields: {
|
|
13255
|
+
"id": { pbName: "id", immutable: true, scalarType: 9 },
|
|
13256
|
+
},
|
|
13257
|
+
};
|
|
13258
|
+
/** Encodes, decodes, converts, and creates {@link SpotPricingPolicySpec} messages. */
|
|
13259
|
+
export const SpotPricingPolicySpec = {
|
|
13260
|
+
$type: "nebius.ai.v1.SpotPricingPolicySpec",
|
|
13261
|
+
$descriptor: SpotPricingPolicySpec_MESSAGE_DESCRIPTOR,
|
|
13262
|
+
encode(message, writer = new BinaryWriter()) {
|
|
13263
|
+
if (message.id !== "") {
|
|
13264
|
+
writer.uint32(10).string(message.id);
|
|
13265
|
+
}
|
|
13266
|
+
if (message[unknownFieldsSymbol]) {
|
|
13267
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
13268
|
+
}
|
|
13269
|
+
return writer;
|
|
13270
|
+
},
|
|
13271
|
+
decode(input, length) {
|
|
13272
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
13273
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13274
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
13275
|
+
let writer = undefined;
|
|
13276
|
+
while (reader.pos < end) {
|
|
13277
|
+
const tag = reader.uint32();
|
|
13278
|
+
switch (tag >>> 3) {
|
|
13279
|
+
case 1: {
|
|
13280
|
+
if (tag !== 10)
|
|
13281
|
+
break;
|
|
13282
|
+
message.id = reader.string();
|
|
13283
|
+
continue;
|
|
13284
|
+
}
|
|
13285
|
+
default:
|
|
13286
|
+
break;
|
|
13287
|
+
}
|
|
13288
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13289
|
+
break;
|
|
13290
|
+
}
|
|
13291
|
+
{
|
|
13292
|
+
if (!writer)
|
|
13293
|
+
writer = new BinaryWriter();
|
|
13294
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
13295
|
+
writer.uint32(tag).raw(skipped);
|
|
13296
|
+
}
|
|
13297
|
+
}
|
|
13298
|
+
if (writer) {
|
|
13299
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
13300
|
+
}
|
|
13301
|
+
return message;
|
|
13302
|
+
},
|
|
13303
|
+
fromJSON(object) {
|
|
13304
|
+
return applySpotPricingPolicySpecCustom({
|
|
13305
|
+
$type: "nebius.ai.v1.SpotPricingPolicySpec",
|
|
13306
|
+
id: isSet(object.id ?? object.id)
|
|
13307
|
+
? String(object.id ?? object.id)
|
|
13308
|
+
: "",
|
|
13309
|
+
});
|
|
13310
|
+
},
|
|
13311
|
+
toJSON(message, use = "json") {
|
|
13312
|
+
const obj = {};
|
|
13313
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
13314
|
+
if (message.id !== "") {
|
|
13315
|
+
obj[pick("id", "id")] = message.id;
|
|
13316
|
+
}
|
|
13317
|
+
return obj;
|
|
13318
|
+
},
|
|
13319
|
+
create(base) {
|
|
13320
|
+
return SpotPricingPolicySpec.fromPartial(base ?? {});
|
|
13321
|
+
},
|
|
13322
|
+
fromPartial(object) {
|
|
13323
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
13324
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
13325
|
+
? object.id
|
|
13326
|
+
: "";
|
|
13327
|
+
return message;
|
|
13328
|
+
},
|
|
13329
|
+
};
|
|
13330
|
+
protoRegistry.registerMessage(SpotPricingPolicySpec);
|
|
13331
|
+
function SpotPricingPolicySpecCustomInspect() {
|
|
13332
|
+
const parts = [];
|
|
13333
|
+
if (this.id !== "")
|
|
13334
|
+
parts.push("id" + "=" + inspect(this.id));
|
|
13335
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
13336
|
+
}
|
|
13337
|
+
function SpotPricingPolicySpecCustomJson() {
|
|
13338
|
+
const obj = {
|
|
13339
|
+
type: this.$type,
|
|
13340
|
+
};
|
|
13341
|
+
if (this.id !== "")
|
|
13342
|
+
obj.id = inspectJson(this.id);
|
|
13343
|
+
return obj;
|
|
13344
|
+
}
|
|
13345
|
+
function applySpotPricingPolicySpecCustom(message) {
|
|
13346
|
+
message[custom] = SpotPricingPolicySpecCustomInspect;
|
|
13347
|
+
message[customJson] = SpotPricingPolicySpecCustomJson;
|
|
13348
|
+
return attachMessageDescriptor(message, SpotPricingPolicySpec.$descriptor);
|
|
13349
|
+
}
|
|
13350
|
+
function createBaseSpotPricingPolicySpec() {
|
|
13351
|
+
const message = {
|
|
13352
|
+
$type: "nebius.ai.v1.SpotPricingPolicySpec",
|
|
13353
|
+
id: "",
|
|
13354
|
+
};
|
|
13355
|
+
return applySpotPricingPolicySpecCustom(message);
|
|
13356
|
+
}
|
|
12813
13357
|
//# sourceMappingURL=index.js.map
|