@nebius/js-sdk 0.1.48 → 0.1.50
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 +111 -1
- package/dist/cjs/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/ai/v1/index.js +629 -2
- package/dist/cjs/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/audit/v2/index.d.ts +1 -0
- package/dist/cjs/api/nebius/audit/v2/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/audit/v2/index.js +6 -0
- package/dist/cjs/api/nebius/audit/v2/index.js.map +1 -1
- package/dist/cjs/api/nebius/capacity/v1/index.d.ts +44 -0
- package/dist/cjs/api/nebius/capacity/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/capacity/v1/index.js +65 -1
- package/dist/cjs/api/nebius/capacity/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/common/v1/index.d.ts +2 -2
- 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 +111 -1
- package/dist/esm/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/audit/v2/index.d.ts +1 -0
- package/dist/esm/api/nebius/audit/v2/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/capacity/v1/index.d.ts +44 -0
- package/dist/esm/api/nebius/capacity/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/common/v1/index.d.ts +2 -2
- package/dist/esm/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* Generated by Nebius TS generator. DO NOT EDIT! */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.JobInstanceStatus = exports.JobStateDetails = exports.JobStatus = void 0;
|
|
4
|
+
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.CancelJobRequest = exports.DeleteJobRequest = exports.CreateJobRequest = exports.ListJobsRequest = exports.GetJobByNameRequest = exports.GetJobRequest = exports.EndpointInstanceStatus = exports.EndpointStateDetails = exports.EndpointStatus = exports.EndpointSpec_MysteryBoxSecretRef = 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 = 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.StartEndpointRequest = exports.DeleteEndpointRequest = exports.CreateEndpointRequest = exports.ListEndpointsRequest = exports.GetEndpointByNameRequest = exports.GetEndpointRequest = void 0;
|
|
5
|
+
exports.JobInstanceStatus = exports.JobStateDetails = exports.JobStatus = exports.JobSpec_MysteryBoxSecretRef = exports.JobSpec_RegistryCredentials = exports.JobSpec_DiskSpec = exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef = void 0;
|
|
6
6
|
const index_1 = require("../../../../runtime/protos/index");
|
|
7
7
|
const util_1 = require("util");
|
|
8
8
|
const protobuf_1 = require("../../../protobuf");
|
|
@@ -1456,6 +1456,11 @@ exports.EndpointSpec = {
|
|
|
1456
1456
|
if (message.authToken !== "") {
|
|
1457
1457
|
writer.uint32(242).string(message.authToken);
|
|
1458
1458
|
}
|
|
1459
|
+
if (message.authTokenMysteryboxSecret !== undefined) {
|
|
1460
|
+
const w = writer.uint32(250).fork();
|
|
1461
|
+
exports.EndpointSpec_MysteryBoxSecretRef.encode(message.authTokenMysteryboxSecret, w);
|
|
1462
|
+
w.join();
|
|
1463
|
+
}
|
|
1459
1464
|
if (message[index_1.unknownFieldsSymbol]) {
|
|
1460
1465
|
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1461
1466
|
}
|
|
@@ -1571,6 +1576,12 @@ exports.EndpointSpec = {
|
|
|
1571
1576
|
message.authToken = reader.string();
|
|
1572
1577
|
continue;
|
|
1573
1578
|
}
|
|
1579
|
+
case 31: {
|
|
1580
|
+
if (tag !== 250)
|
|
1581
|
+
break;
|
|
1582
|
+
message.authTokenMysteryboxSecret = exports.EndpointSpec_MysteryBoxSecretRef.decode(reader, reader.uint32());
|
|
1583
|
+
continue;
|
|
1584
|
+
}
|
|
1574
1585
|
default:
|
|
1575
1586
|
break;
|
|
1576
1587
|
}
|
|
@@ -1643,6 +1654,9 @@ exports.EndpointSpec = {
|
|
|
1643
1654
|
authToken: (0, index_1.isSet)(object.authToken ?? object.auth_token)
|
|
1644
1655
|
? String(object.authToken ?? object.auth_token)
|
|
1645
1656
|
: "",
|
|
1657
|
+
authTokenMysteryboxSecret: (0, index_1.isSet)(object.authTokenMysteryboxSecret ?? object.auth_token_mysterybox_secret)
|
|
1658
|
+
? exports.EndpointSpec_MysteryBoxSecretRef.fromJSON(object.authTokenMysteryboxSecret ?? object.auth_token_mysterybox_secret)
|
|
1659
|
+
: undefined,
|
|
1646
1660
|
});
|
|
1647
1661
|
},
|
|
1648
1662
|
toJSON(message, use = "json") {
|
|
@@ -1703,6 +1717,11 @@ exports.EndpointSpec = {
|
|
|
1703
1717
|
if (message.authToken !== "") {
|
|
1704
1718
|
obj[pick("authToken", "auth_token")] = message.authToken;
|
|
1705
1719
|
}
|
|
1720
|
+
if (message.authTokenMysteryboxSecret !== undefined) {
|
|
1721
|
+
obj[pick("authTokenMysteryboxSecret", "auth_token_mysterybox_secret")] = message.authTokenMysteryboxSecret
|
|
1722
|
+
? exports.EndpointSpec_MysteryBoxSecretRef.toJSON(message.authTokenMysteryboxSecret, use)
|
|
1723
|
+
: undefined;
|
|
1724
|
+
}
|
|
1706
1725
|
return obj;
|
|
1707
1726
|
},
|
|
1708
1727
|
create(base) {
|
|
@@ -1753,6 +1772,9 @@ exports.EndpointSpec = {
|
|
|
1753
1772
|
message.authToken = (object.authToken !== undefined && object.authToken !== null)
|
|
1754
1773
|
? object.authToken
|
|
1755
1774
|
: "";
|
|
1775
|
+
message.authTokenMysteryboxSecret = (object.authTokenMysteryboxSecret !== undefined && object.authTokenMysteryboxSecret !== null)
|
|
1776
|
+
? exports.EndpointSpec_MysteryBoxSecretRef.fromPartial(object.authTokenMysteryboxSecret)
|
|
1777
|
+
: undefined;
|
|
1756
1778
|
return message;
|
|
1757
1779
|
},
|
|
1758
1780
|
};
|
|
@@ -1793,6 +1815,8 @@ function EndpointSpecCustomInspect() {
|
|
|
1793
1815
|
parts.push("preemptible" + "=" + (0, util_1.inspect)(this.preemptible));
|
|
1794
1816
|
if (this.authToken !== "")
|
|
1795
1817
|
parts.push("authToken" + "=***");
|
|
1818
|
+
if (this.authTokenMysteryboxSecret !== undefined)
|
|
1819
|
+
parts.push("authTokenMysteryboxSecret" + "=" + (0, util_1.inspect)(this.authTokenMysteryboxSecret));
|
|
1796
1820
|
return `${this.$type}(${parts.join(", ")})`;
|
|
1797
1821
|
}
|
|
1798
1822
|
function EndpointSpecCustomJson() {
|
|
@@ -1833,6 +1857,8 @@ function EndpointSpecCustomJson() {
|
|
|
1833
1857
|
obj.preemptible = (0, logging_1.inspectJson)(this.preemptible);
|
|
1834
1858
|
if (this.authToken !== "")
|
|
1835
1859
|
obj.authToken = "***";
|
|
1860
|
+
if (this.authTokenMysteryboxSecret !== undefined)
|
|
1861
|
+
obj.authTokenMysteryboxSecret = (0, logging_1.inspectJson)(this.authTokenMysteryboxSecret);
|
|
1836
1862
|
return obj;
|
|
1837
1863
|
}
|
|
1838
1864
|
function applyEndpointSpecCustom(message) {
|
|
@@ -1860,6 +1886,7 @@ function createBaseEndpointSpec() {
|
|
|
1860
1886
|
sshAuthorizedKeys: [],
|
|
1861
1887
|
preemptible: false,
|
|
1862
1888
|
authToken: "",
|
|
1889
|
+
authTokenMysteryboxSecret: undefined,
|
|
1863
1890
|
};
|
|
1864
1891
|
return applyEndpointSpecCustom(message);
|
|
1865
1892
|
}
|
|
@@ -1872,6 +1899,11 @@ exports.EndpointSpec_EnvironmentVariable = {
|
|
|
1872
1899
|
if (message.value !== "") {
|
|
1873
1900
|
writer.uint32(18).string(message.value);
|
|
1874
1901
|
}
|
|
1902
|
+
if (message.mysteryboxSecret !== undefined) {
|
|
1903
|
+
const w = writer.uint32(26).fork();
|
|
1904
|
+
exports.EndpointSpec_MysteryBoxSecretRef.encode(message.mysteryboxSecret, w);
|
|
1905
|
+
w.join();
|
|
1906
|
+
}
|
|
1875
1907
|
if (message[index_1.unknownFieldsSymbol]) {
|
|
1876
1908
|
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
1877
1909
|
}
|
|
@@ -1897,6 +1929,12 @@ exports.EndpointSpec_EnvironmentVariable = {
|
|
|
1897
1929
|
message.value = reader.string();
|
|
1898
1930
|
continue;
|
|
1899
1931
|
}
|
|
1932
|
+
case 3: {
|
|
1933
|
+
if (tag !== 26)
|
|
1934
|
+
break;
|
|
1935
|
+
message.mysteryboxSecret = exports.EndpointSpec_MysteryBoxSecretRef.decode(reader, reader.uint32());
|
|
1936
|
+
continue;
|
|
1937
|
+
}
|
|
1900
1938
|
default:
|
|
1901
1939
|
break;
|
|
1902
1940
|
}
|
|
@@ -1924,6 +1962,9 @@ exports.EndpointSpec_EnvironmentVariable = {
|
|
|
1924
1962
|
value: (0, index_1.isSet)(object.value ?? object.value)
|
|
1925
1963
|
? String(object.value ?? object.value)
|
|
1926
1964
|
: "",
|
|
1965
|
+
mysteryboxSecret: (0, index_1.isSet)(object.mysteryboxSecret ?? object.mysterybox_secret)
|
|
1966
|
+
? exports.EndpointSpec_MysteryBoxSecretRef.fromJSON(object.mysteryboxSecret ?? object.mysterybox_secret)
|
|
1967
|
+
: undefined,
|
|
1927
1968
|
});
|
|
1928
1969
|
},
|
|
1929
1970
|
toJSON(message, use = "json") {
|
|
@@ -1935,6 +1976,11 @@ exports.EndpointSpec_EnvironmentVariable = {
|
|
|
1935
1976
|
if (message.value !== "") {
|
|
1936
1977
|
obj[pick("value", "value")] = message.value;
|
|
1937
1978
|
}
|
|
1979
|
+
if (message.mysteryboxSecret !== undefined) {
|
|
1980
|
+
obj[pick("mysteryboxSecret", "mysterybox_secret")] = message.mysteryboxSecret
|
|
1981
|
+
? exports.EndpointSpec_MysteryBoxSecretRef.toJSON(message.mysteryboxSecret, use)
|
|
1982
|
+
: undefined;
|
|
1983
|
+
}
|
|
1938
1984
|
return obj;
|
|
1939
1985
|
},
|
|
1940
1986
|
create(base) {
|
|
@@ -1948,6 +1994,9 @@ exports.EndpointSpec_EnvironmentVariable = {
|
|
|
1948
1994
|
message.value = (object.value !== undefined && object.value !== null)
|
|
1949
1995
|
? object.value
|
|
1950
1996
|
: "";
|
|
1997
|
+
message.mysteryboxSecret = (object.mysteryboxSecret !== undefined && object.mysteryboxSecret !== null)
|
|
1998
|
+
? exports.EndpointSpec_MysteryBoxSecretRef.fromPartial(object.mysteryboxSecret)
|
|
1999
|
+
: undefined;
|
|
1951
2000
|
return message;
|
|
1952
2001
|
},
|
|
1953
2002
|
};
|
|
@@ -1958,6 +2007,8 @@ function EndpointSpec_EnvironmentVariableCustomInspect() {
|
|
|
1958
2007
|
parts.push("name" + "=" + (0, util_1.inspect)(this.name));
|
|
1959
2008
|
if (this.value !== "")
|
|
1960
2009
|
parts.push("value" + "=***");
|
|
2010
|
+
if (this.mysteryboxSecret !== undefined)
|
|
2011
|
+
parts.push("mysteryboxSecret" + "=" + (0, util_1.inspect)(this.mysteryboxSecret));
|
|
1961
2012
|
return `${this.$type}(${parts.join(", ")})`;
|
|
1962
2013
|
}
|
|
1963
2014
|
function EndpointSpec_EnvironmentVariableCustomJson() {
|
|
@@ -1968,6 +2019,8 @@ function EndpointSpec_EnvironmentVariableCustomJson() {
|
|
|
1968
2019
|
obj.name = (0, logging_1.inspectJson)(this.name);
|
|
1969
2020
|
if (this.value !== "")
|
|
1970
2021
|
obj.value = "***";
|
|
2022
|
+
if (this.mysteryboxSecret !== undefined)
|
|
2023
|
+
obj.mysteryboxSecret = (0, logging_1.inspectJson)(this.mysteryboxSecret);
|
|
1971
2024
|
return obj;
|
|
1972
2025
|
}
|
|
1973
2026
|
function applyEndpointSpec_EnvironmentVariableCustom(message) {
|
|
@@ -1980,6 +2033,7 @@ function createBaseEndpointSpec_EnvironmentVariable() {
|
|
|
1980
2033
|
$type: "nebius.ai.v1.EndpointSpec.EnvironmentVariable",
|
|
1981
2034
|
name: "",
|
|
1982
2035
|
value: "",
|
|
2036
|
+
mysteryboxSecret: undefined,
|
|
1983
2037
|
};
|
|
1984
2038
|
return applyEndpointSpec_EnvironmentVariableCustom(message);
|
|
1985
2039
|
}
|
|
@@ -2351,6 +2405,11 @@ exports.EndpointSpec_VolumeMount_S3Config = {
|
|
|
2351
2405
|
exports.EndpointSpec_VolumeMount_S3Config_S3Credentials.encode(message.auth.credentials, w);
|
|
2352
2406
|
w.join();
|
|
2353
2407
|
}
|
|
2408
|
+
else if (message.auth?.$case === "mysteryboxSecret") {
|
|
2409
|
+
const w = writer.uint32(42).fork();
|
|
2410
|
+
exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef.encode(message.auth.mysteryboxSecret, w);
|
|
2411
|
+
w.join();
|
|
2412
|
+
}
|
|
2354
2413
|
if (message[index_1.unknownFieldsSymbol]) {
|
|
2355
2414
|
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2356
2415
|
}
|
|
@@ -2385,6 +2444,15 @@ exports.EndpointSpec_VolumeMount_S3Config = {
|
|
|
2385
2444
|
};
|
|
2386
2445
|
continue;
|
|
2387
2446
|
}
|
|
2447
|
+
case 5: {
|
|
2448
|
+
if (tag !== 42)
|
|
2449
|
+
break;
|
|
2450
|
+
message.auth = {
|
|
2451
|
+
$case: "mysteryboxSecret",
|
|
2452
|
+
mysteryboxSecret: exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef.decode(reader, reader.uint32())
|
|
2453
|
+
};
|
|
2454
|
+
continue;
|
|
2455
|
+
}
|
|
2388
2456
|
default:
|
|
2389
2457
|
break;
|
|
2390
2458
|
}
|
|
@@ -2419,6 +2487,12 @@ exports.EndpointSpec_VolumeMount_S3Config = {
|
|
|
2419
2487
|
credentials: exports.EndpointSpec_VolumeMount_S3Config_S3Credentials.fromJSON(object.credentials ?? object.credentials)
|
|
2420
2488
|
};
|
|
2421
2489
|
}
|
|
2490
|
+
if ((0, index_1.isSet)(object.mysteryboxSecret) || (0, index_1.isSet)(object.mysterybox_secret)) {
|
|
2491
|
+
return {
|
|
2492
|
+
$case: "mysteryboxSecret",
|
|
2493
|
+
mysteryboxSecret: exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef.fromJSON(object.mysteryboxSecret ?? object.mysterybox_secret)
|
|
2494
|
+
};
|
|
2495
|
+
}
|
|
2422
2496
|
return undefined;
|
|
2423
2497
|
})(),
|
|
2424
2498
|
});
|
|
@@ -2437,6 +2511,10 @@ exports.EndpointSpec_VolumeMount_S3Config = {
|
|
|
2437
2511
|
obj[pick("credentials", "credentials")] = exports.EndpointSpec_VolumeMount_S3Config_S3Credentials.toJSON(message.auth.credentials, use);
|
|
2438
2512
|
break;
|
|
2439
2513
|
}
|
|
2514
|
+
case "mysteryboxSecret": {
|
|
2515
|
+
obj[pick("mysteryboxSecret", "mysterybox_secret")] = exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef.toJSON(message.auth.mysteryboxSecret, use);
|
|
2516
|
+
break;
|
|
2517
|
+
}
|
|
2440
2518
|
default: break;
|
|
2441
2519
|
}
|
|
2442
2520
|
return obj;
|
|
@@ -2462,6 +2540,15 @@ exports.EndpointSpec_VolumeMount_S3Config = {
|
|
|
2462
2540
|
}
|
|
2463
2541
|
break;
|
|
2464
2542
|
}
|
|
2543
|
+
case "mysteryboxSecret": {
|
|
2544
|
+
if (object.auth.mysteryboxSecret !== undefined && object.auth.mysteryboxSecret !== null) {
|
|
2545
|
+
message.auth = {
|
|
2546
|
+
$case: "mysteryboxSecret",
|
|
2547
|
+
mysteryboxSecret: exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef.fromPartial(object.auth.mysteryboxSecret),
|
|
2548
|
+
};
|
|
2549
|
+
}
|
|
2550
|
+
break;
|
|
2551
|
+
}
|
|
2465
2552
|
default: break;
|
|
2466
2553
|
}
|
|
2467
2554
|
return message;
|
|
@@ -2643,6 +2730,126 @@ function createBaseEndpointSpec_VolumeMount_S3Config_S3Credentials() {
|
|
|
2643
2730
|
};
|
|
2644
2731
|
return applyEndpointSpec_VolumeMount_S3Config_S3CredentialsCustom(message);
|
|
2645
2732
|
}
|
|
2733
|
+
exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef = {
|
|
2734
|
+
$type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config.MysteryBoxSecretRef",
|
|
2735
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2736
|
+
if (message.secretId !== "") {
|
|
2737
|
+
writer.uint32(10).string(message.secretId);
|
|
2738
|
+
}
|
|
2739
|
+
if (message.versionId !== "") {
|
|
2740
|
+
writer.uint32(18).string(message.versionId);
|
|
2741
|
+
}
|
|
2742
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2743
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2744
|
+
}
|
|
2745
|
+
return writer;
|
|
2746
|
+
},
|
|
2747
|
+
decode(input, length) {
|
|
2748
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2749
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2750
|
+
const message = createBaseEndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef();
|
|
2751
|
+
let writer = undefined;
|
|
2752
|
+
while (reader.pos < end) {
|
|
2753
|
+
const tag = reader.uint32();
|
|
2754
|
+
switch (tag >>> 3) {
|
|
2755
|
+
case 1: {
|
|
2756
|
+
if (tag !== 10)
|
|
2757
|
+
break;
|
|
2758
|
+
message.secretId = reader.string();
|
|
2759
|
+
continue;
|
|
2760
|
+
}
|
|
2761
|
+
case 2: {
|
|
2762
|
+
if (tag !== 18)
|
|
2763
|
+
break;
|
|
2764
|
+
message.versionId = reader.string();
|
|
2765
|
+
continue;
|
|
2766
|
+
}
|
|
2767
|
+
default:
|
|
2768
|
+
break;
|
|
2769
|
+
}
|
|
2770
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2771
|
+
break;
|
|
2772
|
+
}
|
|
2773
|
+
{
|
|
2774
|
+
if (!writer)
|
|
2775
|
+
writer = new index_1.BinaryWriter();
|
|
2776
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2777
|
+
writer.uint32(tag).raw(skipped);
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
if (writer) {
|
|
2781
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2782
|
+
}
|
|
2783
|
+
return message;
|
|
2784
|
+
},
|
|
2785
|
+
fromJSON(object) {
|
|
2786
|
+
return applyEndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustom({
|
|
2787
|
+
$type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config.MysteryBoxSecretRef",
|
|
2788
|
+
secretId: (0, index_1.isSet)(object.secretId ?? object.secret_id)
|
|
2789
|
+
? String(object.secretId ?? object.secret_id)
|
|
2790
|
+
: "",
|
|
2791
|
+
versionId: (0, index_1.isSet)(object.versionId ?? object.version_id)
|
|
2792
|
+
? String(object.versionId ?? object.version_id)
|
|
2793
|
+
: "",
|
|
2794
|
+
});
|
|
2795
|
+
},
|
|
2796
|
+
toJSON(message, use = "json") {
|
|
2797
|
+
const obj = {};
|
|
2798
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2799
|
+
if (message.secretId !== "") {
|
|
2800
|
+
obj[pick("secretId", "secret_id")] = message.secretId;
|
|
2801
|
+
}
|
|
2802
|
+
if (message.versionId !== "") {
|
|
2803
|
+
obj[pick("versionId", "version_id")] = message.versionId;
|
|
2804
|
+
}
|
|
2805
|
+
return obj;
|
|
2806
|
+
},
|
|
2807
|
+
create(base) {
|
|
2808
|
+
return exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef.fromPartial(base ?? {});
|
|
2809
|
+
},
|
|
2810
|
+
fromPartial(object) {
|
|
2811
|
+
const message = createBaseEndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef();
|
|
2812
|
+
message.secretId = (object.secretId !== undefined && object.secretId !== null)
|
|
2813
|
+
? object.secretId
|
|
2814
|
+
: "";
|
|
2815
|
+
message.versionId = (object.versionId !== undefined && object.versionId !== null)
|
|
2816
|
+
? object.versionId
|
|
2817
|
+
: "";
|
|
2818
|
+
return message;
|
|
2819
|
+
},
|
|
2820
|
+
};
|
|
2821
|
+
protobuf_1.protoRegistry.registerMessage(exports.EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef);
|
|
2822
|
+
function EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustomInspect() {
|
|
2823
|
+
const parts = [];
|
|
2824
|
+
if (this.secretId !== "")
|
|
2825
|
+
parts.push("secretId" + "=" + (0, util_1.inspect)(this.secretId));
|
|
2826
|
+
if (this.versionId !== "")
|
|
2827
|
+
parts.push("versionId" + "=" + (0, util_1.inspect)(this.versionId));
|
|
2828
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2829
|
+
}
|
|
2830
|
+
function EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustomJson() {
|
|
2831
|
+
const obj = {
|
|
2832
|
+
type: this.$type,
|
|
2833
|
+
};
|
|
2834
|
+
if (this.secretId !== "")
|
|
2835
|
+
obj.secretId = (0, logging_1.inspectJson)(this.secretId);
|
|
2836
|
+
if (this.versionId !== "")
|
|
2837
|
+
obj.versionId = (0, logging_1.inspectJson)(this.versionId);
|
|
2838
|
+
return obj;
|
|
2839
|
+
}
|
|
2840
|
+
function applyEndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustom(message) {
|
|
2841
|
+
message[logging_1.custom] = EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustomInspect;
|
|
2842
|
+
message[logging_1.customJson] = EndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustomJson;
|
|
2843
|
+
return message;
|
|
2844
|
+
}
|
|
2845
|
+
function createBaseEndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRef() {
|
|
2846
|
+
const message = {
|
|
2847
|
+
$type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config.MysteryBoxSecretRef",
|
|
2848
|
+
secretId: "",
|
|
2849
|
+
versionId: "",
|
|
2850
|
+
};
|
|
2851
|
+
return applyEndpointSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustom(message);
|
|
2852
|
+
}
|
|
2646
2853
|
exports.EndpointSpec_DiskSpec = {
|
|
2647
2854
|
$type: "nebius.ai.v1.EndpointSpec.DiskSpec",
|
|
2648
2855
|
encode(message, writer = new index_1.BinaryWriter()) {
|
|
@@ -2906,6 +3113,126 @@ function createBaseEndpointSpec_RegistryCredentials() {
|
|
|
2906
3113
|
};
|
|
2907
3114
|
return applyEndpointSpec_RegistryCredentialsCustom(message);
|
|
2908
3115
|
}
|
|
3116
|
+
exports.EndpointSpec_MysteryBoxSecretRef = {
|
|
3117
|
+
$type: "nebius.ai.v1.EndpointSpec.MysteryBoxSecretRef",
|
|
3118
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
3119
|
+
if (message.secretId !== "") {
|
|
3120
|
+
writer.uint32(10).string(message.secretId);
|
|
3121
|
+
}
|
|
3122
|
+
if (message.versionId !== "") {
|
|
3123
|
+
writer.uint32(18).string(message.versionId);
|
|
3124
|
+
}
|
|
3125
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
3126
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
3127
|
+
}
|
|
3128
|
+
return writer;
|
|
3129
|
+
},
|
|
3130
|
+
decode(input, length) {
|
|
3131
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
3132
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3133
|
+
const message = createBaseEndpointSpec_MysteryBoxSecretRef();
|
|
3134
|
+
let writer = undefined;
|
|
3135
|
+
while (reader.pos < end) {
|
|
3136
|
+
const tag = reader.uint32();
|
|
3137
|
+
switch (tag >>> 3) {
|
|
3138
|
+
case 1: {
|
|
3139
|
+
if (tag !== 10)
|
|
3140
|
+
break;
|
|
3141
|
+
message.secretId = reader.string();
|
|
3142
|
+
continue;
|
|
3143
|
+
}
|
|
3144
|
+
case 2: {
|
|
3145
|
+
if (tag !== 18)
|
|
3146
|
+
break;
|
|
3147
|
+
message.versionId = reader.string();
|
|
3148
|
+
continue;
|
|
3149
|
+
}
|
|
3150
|
+
default:
|
|
3151
|
+
break;
|
|
3152
|
+
}
|
|
3153
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3154
|
+
break;
|
|
3155
|
+
}
|
|
3156
|
+
{
|
|
3157
|
+
if (!writer)
|
|
3158
|
+
writer = new index_1.BinaryWriter();
|
|
3159
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
3160
|
+
writer.uint32(tag).raw(skipped);
|
|
3161
|
+
}
|
|
3162
|
+
}
|
|
3163
|
+
if (writer) {
|
|
3164
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
3165
|
+
}
|
|
3166
|
+
return message;
|
|
3167
|
+
},
|
|
3168
|
+
fromJSON(object) {
|
|
3169
|
+
return applyEndpointSpec_MysteryBoxSecretRefCustom({
|
|
3170
|
+
$type: "nebius.ai.v1.EndpointSpec.MysteryBoxSecretRef",
|
|
3171
|
+
secretId: (0, index_1.isSet)(object.secretId ?? object.secret_id)
|
|
3172
|
+
? String(object.secretId ?? object.secret_id)
|
|
3173
|
+
: "",
|
|
3174
|
+
versionId: (0, index_1.isSet)(object.versionId ?? object.version_id)
|
|
3175
|
+
? String(object.versionId ?? object.version_id)
|
|
3176
|
+
: "",
|
|
3177
|
+
});
|
|
3178
|
+
},
|
|
3179
|
+
toJSON(message, use = "json") {
|
|
3180
|
+
const obj = {};
|
|
3181
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
3182
|
+
if (message.secretId !== "") {
|
|
3183
|
+
obj[pick("secretId", "secret_id")] = message.secretId;
|
|
3184
|
+
}
|
|
3185
|
+
if (message.versionId !== "") {
|
|
3186
|
+
obj[pick("versionId", "version_id")] = message.versionId;
|
|
3187
|
+
}
|
|
3188
|
+
return obj;
|
|
3189
|
+
},
|
|
3190
|
+
create(base) {
|
|
3191
|
+
return exports.EndpointSpec_MysteryBoxSecretRef.fromPartial(base ?? {});
|
|
3192
|
+
},
|
|
3193
|
+
fromPartial(object) {
|
|
3194
|
+
const message = createBaseEndpointSpec_MysteryBoxSecretRef();
|
|
3195
|
+
message.secretId = (object.secretId !== undefined && object.secretId !== null)
|
|
3196
|
+
? object.secretId
|
|
3197
|
+
: "";
|
|
3198
|
+
message.versionId = (object.versionId !== undefined && object.versionId !== null)
|
|
3199
|
+
? object.versionId
|
|
3200
|
+
: "";
|
|
3201
|
+
return message;
|
|
3202
|
+
},
|
|
3203
|
+
};
|
|
3204
|
+
protobuf_1.protoRegistry.registerMessage(exports.EndpointSpec_MysteryBoxSecretRef);
|
|
3205
|
+
function EndpointSpec_MysteryBoxSecretRefCustomInspect() {
|
|
3206
|
+
const parts = [];
|
|
3207
|
+
if (this.secretId !== "")
|
|
3208
|
+
parts.push("secretId" + "=" + (0, util_1.inspect)(this.secretId));
|
|
3209
|
+
if (this.versionId !== "")
|
|
3210
|
+
parts.push("versionId" + "=" + (0, util_1.inspect)(this.versionId));
|
|
3211
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
3212
|
+
}
|
|
3213
|
+
function EndpointSpec_MysteryBoxSecretRefCustomJson() {
|
|
3214
|
+
const obj = {
|
|
3215
|
+
type: this.$type,
|
|
3216
|
+
};
|
|
3217
|
+
if (this.secretId !== "")
|
|
3218
|
+
obj.secretId = (0, logging_1.inspectJson)(this.secretId);
|
|
3219
|
+
if (this.versionId !== "")
|
|
3220
|
+
obj.versionId = (0, logging_1.inspectJson)(this.versionId);
|
|
3221
|
+
return obj;
|
|
3222
|
+
}
|
|
3223
|
+
function applyEndpointSpec_MysteryBoxSecretRefCustom(message) {
|
|
3224
|
+
message[logging_1.custom] = EndpointSpec_MysteryBoxSecretRefCustomInspect;
|
|
3225
|
+
message[logging_1.customJson] = EndpointSpec_MysteryBoxSecretRefCustomJson;
|
|
3226
|
+
return message;
|
|
3227
|
+
}
|
|
3228
|
+
function createBaseEndpointSpec_MysteryBoxSecretRef() {
|
|
3229
|
+
const message = {
|
|
3230
|
+
$type: "nebius.ai.v1.EndpointSpec.MysteryBoxSecretRef",
|
|
3231
|
+
secretId: "",
|
|
3232
|
+
versionId: "",
|
|
3233
|
+
};
|
|
3234
|
+
return applyEndpointSpec_MysteryBoxSecretRefCustom(message);
|
|
3235
|
+
}
|
|
2909
3236
|
exports.EndpointStatus = {
|
|
2910
3237
|
$type: "nebius.ai.v1.EndpointStatus",
|
|
2911
3238
|
encode(message, writer = new index_1.BinaryWriter()) {
|
|
@@ -5195,6 +5522,11 @@ exports.JobSpec_EnvironmentVariable = {
|
|
|
5195
5522
|
if (message.value !== "") {
|
|
5196
5523
|
writer.uint32(18).string(message.value);
|
|
5197
5524
|
}
|
|
5525
|
+
if (message.mysteryboxSecret !== undefined) {
|
|
5526
|
+
const w = writer.uint32(26).fork();
|
|
5527
|
+
exports.JobSpec_MysteryBoxSecretRef.encode(message.mysteryboxSecret, w);
|
|
5528
|
+
w.join();
|
|
5529
|
+
}
|
|
5198
5530
|
if (message[index_1.unknownFieldsSymbol]) {
|
|
5199
5531
|
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
5200
5532
|
}
|
|
@@ -5220,6 +5552,12 @@ exports.JobSpec_EnvironmentVariable = {
|
|
|
5220
5552
|
message.value = reader.string();
|
|
5221
5553
|
continue;
|
|
5222
5554
|
}
|
|
5555
|
+
case 3: {
|
|
5556
|
+
if (tag !== 26)
|
|
5557
|
+
break;
|
|
5558
|
+
message.mysteryboxSecret = exports.JobSpec_MysteryBoxSecretRef.decode(reader, reader.uint32());
|
|
5559
|
+
continue;
|
|
5560
|
+
}
|
|
5223
5561
|
default:
|
|
5224
5562
|
break;
|
|
5225
5563
|
}
|
|
@@ -5247,6 +5585,9 @@ exports.JobSpec_EnvironmentVariable = {
|
|
|
5247
5585
|
value: (0, index_1.isSet)(object.value ?? object.value)
|
|
5248
5586
|
? String(object.value ?? object.value)
|
|
5249
5587
|
: "",
|
|
5588
|
+
mysteryboxSecret: (0, index_1.isSet)(object.mysteryboxSecret ?? object.mysterybox_secret)
|
|
5589
|
+
? exports.JobSpec_MysteryBoxSecretRef.fromJSON(object.mysteryboxSecret ?? object.mysterybox_secret)
|
|
5590
|
+
: undefined,
|
|
5250
5591
|
});
|
|
5251
5592
|
},
|
|
5252
5593
|
toJSON(message, use = "json") {
|
|
@@ -5258,6 +5599,11 @@ exports.JobSpec_EnvironmentVariable = {
|
|
|
5258
5599
|
if (message.value !== "") {
|
|
5259
5600
|
obj[pick("value", "value")] = message.value;
|
|
5260
5601
|
}
|
|
5602
|
+
if (message.mysteryboxSecret !== undefined) {
|
|
5603
|
+
obj[pick("mysteryboxSecret", "mysterybox_secret")] = message.mysteryboxSecret
|
|
5604
|
+
? exports.JobSpec_MysteryBoxSecretRef.toJSON(message.mysteryboxSecret, use)
|
|
5605
|
+
: undefined;
|
|
5606
|
+
}
|
|
5261
5607
|
return obj;
|
|
5262
5608
|
},
|
|
5263
5609
|
create(base) {
|
|
@@ -5271,6 +5617,9 @@ exports.JobSpec_EnvironmentVariable = {
|
|
|
5271
5617
|
message.value = (object.value !== undefined && object.value !== null)
|
|
5272
5618
|
? object.value
|
|
5273
5619
|
: "";
|
|
5620
|
+
message.mysteryboxSecret = (object.mysteryboxSecret !== undefined && object.mysteryboxSecret !== null)
|
|
5621
|
+
? exports.JobSpec_MysteryBoxSecretRef.fromPartial(object.mysteryboxSecret)
|
|
5622
|
+
: undefined;
|
|
5274
5623
|
return message;
|
|
5275
5624
|
},
|
|
5276
5625
|
};
|
|
@@ -5281,6 +5630,8 @@ function JobSpec_EnvironmentVariableCustomInspect() {
|
|
|
5281
5630
|
parts.push("name" + "=" + (0, util_1.inspect)(this.name));
|
|
5282
5631
|
if (this.value !== "")
|
|
5283
5632
|
parts.push("value" + "=***");
|
|
5633
|
+
if (this.mysteryboxSecret !== undefined)
|
|
5634
|
+
parts.push("mysteryboxSecret" + "=" + (0, util_1.inspect)(this.mysteryboxSecret));
|
|
5284
5635
|
return `${this.$type}(${parts.join(", ")})`;
|
|
5285
5636
|
}
|
|
5286
5637
|
function JobSpec_EnvironmentVariableCustomJson() {
|
|
@@ -5291,6 +5642,8 @@ function JobSpec_EnvironmentVariableCustomJson() {
|
|
|
5291
5642
|
obj.name = (0, logging_1.inspectJson)(this.name);
|
|
5292
5643
|
if (this.value !== "")
|
|
5293
5644
|
obj.value = "***";
|
|
5645
|
+
if (this.mysteryboxSecret !== undefined)
|
|
5646
|
+
obj.mysteryboxSecret = (0, logging_1.inspectJson)(this.mysteryboxSecret);
|
|
5294
5647
|
return obj;
|
|
5295
5648
|
}
|
|
5296
5649
|
function applyJobSpec_EnvironmentVariableCustom(message) {
|
|
@@ -5303,6 +5656,7 @@ function createBaseJobSpec_EnvironmentVariable() {
|
|
|
5303
5656
|
$type: "nebius.ai.v1.JobSpec.EnvironmentVariable",
|
|
5304
5657
|
name: "",
|
|
5305
5658
|
value: "",
|
|
5659
|
+
mysteryboxSecret: undefined,
|
|
5306
5660
|
};
|
|
5307
5661
|
return applyJobSpec_EnvironmentVariableCustom(message);
|
|
5308
5662
|
}
|
|
@@ -5674,6 +6028,11 @@ exports.JobSpec_VolumeMount_S3Config = {
|
|
|
5674
6028
|
exports.JobSpec_VolumeMount_S3Config_S3Credentials.encode(message.auth.credentials, w);
|
|
5675
6029
|
w.join();
|
|
5676
6030
|
}
|
|
6031
|
+
else if (message.auth?.$case === "mysteryboxSecret") {
|
|
6032
|
+
const w = writer.uint32(42).fork();
|
|
6033
|
+
exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef.encode(message.auth.mysteryboxSecret, w);
|
|
6034
|
+
w.join();
|
|
6035
|
+
}
|
|
5677
6036
|
if (message[index_1.unknownFieldsSymbol]) {
|
|
5678
6037
|
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
5679
6038
|
}
|
|
@@ -5708,6 +6067,15 @@ exports.JobSpec_VolumeMount_S3Config = {
|
|
|
5708
6067
|
};
|
|
5709
6068
|
continue;
|
|
5710
6069
|
}
|
|
6070
|
+
case 5: {
|
|
6071
|
+
if (tag !== 42)
|
|
6072
|
+
break;
|
|
6073
|
+
message.auth = {
|
|
6074
|
+
$case: "mysteryboxSecret",
|
|
6075
|
+
mysteryboxSecret: exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef.decode(reader, reader.uint32())
|
|
6076
|
+
};
|
|
6077
|
+
continue;
|
|
6078
|
+
}
|
|
5711
6079
|
default:
|
|
5712
6080
|
break;
|
|
5713
6081
|
}
|
|
@@ -5742,6 +6110,12 @@ exports.JobSpec_VolumeMount_S3Config = {
|
|
|
5742
6110
|
credentials: exports.JobSpec_VolumeMount_S3Config_S3Credentials.fromJSON(object.credentials ?? object.credentials)
|
|
5743
6111
|
};
|
|
5744
6112
|
}
|
|
6113
|
+
if ((0, index_1.isSet)(object.mysteryboxSecret) || (0, index_1.isSet)(object.mysterybox_secret)) {
|
|
6114
|
+
return {
|
|
6115
|
+
$case: "mysteryboxSecret",
|
|
6116
|
+
mysteryboxSecret: exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef.fromJSON(object.mysteryboxSecret ?? object.mysterybox_secret)
|
|
6117
|
+
};
|
|
6118
|
+
}
|
|
5745
6119
|
return undefined;
|
|
5746
6120
|
})(),
|
|
5747
6121
|
});
|
|
@@ -5760,6 +6134,10 @@ exports.JobSpec_VolumeMount_S3Config = {
|
|
|
5760
6134
|
obj[pick("credentials", "credentials")] = exports.JobSpec_VolumeMount_S3Config_S3Credentials.toJSON(message.auth.credentials, use);
|
|
5761
6135
|
break;
|
|
5762
6136
|
}
|
|
6137
|
+
case "mysteryboxSecret": {
|
|
6138
|
+
obj[pick("mysteryboxSecret", "mysterybox_secret")] = exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef.toJSON(message.auth.mysteryboxSecret, use);
|
|
6139
|
+
break;
|
|
6140
|
+
}
|
|
5763
6141
|
default: break;
|
|
5764
6142
|
}
|
|
5765
6143
|
return obj;
|
|
@@ -5785,6 +6163,15 @@ exports.JobSpec_VolumeMount_S3Config = {
|
|
|
5785
6163
|
}
|
|
5786
6164
|
break;
|
|
5787
6165
|
}
|
|
6166
|
+
case "mysteryboxSecret": {
|
|
6167
|
+
if (object.auth.mysteryboxSecret !== undefined && object.auth.mysteryboxSecret !== null) {
|
|
6168
|
+
message.auth = {
|
|
6169
|
+
$case: "mysteryboxSecret",
|
|
6170
|
+
mysteryboxSecret: exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef.fromPartial(object.auth.mysteryboxSecret),
|
|
6171
|
+
};
|
|
6172
|
+
}
|
|
6173
|
+
break;
|
|
6174
|
+
}
|
|
5788
6175
|
default: break;
|
|
5789
6176
|
}
|
|
5790
6177
|
return message;
|
|
@@ -5966,6 +6353,126 @@ function createBaseJobSpec_VolumeMount_S3Config_S3Credentials() {
|
|
|
5966
6353
|
};
|
|
5967
6354
|
return applyJobSpec_VolumeMount_S3Config_S3CredentialsCustom(message);
|
|
5968
6355
|
}
|
|
6356
|
+
exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef = {
|
|
6357
|
+
$type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config.MysteryBoxSecretRef",
|
|
6358
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
6359
|
+
if (message.secretId !== "") {
|
|
6360
|
+
writer.uint32(10).string(message.secretId);
|
|
6361
|
+
}
|
|
6362
|
+
if (message.versionId !== "") {
|
|
6363
|
+
writer.uint32(18).string(message.versionId);
|
|
6364
|
+
}
|
|
6365
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
6366
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
6367
|
+
}
|
|
6368
|
+
return writer;
|
|
6369
|
+
},
|
|
6370
|
+
decode(input, length) {
|
|
6371
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
6372
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6373
|
+
const message = createBaseJobSpec_VolumeMount_S3Config_MysteryBoxSecretRef();
|
|
6374
|
+
let writer = undefined;
|
|
6375
|
+
while (reader.pos < end) {
|
|
6376
|
+
const tag = reader.uint32();
|
|
6377
|
+
switch (tag >>> 3) {
|
|
6378
|
+
case 1: {
|
|
6379
|
+
if (tag !== 10)
|
|
6380
|
+
break;
|
|
6381
|
+
message.secretId = reader.string();
|
|
6382
|
+
continue;
|
|
6383
|
+
}
|
|
6384
|
+
case 2: {
|
|
6385
|
+
if (tag !== 18)
|
|
6386
|
+
break;
|
|
6387
|
+
message.versionId = reader.string();
|
|
6388
|
+
continue;
|
|
6389
|
+
}
|
|
6390
|
+
default:
|
|
6391
|
+
break;
|
|
6392
|
+
}
|
|
6393
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6394
|
+
break;
|
|
6395
|
+
}
|
|
6396
|
+
{
|
|
6397
|
+
if (!writer)
|
|
6398
|
+
writer = new index_1.BinaryWriter();
|
|
6399
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
6400
|
+
writer.uint32(tag).raw(skipped);
|
|
6401
|
+
}
|
|
6402
|
+
}
|
|
6403
|
+
if (writer) {
|
|
6404
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
6405
|
+
}
|
|
6406
|
+
return message;
|
|
6407
|
+
},
|
|
6408
|
+
fromJSON(object) {
|
|
6409
|
+
return applyJobSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustom({
|
|
6410
|
+
$type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config.MysteryBoxSecretRef",
|
|
6411
|
+
secretId: (0, index_1.isSet)(object.secretId ?? object.secret_id)
|
|
6412
|
+
? String(object.secretId ?? object.secret_id)
|
|
6413
|
+
: "",
|
|
6414
|
+
versionId: (0, index_1.isSet)(object.versionId ?? object.version_id)
|
|
6415
|
+
? String(object.versionId ?? object.version_id)
|
|
6416
|
+
: "",
|
|
6417
|
+
});
|
|
6418
|
+
},
|
|
6419
|
+
toJSON(message, use = "json") {
|
|
6420
|
+
const obj = {};
|
|
6421
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
6422
|
+
if (message.secretId !== "") {
|
|
6423
|
+
obj[pick("secretId", "secret_id")] = message.secretId;
|
|
6424
|
+
}
|
|
6425
|
+
if (message.versionId !== "") {
|
|
6426
|
+
obj[pick("versionId", "version_id")] = message.versionId;
|
|
6427
|
+
}
|
|
6428
|
+
return obj;
|
|
6429
|
+
},
|
|
6430
|
+
create(base) {
|
|
6431
|
+
return exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef.fromPartial(base ?? {});
|
|
6432
|
+
},
|
|
6433
|
+
fromPartial(object) {
|
|
6434
|
+
const message = createBaseJobSpec_VolumeMount_S3Config_MysteryBoxSecretRef();
|
|
6435
|
+
message.secretId = (object.secretId !== undefined && object.secretId !== null)
|
|
6436
|
+
? object.secretId
|
|
6437
|
+
: "";
|
|
6438
|
+
message.versionId = (object.versionId !== undefined && object.versionId !== null)
|
|
6439
|
+
? object.versionId
|
|
6440
|
+
: "";
|
|
6441
|
+
return message;
|
|
6442
|
+
},
|
|
6443
|
+
};
|
|
6444
|
+
protobuf_1.protoRegistry.registerMessage(exports.JobSpec_VolumeMount_S3Config_MysteryBoxSecretRef);
|
|
6445
|
+
function JobSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustomInspect() {
|
|
6446
|
+
const parts = [];
|
|
6447
|
+
if (this.secretId !== "")
|
|
6448
|
+
parts.push("secretId" + "=" + (0, util_1.inspect)(this.secretId));
|
|
6449
|
+
if (this.versionId !== "")
|
|
6450
|
+
parts.push("versionId" + "=" + (0, util_1.inspect)(this.versionId));
|
|
6451
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
6452
|
+
}
|
|
6453
|
+
function JobSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustomJson() {
|
|
6454
|
+
const obj = {
|
|
6455
|
+
type: this.$type,
|
|
6456
|
+
};
|
|
6457
|
+
if (this.secretId !== "")
|
|
6458
|
+
obj.secretId = (0, logging_1.inspectJson)(this.secretId);
|
|
6459
|
+
if (this.versionId !== "")
|
|
6460
|
+
obj.versionId = (0, logging_1.inspectJson)(this.versionId);
|
|
6461
|
+
return obj;
|
|
6462
|
+
}
|
|
6463
|
+
function applyJobSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustom(message) {
|
|
6464
|
+
message[logging_1.custom] = JobSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustomInspect;
|
|
6465
|
+
message[logging_1.customJson] = JobSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustomJson;
|
|
6466
|
+
return message;
|
|
6467
|
+
}
|
|
6468
|
+
function createBaseJobSpec_VolumeMount_S3Config_MysteryBoxSecretRef() {
|
|
6469
|
+
const message = {
|
|
6470
|
+
$type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config.MysteryBoxSecretRef",
|
|
6471
|
+
secretId: "",
|
|
6472
|
+
versionId: "",
|
|
6473
|
+
};
|
|
6474
|
+
return applyJobSpec_VolumeMount_S3Config_MysteryBoxSecretRefCustom(message);
|
|
6475
|
+
}
|
|
5969
6476
|
exports.JobSpec_DiskSpec = {
|
|
5970
6477
|
$type: "nebius.ai.v1.JobSpec.DiskSpec",
|
|
5971
6478
|
encode(message, writer = new index_1.BinaryWriter()) {
|
|
@@ -6229,6 +6736,126 @@ function createBaseJobSpec_RegistryCredentials() {
|
|
|
6229
6736
|
};
|
|
6230
6737
|
return applyJobSpec_RegistryCredentialsCustom(message);
|
|
6231
6738
|
}
|
|
6739
|
+
exports.JobSpec_MysteryBoxSecretRef = {
|
|
6740
|
+
$type: "nebius.ai.v1.JobSpec.MysteryBoxSecretRef",
|
|
6741
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
6742
|
+
if (message.secretId !== "") {
|
|
6743
|
+
writer.uint32(10).string(message.secretId);
|
|
6744
|
+
}
|
|
6745
|
+
if (message.versionId !== "") {
|
|
6746
|
+
writer.uint32(18).string(message.versionId);
|
|
6747
|
+
}
|
|
6748
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
6749
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
6750
|
+
}
|
|
6751
|
+
return writer;
|
|
6752
|
+
},
|
|
6753
|
+
decode(input, length) {
|
|
6754
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
6755
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
6756
|
+
const message = createBaseJobSpec_MysteryBoxSecretRef();
|
|
6757
|
+
let writer = undefined;
|
|
6758
|
+
while (reader.pos < end) {
|
|
6759
|
+
const tag = reader.uint32();
|
|
6760
|
+
switch (tag >>> 3) {
|
|
6761
|
+
case 1: {
|
|
6762
|
+
if (tag !== 10)
|
|
6763
|
+
break;
|
|
6764
|
+
message.secretId = reader.string();
|
|
6765
|
+
continue;
|
|
6766
|
+
}
|
|
6767
|
+
case 2: {
|
|
6768
|
+
if (tag !== 18)
|
|
6769
|
+
break;
|
|
6770
|
+
message.versionId = reader.string();
|
|
6771
|
+
continue;
|
|
6772
|
+
}
|
|
6773
|
+
default:
|
|
6774
|
+
break;
|
|
6775
|
+
}
|
|
6776
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6777
|
+
break;
|
|
6778
|
+
}
|
|
6779
|
+
{
|
|
6780
|
+
if (!writer)
|
|
6781
|
+
writer = new index_1.BinaryWriter();
|
|
6782
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
6783
|
+
writer.uint32(tag).raw(skipped);
|
|
6784
|
+
}
|
|
6785
|
+
}
|
|
6786
|
+
if (writer) {
|
|
6787
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
6788
|
+
}
|
|
6789
|
+
return message;
|
|
6790
|
+
},
|
|
6791
|
+
fromJSON(object) {
|
|
6792
|
+
return applyJobSpec_MysteryBoxSecretRefCustom({
|
|
6793
|
+
$type: "nebius.ai.v1.JobSpec.MysteryBoxSecretRef",
|
|
6794
|
+
secretId: (0, index_1.isSet)(object.secretId ?? object.secret_id)
|
|
6795
|
+
? String(object.secretId ?? object.secret_id)
|
|
6796
|
+
: "",
|
|
6797
|
+
versionId: (0, index_1.isSet)(object.versionId ?? object.version_id)
|
|
6798
|
+
? String(object.versionId ?? object.version_id)
|
|
6799
|
+
: "",
|
|
6800
|
+
});
|
|
6801
|
+
},
|
|
6802
|
+
toJSON(message, use = "json") {
|
|
6803
|
+
const obj = {};
|
|
6804
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
6805
|
+
if (message.secretId !== "") {
|
|
6806
|
+
obj[pick("secretId", "secret_id")] = message.secretId;
|
|
6807
|
+
}
|
|
6808
|
+
if (message.versionId !== "") {
|
|
6809
|
+
obj[pick("versionId", "version_id")] = message.versionId;
|
|
6810
|
+
}
|
|
6811
|
+
return obj;
|
|
6812
|
+
},
|
|
6813
|
+
create(base) {
|
|
6814
|
+
return exports.JobSpec_MysteryBoxSecretRef.fromPartial(base ?? {});
|
|
6815
|
+
},
|
|
6816
|
+
fromPartial(object) {
|
|
6817
|
+
const message = createBaseJobSpec_MysteryBoxSecretRef();
|
|
6818
|
+
message.secretId = (object.secretId !== undefined && object.secretId !== null)
|
|
6819
|
+
? object.secretId
|
|
6820
|
+
: "";
|
|
6821
|
+
message.versionId = (object.versionId !== undefined && object.versionId !== null)
|
|
6822
|
+
? object.versionId
|
|
6823
|
+
: "";
|
|
6824
|
+
return message;
|
|
6825
|
+
},
|
|
6826
|
+
};
|
|
6827
|
+
protobuf_1.protoRegistry.registerMessage(exports.JobSpec_MysteryBoxSecretRef);
|
|
6828
|
+
function JobSpec_MysteryBoxSecretRefCustomInspect() {
|
|
6829
|
+
const parts = [];
|
|
6830
|
+
if (this.secretId !== "")
|
|
6831
|
+
parts.push("secretId" + "=" + (0, util_1.inspect)(this.secretId));
|
|
6832
|
+
if (this.versionId !== "")
|
|
6833
|
+
parts.push("versionId" + "=" + (0, util_1.inspect)(this.versionId));
|
|
6834
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
6835
|
+
}
|
|
6836
|
+
function JobSpec_MysteryBoxSecretRefCustomJson() {
|
|
6837
|
+
const obj = {
|
|
6838
|
+
type: this.$type,
|
|
6839
|
+
};
|
|
6840
|
+
if (this.secretId !== "")
|
|
6841
|
+
obj.secretId = (0, logging_1.inspectJson)(this.secretId);
|
|
6842
|
+
if (this.versionId !== "")
|
|
6843
|
+
obj.versionId = (0, logging_1.inspectJson)(this.versionId);
|
|
6844
|
+
return obj;
|
|
6845
|
+
}
|
|
6846
|
+
function applyJobSpec_MysteryBoxSecretRefCustom(message) {
|
|
6847
|
+
message[logging_1.custom] = JobSpec_MysteryBoxSecretRefCustomInspect;
|
|
6848
|
+
message[logging_1.customJson] = JobSpec_MysteryBoxSecretRefCustomJson;
|
|
6849
|
+
return message;
|
|
6850
|
+
}
|
|
6851
|
+
function createBaseJobSpec_MysteryBoxSecretRef() {
|
|
6852
|
+
const message = {
|
|
6853
|
+
$type: "nebius.ai.v1.JobSpec.MysteryBoxSecretRef",
|
|
6854
|
+
secretId: "",
|
|
6855
|
+
versionId: "",
|
|
6856
|
+
};
|
|
6857
|
+
return applyJobSpec_MysteryBoxSecretRefCustom(message);
|
|
6858
|
+
}
|
|
6232
6859
|
exports.JobStatus = {
|
|
6233
6860
|
$type: "nebius.ai.v1.JobStatus",
|
|
6234
6861
|
encode(message, writer = new index_1.BinaryWriter()) {
|