@nebius/js-sdk 0.2.40 → 0.2.42
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 +75 -1
- package/dist/cjs/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/ai/v1/index.js +308 -2
- package/dist/cjs/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.d.ts +6 -0
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.js +24 -0
- package/dist/cjs/api/nebius/vpc/v1alpha1/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 +75 -1
- package/dist/esm/api/nebius/ai/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/ai/v1/index.js +307 -1
- package/dist/esm/api/nebius/ai/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/vpc/v1alpha1/index.d.ts +6 -0
- package/dist/esm/api/nebius/vpc/v1alpha1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/vpc/v1alpha1/index.js +24 -0
- package/dist/esm/api/nebius/vpc/v1alpha1/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
|
@@ -6,7 +6,7 @@ import { custom, customJson, inspectJson } from "../../../../runtime/util/loggin
|
|
|
6
6
|
import { makeGenericClientConstructor } from "@grpc/grpc-js";
|
|
7
7
|
import { Request as SDKRequestClass } from "../../../../runtime/request.js";
|
|
8
8
|
import { Operation as OperationWrapper } from "../../../../runtime/operation.js";
|
|
9
|
-
import { Operation, OperationService, ResourceMetadata } from "../../common/v1/index.js";
|
|
9
|
+
import { Operation, OperationService, ResourceMetadata, ServiceError } from "../../common/v1/index.js";
|
|
10
10
|
import { DiskSpec_DiskType, InstanceStatus_InstanceState } from "../../compute/v1/index.js";
|
|
11
11
|
const __deprecatedWarned = new Set();
|
|
12
12
|
const GetEndpointRequest_MESSAGE_DESCRIPTOR = {
|
|
@@ -755,6 +755,109 @@ function createBaseStartEndpointRequest() {
|
|
|
755
755
|
};
|
|
756
756
|
return applyStartEndpointRequestCustom(message);
|
|
757
757
|
}
|
|
758
|
+
const RestartEndpointRequest_MESSAGE_DESCRIPTOR = {
|
|
759
|
+
fields: {
|
|
760
|
+
"id": { pbName: "id", scalarType: 9 },
|
|
761
|
+
},
|
|
762
|
+
};
|
|
763
|
+
export const RestartEndpointRequest = {
|
|
764
|
+
$type: "nebius.ai.v1.RestartEndpointRequest",
|
|
765
|
+
$descriptor: RestartEndpointRequest_MESSAGE_DESCRIPTOR,
|
|
766
|
+
encode(message, writer = new BinaryWriter()) {
|
|
767
|
+
if (message.id !== "") {
|
|
768
|
+
writer.uint32(10).string(message.id);
|
|
769
|
+
}
|
|
770
|
+
if (message[unknownFieldsSymbol]) {
|
|
771
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
772
|
+
}
|
|
773
|
+
return writer;
|
|
774
|
+
},
|
|
775
|
+
decode(input, length) {
|
|
776
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
777
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
778
|
+
const message = createBaseRestartEndpointRequest();
|
|
779
|
+
let writer = undefined;
|
|
780
|
+
while (reader.pos < end) {
|
|
781
|
+
const tag = reader.uint32();
|
|
782
|
+
switch (tag >>> 3) {
|
|
783
|
+
case 1: {
|
|
784
|
+
if (tag !== 10)
|
|
785
|
+
break;
|
|
786
|
+
message.id = reader.string();
|
|
787
|
+
continue;
|
|
788
|
+
}
|
|
789
|
+
default:
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
792
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
793
|
+
break;
|
|
794
|
+
}
|
|
795
|
+
{
|
|
796
|
+
if (!writer)
|
|
797
|
+
writer = new BinaryWriter();
|
|
798
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
799
|
+
writer.uint32(tag).raw(skipped);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
if (writer) {
|
|
803
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
804
|
+
}
|
|
805
|
+
return message;
|
|
806
|
+
},
|
|
807
|
+
fromJSON(object) {
|
|
808
|
+
return applyRestartEndpointRequestCustom({
|
|
809
|
+
$type: "nebius.ai.v1.RestartEndpointRequest",
|
|
810
|
+
id: isSet(object.id ?? object.id)
|
|
811
|
+
? String(object.id ?? object.id)
|
|
812
|
+
: "",
|
|
813
|
+
});
|
|
814
|
+
},
|
|
815
|
+
toJSON(message, use = "json") {
|
|
816
|
+
const obj = {};
|
|
817
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
818
|
+
if (message.id !== "") {
|
|
819
|
+
obj[pick("id", "id")] = message.id;
|
|
820
|
+
}
|
|
821
|
+
return obj;
|
|
822
|
+
},
|
|
823
|
+
create(base) {
|
|
824
|
+
return RestartEndpointRequest.fromPartial(base ?? {});
|
|
825
|
+
},
|
|
826
|
+
fromPartial(object) {
|
|
827
|
+
const message = createBaseRestartEndpointRequest();
|
|
828
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
829
|
+
? object.id
|
|
830
|
+
: "";
|
|
831
|
+
return message;
|
|
832
|
+
},
|
|
833
|
+
};
|
|
834
|
+
protoRegistry.registerMessage(RestartEndpointRequest);
|
|
835
|
+
function RestartEndpointRequestCustomInspect() {
|
|
836
|
+
const parts = [];
|
|
837
|
+
if (this.id !== "")
|
|
838
|
+
parts.push("id" + "=" + inspect(this.id));
|
|
839
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
840
|
+
}
|
|
841
|
+
function RestartEndpointRequestCustomJson() {
|
|
842
|
+
const obj = {
|
|
843
|
+
type: this.$type,
|
|
844
|
+
};
|
|
845
|
+
if (this.id !== "")
|
|
846
|
+
obj.id = inspectJson(this.id);
|
|
847
|
+
return obj;
|
|
848
|
+
}
|
|
849
|
+
function applyRestartEndpointRequestCustom(message) {
|
|
850
|
+
message[custom] = RestartEndpointRequestCustomInspect;
|
|
851
|
+
message[customJson] = RestartEndpointRequestCustomJson;
|
|
852
|
+
return attachMessageDescriptor(message, RestartEndpointRequest.$descriptor);
|
|
853
|
+
}
|
|
854
|
+
function createBaseRestartEndpointRequest() {
|
|
855
|
+
const message = {
|
|
856
|
+
$type: "nebius.ai.v1.RestartEndpointRequest",
|
|
857
|
+
id: "",
|
|
858
|
+
};
|
|
859
|
+
return applyRestartEndpointRequestCustom(message);
|
|
860
|
+
}
|
|
758
861
|
const StopEndpointRequest_MESSAGE_DESCRIPTOR = {
|
|
759
862
|
fields: {
|
|
760
863
|
"id": { pbName: "id", scalarType: 9 },
|
|
@@ -1052,6 +1155,17 @@ export const EndpointServiceServiceDescription = {
|
|
|
1052
1155
|
responseSerialize: (value) => Buffer.from(Operation.encode(value).finish()),
|
|
1053
1156
|
responseDeserialize: (value) => Operation.decode(value),
|
|
1054
1157
|
},
|
|
1158
|
+
restart: {
|
|
1159
|
+
path: "/nebius.ai.v1.EndpointService/Restart",
|
|
1160
|
+
requestStream: false,
|
|
1161
|
+
responseStream: false,
|
|
1162
|
+
requestSerialize: (value) => Buffer.from(RestartEndpointRequest.encode(value).finish()),
|
|
1163
|
+
requestDescriptor: () => RestartEndpointRequest.$descriptor,
|
|
1164
|
+
sendResetMask: false,
|
|
1165
|
+
requestDeserialize: (value) => RestartEndpointRequest.decode(value),
|
|
1166
|
+
responseSerialize: (value) => Buffer.from(Operation.encode(value).finish()),
|
|
1167
|
+
responseDeserialize: (value) => Operation.decode(value),
|
|
1168
|
+
},
|
|
1055
1169
|
stop: {
|
|
1056
1170
|
path: "/nebius.ai.v1.EndpointService/Stop",
|
|
1057
1171
|
requestStream: false,
|
|
@@ -1137,6 +1251,17 @@ export class EndpointService {
|
|
|
1137
1251
|
};
|
|
1138
1252
|
return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
1139
1253
|
}
|
|
1254
|
+
restart(...args) {
|
|
1255
|
+
const spec = this.spec.restart;
|
|
1256
|
+
const request = args[0];
|
|
1257
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
1258
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
1259
|
+
const deserialize = (value) => {
|
|
1260
|
+
const resp = spec.responseDeserialize(value);
|
|
1261
|
+
return new OperationWrapper(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
1262
|
+
};
|
|
1263
|
+
return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
1264
|
+
}
|
|
1140
1265
|
stop(...args) {
|
|
1141
1266
|
const spec = this.spec.stop;
|
|
1142
1267
|
const request = args[0];
|
|
@@ -3768,6 +3893,7 @@ const EndpointStateDetails_MESSAGE_DESCRIPTOR = {
|
|
|
3768
3893
|
fields: {
|
|
3769
3894
|
"code": { pbName: "code", scalarType: 9 },
|
|
3770
3895
|
"message": { pbName: "message", scalarType: 9 },
|
|
3896
|
+
"serviceError": { pbName: "service_error", message: () => ServiceError.$descriptor },
|
|
3771
3897
|
},
|
|
3772
3898
|
};
|
|
3773
3899
|
export const EndpointStateDetails = {
|
|
@@ -3780,6 +3906,11 @@ export const EndpointStateDetails = {
|
|
|
3780
3906
|
if (message.message !== "") {
|
|
3781
3907
|
writer.uint32(18).string(message.message);
|
|
3782
3908
|
}
|
|
3909
|
+
if (message.serviceError !== undefined) {
|
|
3910
|
+
const w = writer.uint32(26).fork();
|
|
3911
|
+
ServiceError.encode(message.serviceError, w);
|
|
3912
|
+
w.join();
|
|
3913
|
+
}
|
|
3783
3914
|
if (message[unknownFieldsSymbol]) {
|
|
3784
3915
|
writer.raw(message[unknownFieldsSymbol]);
|
|
3785
3916
|
}
|
|
@@ -3805,6 +3936,12 @@ export const EndpointStateDetails = {
|
|
|
3805
3936
|
message.message = reader.string();
|
|
3806
3937
|
continue;
|
|
3807
3938
|
}
|
|
3939
|
+
case 3: {
|
|
3940
|
+
if (tag !== 26)
|
|
3941
|
+
break;
|
|
3942
|
+
message.serviceError = ServiceError.decode(reader, reader.uint32());
|
|
3943
|
+
continue;
|
|
3944
|
+
}
|
|
3808
3945
|
default:
|
|
3809
3946
|
break;
|
|
3810
3947
|
}
|
|
@@ -3832,6 +3969,9 @@ export const EndpointStateDetails = {
|
|
|
3832
3969
|
message: isSet(object.message ?? object.message)
|
|
3833
3970
|
? String(object.message ?? object.message)
|
|
3834
3971
|
: "",
|
|
3972
|
+
serviceError: isSet(object.serviceError ?? object.service_error)
|
|
3973
|
+
? ServiceError.fromJSON(object.serviceError ?? object.service_error)
|
|
3974
|
+
: undefined,
|
|
3835
3975
|
});
|
|
3836
3976
|
},
|
|
3837
3977
|
toJSON(message, use = "json") {
|
|
@@ -3843,6 +3983,11 @@ export const EndpointStateDetails = {
|
|
|
3843
3983
|
if (message.message !== "") {
|
|
3844
3984
|
obj[pick("message", "message")] = message.message;
|
|
3845
3985
|
}
|
|
3986
|
+
if (message.serviceError !== undefined) {
|
|
3987
|
+
obj[pick("serviceError", "service_error")] = message.serviceError
|
|
3988
|
+
? ServiceError.toJSON(message.serviceError, use)
|
|
3989
|
+
: undefined;
|
|
3990
|
+
}
|
|
3846
3991
|
return obj;
|
|
3847
3992
|
},
|
|
3848
3993
|
create(base) {
|
|
@@ -3856,6 +4001,9 @@ export const EndpointStateDetails = {
|
|
|
3856
4001
|
message.message = (object.message !== undefined && object.message !== null)
|
|
3857
4002
|
? object.message
|
|
3858
4003
|
: "";
|
|
4004
|
+
message.serviceError = (object.serviceError !== undefined && object.serviceError !== null)
|
|
4005
|
+
? ServiceError.fromPartial(object.serviceError)
|
|
4006
|
+
: undefined;
|
|
3859
4007
|
return message;
|
|
3860
4008
|
},
|
|
3861
4009
|
};
|
|
@@ -3866,6 +4014,8 @@ function EndpointStateDetailsCustomInspect() {
|
|
|
3866
4014
|
parts.push("code" + "=" + inspect(this.code));
|
|
3867
4015
|
if (this.message !== "")
|
|
3868
4016
|
parts.push("message" + "=" + inspect(this.message));
|
|
4017
|
+
if (this.serviceError !== undefined)
|
|
4018
|
+
parts.push("serviceError" + "=" + inspect(this.serviceError));
|
|
3869
4019
|
return `${this.$type}(${parts.join(", ")})`;
|
|
3870
4020
|
}
|
|
3871
4021
|
function EndpointStateDetailsCustomJson() {
|
|
@@ -3876,6 +4026,8 @@ function EndpointStateDetailsCustomJson() {
|
|
|
3876
4026
|
obj.code = inspectJson(this.code);
|
|
3877
4027
|
if (this.message !== "")
|
|
3878
4028
|
obj.message = inspectJson(this.message);
|
|
4029
|
+
if (this.serviceError !== undefined)
|
|
4030
|
+
obj.serviceError = inspectJson(this.serviceError);
|
|
3879
4031
|
return obj;
|
|
3880
4032
|
}
|
|
3881
4033
|
function applyEndpointStateDetailsCustom(message) {
|
|
@@ -3888,6 +4040,7 @@ function createBaseEndpointStateDetails() {
|
|
|
3888
4040
|
$type: "nebius.ai.v1.EndpointStateDetails",
|
|
3889
4041
|
code: "",
|
|
3890
4042
|
message: "",
|
|
4043
|
+
serviceError: undefined,
|
|
3891
4044
|
};
|
|
3892
4045
|
return applyEndpointStateDetailsCustom(message);
|
|
3893
4046
|
}
|
|
@@ -4836,6 +4989,109 @@ function createBaseCancelJobRequest() {
|
|
|
4836
4989
|
};
|
|
4837
4990
|
return applyCancelJobRequestCustom(message);
|
|
4838
4991
|
}
|
|
4992
|
+
const RestartJobRequest_MESSAGE_DESCRIPTOR = {
|
|
4993
|
+
fields: {
|
|
4994
|
+
"id": { pbName: "id", scalarType: 9 },
|
|
4995
|
+
},
|
|
4996
|
+
};
|
|
4997
|
+
export const RestartJobRequest = {
|
|
4998
|
+
$type: "nebius.ai.v1.RestartJobRequest",
|
|
4999
|
+
$descriptor: RestartJobRequest_MESSAGE_DESCRIPTOR,
|
|
5000
|
+
encode(message, writer = new BinaryWriter()) {
|
|
5001
|
+
if (message.id !== "") {
|
|
5002
|
+
writer.uint32(10).string(message.id);
|
|
5003
|
+
}
|
|
5004
|
+
if (message[unknownFieldsSymbol]) {
|
|
5005
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
5006
|
+
}
|
|
5007
|
+
return writer;
|
|
5008
|
+
},
|
|
5009
|
+
decode(input, length) {
|
|
5010
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
5011
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5012
|
+
const message = createBaseRestartJobRequest();
|
|
5013
|
+
let writer = undefined;
|
|
5014
|
+
while (reader.pos < end) {
|
|
5015
|
+
const tag = reader.uint32();
|
|
5016
|
+
switch (tag >>> 3) {
|
|
5017
|
+
case 1: {
|
|
5018
|
+
if (tag !== 10)
|
|
5019
|
+
break;
|
|
5020
|
+
message.id = reader.string();
|
|
5021
|
+
continue;
|
|
5022
|
+
}
|
|
5023
|
+
default:
|
|
5024
|
+
break;
|
|
5025
|
+
}
|
|
5026
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5027
|
+
break;
|
|
5028
|
+
}
|
|
5029
|
+
{
|
|
5030
|
+
if (!writer)
|
|
5031
|
+
writer = new BinaryWriter();
|
|
5032
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
5033
|
+
writer.uint32(tag).raw(skipped);
|
|
5034
|
+
}
|
|
5035
|
+
}
|
|
5036
|
+
if (writer) {
|
|
5037
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
5038
|
+
}
|
|
5039
|
+
return message;
|
|
5040
|
+
},
|
|
5041
|
+
fromJSON(object) {
|
|
5042
|
+
return applyRestartJobRequestCustom({
|
|
5043
|
+
$type: "nebius.ai.v1.RestartJobRequest",
|
|
5044
|
+
id: isSet(object.id ?? object.id)
|
|
5045
|
+
? String(object.id ?? object.id)
|
|
5046
|
+
: "",
|
|
5047
|
+
});
|
|
5048
|
+
},
|
|
5049
|
+
toJSON(message, use = "json") {
|
|
5050
|
+
const obj = {};
|
|
5051
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
5052
|
+
if (message.id !== "") {
|
|
5053
|
+
obj[pick("id", "id")] = message.id;
|
|
5054
|
+
}
|
|
5055
|
+
return obj;
|
|
5056
|
+
},
|
|
5057
|
+
create(base) {
|
|
5058
|
+
return RestartJobRequest.fromPartial(base ?? {});
|
|
5059
|
+
},
|
|
5060
|
+
fromPartial(object) {
|
|
5061
|
+
const message = createBaseRestartJobRequest();
|
|
5062
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
5063
|
+
? object.id
|
|
5064
|
+
: "";
|
|
5065
|
+
return message;
|
|
5066
|
+
},
|
|
5067
|
+
};
|
|
5068
|
+
protoRegistry.registerMessage(RestartJobRequest);
|
|
5069
|
+
function RestartJobRequestCustomInspect() {
|
|
5070
|
+
const parts = [];
|
|
5071
|
+
if (this.id !== "")
|
|
5072
|
+
parts.push("id" + "=" + inspect(this.id));
|
|
5073
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
5074
|
+
}
|
|
5075
|
+
function RestartJobRequestCustomJson() {
|
|
5076
|
+
const obj = {
|
|
5077
|
+
type: this.$type,
|
|
5078
|
+
};
|
|
5079
|
+
if (this.id !== "")
|
|
5080
|
+
obj.id = inspectJson(this.id);
|
|
5081
|
+
return obj;
|
|
5082
|
+
}
|
|
5083
|
+
function applyRestartJobRequestCustom(message) {
|
|
5084
|
+
message[custom] = RestartJobRequestCustomInspect;
|
|
5085
|
+
message[customJson] = RestartJobRequestCustomJson;
|
|
5086
|
+
return attachMessageDescriptor(message, RestartJobRequest.$descriptor);
|
|
5087
|
+
}
|
|
5088
|
+
function createBaseRestartJobRequest() {
|
|
5089
|
+
const message = {
|
|
5090
|
+
$type: "nebius.ai.v1.RestartJobRequest",
|
|
5091
|
+
id: "",
|
|
5092
|
+
};
|
|
5093
|
+
return applyRestartJobRequestCustom(message);
|
|
5094
|
+
}
|
|
4839
5095
|
const ListJobsResponse_MESSAGE_DESCRIPTOR = {
|
|
4840
5096
|
fields: {
|
|
4841
5097
|
"items": { pbName: "items", repeated: true, message: () => Job.$descriptor },
|
|
@@ -5030,6 +5286,17 @@ export const JobServiceServiceDescription = {
|
|
|
5030
5286
|
responseSerialize: (value) => Buffer.from(Operation.encode(value).finish()),
|
|
5031
5287
|
responseDeserialize: (value) => Operation.decode(value),
|
|
5032
5288
|
},
|
|
5289
|
+
restart: {
|
|
5290
|
+
path: "/nebius.ai.v1.JobService/Restart",
|
|
5291
|
+
requestStream: false,
|
|
5292
|
+
responseStream: false,
|
|
5293
|
+
requestSerialize: (value) => Buffer.from(RestartJobRequest.encode(value).finish()),
|
|
5294
|
+
requestDescriptor: () => RestartJobRequest.$descriptor,
|
|
5295
|
+
sendResetMask: false,
|
|
5296
|
+
requestDeserialize: (value) => RestartJobRequest.decode(value),
|
|
5297
|
+
responseSerialize: (value) => Buffer.from(Operation.encode(value).finish()),
|
|
5298
|
+
responseDeserialize: (value) => Operation.decode(value),
|
|
5299
|
+
},
|
|
5033
5300
|
};
|
|
5034
5301
|
export const JobServiceBaseClient = makeGenericClientConstructor(JobServiceServiceDescription, "nebius.ai.v1.JobService");
|
|
5035
5302
|
export class JobService {
|
|
@@ -5104,6 +5371,17 @@ export class JobService {
|
|
|
5104
5371
|
};
|
|
5105
5372
|
return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
5106
5373
|
}
|
|
5374
|
+
restart(...args) {
|
|
5375
|
+
const spec = this.spec.restart;
|
|
5376
|
+
const request = args[0];
|
|
5377
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
5378
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
5379
|
+
const deserialize = (value) => {
|
|
5380
|
+
const resp = spec.responseDeserialize(value);
|
|
5381
|
+
return new OperationWrapper(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
5382
|
+
};
|
|
5383
|
+
return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
5384
|
+
}
|
|
5107
5385
|
}
|
|
5108
5386
|
const JobSpec_Port_Protocol_VALUE_COMMENTS = {
|
|
5109
5387
|
HTTP: " HTTP protocol.\n",
|
|
@@ -7801,6 +8079,7 @@ const JobStateDetails_MESSAGE_DESCRIPTOR = {
|
|
|
7801
8079
|
fields: {
|
|
7802
8080
|
"code": { pbName: "code", scalarType: 9 },
|
|
7803
8081
|
"message": { pbName: "message", scalarType: 9 },
|
|
8082
|
+
"serviceError": { pbName: "service_error", message: () => ServiceError.$descriptor },
|
|
7804
8083
|
},
|
|
7805
8084
|
};
|
|
7806
8085
|
export const JobStateDetails = {
|
|
@@ -7813,6 +8092,11 @@ export const JobStateDetails = {
|
|
|
7813
8092
|
if (message.message !== "") {
|
|
7814
8093
|
writer.uint32(18).string(message.message);
|
|
7815
8094
|
}
|
|
8095
|
+
if (message.serviceError !== undefined) {
|
|
8096
|
+
const w = writer.uint32(26).fork();
|
|
8097
|
+
ServiceError.encode(message.serviceError, w);
|
|
8098
|
+
w.join();
|
|
8099
|
+
}
|
|
7816
8100
|
if (message[unknownFieldsSymbol]) {
|
|
7817
8101
|
writer.raw(message[unknownFieldsSymbol]);
|
|
7818
8102
|
}
|
|
@@ -7838,6 +8122,12 @@ export const JobStateDetails = {
|
|
|
7838
8122
|
message.message = reader.string();
|
|
7839
8123
|
continue;
|
|
7840
8124
|
}
|
|
8125
|
+
case 3: {
|
|
8126
|
+
if (tag !== 26)
|
|
8127
|
+
break;
|
|
8128
|
+
message.serviceError = ServiceError.decode(reader, reader.uint32());
|
|
8129
|
+
continue;
|
|
8130
|
+
}
|
|
7841
8131
|
default:
|
|
7842
8132
|
break;
|
|
7843
8133
|
}
|
|
@@ -7865,6 +8155,9 @@ export const JobStateDetails = {
|
|
|
7865
8155
|
message: isSet(object.message ?? object.message)
|
|
7866
8156
|
? String(object.message ?? object.message)
|
|
7867
8157
|
: "",
|
|
8158
|
+
serviceError: isSet(object.serviceError ?? object.service_error)
|
|
8159
|
+
? ServiceError.fromJSON(object.serviceError ?? object.service_error)
|
|
8160
|
+
: undefined,
|
|
7868
8161
|
});
|
|
7869
8162
|
},
|
|
7870
8163
|
toJSON(message, use = "json") {
|
|
@@ -7876,6 +8169,11 @@ export const JobStateDetails = {
|
|
|
7876
8169
|
if (message.message !== "") {
|
|
7877
8170
|
obj[pick("message", "message")] = message.message;
|
|
7878
8171
|
}
|
|
8172
|
+
if (message.serviceError !== undefined) {
|
|
8173
|
+
obj[pick("serviceError", "service_error")] = message.serviceError
|
|
8174
|
+
? ServiceError.toJSON(message.serviceError, use)
|
|
8175
|
+
: undefined;
|
|
8176
|
+
}
|
|
7879
8177
|
return obj;
|
|
7880
8178
|
},
|
|
7881
8179
|
create(base) {
|
|
@@ -7889,6 +8187,9 @@ export const JobStateDetails = {
|
|
|
7889
8187
|
message.message = (object.message !== undefined && object.message !== null)
|
|
7890
8188
|
? object.message
|
|
7891
8189
|
: "";
|
|
8190
|
+
message.serviceError = (object.serviceError !== undefined && object.serviceError !== null)
|
|
8191
|
+
? ServiceError.fromPartial(object.serviceError)
|
|
8192
|
+
: undefined;
|
|
7892
8193
|
return message;
|
|
7893
8194
|
},
|
|
7894
8195
|
};
|
|
@@ -7899,6 +8200,8 @@ function JobStateDetailsCustomInspect() {
|
|
|
7899
8200
|
parts.push("code" + "=" + inspect(this.code));
|
|
7900
8201
|
if (this.message !== "")
|
|
7901
8202
|
parts.push("message" + "=" + inspect(this.message));
|
|
8203
|
+
if (this.serviceError !== undefined)
|
|
8204
|
+
parts.push("serviceError" + "=" + inspect(this.serviceError));
|
|
7902
8205
|
return `${this.$type}(${parts.join(", ")})`;
|
|
7903
8206
|
}
|
|
7904
8207
|
function JobStateDetailsCustomJson() {
|
|
@@ -7909,6 +8212,8 @@ function JobStateDetailsCustomJson() {
|
|
|
7909
8212
|
obj.code = inspectJson(this.code);
|
|
7910
8213
|
if (this.message !== "")
|
|
7911
8214
|
obj.message = inspectJson(this.message);
|
|
8215
|
+
if (this.serviceError !== undefined)
|
|
8216
|
+
obj.serviceError = inspectJson(this.serviceError);
|
|
7912
8217
|
return obj;
|
|
7913
8218
|
}
|
|
7914
8219
|
function applyJobStateDetailsCustom(message) {
|
|
@@ -7921,6 +8226,7 @@ function createBaseJobStateDetails() {
|
|
|
7921
8226
|
$type: "nebius.ai.v1.JobStateDetails",
|
|
7922
8227
|
code: "",
|
|
7923
8228
|
message: "",
|
|
8229
|
+
serviceError: undefined,
|
|
7924
8230
|
};
|
|
7925
8231
|
return applyJobStateDetailsCustom(message);
|
|
7926
8232
|
}
|