@nebius/js-sdk 0.1.42 → 0.1.44
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 +130 -2
- package/dist/cjs/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/ai/v1/index.js +704 -1
- package/dist/cjs/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.d.ts +35 -0
- package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.js +244 -2
- package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/dns/v1/index.d.ts +1 -0
- package/dist/cjs/api/nebius/dns/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/dns/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/index.d.ts +71 -2
- package/dist/cjs/api/nebius/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/index.js +230 -2
- package/dist/cjs/api/nebius/index.js.map +1 -1
- package/dist/cjs/api/nebius/logging/v1/agentmanager/index.d.ts +15 -0
- package/dist/cjs/api/nebius/logging/v1/agentmanager/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/logging/v1/agentmanager/index.js +81 -0
- package/dist/cjs/api/nebius/logging/v1/agentmanager/index.js.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +17 -0
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.js +103 -2
- package/dist/cjs/api/nebius/mk8s/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/storage/v1/index.d.ts +6 -14
- package/dist/cjs/api/nebius/storage/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/storage/v1/index.js +1 -30
- package/dist/cjs/api/nebius/storage/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 +130 -2
- package/dist/esm/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/compute/v1/index.d.ts +35 -0
- package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/dns/v1/index.d.ts +1 -0
- package/dist/esm/api/nebius/dns/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/index.d.ts +71 -2
- package/dist/esm/api/nebius/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/logging/v1/agentmanager/index.d.ts +15 -0
- package/dist/esm/api/nebius/logging/v1/agentmanager/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts +17 -0
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/storage/v1/index.d.ts +6 -14
- package/dist/esm/api/nebius/storage/v1/index.d.ts.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,7 +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.
|
|
4
|
+
exports.JobSpec_RegistryCredentials = exports.JobSpec_DiskSpec = 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_RegistryCredentials = exports.EndpointSpec_DiskSpec = 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 = void 0;
|
|
5
6
|
const index_1 = require("../../../../runtime/protos/index");
|
|
6
7
|
const util_1 = require("util");
|
|
7
8
|
const protobuf_1 = require("../../../protobuf");
|
|
@@ -2140,6 +2141,12 @@ exports.EndpointSpec_VolumeMount = {
|
|
|
2140
2141
|
if ((message.mode ?? exports.EndpointSpec_VolumeMount_Mode.MODE_UNSPECIFIED) !== exports.EndpointSpec_VolumeMount_Mode.MODE_UNSPECIFIED) {
|
|
2141
2142
|
exports.EndpointSpec_VolumeMount_Mode.encodeField(writer, 4, message.mode);
|
|
2142
2143
|
}
|
|
2144
|
+
if (message.sourceConfig?.$case === undefined) { /* noop */ }
|
|
2145
|
+
else if (message.sourceConfig?.$case === "s3Config") {
|
|
2146
|
+
const w = writer.uint32(42).fork();
|
|
2147
|
+
exports.EndpointSpec_VolumeMount_S3Config.encode(message.sourceConfig.s3Config, w);
|
|
2148
|
+
w.join();
|
|
2149
|
+
}
|
|
2143
2150
|
if (message[index_1.unknownFieldsSymbol]) {
|
|
2144
2151
|
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2145
2152
|
}
|
|
@@ -2177,6 +2184,15 @@ exports.EndpointSpec_VolumeMount = {
|
|
|
2177
2184
|
message.mode = exports.EndpointSpec_VolumeMount_Mode.fromNumber(reader.int32());
|
|
2178
2185
|
continue;
|
|
2179
2186
|
}
|
|
2187
|
+
case 5: {
|
|
2188
|
+
if (tag !== 42)
|
|
2189
|
+
break;
|
|
2190
|
+
message.sourceConfig = {
|
|
2191
|
+
$case: "s3Config",
|
|
2192
|
+
s3Config: exports.EndpointSpec_VolumeMount_S3Config.decode(reader, reader.uint32())
|
|
2193
|
+
};
|
|
2194
|
+
continue;
|
|
2195
|
+
}
|
|
2180
2196
|
default:
|
|
2181
2197
|
break;
|
|
2182
2198
|
}
|
|
@@ -2210,6 +2226,15 @@ exports.EndpointSpec_VolumeMount = {
|
|
|
2210
2226
|
mode: (0, index_1.isSet)(object.mode ?? object.mode)
|
|
2211
2227
|
? exports.EndpointSpec_VolumeMount_Mode.fromJSON(object.mode ?? object.mode)
|
|
2212
2228
|
: exports.EndpointSpec_VolumeMount_Mode.MODE_UNSPECIFIED,
|
|
2229
|
+
sourceConfig: (() => {
|
|
2230
|
+
if ((0, index_1.isSet)(object.s3Config) || (0, index_1.isSet)(object.s3_config)) {
|
|
2231
|
+
return {
|
|
2232
|
+
$case: "s3Config",
|
|
2233
|
+
s3Config: exports.EndpointSpec_VolumeMount_S3Config.fromJSON(object.s3Config ?? object.s3_config)
|
|
2234
|
+
};
|
|
2235
|
+
}
|
|
2236
|
+
return undefined;
|
|
2237
|
+
})(),
|
|
2213
2238
|
});
|
|
2214
2239
|
},
|
|
2215
2240
|
toJSON(message, use = "json") {
|
|
@@ -2227,6 +2252,13 @@ exports.EndpointSpec_VolumeMount = {
|
|
|
2227
2252
|
if ((message.mode ?? exports.EndpointSpec_VolumeMount_Mode.MODE_UNSPECIFIED) !== exports.EndpointSpec_VolumeMount_Mode.MODE_UNSPECIFIED) {
|
|
2228
2253
|
obj[pick("mode", "mode")] = exports.EndpointSpec_VolumeMount_Mode.toJSON(message.mode);
|
|
2229
2254
|
}
|
|
2255
|
+
switch (message.sourceConfig?.$case) {
|
|
2256
|
+
case "s3Config": {
|
|
2257
|
+
obj[pick("s3Config", "s3_config")] = exports.EndpointSpec_VolumeMount_S3Config.toJSON(message.sourceConfig.s3Config, use);
|
|
2258
|
+
break;
|
|
2259
|
+
}
|
|
2260
|
+
default: break;
|
|
2261
|
+
}
|
|
2230
2262
|
return obj;
|
|
2231
2263
|
},
|
|
2232
2264
|
create(base) {
|
|
@@ -2246,6 +2278,18 @@ exports.EndpointSpec_VolumeMount = {
|
|
|
2246
2278
|
message.mode = (object.mode !== undefined && object.mode !== null)
|
|
2247
2279
|
? exports.EndpointSpec_VolumeMount_Mode.fromJSON(object.mode.name)
|
|
2248
2280
|
: exports.EndpointSpec_VolumeMount_Mode.MODE_UNSPECIFIED;
|
|
2281
|
+
switch (object.sourceConfig?.$case) {
|
|
2282
|
+
case "s3Config": {
|
|
2283
|
+
if (object.sourceConfig.s3Config !== undefined && object.sourceConfig.s3Config !== null) {
|
|
2284
|
+
message.sourceConfig = {
|
|
2285
|
+
$case: "s3Config",
|
|
2286
|
+
s3Config: exports.EndpointSpec_VolumeMount_S3Config.fromPartial(object.sourceConfig.s3Config),
|
|
2287
|
+
};
|
|
2288
|
+
}
|
|
2289
|
+
break;
|
|
2290
|
+
}
|
|
2291
|
+
default: break;
|
|
2292
|
+
}
|
|
2249
2293
|
return message;
|
|
2250
2294
|
},
|
|
2251
2295
|
};
|
|
@@ -2288,9 +2332,317 @@ function createBaseEndpointSpec_VolumeMount() {
|
|
|
2288
2332
|
sourcePath: "",
|
|
2289
2333
|
containerPath: "",
|
|
2290
2334
|
mode: exports.EndpointSpec_VolumeMount_Mode.MODE_UNSPECIFIED,
|
|
2335
|
+
sourceConfig: undefined,
|
|
2291
2336
|
};
|
|
2292
2337
|
return applyEndpointSpec_VolumeMountCustom(message);
|
|
2293
2338
|
}
|
|
2339
|
+
exports.EndpointSpec_VolumeMount_S3Config = {
|
|
2340
|
+
$type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config",
|
|
2341
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2342
|
+
if (message.endpoint !== "") {
|
|
2343
|
+
writer.uint32(10).string(message.endpoint);
|
|
2344
|
+
}
|
|
2345
|
+
if (message.region !== "") {
|
|
2346
|
+
writer.uint32(26).string(message.region);
|
|
2347
|
+
}
|
|
2348
|
+
if (message.auth?.$case === undefined) { /* noop */ }
|
|
2349
|
+
else if (message.auth?.$case === "credentials") {
|
|
2350
|
+
const w = writer.uint32(34).fork();
|
|
2351
|
+
exports.EndpointSpec_VolumeMount_S3Config_S3Credentials.encode(message.auth.credentials, w);
|
|
2352
|
+
w.join();
|
|
2353
|
+
}
|
|
2354
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2355
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2356
|
+
}
|
|
2357
|
+
return writer;
|
|
2358
|
+
},
|
|
2359
|
+
decode(input, length) {
|
|
2360
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2361
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2362
|
+
const message = createBaseEndpointSpec_VolumeMount_S3Config();
|
|
2363
|
+
let writer = undefined;
|
|
2364
|
+
while (reader.pos < end) {
|
|
2365
|
+
const tag = reader.uint32();
|
|
2366
|
+
switch (tag >>> 3) {
|
|
2367
|
+
case 1: {
|
|
2368
|
+
if (tag !== 10)
|
|
2369
|
+
break;
|
|
2370
|
+
message.endpoint = reader.string();
|
|
2371
|
+
continue;
|
|
2372
|
+
}
|
|
2373
|
+
case 3: {
|
|
2374
|
+
if (tag !== 26)
|
|
2375
|
+
break;
|
|
2376
|
+
message.region = reader.string();
|
|
2377
|
+
continue;
|
|
2378
|
+
}
|
|
2379
|
+
case 4: {
|
|
2380
|
+
if (tag !== 34)
|
|
2381
|
+
break;
|
|
2382
|
+
message.auth = {
|
|
2383
|
+
$case: "credentials",
|
|
2384
|
+
credentials: exports.EndpointSpec_VolumeMount_S3Config_S3Credentials.decode(reader, reader.uint32())
|
|
2385
|
+
};
|
|
2386
|
+
continue;
|
|
2387
|
+
}
|
|
2388
|
+
default:
|
|
2389
|
+
break;
|
|
2390
|
+
}
|
|
2391
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2392
|
+
break;
|
|
2393
|
+
}
|
|
2394
|
+
{
|
|
2395
|
+
if (!writer)
|
|
2396
|
+
writer = new index_1.BinaryWriter();
|
|
2397
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2398
|
+
writer.uint32(tag).raw(skipped);
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
if (writer) {
|
|
2402
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2403
|
+
}
|
|
2404
|
+
return message;
|
|
2405
|
+
},
|
|
2406
|
+
fromJSON(object) {
|
|
2407
|
+
return applyEndpointSpec_VolumeMount_S3ConfigCustom({
|
|
2408
|
+
$type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config",
|
|
2409
|
+
endpoint: (0, index_1.isSet)(object.endpoint ?? object.endpoint)
|
|
2410
|
+
? String(object.endpoint ?? object.endpoint)
|
|
2411
|
+
: "",
|
|
2412
|
+
region: (0, index_1.isSet)(object.region ?? object.region)
|
|
2413
|
+
? String(object.region ?? object.region)
|
|
2414
|
+
: "",
|
|
2415
|
+
auth: (() => {
|
|
2416
|
+
if ((0, index_1.isSet)(object.credentials) || (0, index_1.isSet)(object.credentials)) {
|
|
2417
|
+
return {
|
|
2418
|
+
$case: "credentials",
|
|
2419
|
+
credentials: exports.EndpointSpec_VolumeMount_S3Config_S3Credentials.fromJSON(object.credentials ?? object.credentials)
|
|
2420
|
+
};
|
|
2421
|
+
}
|
|
2422
|
+
return undefined;
|
|
2423
|
+
})(),
|
|
2424
|
+
});
|
|
2425
|
+
},
|
|
2426
|
+
toJSON(message, use = "json") {
|
|
2427
|
+
const obj = {};
|
|
2428
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2429
|
+
if (message.endpoint !== "") {
|
|
2430
|
+
obj[pick("endpoint", "endpoint")] = message.endpoint;
|
|
2431
|
+
}
|
|
2432
|
+
if (message.region !== "") {
|
|
2433
|
+
obj[pick("region", "region")] = message.region;
|
|
2434
|
+
}
|
|
2435
|
+
switch (message.auth?.$case) {
|
|
2436
|
+
case "credentials": {
|
|
2437
|
+
obj[pick("credentials", "credentials")] = exports.EndpointSpec_VolumeMount_S3Config_S3Credentials.toJSON(message.auth.credentials, use);
|
|
2438
|
+
break;
|
|
2439
|
+
}
|
|
2440
|
+
default: break;
|
|
2441
|
+
}
|
|
2442
|
+
return obj;
|
|
2443
|
+
},
|
|
2444
|
+
create(base) {
|
|
2445
|
+
return exports.EndpointSpec_VolumeMount_S3Config.fromPartial(base ?? {});
|
|
2446
|
+
},
|
|
2447
|
+
fromPartial(object) {
|
|
2448
|
+
const message = createBaseEndpointSpec_VolumeMount_S3Config();
|
|
2449
|
+
message.endpoint = (object.endpoint !== undefined && object.endpoint !== null)
|
|
2450
|
+
? object.endpoint
|
|
2451
|
+
: "";
|
|
2452
|
+
message.region = (object.region !== undefined && object.region !== null)
|
|
2453
|
+
? object.region
|
|
2454
|
+
: "";
|
|
2455
|
+
switch (object.auth?.$case) {
|
|
2456
|
+
case "credentials": {
|
|
2457
|
+
if (object.auth.credentials !== undefined && object.auth.credentials !== null) {
|
|
2458
|
+
message.auth = {
|
|
2459
|
+
$case: "credentials",
|
|
2460
|
+
credentials: exports.EndpointSpec_VolumeMount_S3Config_S3Credentials.fromPartial(object.auth.credentials),
|
|
2461
|
+
};
|
|
2462
|
+
}
|
|
2463
|
+
break;
|
|
2464
|
+
}
|
|
2465
|
+
default: break;
|
|
2466
|
+
}
|
|
2467
|
+
return message;
|
|
2468
|
+
},
|
|
2469
|
+
};
|
|
2470
|
+
protobuf_1.protoRegistry.registerMessage(exports.EndpointSpec_VolumeMount_S3Config);
|
|
2471
|
+
function EndpointSpec_VolumeMount_S3ConfigCustomInspect() {
|
|
2472
|
+
const parts = [];
|
|
2473
|
+
if (this.endpoint !== "")
|
|
2474
|
+
parts.push("endpoint" + "=" + (0, util_1.inspect)(this.endpoint));
|
|
2475
|
+
if (this.region !== "")
|
|
2476
|
+
parts.push("region" + "=" + (0, util_1.inspect)(this.region));
|
|
2477
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2478
|
+
}
|
|
2479
|
+
function EndpointSpec_VolumeMount_S3ConfigCustomJson() {
|
|
2480
|
+
const obj = {
|
|
2481
|
+
type: this.$type,
|
|
2482
|
+
};
|
|
2483
|
+
if (this.endpoint !== "")
|
|
2484
|
+
obj.endpoint = (0, logging_1.inspectJson)(this.endpoint);
|
|
2485
|
+
if (this.region !== "")
|
|
2486
|
+
obj.region = (0, logging_1.inspectJson)(this.region);
|
|
2487
|
+
return obj;
|
|
2488
|
+
}
|
|
2489
|
+
function applyEndpointSpec_VolumeMount_S3ConfigCustom(message) {
|
|
2490
|
+
message[logging_1.custom] = EndpointSpec_VolumeMount_S3ConfigCustomInspect;
|
|
2491
|
+
message[logging_1.customJson] = EndpointSpec_VolumeMount_S3ConfigCustomJson;
|
|
2492
|
+
return message;
|
|
2493
|
+
}
|
|
2494
|
+
function createBaseEndpointSpec_VolumeMount_S3Config() {
|
|
2495
|
+
const message = {
|
|
2496
|
+
$type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config",
|
|
2497
|
+
endpoint: "",
|
|
2498
|
+
region: "",
|
|
2499
|
+
auth: undefined,
|
|
2500
|
+
};
|
|
2501
|
+
return applyEndpointSpec_VolumeMount_S3ConfigCustom(message);
|
|
2502
|
+
}
|
|
2503
|
+
exports.EndpointSpec_VolumeMount_S3Config_S3Credentials = {
|
|
2504
|
+
$type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config.S3Credentials",
|
|
2505
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
2506
|
+
if (message.accessKeyId !== "") {
|
|
2507
|
+
writer.uint32(10).string(message.accessKeyId);
|
|
2508
|
+
}
|
|
2509
|
+
if (message.secretAccessKey !== "") {
|
|
2510
|
+
writer.uint32(18).string(message.secretAccessKey);
|
|
2511
|
+
}
|
|
2512
|
+
if (message.sessionToken !== "") {
|
|
2513
|
+
writer.uint32(26).string(message.sessionToken);
|
|
2514
|
+
}
|
|
2515
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
2516
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
2517
|
+
}
|
|
2518
|
+
return writer;
|
|
2519
|
+
},
|
|
2520
|
+
decode(input, length) {
|
|
2521
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
2522
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2523
|
+
const message = createBaseEndpointSpec_VolumeMount_S3Config_S3Credentials();
|
|
2524
|
+
let writer = undefined;
|
|
2525
|
+
while (reader.pos < end) {
|
|
2526
|
+
const tag = reader.uint32();
|
|
2527
|
+
switch (tag >>> 3) {
|
|
2528
|
+
case 1: {
|
|
2529
|
+
if (tag !== 10)
|
|
2530
|
+
break;
|
|
2531
|
+
message.accessKeyId = reader.string();
|
|
2532
|
+
continue;
|
|
2533
|
+
}
|
|
2534
|
+
case 2: {
|
|
2535
|
+
if (tag !== 18)
|
|
2536
|
+
break;
|
|
2537
|
+
message.secretAccessKey = reader.string();
|
|
2538
|
+
continue;
|
|
2539
|
+
}
|
|
2540
|
+
case 3: {
|
|
2541
|
+
if (tag !== 26)
|
|
2542
|
+
break;
|
|
2543
|
+
message.sessionToken = reader.string();
|
|
2544
|
+
continue;
|
|
2545
|
+
}
|
|
2546
|
+
default:
|
|
2547
|
+
break;
|
|
2548
|
+
}
|
|
2549
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2550
|
+
break;
|
|
2551
|
+
}
|
|
2552
|
+
{
|
|
2553
|
+
if (!writer)
|
|
2554
|
+
writer = new index_1.BinaryWriter();
|
|
2555
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
2556
|
+
writer.uint32(tag).raw(skipped);
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
if (writer) {
|
|
2560
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
2561
|
+
}
|
|
2562
|
+
return message;
|
|
2563
|
+
},
|
|
2564
|
+
fromJSON(object) {
|
|
2565
|
+
return applyEndpointSpec_VolumeMount_S3Config_S3CredentialsCustom({
|
|
2566
|
+
$type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config.S3Credentials",
|
|
2567
|
+
accessKeyId: (0, index_1.isSet)(object.accessKeyId ?? object.access_key_id)
|
|
2568
|
+
? String(object.accessKeyId ?? object.access_key_id)
|
|
2569
|
+
: "",
|
|
2570
|
+
secretAccessKey: (0, index_1.isSet)(object.secretAccessKey ?? object.secret_access_key)
|
|
2571
|
+
? String(object.secretAccessKey ?? object.secret_access_key)
|
|
2572
|
+
: "",
|
|
2573
|
+
sessionToken: (0, index_1.isSet)(object.sessionToken ?? object.session_token)
|
|
2574
|
+
? String(object.sessionToken ?? object.session_token)
|
|
2575
|
+
: "",
|
|
2576
|
+
});
|
|
2577
|
+
},
|
|
2578
|
+
toJSON(message, use = "json") {
|
|
2579
|
+
const obj = {};
|
|
2580
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
2581
|
+
if (message.accessKeyId !== "") {
|
|
2582
|
+
obj[pick("accessKeyId", "access_key_id")] = message.accessKeyId;
|
|
2583
|
+
}
|
|
2584
|
+
if (message.secretAccessKey !== "") {
|
|
2585
|
+
obj[pick("secretAccessKey", "secret_access_key")] = message.secretAccessKey;
|
|
2586
|
+
}
|
|
2587
|
+
if (message.sessionToken !== "") {
|
|
2588
|
+
obj[pick("sessionToken", "session_token")] = message.sessionToken;
|
|
2589
|
+
}
|
|
2590
|
+
return obj;
|
|
2591
|
+
},
|
|
2592
|
+
create(base) {
|
|
2593
|
+
return exports.EndpointSpec_VolumeMount_S3Config_S3Credentials.fromPartial(base ?? {});
|
|
2594
|
+
},
|
|
2595
|
+
fromPartial(object) {
|
|
2596
|
+
const message = createBaseEndpointSpec_VolumeMount_S3Config_S3Credentials();
|
|
2597
|
+
message.accessKeyId = (object.accessKeyId !== undefined && object.accessKeyId !== null)
|
|
2598
|
+
? object.accessKeyId
|
|
2599
|
+
: "";
|
|
2600
|
+
message.secretAccessKey = (object.secretAccessKey !== undefined && object.secretAccessKey !== null)
|
|
2601
|
+
? object.secretAccessKey
|
|
2602
|
+
: "";
|
|
2603
|
+
message.sessionToken = (object.sessionToken !== undefined && object.sessionToken !== null)
|
|
2604
|
+
? object.sessionToken
|
|
2605
|
+
: "";
|
|
2606
|
+
return message;
|
|
2607
|
+
},
|
|
2608
|
+
};
|
|
2609
|
+
protobuf_1.protoRegistry.registerMessage(exports.EndpointSpec_VolumeMount_S3Config_S3Credentials);
|
|
2610
|
+
function EndpointSpec_VolumeMount_S3Config_S3CredentialsCustomInspect() {
|
|
2611
|
+
const parts = [];
|
|
2612
|
+
if (this.accessKeyId !== "")
|
|
2613
|
+
parts.push("accessKeyId" + "=***");
|
|
2614
|
+
if (this.secretAccessKey !== "")
|
|
2615
|
+
parts.push("secretAccessKey" + "=***");
|
|
2616
|
+
if (this.sessionToken !== "")
|
|
2617
|
+
parts.push("sessionToken" + "=***");
|
|
2618
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
2619
|
+
}
|
|
2620
|
+
function EndpointSpec_VolumeMount_S3Config_S3CredentialsCustomJson() {
|
|
2621
|
+
const obj = {
|
|
2622
|
+
type: this.$type,
|
|
2623
|
+
};
|
|
2624
|
+
if (this.accessKeyId !== "")
|
|
2625
|
+
obj.accessKeyId = "***";
|
|
2626
|
+
if (this.secretAccessKey !== "")
|
|
2627
|
+
obj.secretAccessKey = "***";
|
|
2628
|
+
if (this.sessionToken !== "")
|
|
2629
|
+
obj.sessionToken = "***";
|
|
2630
|
+
return obj;
|
|
2631
|
+
}
|
|
2632
|
+
function applyEndpointSpec_VolumeMount_S3Config_S3CredentialsCustom(message) {
|
|
2633
|
+
message[logging_1.custom] = EndpointSpec_VolumeMount_S3Config_S3CredentialsCustomInspect;
|
|
2634
|
+
message[logging_1.customJson] = EndpointSpec_VolumeMount_S3Config_S3CredentialsCustomJson;
|
|
2635
|
+
return message;
|
|
2636
|
+
}
|
|
2637
|
+
function createBaseEndpointSpec_VolumeMount_S3Config_S3Credentials() {
|
|
2638
|
+
const message = {
|
|
2639
|
+
$type: "nebius.ai.v1.EndpointSpec.VolumeMount.S3Config.S3Credentials",
|
|
2640
|
+
accessKeyId: "",
|
|
2641
|
+
secretAccessKey: "",
|
|
2642
|
+
sessionToken: "",
|
|
2643
|
+
};
|
|
2644
|
+
return applyEndpointSpec_VolumeMount_S3Config_S3CredentialsCustom(message);
|
|
2645
|
+
}
|
|
2294
2646
|
exports.EndpointSpec_DiskSpec = {
|
|
2295
2647
|
$type: "nebius.ai.v1.EndpointSpec.DiskSpec",
|
|
2296
2648
|
encode(message, writer = new index_1.BinaryWriter()) {
|
|
@@ -5112,6 +5464,12 @@ exports.JobSpec_VolumeMount = {
|
|
|
5112
5464
|
if ((message.mode ?? exports.JobSpec_VolumeMount_Mode.MODE_UNSPECIFIED) !== exports.JobSpec_VolumeMount_Mode.MODE_UNSPECIFIED) {
|
|
5113
5465
|
exports.JobSpec_VolumeMount_Mode.encodeField(writer, 4, message.mode);
|
|
5114
5466
|
}
|
|
5467
|
+
if (message.sourceConfig?.$case === undefined) { /* noop */ }
|
|
5468
|
+
else if (message.sourceConfig?.$case === "s3Config") {
|
|
5469
|
+
const w = writer.uint32(42).fork();
|
|
5470
|
+
exports.JobSpec_VolumeMount_S3Config.encode(message.sourceConfig.s3Config, w);
|
|
5471
|
+
w.join();
|
|
5472
|
+
}
|
|
5115
5473
|
if (message[index_1.unknownFieldsSymbol]) {
|
|
5116
5474
|
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
5117
5475
|
}
|
|
@@ -5149,6 +5507,15 @@ exports.JobSpec_VolumeMount = {
|
|
|
5149
5507
|
message.mode = exports.JobSpec_VolumeMount_Mode.fromNumber(reader.int32());
|
|
5150
5508
|
continue;
|
|
5151
5509
|
}
|
|
5510
|
+
case 5: {
|
|
5511
|
+
if (tag !== 42)
|
|
5512
|
+
break;
|
|
5513
|
+
message.sourceConfig = {
|
|
5514
|
+
$case: "s3Config",
|
|
5515
|
+
s3Config: exports.JobSpec_VolumeMount_S3Config.decode(reader, reader.uint32())
|
|
5516
|
+
};
|
|
5517
|
+
continue;
|
|
5518
|
+
}
|
|
5152
5519
|
default:
|
|
5153
5520
|
break;
|
|
5154
5521
|
}
|
|
@@ -5182,6 +5549,15 @@ exports.JobSpec_VolumeMount = {
|
|
|
5182
5549
|
mode: (0, index_1.isSet)(object.mode ?? object.mode)
|
|
5183
5550
|
? exports.JobSpec_VolumeMount_Mode.fromJSON(object.mode ?? object.mode)
|
|
5184
5551
|
: exports.JobSpec_VolumeMount_Mode.MODE_UNSPECIFIED,
|
|
5552
|
+
sourceConfig: (() => {
|
|
5553
|
+
if ((0, index_1.isSet)(object.s3Config) || (0, index_1.isSet)(object.s3_config)) {
|
|
5554
|
+
return {
|
|
5555
|
+
$case: "s3Config",
|
|
5556
|
+
s3Config: exports.JobSpec_VolumeMount_S3Config.fromJSON(object.s3Config ?? object.s3_config)
|
|
5557
|
+
};
|
|
5558
|
+
}
|
|
5559
|
+
return undefined;
|
|
5560
|
+
})(),
|
|
5185
5561
|
});
|
|
5186
5562
|
},
|
|
5187
5563
|
toJSON(message, use = "json") {
|
|
@@ -5199,6 +5575,13 @@ exports.JobSpec_VolumeMount = {
|
|
|
5199
5575
|
if ((message.mode ?? exports.JobSpec_VolumeMount_Mode.MODE_UNSPECIFIED) !== exports.JobSpec_VolumeMount_Mode.MODE_UNSPECIFIED) {
|
|
5200
5576
|
obj[pick("mode", "mode")] = exports.JobSpec_VolumeMount_Mode.toJSON(message.mode);
|
|
5201
5577
|
}
|
|
5578
|
+
switch (message.sourceConfig?.$case) {
|
|
5579
|
+
case "s3Config": {
|
|
5580
|
+
obj[pick("s3Config", "s3_config")] = exports.JobSpec_VolumeMount_S3Config.toJSON(message.sourceConfig.s3Config, use);
|
|
5581
|
+
break;
|
|
5582
|
+
}
|
|
5583
|
+
default: break;
|
|
5584
|
+
}
|
|
5202
5585
|
return obj;
|
|
5203
5586
|
},
|
|
5204
5587
|
create(base) {
|
|
@@ -5218,6 +5601,18 @@ exports.JobSpec_VolumeMount = {
|
|
|
5218
5601
|
message.mode = (object.mode !== undefined && object.mode !== null)
|
|
5219
5602
|
? exports.JobSpec_VolumeMount_Mode.fromJSON(object.mode.name)
|
|
5220
5603
|
: exports.JobSpec_VolumeMount_Mode.MODE_UNSPECIFIED;
|
|
5604
|
+
switch (object.sourceConfig?.$case) {
|
|
5605
|
+
case "s3Config": {
|
|
5606
|
+
if (object.sourceConfig.s3Config !== undefined && object.sourceConfig.s3Config !== null) {
|
|
5607
|
+
message.sourceConfig = {
|
|
5608
|
+
$case: "s3Config",
|
|
5609
|
+
s3Config: exports.JobSpec_VolumeMount_S3Config.fromPartial(object.sourceConfig.s3Config),
|
|
5610
|
+
};
|
|
5611
|
+
}
|
|
5612
|
+
break;
|
|
5613
|
+
}
|
|
5614
|
+
default: break;
|
|
5615
|
+
}
|
|
5221
5616
|
return message;
|
|
5222
5617
|
},
|
|
5223
5618
|
};
|
|
@@ -5260,9 +5655,317 @@ function createBaseJobSpec_VolumeMount() {
|
|
|
5260
5655
|
sourcePath: "",
|
|
5261
5656
|
containerPath: "",
|
|
5262
5657
|
mode: exports.JobSpec_VolumeMount_Mode.MODE_UNSPECIFIED,
|
|
5658
|
+
sourceConfig: undefined,
|
|
5263
5659
|
};
|
|
5264
5660
|
return applyJobSpec_VolumeMountCustom(message);
|
|
5265
5661
|
}
|
|
5662
|
+
exports.JobSpec_VolumeMount_S3Config = {
|
|
5663
|
+
$type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config",
|
|
5664
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
5665
|
+
if (message.endpoint !== "") {
|
|
5666
|
+
writer.uint32(10).string(message.endpoint);
|
|
5667
|
+
}
|
|
5668
|
+
if (message.region !== "") {
|
|
5669
|
+
writer.uint32(26).string(message.region);
|
|
5670
|
+
}
|
|
5671
|
+
if (message.auth?.$case === undefined) { /* noop */ }
|
|
5672
|
+
else if (message.auth?.$case === "credentials") {
|
|
5673
|
+
const w = writer.uint32(34).fork();
|
|
5674
|
+
exports.JobSpec_VolumeMount_S3Config_S3Credentials.encode(message.auth.credentials, w);
|
|
5675
|
+
w.join();
|
|
5676
|
+
}
|
|
5677
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
5678
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
5679
|
+
}
|
|
5680
|
+
return writer;
|
|
5681
|
+
},
|
|
5682
|
+
decode(input, length) {
|
|
5683
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
5684
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5685
|
+
const message = createBaseJobSpec_VolumeMount_S3Config();
|
|
5686
|
+
let writer = undefined;
|
|
5687
|
+
while (reader.pos < end) {
|
|
5688
|
+
const tag = reader.uint32();
|
|
5689
|
+
switch (tag >>> 3) {
|
|
5690
|
+
case 1: {
|
|
5691
|
+
if (tag !== 10)
|
|
5692
|
+
break;
|
|
5693
|
+
message.endpoint = reader.string();
|
|
5694
|
+
continue;
|
|
5695
|
+
}
|
|
5696
|
+
case 3: {
|
|
5697
|
+
if (tag !== 26)
|
|
5698
|
+
break;
|
|
5699
|
+
message.region = reader.string();
|
|
5700
|
+
continue;
|
|
5701
|
+
}
|
|
5702
|
+
case 4: {
|
|
5703
|
+
if (tag !== 34)
|
|
5704
|
+
break;
|
|
5705
|
+
message.auth = {
|
|
5706
|
+
$case: "credentials",
|
|
5707
|
+
credentials: exports.JobSpec_VolumeMount_S3Config_S3Credentials.decode(reader, reader.uint32())
|
|
5708
|
+
};
|
|
5709
|
+
continue;
|
|
5710
|
+
}
|
|
5711
|
+
default:
|
|
5712
|
+
break;
|
|
5713
|
+
}
|
|
5714
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5715
|
+
break;
|
|
5716
|
+
}
|
|
5717
|
+
{
|
|
5718
|
+
if (!writer)
|
|
5719
|
+
writer = new index_1.BinaryWriter();
|
|
5720
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
5721
|
+
writer.uint32(tag).raw(skipped);
|
|
5722
|
+
}
|
|
5723
|
+
}
|
|
5724
|
+
if (writer) {
|
|
5725
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
5726
|
+
}
|
|
5727
|
+
return message;
|
|
5728
|
+
},
|
|
5729
|
+
fromJSON(object) {
|
|
5730
|
+
return applyJobSpec_VolumeMount_S3ConfigCustom({
|
|
5731
|
+
$type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config",
|
|
5732
|
+
endpoint: (0, index_1.isSet)(object.endpoint ?? object.endpoint)
|
|
5733
|
+
? String(object.endpoint ?? object.endpoint)
|
|
5734
|
+
: "",
|
|
5735
|
+
region: (0, index_1.isSet)(object.region ?? object.region)
|
|
5736
|
+
? String(object.region ?? object.region)
|
|
5737
|
+
: "",
|
|
5738
|
+
auth: (() => {
|
|
5739
|
+
if ((0, index_1.isSet)(object.credentials) || (0, index_1.isSet)(object.credentials)) {
|
|
5740
|
+
return {
|
|
5741
|
+
$case: "credentials",
|
|
5742
|
+
credentials: exports.JobSpec_VolumeMount_S3Config_S3Credentials.fromJSON(object.credentials ?? object.credentials)
|
|
5743
|
+
};
|
|
5744
|
+
}
|
|
5745
|
+
return undefined;
|
|
5746
|
+
})(),
|
|
5747
|
+
});
|
|
5748
|
+
},
|
|
5749
|
+
toJSON(message, use = "json") {
|
|
5750
|
+
const obj = {};
|
|
5751
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
5752
|
+
if (message.endpoint !== "") {
|
|
5753
|
+
obj[pick("endpoint", "endpoint")] = message.endpoint;
|
|
5754
|
+
}
|
|
5755
|
+
if (message.region !== "") {
|
|
5756
|
+
obj[pick("region", "region")] = message.region;
|
|
5757
|
+
}
|
|
5758
|
+
switch (message.auth?.$case) {
|
|
5759
|
+
case "credentials": {
|
|
5760
|
+
obj[pick("credentials", "credentials")] = exports.JobSpec_VolumeMount_S3Config_S3Credentials.toJSON(message.auth.credentials, use);
|
|
5761
|
+
break;
|
|
5762
|
+
}
|
|
5763
|
+
default: break;
|
|
5764
|
+
}
|
|
5765
|
+
return obj;
|
|
5766
|
+
},
|
|
5767
|
+
create(base) {
|
|
5768
|
+
return exports.JobSpec_VolumeMount_S3Config.fromPartial(base ?? {});
|
|
5769
|
+
},
|
|
5770
|
+
fromPartial(object) {
|
|
5771
|
+
const message = createBaseJobSpec_VolumeMount_S3Config();
|
|
5772
|
+
message.endpoint = (object.endpoint !== undefined && object.endpoint !== null)
|
|
5773
|
+
? object.endpoint
|
|
5774
|
+
: "";
|
|
5775
|
+
message.region = (object.region !== undefined && object.region !== null)
|
|
5776
|
+
? object.region
|
|
5777
|
+
: "";
|
|
5778
|
+
switch (object.auth?.$case) {
|
|
5779
|
+
case "credentials": {
|
|
5780
|
+
if (object.auth.credentials !== undefined && object.auth.credentials !== null) {
|
|
5781
|
+
message.auth = {
|
|
5782
|
+
$case: "credentials",
|
|
5783
|
+
credentials: exports.JobSpec_VolumeMount_S3Config_S3Credentials.fromPartial(object.auth.credentials),
|
|
5784
|
+
};
|
|
5785
|
+
}
|
|
5786
|
+
break;
|
|
5787
|
+
}
|
|
5788
|
+
default: break;
|
|
5789
|
+
}
|
|
5790
|
+
return message;
|
|
5791
|
+
},
|
|
5792
|
+
};
|
|
5793
|
+
protobuf_1.protoRegistry.registerMessage(exports.JobSpec_VolumeMount_S3Config);
|
|
5794
|
+
function JobSpec_VolumeMount_S3ConfigCustomInspect() {
|
|
5795
|
+
const parts = [];
|
|
5796
|
+
if (this.endpoint !== "")
|
|
5797
|
+
parts.push("endpoint" + "=" + (0, util_1.inspect)(this.endpoint));
|
|
5798
|
+
if (this.region !== "")
|
|
5799
|
+
parts.push("region" + "=" + (0, util_1.inspect)(this.region));
|
|
5800
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
5801
|
+
}
|
|
5802
|
+
function JobSpec_VolumeMount_S3ConfigCustomJson() {
|
|
5803
|
+
const obj = {
|
|
5804
|
+
type: this.$type,
|
|
5805
|
+
};
|
|
5806
|
+
if (this.endpoint !== "")
|
|
5807
|
+
obj.endpoint = (0, logging_1.inspectJson)(this.endpoint);
|
|
5808
|
+
if (this.region !== "")
|
|
5809
|
+
obj.region = (0, logging_1.inspectJson)(this.region);
|
|
5810
|
+
return obj;
|
|
5811
|
+
}
|
|
5812
|
+
function applyJobSpec_VolumeMount_S3ConfigCustom(message) {
|
|
5813
|
+
message[logging_1.custom] = JobSpec_VolumeMount_S3ConfigCustomInspect;
|
|
5814
|
+
message[logging_1.customJson] = JobSpec_VolumeMount_S3ConfigCustomJson;
|
|
5815
|
+
return message;
|
|
5816
|
+
}
|
|
5817
|
+
function createBaseJobSpec_VolumeMount_S3Config() {
|
|
5818
|
+
const message = {
|
|
5819
|
+
$type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config",
|
|
5820
|
+
endpoint: "",
|
|
5821
|
+
region: "",
|
|
5822
|
+
auth: undefined,
|
|
5823
|
+
};
|
|
5824
|
+
return applyJobSpec_VolumeMount_S3ConfigCustom(message);
|
|
5825
|
+
}
|
|
5826
|
+
exports.JobSpec_VolumeMount_S3Config_S3Credentials = {
|
|
5827
|
+
$type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config.S3Credentials",
|
|
5828
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
5829
|
+
if (message.accessKeyId !== "") {
|
|
5830
|
+
writer.uint32(10).string(message.accessKeyId);
|
|
5831
|
+
}
|
|
5832
|
+
if (message.secretAccessKey !== "") {
|
|
5833
|
+
writer.uint32(18).string(message.secretAccessKey);
|
|
5834
|
+
}
|
|
5835
|
+
if (message.sessionToken !== "") {
|
|
5836
|
+
writer.uint32(26).string(message.sessionToken);
|
|
5837
|
+
}
|
|
5838
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
5839
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
5840
|
+
}
|
|
5841
|
+
return writer;
|
|
5842
|
+
},
|
|
5843
|
+
decode(input, length) {
|
|
5844
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
5845
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5846
|
+
const message = createBaseJobSpec_VolumeMount_S3Config_S3Credentials();
|
|
5847
|
+
let writer = undefined;
|
|
5848
|
+
while (reader.pos < end) {
|
|
5849
|
+
const tag = reader.uint32();
|
|
5850
|
+
switch (tag >>> 3) {
|
|
5851
|
+
case 1: {
|
|
5852
|
+
if (tag !== 10)
|
|
5853
|
+
break;
|
|
5854
|
+
message.accessKeyId = reader.string();
|
|
5855
|
+
continue;
|
|
5856
|
+
}
|
|
5857
|
+
case 2: {
|
|
5858
|
+
if (tag !== 18)
|
|
5859
|
+
break;
|
|
5860
|
+
message.secretAccessKey = reader.string();
|
|
5861
|
+
continue;
|
|
5862
|
+
}
|
|
5863
|
+
case 3: {
|
|
5864
|
+
if (tag !== 26)
|
|
5865
|
+
break;
|
|
5866
|
+
message.sessionToken = reader.string();
|
|
5867
|
+
continue;
|
|
5868
|
+
}
|
|
5869
|
+
default:
|
|
5870
|
+
break;
|
|
5871
|
+
}
|
|
5872
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5873
|
+
break;
|
|
5874
|
+
}
|
|
5875
|
+
{
|
|
5876
|
+
if (!writer)
|
|
5877
|
+
writer = new index_1.BinaryWriter();
|
|
5878
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
5879
|
+
writer.uint32(tag).raw(skipped);
|
|
5880
|
+
}
|
|
5881
|
+
}
|
|
5882
|
+
if (writer) {
|
|
5883
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
5884
|
+
}
|
|
5885
|
+
return message;
|
|
5886
|
+
},
|
|
5887
|
+
fromJSON(object) {
|
|
5888
|
+
return applyJobSpec_VolumeMount_S3Config_S3CredentialsCustom({
|
|
5889
|
+
$type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config.S3Credentials",
|
|
5890
|
+
accessKeyId: (0, index_1.isSet)(object.accessKeyId ?? object.access_key_id)
|
|
5891
|
+
? String(object.accessKeyId ?? object.access_key_id)
|
|
5892
|
+
: "",
|
|
5893
|
+
secretAccessKey: (0, index_1.isSet)(object.secretAccessKey ?? object.secret_access_key)
|
|
5894
|
+
? String(object.secretAccessKey ?? object.secret_access_key)
|
|
5895
|
+
: "",
|
|
5896
|
+
sessionToken: (0, index_1.isSet)(object.sessionToken ?? object.session_token)
|
|
5897
|
+
? String(object.sessionToken ?? object.session_token)
|
|
5898
|
+
: "",
|
|
5899
|
+
});
|
|
5900
|
+
},
|
|
5901
|
+
toJSON(message, use = "json") {
|
|
5902
|
+
const obj = {};
|
|
5903
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
5904
|
+
if (message.accessKeyId !== "") {
|
|
5905
|
+
obj[pick("accessKeyId", "access_key_id")] = message.accessKeyId;
|
|
5906
|
+
}
|
|
5907
|
+
if (message.secretAccessKey !== "") {
|
|
5908
|
+
obj[pick("secretAccessKey", "secret_access_key")] = message.secretAccessKey;
|
|
5909
|
+
}
|
|
5910
|
+
if (message.sessionToken !== "") {
|
|
5911
|
+
obj[pick("sessionToken", "session_token")] = message.sessionToken;
|
|
5912
|
+
}
|
|
5913
|
+
return obj;
|
|
5914
|
+
},
|
|
5915
|
+
create(base) {
|
|
5916
|
+
return exports.JobSpec_VolumeMount_S3Config_S3Credentials.fromPartial(base ?? {});
|
|
5917
|
+
},
|
|
5918
|
+
fromPartial(object) {
|
|
5919
|
+
const message = createBaseJobSpec_VolumeMount_S3Config_S3Credentials();
|
|
5920
|
+
message.accessKeyId = (object.accessKeyId !== undefined && object.accessKeyId !== null)
|
|
5921
|
+
? object.accessKeyId
|
|
5922
|
+
: "";
|
|
5923
|
+
message.secretAccessKey = (object.secretAccessKey !== undefined && object.secretAccessKey !== null)
|
|
5924
|
+
? object.secretAccessKey
|
|
5925
|
+
: "";
|
|
5926
|
+
message.sessionToken = (object.sessionToken !== undefined && object.sessionToken !== null)
|
|
5927
|
+
? object.sessionToken
|
|
5928
|
+
: "";
|
|
5929
|
+
return message;
|
|
5930
|
+
},
|
|
5931
|
+
};
|
|
5932
|
+
protobuf_1.protoRegistry.registerMessage(exports.JobSpec_VolumeMount_S3Config_S3Credentials);
|
|
5933
|
+
function JobSpec_VolumeMount_S3Config_S3CredentialsCustomInspect() {
|
|
5934
|
+
const parts = [];
|
|
5935
|
+
if (this.accessKeyId !== "")
|
|
5936
|
+
parts.push("accessKeyId" + "=***");
|
|
5937
|
+
if (this.secretAccessKey !== "")
|
|
5938
|
+
parts.push("secretAccessKey" + "=***");
|
|
5939
|
+
if (this.sessionToken !== "")
|
|
5940
|
+
parts.push("sessionToken" + "=***");
|
|
5941
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
5942
|
+
}
|
|
5943
|
+
function JobSpec_VolumeMount_S3Config_S3CredentialsCustomJson() {
|
|
5944
|
+
const obj = {
|
|
5945
|
+
type: this.$type,
|
|
5946
|
+
};
|
|
5947
|
+
if (this.accessKeyId !== "")
|
|
5948
|
+
obj.accessKeyId = "***";
|
|
5949
|
+
if (this.secretAccessKey !== "")
|
|
5950
|
+
obj.secretAccessKey = "***";
|
|
5951
|
+
if (this.sessionToken !== "")
|
|
5952
|
+
obj.sessionToken = "***";
|
|
5953
|
+
return obj;
|
|
5954
|
+
}
|
|
5955
|
+
function applyJobSpec_VolumeMount_S3Config_S3CredentialsCustom(message) {
|
|
5956
|
+
message[logging_1.custom] = JobSpec_VolumeMount_S3Config_S3CredentialsCustomInspect;
|
|
5957
|
+
message[logging_1.customJson] = JobSpec_VolumeMount_S3Config_S3CredentialsCustomJson;
|
|
5958
|
+
return message;
|
|
5959
|
+
}
|
|
5960
|
+
function createBaseJobSpec_VolumeMount_S3Config_S3Credentials() {
|
|
5961
|
+
const message = {
|
|
5962
|
+
$type: "nebius.ai.v1.JobSpec.VolumeMount.S3Config.S3Credentials",
|
|
5963
|
+
accessKeyId: "",
|
|
5964
|
+
secretAccessKey: "",
|
|
5965
|
+
sessionToken: "",
|
|
5966
|
+
};
|
|
5967
|
+
return applyJobSpec_VolumeMount_S3Config_S3CredentialsCustom(message);
|
|
5968
|
+
}
|
|
5266
5969
|
exports.JobSpec_DiskSpec = {
|
|
5267
5970
|
$type: "nebius.ai.v1.JobSpec.DiskSpec",
|
|
5268
5971
|
encode(message, writer = new index_1.BinaryWriter()) {
|