@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
|
@@ -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.EndpointSpec = exports.Endpoint = exports.EndpointInstanceStatus_State = exports.EndpointStatus_State = exports.EndpointSpec_VolumeMount_Mode = exports.EndpointSpec_Port_Protocol = exports.EndpointService = exports.EndpointServiceBaseClient = exports.EndpointServiceServiceDescription = exports.ListEndpointsResponse = exports.StopEndpointRequest = exports.RestartEndpointRequest = exports.StartEndpointRequest = exports.DeleteEndpointRequest = exports.CreateEndpointRequest = exports.ListEndpointsRequest = exports.GetEndpointByNameRequest = exports.GetEndpointRequest = exports.GetEndpointRequest_View = exports.DevlabInstanceStatus = exports.DevlabStateDetails = exports.DevlabStatus = exports.DevlabSpec_MysteryBoxSecretRef = exports.DevlabSpec_Template = exports.DevlabSpec_FileInjection = exports.DevlabSpec_PrimaryRoute = exports.DevlabSpec_Workspace = exports.DevlabSpec_RegistryCredentials = exports.DevlabSpec_DiskSpec = exports.DevlabSpec_VolumeMount_S3Config = exports.DevlabSpec_VolumeMount = exports.DevlabSpec_Port = exports.DevlabSpec_EnvironmentVariable = exports.DevlabSpec = exports.Devlab = exports.DevlabInstanceStatus_State = exports.DevlabStatus_State = exports.DevlabSpec_VolumeMount_Mode = exports.DevlabSpec_Port_Protocol = exports.DevlabService = exports.DevlabServiceBaseClient = exports.DevlabServiceServiceDescription = exports.ListDevlabsResponse = exports.StopDevlabRequest = exports.RestartDevlabRequest = exports.DeleteDevlabRequest = exports.CreateDevlabRequest = exports.ListDevlabsRequest = exports.GetDevlabRequest = exports.GetDevlabRequest_View = void 0;
|
|
5
|
-
exports.JobInstanceStatus = exports.JobStateDetails = exports.JobStatus = exports.JobSpec_MysteryBoxSecretRef = exports.JobSpec_FileInjection = exports.JobSpec_RegistryCredentials = exports.JobSpec_DiskSpec = exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.JobSpec_VolumeMount_S3Config_S3Credentials = exports.JobSpec_VolumeMount_S3Config = exports.JobSpec_VolumeMount = exports.JobSpec_Port = exports.JobSpec_EnvironmentVariable = exports.JobSpec = exports.Job = exports.JobInstanceStatus_State = exports.JobStatus_State = exports.JobSpec_VolumeMount_Mode = exports.JobSpec_Port_Protocol = exports.JobService = exports.JobServiceBaseClient = exports.JobServiceServiceDescription = exports.ListJobsResponse = exports.RestartJobRequest = exports.CancelJobRequest = exports.DeleteJobRequest = exports.CreateJobRequest = exports.ListJobsRequest = exports.GetJobByNameRequest = exports.GetJobRequest = exports.GetJobRequest_View = exports.EndpointInstanceStatus = exports.EndpointStateDetails = exports.EndpointStatus = exports.EndpointSpec_MysteryBoxSecretRef = exports.EndpointSpec_FileInjection = exports.EndpointSpec_RegistryCredentials = exports.EndpointSpec_DiskSpec = exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.EndpointSpec_VolumeMount_S3Config_S3Credentials = exports.EndpointSpec_VolumeMount_S3Config = exports.EndpointSpec_VolumeMount = exports.EndpointSpec_Port = exports.EndpointSpec_EnvironmentVariable = void 0;
|
|
5
|
+
exports.SpotPricingPolicySpec = exports.FollowsSpotPriceSpec = exports.OnDemandSpec = exports.PricingModelSpec = exports.JobInstanceStatus = exports.JobStateDetails = exports.JobStatus = exports.JobSpec_MysteryBoxSecretRef = exports.JobSpec_FileInjection = exports.JobSpec_RegistryCredentials = exports.JobSpec_DiskSpec = exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.JobSpec_VolumeMount_S3Config_S3Credentials = exports.JobSpec_VolumeMount_S3Config = exports.JobSpec_VolumeMount = exports.JobSpec_Port = exports.JobSpec_EnvironmentVariable = exports.JobSpec = exports.Job = exports.JobInstanceStatus_State = exports.JobStatus_State = exports.JobSpec_VolumeMount_Mode = exports.JobSpec_Port_Protocol = exports.JobService = exports.JobServiceBaseClient = exports.JobServiceServiceDescription = exports.ListJobsResponse = exports.RestartJobRequest = exports.CancelJobRequest = exports.DeleteJobRequest = exports.CreateJobRequest = exports.ListJobsRequest = exports.GetJobByNameRequest = exports.GetJobRequest = exports.GetJobRequest_View = exports.EndpointInstanceStatus = exports.EndpointStateDetails = exports.EndpointStatus = exports.EndpointSpec_MysteryBoxSecretRef = exports.EndpointSpec_FileInjection = exports.EndpointSpec_RegistryCredentials = exports.EndpointSpec_DiskSpec = exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef = exports.EndpointSpec_VolumeMount_S3Config_S3Credentials = exports.EndpointSpec_VolumeMount_S3Config = exports.EndpointSpec_VolumeMount = exports.EndpointSpec_Port = exports.EndpointSpec_EnvironmentVariable = 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");
|
|
@@ -3838,6 +3838,7 @@ const DevlabStateDetails_MESSAGE_DESCRIPTOR = {
|
|
|
3838
3838
|
fields: {
|
|
3839
3839
|
"code": { pbName: "code", scalarType: 9 },
|
|
3840
3840
|
"message": { pbName: "message", scalarType: 9 },
|
|
3841
|
+
"serviceError": { pbName: "service_error", message: () => index_js_2.ServiceError.$descriptor },
|
|
3841
3842
|
},
|
|
3842
3843
|
};
|
|
3843
3844
|
/** Encodes, decodes, converts, and creates {@link DevlabStateDetails} messages. */
|
|
@@ -3851,6 +3852,11 @@ exports.DevlabStateDetails = {
|
|
|
3851
3852
|
if (message.message !== "") {
|
|
3852
3853
|
writer.uint32(18).string(message.message);
|
|
3853
3854
|
}
|
|
3855
|
+
if (message.serviceError !== undefined) {
|
|
3856
|
+
const w = writer.uint32(26).fork();
|
|
3857
|
+
index_js_2.ServiceError.encode(message.serviceError, w);
|
|
3858
|
+
w.join();
|
|
3859
|
+
}
|
|
3854
3860
|
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
3855
3861
|
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
3856
3862
|
}
|
|
@@ -3876,6 +3882,12 @@ exports.DevlabStateDetails = {
|
|
|
3876
3882
|
message.message = reader.string();
|
|
3877
3883
|
continue;
|
|
3878
3884
|
}
|
|
3885
|
+
case 3: {
|
|
3886
|
+
if (tag !== 26)
|
|
3887
|
+
break;
|
|
3888
|
+
message.serviceError = index_js_2.ServiceError.decode(reader, reader.uint32());
|
|
3889
|
+
continue;
|
|
3890
|
+
}
|
|
3879
3891
|
default:
|
|
3880
3892
|
break;
|
|
3881
3893
|
}
|
|
@@ -3903,6 +3915,9 @@ exports.DevlabStateDetails = {
|
|
|
3903
3915
|
message: (0, index_js_1.isSet)(object.message ?? object.message)
|
|
3904
3916
|
? String(object.message ?? object.message)
|
|
3905
3917
|
: "",
|
|
3918
|
+
serviceError: (0, index_js_1.isSet)(object.serviceError ?? object.service_error)
|
|
3919
|
+
? index_js_2.ServiceError.fromJSON(object.serviceError ?? object.service_error)
|
|
3920
|
+
: undefined,
|
|
3906
3921
|
});
|
|
3907
3922
|
},
|
|
3908
3923
|
toJSON(message, use = "json") {
|
|
@@ -3914,6 +3929,11 @@ exports.DevlabStateDetails = {
|
|
|
3914
3929
|
if (message.message !== "") {
|
|
3915
3930
|
obj[pick("message", "message")] = message.message;
|
|
3916
3931
|
}
|
|
3932
|
+
if (message.serviceError !== undefined) {
|
|
3933
|
+
obj[pick("serviceError", "service_error")] = message.serviceError
|
|
3934
|
+
? index_js_2.ServiceError.toJSON(message.serviceError, use)
|
|
3935
|
+
: undefined;
|
|
3936
|
+
}
|
|
3917
3937
|
return obj;
|
|
3918
3938
|
},
|
|
3919
3939
|
create(base) {
|
|
@@ -3927,6 +3947,9 @@ exports.DevlabStateDetails = {
|
|
|
3927
3947
|
message.message = (object.message !== undefined && object.message !== null)
|
|
3928
3948
|
? object.message
|
|
3929
3949
|
: "";
|
|
3950
|
+
message.serviceError = (object.serviceError !== undefined && object.serviceError !== null)
|
|
3951
|
+
? index_js_2.ServiceError.fromPartial(object.serviceError)
|
|
3952
|
+
: undefined;
|
|
3930
3953
|
return message;
|
|
3931
3954
|
},
|
|
3932
3955
|
};
|
|
@@ -3937,6 +3960,8 @@ function DevlabStateDetailsCustomInspect() {
|
|
|
3937
3960
|
parts.push("code" + "=" + (0, util_1.inspect)(this.code));
|
|
3938
3961
|
if (this.message !== "")
|
|
3939
3962
|
parts.push("message" + "=" + (0, util_1.inspect)(this.message));
|
|
3963
|
+
if (this.serviceError !== undefined)
|
|
3964
|
+
parts.push("serviceError" + "=" + (0, util_1.inspect)(this.serviceError));
|
|
3940
3965
|
return `${this.$type}(${parts.join(", ")})`;
|
|
3941
3966
|
}
|
|
3942
3967
|
function DevlabStateDetailsCustomJson() {
|
|
@@ -3947,6 +3972,8 @@ function DevlabStateDetailsCustomJson() {
|
|
|
3947
3972
|
obj.code = (0, logging_js_1.inspectJson)(this.code);
|
|
3948
3973
|
if (this.message !== "")
|
|
3949
3974
|
obj.message = (0, logging_js_1.inspectJson)(this.message);
|
|
3975
|
+
if (this.serviceError !== undefined)
|
|
3976
|
+
obj.serviceError = (0, logging_js_1.inspectJson)(this.serviceError);
|
|
3950
3977
|
return obj;
|
|
3951
3978
|
}
|
|
3952
3979
|
function applyDevlabStateDetailsCustom(message) {
|
|
@@ -3959,6 +3986,7 @@ function createBaseDevlabStateDetails() {
|
|
|
3959
3986
|
$type: "nebius.ai.v1.DevlabStateDetails",
|
|
3960
3987
|
code: "",
|
|
3961
3988
|
message: "",
|
|
3989
|
+
serviceError: undefined,
|
|
3962
3990
|
};
|
|
3963
3991
|
return applyDevlabStateDetailsCustom(message);
|
|
3964
3992
|
}
|
|
@@ -5870,6 +5898,7 @@ const EndpointSpec_MESSAGE_DESCRIPTOR = {
|
|
|
5870
5898
|
"publicIp": { pbName: "public_ip", scalarType: 8 },
|
|
5871
5899
|
"sshAuthorizedKeys": { pbName: "ssh_authorized_keys", scalarType: 9, repeated: true },
|
|
5872
5900
|
"preemptible": { pbName: "preemptible", scalarType: 8 },
|
|
5901
|
+
"pricingModel": { pbName: "pricing_model", immutable: true, message: () => exports.PricingModelSpec.$descriptor },
|
|
5873
5902
|
"authToken": { pbName: "auth_token", scalarType: 9 },
|
|
5874
5903
|
"authTokenMysteryboxSecret": { pbName: "auth_token_mysterybox_secret", message: () => exports.EndpointSpec_MysteryBoxSecretRef.$descriptor },
|
|
5875
5904
|
"injectedFiles": { pbName: "injected_files", immutable: true, repeated: true, message: () => exports.EndpointSpec_FileInjection.$descriptor },
|
|
@@ -5938,6 +5967,11 @@ exports.EndpointSpec = {
|
|
|
5938
5967
|
if (message.preemptible === true) {
|
|
5939
5968
|
writer.uint32(216).bool(message.preemptible);
|
|
5940
5969
|
}
|
|
5970
|
+
if (message.pricingModel !== undefined) {
|
|
5971
|
+
const w = writer.uint32(226).fork();
|
|
5972
|
+
exports.PricingModelSpec.encode(message.pricingModel, w);
|
|
5973
|
+
w.join();
|
|
5974
|
+
}
|
|
5941
5975
|
if (message.authToken !== "") {
|
|
5942
5976
|
writer.uint32(242).string(message.authToken);
|
|
5943
5977
|
}
|
|
@@ -6060,6 +6094,12 @@ exports.EndpointSpec = {
|
|
|
6060
6094
|
message.preemptible = reader.bool();
|
|
6061
6095
|
continue;
|
|
6062
6096
|
}
|
|
6097
|
+
case 28: {
|
|
6098
|
+
if (tag !== 226)
|
|
6099
|
+
break;
|
|
6100
|
+
message.pricingModel = exports.PricingModelSpec.decode(reader, reader.uint32());
|
|
6101
|
+
continue;
|
|
6102
|
+
}
|
|
6063
6103
|
case 30: {
|
|
6064
6104
|
if (tag !== 242)
|
|
6065
6105
|
break;
|
|
@@ -6147,6 +6187,9 @@ exports.EndpointSpec = {
|
|
|
6147
6187
|
preemptible: (0, index_js_1.isSet)(object.preemptible ?? object.preemptible)
|
|
6148
6188
|
? Boolean(object.preemptible ?? object.preemptible)
|
|
6149
6189
|
: false,
|
|
6190
|
+
pricingModel: (0, index_js_1.isSet)(object.pricingModel ?? object.pricing_model)
|
|
6191
|
+
? exports.PricingModelSpec.fromJSON(object.pricingModel ?? object.pricing_model)
|
|
6192
|
+
: undefined,
|
|
6150
6193
|
authToken: (0, index_js_1.isSet)(object.authToken ?? object.auth_token)
|
|
6151
6194
|
? String(object.authToken ?? object.auth_token)
|
|
6152
6195
|
: "",
|
|
@@ -6213,6 +6256,11 @@ exports.EndpointSpec = {
|
|
|
6213
6256
|
if (message.preemptible === true) {
|
|
6214
6257
|
obj[pick("preemptible", "preemptible")] = message.preemptible;
|
|
6215
6258
|
}
|
|
6259
|
+
if (message.pricingModel !== undefined) {
|
|
6260
|
+
obj[pick("pricingModel", "pricing_model")] = message.pricingModel
|
|
6261
|
+
? exports.PricingModelSpec.toJSON(message.pricingModel, use)
|
|
6262
|
+
: undefined;
|
|
6263
|
+
}
|
|
6216
6264
|
if (message.authToken !== "") {
|
|
6217
6265
|
obj[pick("authToken", "auth_token")] = message.authToken;
|
|
6218
6266
|
}
|
|
@@ -6271,6 +6319,9 @@ exports.EndpointSpec = {
|
|
|
6271
6319
|
message.preemptible = (object.preemptible !== undefined && object.preemptible !== null)
|
|
6272
6320
|
? object.preemptible
|
|
6273
6321
|
: false;
|
|
6322
|
+
message.pricingModel = (object.pricingModel !== undefined && object.pricingModel !== null)
|
|
6323
|
+
? exports.PricingModelSpec.fromPartial(object.pricingModel)
|
|
6324
|
+
: undefined;
|
|
6274
6325
|
message.authToken = (object.authToken !== undefined && object.authToken !== null)
|
|
6275
6326
|
? object.authToken
|
|
6276
6327
|
: "";
|
|
@@ -6316,6 +6367,8 @@ function EndpointSpecCustomInspect() {
|
|
|
6316
6367
|
parts.push("sshAuthorizedKeys" + "=" + (0, util_1.inspect)(this.sshAuthorizedKeys));
|
|
6317
6368
|
if (this.preemptible === true)
|
|
6318
6369
|
parts.push("preemptible" + "=" + (0, util_1.inspect)(this.preemptible));
|
|
6370
|
+
if (this.pricingModel !== undefined)
|
|
6371
|
+
parts.push("pricingModel" + "=" + (0, util_1.inspect)(this.pricingModel));
|
|
6319
6372
|
if (this.authToken !== "")
|
|
6320
6373
|
parts.push("authToken" + "=***");
|
|
6321
6374
|
if (this.authTokenMysteryboxSecret !== undefined)
|
|
@@ -6360,6 +6413,8 @@ function EndpointSpecCustomJson() {
|
|
|
6360
6413
|
obj.sshAuthorizedKeys = (0, logging_js_1.inspectJson)(this.sshAuthorizedKeys);
|
|
6361
6414
|
if (this.preemptible === true)
|
|
6362
6415
|
obj.preemptible = (0, logging_js_1.inspectJson)(this.preemptible);
|
|
6416
|
+
if (this.pricingModel !== undefined)
|
|
6417
|
+
obj.pricingModel = (0, logging_js_1.inspectJson)(this.pricingModel);
|
|
6363
6418
|
if (this.authToken !== "")
|
|
6364
6419
|
obj.authToken = "***";
|
|
6365
6420
|
if (this.authTokenMysteryboxSecret !== undefined)
|
|
@@ -6392,6 +6447,7 @@ function createBaseEndpointSpec() {
|
|
|
6392
6447
|
publicIp: false,
|
|
6393
6448
|
sshAuthorizedKeys: [],
|
|
6394
6449
|
preemptible: false,
|
|
6450
|
+
pricingModel: undefined,
|
|
6395
6451
|
authToken: "",
|
|
6396
6452
|
authTokenMysteryboxSecret: undefined,
|
|
6397
6453
|
injectedFiles: [],
|
|
@@ -10118,6 +10174,7 @@ const JobSpec_MESSAGE_DESCRIPTOR = {
|
|
|
10118
10174
|
"publicIp": { pbName: "public_ip", scalarType: 8 },
|
|
10119
10175
|
"sshAuthorizedKeys": { pbName: "ssh_authorized_keys", scalarType: 9, repeated: true },
|
|
10120
10176
|
"preemptible": { pbName: "preemptible", scalarType: 8 },
|
|
10177
|
+
"pricingModel": { pbName: "pricing_model", immutable: true, message: () => exports.PricingModelSpec.$descriptor },
|
|
10121
10178
|
"restartAttempts": { pbName: "restart_attempts", scalarType: 3 },
|
|
10122
10179
|
"timeout": { pbName: "timeout", message: () => index_js_1.wkt[".google.protobuf.Duration"].$descriptor },
|
|
10123
10180
|
"injectedFiles": { pbName: "injected_files", immutable: true, repeated: true, message: () => exports.JobSpec_FileInjection.$descriptor },
|
|
@@ -10186,6 +10243,11 @@ exports.JobSpec = {
|
|
|
10186
10243
|
if (message.preemptible === true) {
|
|
10187
10244
|
writer.uint32(216).bool(message.preemptible);
|
|
10188
10245
|
}
|
|
10246
|
+
if (message.pricingModel !== undefined) {
|
|
10247
|
+
const w = writer.uint32(226).fork();
|
|
10248
|
+
exports.PricingModelSpec.encode(message.pricingModel, w);
|
|
10249
|
+
w.join();
|
|
10250
|
+
}
|
|
10189
10251
|
if (message.restartAttempts !== undefined && !message.restartAttempts.isZero?.()) {
|
|
10190
10252
|
writer.uint32(240).int64(message.restartAttempts.toString());
|
|
10191
10253
|
}
|
|
@@ -10308,6 +10370,12 @@ exports.JobSpec = {
|
|
|
10308
10370
|
message.preemptible = reader.bool();
|
|
10309
10371
|
continue;
|
|
10310
10372
|
}
|
|
10373
|
+
case 28: {
|
|
10374
|
+
if (tag !== 226)
|
|
10375
|
+
break;
|
|
10376
|
+
message.pricingModel = exports.PricingModelSpec.decode(reader, reader.uint32());
|
|
10377
|
+
continue;
|
|
10378
|
+
}
|
|
10311
10379
|
case 30: {
|
|
10312
10380
|
if (tag !== 240)
|
|
10313
10381
|
break;
|
|
@@ -10396,6 +10464,9 @@ exports.JobSpec = {
|
|
|
10396
10464
|
preemptible: (0, index_js_1.isSet)(object.preemptible ?? object.preemptible)
|
|
10397
10465
|
? Boolean(object.preemptible ?? object.preemptible)
|
|
10398
10466
|
: false,
|
|
10467
|
+
pricingModel: (0, index_js_1.isSet)(object.pricingModel ?? object.pricing_model)
|
|
10468
|
+
? exports.PricingModelSpec.fromJSON(object.pricingModel ?? object.pricing_model)
|
|
10469
|
+
: undefined,
|
|
10399
10470
|
restartAttempts: (0, index_js_1.isSet)(object.restartAttempts ?? object.restart_attempts)
|
|
10400
10471
|
? index_js_1.Long.fromValue(object.restartAttempts ?? object.restart_attempts)
|
|
10401
10472
|
: index_js_1.Long.ZERO,
|
|
@@ -10462,6 +10533,11 @@ exports.JobSpec = {
|
|
|
10462
10533
|
if (message.preemptible === true) {
|
|
10463
10534
|
obj[pick("preemptible", "preemptible")] = message.preemptible;
|
|
10464
10535
|
}
|
|
10536
|
+
if (message.pricingModel !== undefined) {
|
|
10537
|
+
obj[pick("pricingModel", "pricing_model")] = message.pricingModel
|
|
10538
|
+
? exports.PricingModelSpec.toJSON(message.pricingModel, use)
|
|
10539
|
+
: undefined;
|
|
10540
|
+
}
|
|
10465
10541
|
if (!message.restartAttempts?.isZero?.()) {
|
|
10466
10542
|
obj[pick("restartAttempts", "restart_attempts")] = (message.restartAttempts || index_js_1.Long.ZERO).toString();
|
|
10467
10543
|
}
|
|
@@ -10518,6 +10594,9 @@ exports.JobSpec = {
|
|
|
10518
10594
|
message.preemptible = (object.preemptible !== undefined && object.preemptible !== null)
|
|
10519
10595
|
? object.preemptible
|
|
10520
10596
|
: false;
|
|
10597
|
+
message.pricingModel = (object.pricingModel !== undefined && object.pricingModel !== null)
|
|
10598
|
+
? exports.PricingModelSpec.fromPartial(object.pricingModel)
|
|
10599
|
+
: undefined;
|
|
10521
10600
|
message.restartAttempts = (object.restartAttempts !== undefined && object.restartAttempts !== null)
|
|
10522
10601
|
? index_js_1.Long.fromValue(object.restartAttempts)
|
|
10523
10602
|
: index_js_1.Long.ZERO;
|
|
@@ -10563,6 +10642,8 @@ function JobSpecCustomInspect() {
|
|
|
10563
10642
|
parts.push("sshAuthorizedKeys" + "=" + (0, util_1.inspect)(this.sshAuthorizedKeys));
|
|
10564
10643
|
if (this.preemptible === true)
|
|
10565
10644
|
parts.push("preemptible" + "=" + (0, util_1.inspect)(this.preemptible));
|
|
10645
|
+
if (this.pricingModel !== undefined)
|
|
10646
|
+
parts.push("pricingModel" + "=" + (0, util_1.inspect)(this.pricingModel));
|
|
10566
10647
|
if (!this.restartAttempts?.isZero?.())
|
|
10567
10648
|
parts.push("restartAttempts" + "=" + (0, util_1.inspect)(this.restartAttempts));
|
|
10568
10649
|
if (this.timeout !== undefined)
|
|
@@ -10607,6 +10688,8 @@ function JobSpecCustomJson() {
|
|
|
10607
10688
|
obj.sshAuthorizedKeys = (0, logging_js_1.inspectJson)(this.sshAuthorizedKeys);
|
|
10608
10689
|
if (this.preemptible === true)
|
|
10609
10690
|
obj.preemptible = (0, logging_js_1.inspectJson)(this.preemptible);
|
|
10691
|
+
if (this.pricingModel !== undefined)
|
|
10692
|
+
obj.pricingModel = (0, logging_js_1.inspectJson)(this.pricingModel);
|
|
10610
10693
|
if (!this.restartAttempts?.isZero?.())
|
|
10611
10694
|
obj.restartAttempts = (0, logging_js_1.inspectJson)(this.restartAttempts);
|
|
10612
10695
|
if (this.timeout !== undefined)
|
|
@@ -10639,6 +10722,7 @@ function createBaseJobSpec() {
|
|
|
10639
10722
|
publicIp: false,
|
|
10640
10723
|
sshAuthorizedKeys: [],
|
|
10641
10724
|
preemptible: false,
|
|
10725
|
+
pricingModel: undefined,
|
|
10642
10726
|
restartAttempts: index_js_1.Long.ZERO,
|
|
10643
10727
|
timeout: undefined,
|
|
10644
10728
|
injectedFiles: [],
|
|
@@ -12817,4 +12901,464 @@ function createBaseJobInstanceStatus() {
|
|
|
12817
12901
|
};
|
|
12818
12902
|
return applyJobInstanceStatusCustom(message);
|
|
12819
12903
|
}
|
|
12904
|
+
const PricingModelSpec_model_ONEOF_DESCRIPTOR = {
|
|
12905
|
+
fields: {
|
|
12906
|
+
"onDemand": { pbName: "on_demand", immutable: true, message: () => exports.OnDemandSpec.$descriptor },
|
|
12907
|
+
"followsSpotPrice": { pbName: "follows_spot_price", immutable: true, message: () => exports.FollowsSpotPriceSpec.$descriptor },
|
|
12908
|
+
"spotPricingPolicy": { pbName: "spot_pricing_policy", immutable: true, message: () => exports.SpotPricingPolicySpec.$descriptor },
|
|
12909
|
+
},
|
|
12910
|
+
};
|
|
12911
|
+
const PricingModelSpec_MESSAGE_DESCRIPTOR = {
|
|
12912
|
+
fields: {
|
|
12913
|
+
"model": { pbName: "model", oneof: true, immutableOneof: true, message: () => PricingModelSpec_model_ONEOF_DESCRIPTOR },
|
|
12914
|
+
},
|
|
12915
|
+
};
|
|
12916
|
+
/** Encodes, decodes, converts, and creates {@link PricingModelSpec} messages. */
|
|
12917
|
+
exports.PricingModelSpec = {
|
|
12918
|
+
$type: "nebius.ai.v1.PricingModelSpec",
|
|
12919
|
+
$descriptor: PricingModelSpec_MESSAGE_DESCRIPTOR,
|
|
12920
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
12921
|
+
if (message.model?.$case === undefined) { /* noop */ }
|
|
12922
|
+
else if (message.model?.$case === "onDemand") {
|
|
12923
|
+
const w = writer.uint32(10).fork();
|
|
12924
|
+
exports.OnDemandSpec.encode(message.model.onDemand, w);
|
|
12925
|
+
w.join();
|
|
12926
|
+
}
|
|
12927
|
+
else if (message.model?.$case === "followsSpotPrice") {
|
|
12928
|
+
const w = writer.uint32(18).fork();
|
|
12929
|
+
exports.FollowsSpotPriceSpec.encode(message.model.followsSpotPrice, w);
|
|
12930
|
+
w.join();
|
|
12931
|
+
}
|
|
12932
|
+
else if (message.model?.$case === "spotPricingPolicy") {
|
|
12933
|
+
const w = writer.uint32(26).fork();
|
|
12934
|
+
exports.SpotPricingPolicySpec.encode(message.model.spotPricingPolicy, w);
|
|
12935
|
+
w.join();
|
|
12936
|
+
}
|
|
12937
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
12938
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
12939
|
+
}
|
|
12940
|
+
return writer;
|
|
12941
|
+
},
|
|
12942
|
+
decode(input, length) {
|
|
12943
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
12944
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
12945
|
+
const message = createBasePricingModelSpec();
|
|
12946
|
+
let writer = undefined;
|
|
12947
|
+
while (reader.pos < end) {
|
|
12948
|
+
const tag = reader.uint32();
|
|
12949
|
+
switch (tag >>> 3) {
|
|
12950
|
+
case 1: {
|
|
12951
|
+
if (tag !== 10)
|
|
12952
|
+
break;
|
|
12953
|
+
message.model = {
|
|
12954
|
+
$case: "onDemand",
|
|
12955
|
+
onDemand: exports.OnDemandSpec.decode(reader, reader.uint32())
|
|
12956
|
+
};
|
|
12957
|
+
continue;
|
|
12958
|
+
}
|
|
12959
|
+
case 2: {
|
|
12960
|
+
if (tag !== 18)
|
|
12961
|
+
break;
|
|
12962
|
+
message.model = {
|
|
12963
|
+
$case: "followsSpotPrice",
|
|
12964
|
+
followsSpotPrice: exports.FollowsSpotPriceSpec.decode(reader, reader.uint32())
|
|
12965
|
+
};
|
|
12966
|
+
continue;
|
|
12967
|
+
}
|
|
12968
|
+
case 3: {
|
|
12969
|
+
if (tag !== 26)
|
|
12970
|
+
break;
|
|
12971
|
+
message.model = {
|
|
12972
|
+
$case: "spotPricingPolicy",
|
|
12973
|
+
spotPricingPolicy: exports.SpotPricingPolicySpec.decode(reader, reader.uint32())
|
|
12974
|
+
};
|
|
12975
|
+
continue;
|
|
12976
|
+
}
|
|
12977
|
+
default:
|
|
12978
|
+
break;
|
|
12979
|
+
}
|
|
12980
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12981
|
+
break;
|
|
12982
|
+
}
|
|
12983
|
+
{
|
|
12984
|
+
if (!writer)
|
|
12985
|
+
writer = new index_js_1.BinaryWriter();
|
|
12986
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
12987
|
+
writer.uint32(tag).raw(skipped);
|
|
12988
|
+
}
|
|
12989
|
+
}
|
|
12990
|
+
if (writer) {
|
|
12991
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
12992
|
+
}
|
|
12993
|
+
return message;
|
|
12994
|
+
},
|
|
12995
|
+
fromJSON(object) {
|
|
12996
|
+
return applyPricingModelSpecCustom({
|
|
12997
|
+
$type: "nebius.ai.v1.PricingModelSpec",
|
|
12998
|
+
model: (() => {
|
|
12999
|
+
if ((0, index_js_1.isSet)(object.onDemand) || (0, index_js_1.isSet)(object.on_demand)) {
|
|
13000
|
+
return {
|
|
13001
|
+
$case: "onDemand",
|
|
13002
|
+
onDemand: exports.OnDemandSpec.fromJSON(object.onDemand ?? object.on_demand)
|
|
13003
|
+
};
|
|
13004
|
+
}
|
|
13005
|
+
if ((0, index_js_1.isSet)(object.followsSpotPrice) || (0, index_js_1.isSet)(object.follows_spot_price)) {
|
|
13006
|
+
return {
|
|
13007
|
+
$case: "followsSpotPrice",
|
|
13008
|
+
followsSpotPrice: exports.FollowsSpotPriceSpec.fromJSON(object.followsSpotPrice ?? object.follows_spot_price)
|
|
13009
|
+
};
|
|
13010
|
+
}
|
|
13011
|
+
if ((0, index_js_1.isSet)(object.spotPricingPolicy) || (0, index_js_1.isSet)(object.spot_pricing_policy)) {
|
|
13012
|
+
return {
|
|
13013
|
+
$case: "spotPricingPolicy",
|
|
13014
|
+
spotPricingPolicy: exports.SpotPricingPolicySpec.fromJSON(object.spotPricingPolicy ?? object.spot_pricing_policy)
|
|
13015
|
+
};
|
|
13016
|
+
}
|
|
13017
|
+
return undefined;
|
|
13018
|
+
})(),
|
|
13019
|
+
});
|
|
13020
|
+
},
|
|
13021
|
+
toJSON(message, use = "json") {
|
|
13022
|
+
const obj = {};
|
|
13023
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
13024
|
+
switch (message.model?.$case) {
|
|
13025
|
+
case "onDemand": {
|
|
13026
|
+
obj[pick("onDemand", "on_demand")] = exports.OnDemandSpec.toJSON(message.model.onDemand, use);
|
|
13027
|
+
break;
|
|
13028
|
+
}
|
|
13029
|
+
case "followsSpotPrice": {
|
|
13030
|
+
obj[pick("followsSpotPrice", "follows_spot_price")] = exports.FollowsSpotPriceSpec.toJSON(message.model.followsSpotPrice, use);
|
|
13031
|
+
break;
|
|
13032
|
+
}
|
|
13033
|
+
case "spotPricingPolicy": {
|
|
13034
|
+
obj[pick("spotPricingPolicy", "spot_pricing_policy")] = exports.SpotPricingPolicySpec.toJSON(message.model.spotPricingPolicy, use);
|
|
13035
|
+
break;
|
|
13036
|
+
}
|
|
13037
|
+
default: break;
|
|
13038
|
+
}
|
|
13039
|
+
return obj;
|
|
13040
|
+
},
|
|
13041
|
+
create(base) {
|
|
13042
|
+
return exports.PricingModelSpec.fromPartial(base ?? {});
|
|
13043
|
+
},
|
|
13044
|
+
fromPartial(object) {
|
|
13045
|
+
const message = createBasePricingModelSpec();
|
|
13046
|
+
switch (object.model?.$case) {
|
|
13047
|
+
case "onDemand": {
|
|
13048
|
+
if (object.model.onDemand !== undefined && object.model.onDemand !== null) {
|
|
13049
|
+
message.model = {
|
|
13050
|
+
$case: "onDemand",
|
|
13051
|
+
onDemand: exports.OnDemandSpec.fromPartial(object.model.onDemand),
|
|
13052
|
+
};
|
|
13053
|
+
}
|
|
13054
|
+
break;
|
|
13055
|
+
}
|
|
13056
|
+
case "followsSpotPrice": {
|
|
13057
|
+
if (object.model.followsSpotPrice !== undefined && object.model.followsSpotPrice !== null) {
|
|
13058
|
+
message.model = {
|
|
13059
|
+
$case: "followsSpotPrice",
|
|
13060
|
+
followsSpotPrice: exports.FollowsSpotPriceSpec.fromPartial(object.model.followsSpotPrice),
|
|
13061
|
+
};
|
|
13062
|
+
}
|
|
13063
|
+
break;
|
|
13064
|
+
}
|
|
13065
|
+
case "spotPricingPolicy": {
|
|
13066
|
+
if (object.model.spotPricingPolicy !== undefined && object.model.spotPricingPolicy !== null) {
|
|
13067
|
+
message.model = {
|
|
13068
|
+
$case: "spotPricingPolicy",
|
|
13069
|
+
spotPricingPolicy: exports.SpotPricingPolicySpec.fromPartial(object.model.spotPricingPolicy),
|
|
13070
|
+
};
|
|
13071
|
+
}
|
|
13072
|
+
break;
|
|
13073
|
+
}
|
|
13074
|
+
default: break;
|
|
13075
|
+
}
|
|
13076
|
+
return message;
|
|
13077
|
+
},
|
|
13078
|
+
};
|
|
13079
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.PricingModelSpec);
|
|
13080
|
+
function PricingModelSpecCustomInspect() {
|
|
13081
|
+
const parts = [];
|
|
13082
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
13083
|
+
}
|
|
13084
|
+
function PricingModelSpecCustomJson() {
|
|
13085
|
+
const obj = {
|
|
13086
|
+
type: this.$type,
|
|
13087
|
+
};
|
|
13088
|
+
return obj;
|
|
13089
|
+
}
|
|
13090
|
+
function applyPricingModelSpecCustom(message) {
|
|
13091
|
+
message[logging_js_1.custom] = PricingModelSpecCustomInspect;
|
|
13092
|
+
message[logging_js_1.customJson] = PricingModelSpecCustomJson;
|
|
13093
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.PricingModelSpec.$descriptor);
|
|
13094
|
+
}
|
|
13095
|
+
function createBasePricingModelSpec() {
|
|
13096
|
+
const message = {
|
|
13097
|
+
$type: "nebius.ai.v1.PricingModelSpec",
|
|
13098
|
+
model: undefined,
|
|
13099
|
+
};
|
|
13100
|
+
return applyPricingModelSpecCustom(message);
|
|
13101
|
+
}
|
|
13102
|
+
const OnDemandSpec_MESSAGE_DESCRIPTOR = {
|
|
13103
|
+
fields: {},
|
|
13104
|
+
};
|
|
13105
|
+
/** Encodes, decodes, converts, and creates {@link OnDemandSpec} messages. */
|
|
13106
|
+
exports.OnDemandSpec = {
|
|
13107
|
+
$type: "nebius.ai.v1.OnDemandSpec",
|
|
13108
|
+
$descriptor: OnDemandSpec_MESSAGE_DESCRIPTOR,
|
|
13109
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
13110
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
13111
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
13112
|
+
}
|
|
13113
|
+
return writer;
|
|
13114
|
+
},
|
|
13115
|
+
decode(input, length) {
|
|
13116
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
13117
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13118
|
+
const message = createBaseOnDemandSpec();
|
|
13119
|
+
let writer = undefined;
|
|
13120
|
+
while (reader.pos < end) {
|
|
13121
|
+
const tag = reader.uint32();
|
|
13122
|
+
switch (tag >>> 3) {
|
|
13123
|
+
default:
|
|
13124
|
+
break;
|
|
13125
|
+
}
|
|
13126
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13127
|
+
break;
|
|
13128
|
+
}
|
|
13129
|
+
{
|
|
13130
|
+
if (!writer)
|
|
13131
|
+
writer = new index_js_1.BinaryWriter();
|
|
13132
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
13133
|
+
writer.uint32(tag).raw(skipped);
|
|
13134
|
+
}
|
|
13135
|
+
}
|
|
13136
|
+
if (writer) {
|
|
13137
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
13138
|
+
}
|
|
13139
|
+
return message;
|
|
13140
|
+
},
|
|
13141
|
+
fromJSON(object) {
|
|
13142
|
+
return applyOnDemandSpecCustom({
|
|
13143
|
+
$type: "nebius.ai.v1.OnDemandSpec",
|
|
13144
|
+
});
|
|
13145
|
+
},
|
|
13146
|
+
toJSON(message, use = "json") {
|
|
13147
|
+
const obj = {};
|
|
13148
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
13149
|
+
return obj;
|
|
13150
|
+
},
|
|
13151
|
+
create(base) {
|
|
13152
|
+
return exports.OnDemandSpec.fromPartial(base ?? {});
|
|
13153
|
+
},
|
|
13154
|
+
fromPartial(object) {
|
|
13155
|
+
const message = createBaseOnDemandSpec();
|
|
13156
|
+
return message;
|
|
13157
|
+
},
|
|
13158
|
+
};
|
|
13159
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.OnDemandSpec);
|
|
13160
|
+
function OnDemandSpecCustomInspect() {
|
|
13161
|
+
const parts = [];
|
|
13162
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
13163
|
+
}
|
|
13164
|
+
function OnDemandSpecCustomJson() {
|
|
13165
|
+
const obj = {
|
|
13166
|
+
type: this.$type,
|
|
13167
|
+
};
|
|
13168
|
+
return obj;
|
|
13169
|
+
}
|
|
13170
|
+
function applyOnDemandSpecCustom(message) {
|
|
13171
|
+
message[logging_js_1.custom] = OnDemandSpecCustomInspect;
|
|
13172
|
+
message[logging_js_1.customJson] = OnDemandSpecCustomJson;
|
|
13173
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.OnDemandSpec.$descriptor);
|
|
13174
|
+
}
|
|
13175
|
+
function createBaseOnDemandSpec() {
|
|
13176
|
+
const message = {
|
|
13177
|
+
$type: "nebius.ai.v1.OnDemandSpec",
|
|
13178
|
+
};
|
|
13179
|
+
return applyOnDemandSpecCustom(message);
|
|
13180
|
+
}
|
|
13181
|
+
const FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR = {
|
|
13182
|
+
fields: {},
|
|
13183
|
+
};
|
|
13184
|
+
/** Encodes, decodes, converts, and creates {@link FollowsSpotPriceSpec} messages. */
|
|
13185
|
+
exports.FollowsSpotPriceSpec = {
|
|
13186
|
+
$type: "nebius.ai.v1.FollowsSpotPriceSpec",
|
|
13187
|
+
$descriptor: FollowsSpotPriceSpec_MESSAGE_DESCRIPTOR,
|
|
13188
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
13189
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
13190
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
13191
|
+
}
|
|
13192
|
+
return writer;
|
|
13193
|
+
},
|
|
13194
|
+
decode(input, length) {
|
|
13195
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
13196
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13197
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
13198
|
+
let writer = undefined;
|
|
13199
|
+
while (reader.pos < end) {
|
|
13200
|
+
const tag = reader.uint32();
|
|
13201
|
+
switch (tag >>> 3) {
|
|
13202
|
+
default:
|
|
13203
|
+
break;
|
|
13204
|
+
}
|
|
13205
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13206
|
+
break;
|
|
13207
|
+
}
|
|
13208
|
+
{
|
|
13209
|
+
if (!writer)
|
|
13210
|
+
writer = new index_js_1.BinaryWriter();
|
|
13211
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
13212
|
+
writer.uint32(tag).raw(skipped);
|
|
13213
|
+
}
|
|
13214
|
+
}
|
|
13215
|
+
if (writer) {
|
|
13216
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
13217
|
+
}
|
|
13218
|
+
return message;
|
|
13219
|
+
},
|
|
13220
|
+
fromJSON(object) {
|
|
13221
|
+
return applyFollowsSpotPriceSpecCustom({
|
|
13222
|
+
$type: "nebius.ai.v1.FollowsSpotPriceSpec",
|
|
13223
|
+
});
|
|
13224
|
+
},
|
|
13225
|
+
toJSON(message, use = "json") {
|
|
13226
|
+
const obj = {};
|
|
13227
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
13228
|
+
return obj;
|
|
13229
|
+
},
|
|
13230
|
+
create(base) {
|
|
13231
|
+
return exports.FollowsSpotPriceSpec.fromPartial(base ?? {});
|
|
13232
|
+
},
|
|
13233
|
+
fromPartial(object) {
|
|
13234
|
+
const message = createBaseFollowsSpotPriceSpec();
|
|
13235
|
+
return message;
|
|
13236
|
+
},
|
|
13237
|
+
};
|
|
13238
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.FollowsSpotPriceSpec);
|
|
13239
|
+
function FollowsSpotPriceSpecCustomInspect() {
|
|
13240
|
+
const parts = [];
|
|
13241
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
13242
|
+
}
|
|
13243
|
+
function FollowsSpotPriceSpecCustomJson() {
|
|
13244
|
+
const obj = {
|
|
13245
|
+
type: this.$type,
|
|
13246
|
+
};
|
|
13247
|
+
return obj;
|
|
13248
|
+
}
|
|
13249
|
+
function applyFollowsSpotPriceSpecCustom(message) {
|
|
13250
|
+
message[logging_js_1.custom] = FollowsSpotPriceSpecCustomInspect;
|
|
13251
|
+
message[logging_js_1.customJson] = FollowsSpotPriceSpecCustomJson;
|
|
13252
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.FollowsSpotPriceSpec.$descriptor);
|
|
13253
|
+
}
|
|
13254
|
+
function createBaseFollowsSpotPriceSpec() {
|
|
13255
|
+
const message = {
|
|
13256
|
+
$type: "nebius.ai.v1.FollowsSpotPriceSpec",
|
|
13257
|
+
};
|
|
13258
|
+
return applyFollowsSpotPriceSpecCustom(message);
|
|
13259
|
+
}
|
|
13260
|
+
const SpotPricingPolicySpec_MESSAGE_DESCRIPTOR = {
|
|
13261
|
+
fields: {
|
|
13262
|
+
"id": { pbName: "id", immutable: true, scalarType: 9 },
|
|
13263
|
+
},
|
|
13264
|
+
};
|
|
13265
|
+
/** Encodes, decodes, converts, and creates {@link SpotPricingPolicySpec} messages. */
|
|
13266
|
+
exports.SpotPricingPolicySpec = {
|
|
13267
|
+
$type: "nebius.ai.v1.SpotPricingPolicySpec",
|
|
13268
|
+
$descriptor: SpotPricingPolicySpec_MESSAGE_DESCRIPTOR,
|
|
13269
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
13270
|
+
if (message.id !== "") {
|
|
13271
|
+
writer.uint32(10).string(message.id);
|
|
13272
|
+
}
|
|
13273
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
13274
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
13275
|
+
}
|
|
13276
|
+
return writer;
|
|
13277
|
+
},
|
|
13278
|
+
decode(input, length) {
|
|
13279
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
13280
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13281
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
13282
|
+
let writer = undefined;
|
|
13283
|
+
while (reader.pos < end) {
|
|
13284
|
+
const tag = reader.uint32();
|
|
13285
|
+
switch (tag >>> 3) {
|
|
13286
|
+
case 1: {
|
|
13287
|
+
if (tag !== 10)
|
|
13288
|
+
break;
|
|
13289
|
+
message.id = reader.string();
|
|
13290
|
+
continue;
|
|
13291
|
+
}
|
|
13292
|
+
default:
|
|
13293
|
+
break;
|
|
13294
|
+
}
|
|
13295
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13296
|
+
break;
|
|
13297
|
+
}
|
|
13298
|
+
{
|
|
13299
|
+
if (!writer)
|
|
13300
|
+
writer = new index_js_1.BinaryWriter();
|
|
13301
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
13302
|
+
writer.uint32(tag).raw(skipped);
|
|
13303
|
+
}
|
|
13304
|
+
}
|
|
13305
|
+
if (writer) {
|
|
13306
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
13307
|
+
}
|
|
13308
|
+
return message;
|
|
13309
|
+
},
|
|
13310
|
+
fromJSON(object) {
|
|
13311
|
+
return applySpotPricingPolicySpecCustom({
|
|
13312
|
+
$type: "nebius.ai.v1.SpotPricingPolicySpec",
|
|
13313
|
+
id: (0, index_js_1.isSet)(object.id ?? object.id)
|
|
13314
|
+
? String(object.id ?? object.id)
|
|
13315
|
+
: "",
|
|
13316
|
+
});
|
|
13317
|
+
},
|
|
13318
|
+
toJSON(message, use = "json") {
|
|
13319
|
+
const obj = {};
|
|
13320
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
13321
|
+
if (message.id !== "") {
|
|
13322
|
+
obj[pick("id", "id")] = message.id;
|
|
13323
|
+
}
|
|
13324
|
+
return obj;
|
|
13325
|
+
},
|
|
13326
|
+
create(base) {
|
|
13327
|
+
return exports.SpotPricingPolicySpec.fromPartial(base ?? {});
|
|
13328
|
+
},
|
|
13329
|
+
fromPartial(object) {
|
|
13330
|
+
const message = createBaseSpotPricingPolicySpec();
|
|
13331
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
13332
|
+
? object.id
|
|
13333
|
+
: "";
|
|
13334
|
+
return message;
|
|
13335
|
+
},
|
|
13336
|
+
};
|
|
13337
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.SpotPricingPolicySpec);
|
|
13338
|
+
function SpotPricingPolicySpecCustomInspect() {
|
|
13339
|
+
const parts = [];
|
|
13340
|
+
if (this.id !== "")
|
|
13341
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
13342
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
13343
|
+
}
|
|
13344
|
+
function SpotPricingPolicySpecCustomJson() {
|
|
13345
|
+
const obj = {
|
|
13346
|
+
type: this.$type,
|
|
13347
|
+
};
|
|
13348
|
+
if (this.id !== "")
|
|
13349
|
+
obj.id = (0, logging_js_1.inspectJson)(this.id);
|
|
13350
|
+
return obj;
|
|
13351
|
+
}
|
|
13352
|
+
function applySpotPricingPolicySpecCustom(message) {
|
|
13353
|
+
message[logging_js_1.custom] = SpotPricingPolicySpecCustomInspect;
|
|
13354
|
+
message[logging_js_1.customJson] = SpotPricingPolicySpecCustomJson;
|
|
13355
|
+
return (0, index_js_1.attachMessageDescriptor)(message, exports.SpotPricingPolicySpec.$descriptor);
|
|
13356
|
+
}
|
|
13357
|
+
function createBaseSpotPricingPolicySpec() {
|
|
13358
|
+
const message = {
|
|
13359
|
+
$type: "nebius.ai.v1.SpotPricingPolicySpec",
|
|
13360
|
+
id: "",
|
|
13361
|
+
};
|
|
13362
|
+
return applySpotPricingPolicySpecCustom(message);
|
|
13363
|
+
}
|
|
12820
13364
|
//# sourceMappingURL=index.js.map
|