@nebius/js-sdk 0.2.38 → 0.2.39
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/compute/v1/index.d.ts +51 -4
- package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.js +174 -3
- package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +6 -0
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.js +24 -0
- package/dist/cjs/api/nebius/mk8s/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/tunnel/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/compute/v1/index.d.ts +51 -4
- package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/compute/v1/index.js +171 -0
- package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts +6 -0
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.js +24 -0
- package/dist/esm/api/nebius/mk8s/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/tunnel/v1/index.d.ts +2 -2
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -10671,6 +10671,157 @@ function createBaseStopInstanceRequest() {
|
|
|
10671
10671
|
};
|
|
10672
10672
|
return applyStopInstanceRequestCustom(message);
|
|
10673
10673
|
}
|
|
10674
|
+
const ListInstancesByNVLInstanceGroupRequest_MESSAGE_DESCRIPTOR = {
|
|
10675
|
+
fields: {
|
|
10676
|
+
"nvlInstanceGroupId": { pbName: "nvl_instance_group_id", scalarType: 9 },
|
|
10677
|
+
"pageSize": { pbName: "page_size", scalarType: 3 },
|
|
10678
|
+
"pageToken": { pbName: "page_token", scalarType: 9 },
|
|
10679
|
+
},
|
|
10680
|
+
};
|
|
10681
|
+
export const ListInstancesByNVLInstanceGroupRequest = {
|
|
10682
|
+
$type: "nebius.compute.v1.ListInstancesByNVLInstanceGroupRequest",
|
|
10683
|
+
$descriptor: ListInstancesByNVLInstanceGroupRequest_MESSAGE_DESCRIPTOR,
|
|
10684
|
+
encode(message, writer = new BinaryWriter()) {
|
|
10685
|
+
if (message.nvlInstanceGroupId !== "") {
|
|
10686
|
+
writer.uint32(10).string(message.nvlInstanceGroupId);
|
|
10687
|
+
}
|
|
10688
|
+
if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
|
|
10689
|
+
writer.uint32(16).int64(message.pageSize.toString());
|
|
10690
|
+
}
|
|
10691
|
+
if (message.pageToken !== "") {
|
|
10692
|
+
writer.uint32(26).string(message.pageToken);
|
|
10693
|
+
}
|
|
10694
|
+
if (message[unknownFieldsSymbol]) {
|
|
10695
|
+
writer.raw(message[unknownFieldsSymbol]);
|
|
10696
|
+
}
|
|
10697
|
+
return writer;
|
|
10698
|
+
},
|
|
10699
|
+
decode(input, length) {
|
|
10700
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
10701
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
10702
|
+
const message = createBaseListInstancesByNVLInstanceGroupRequest();
|
|
10703
|
+
let writer = undefined;
|
|
10704
|
+
while (reader.pos < end) {
|
|
10705
|
+
const tag = reader.uint32();
|
|
10706
|
+
switch (tag >>> 3) {
|
|
10707
|
+
case 1: {
|
|
10708
|
+
if (tag !== 10)
|
|
10709
|
+
break;
|
|
10710
|
+
message.nvlInstanceGroupId = reader.string();
|
|
10711
|
+
continue;
|
|
10712
|
+
}
|
|
10713
|
+
case 2: {
|
|
10714
|
+
if (tag !== 16)
|
|
10715
|
+
break;
|
|
10716
|
+
message.pageSize = Long.fromValue(reader.int64());
|
|
10717
|
+
continue;
|
|
10718
|
+
}
|
|
10719
|
+
case 3: {
|
|
10720
|
+
if (tag !== 26)
|
|
10721
|
+
break;
|
|
10722
|
+
message.pageToken = reader.string();
|
|
10723
|
+
continue;
|
|
10724
|
+
}
|
|
10725
|
+
default:
|
|
10726
|
+
break;
|
|
10727
|
+
}
|
|
10728
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10729
|
+
break;
|
|
10730
|
+
}
|
|
10731
|
+
{
|
|
10732
|
+
if (!writer)
|
|
10733
|
+
writer = new BinaryWriter();
|
|
10734
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
10735
|
+
writer.uint32(tag).raw(skipped);
|
|
10736
|
+
}
|
|
10737
|
+
}
|
|
10738
|
+
if (writer) {
|
|
10739
|
+
message[unknownFieldsSymbol] = writer.finish();
|
|
10740
|
+
}
|
|
10741
|
+
return message;
|
|
10742
|
+
},
|
|
10743
|
+
fromJSON(object) {
|
|
10744
|
+
return applyListInstancesByNVLInstanceGroupRequestCustom({
|
|
10745
|
+
$type: "nebius.compute.v1.ListInstancesByNVLInstanceGroupRequest",
|
|
10746
|
+
nvlInstanceGroupId: isSet(object.nvlInstanceGroupId ?? object.nvl_instance_group_id)
|
|
10747
|
+
? String(object.nvlInstanceGroupId ?? object.nvl_instance_group_id)
|
|
10748
|
+
: "",
|
|
10749
|
+
pageSize: isSet(object.pageSize ?? object.page_size)
|
|
10750
|
+
? Long.fromValue(object.pageSize ?? object.page_size)
|
|
10751
|
+
: Long.ZERO,
|
|
10752
|
+
pageToken: isSet(object.pageToken ?? object.page_token)
|
|
10753
|
+
? String(object.pageToken ?? object.page_token)
|
|
10754
|
+
: "",
|
|
10755
|
+
});
|
|
10756
|
+
},
|
|
10757
|
+
toJSON(message, use = "json") {
|
|
10758
|
+
const obj = {};
|
|
10759
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
10760
|
+
if (message.nvlInstanceGroupId !== "") {
|
|
10761
|
+
obj[pick("nvlInstanceGroupId", "nvl_instance_group_id")] = message.nvlInstanceGroupId;
|
|
10762
|
+
}
|
|
10763
|
+
if (!message.pageSize?.isZero?.()) {
|
|
10764
|
+
obj[pick("pageSize", "page_size")] = (message.pageSize || Long.ZERO).toString();
|
|
10765
|
+
}
|
|
10766
|
+
if (message.pageToken !== "") {
|
|
10767
|
+
obj[pick("pageToken", "page_token")] = message.pageToken;
|
|
10768
|
+
}
|
|
10769
|
+
return obj;
|
|
10770
|
+
},
|
|
10771
|
+
create(base) {
|
|
10772
|
+
return ListInstancesByNVLInstanceGroupRequest.fromPartial(base ?? {});
|
|
10773
|
+
},
|
|
10774
|
+
fromPartial(object) {
|
|
10775
|
+
const message = createBaseListInstancesByNVLInstanceGroupRequest();
|
|
10776
|
+
message.nvlInstanceGroupId = (object.nvlInstanceGroupId !== undefined && object.nvlInstanceGroupId !== null)
|
|
10777
|
+
? object.nvlInstanceGroupId
|
|
10778
|
+
: "";
|
|
10779
|
+
message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
|
|
10780
|
+
? Long.fromValue(object.pageSize)
|
|
10781
|
+
: Long.ZERO;
|
|
10782
|
+
message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
|
|
10783
|
+
? object.pageToken
|
|
10784
|
+
: "";
|
|
10785
|
+
return message;
|
|
10786
|
+
},
|
|
10787
|
+
};
|
|
10788
|
+
protoRegistry.registerMessage(ListInstancesByNVLInstanceGroupRequest);
|
|
10789
|
+
function ListInstancesByNVLInstanceGroupRequestCustomInspect() {
|
|
10790
|
+
const parts = [];
|
|
10791
|
+
if (this.nvlInstanceGroupId !== "")
|
|
10792
|
+
parts.push("nvlInstanceGroupId" + "=" + inspect(this.nvlInstanceGroupId));
|
|
10793
|
+
if (!this.pageSize?.isZero?.())
|
|
10794
|
+
parts.push("pageSize" + "=" + inspect(this.pageSize));
|
|
10795
|
+
if (this.pageToken !== "")
|
|
10796
|
+
parts.push("pageToken" + "=" + inspect(this.pageToken));
|
|
10797
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
10798
|
+
}
|
|
10799
|
+
function ListInstancesByNVLInstanceGroupRequestCustomJson() {
|
|
10800
|
+
const obj = {
|
|
10801
|
+
type: this.$type,
|
|
10802
|
+
};
|
|
10803
|
+
if (this.nvlInstanceGroupId !== "")
|
|
10804
|
+
obj.nvlInstanceGroupId = inspectJson(this.nvlInstanceGroupId);
|
|
10805
|
+
if (!this.pageSize?.isZero?.())
|
|
10806
|
+
obj.pageSize = inspectJson(this.pageSize);
|
|
10807
|
+
if (this.pageToken !== "")
|
|
10808
|
+
obj.pageToken = inspectJson(this.pageToken);
|
|
10809
|
+
return obj;
|
|
10810
|
+
}
|
|
10811
|
+
function applyListInstancesByNVLInstanceGroupRequestCustom(message) {
|
|
10812
|
+
message[custom] = ListInstancesByNVLInstanceGroupRequestCustomInspect;
|
|
10813
|
+
message[customJson] = ListInstancesByNVLInstanceGroupRequestCustomJson;
|
|
10814
|
+
return attachMessageDescriptor(message, ListInstancesByNVLInstanceGroupRequest.$descriptor);
|
|
10815
|
+
}
|
|
10816
|
+
function createBaseListInstancesByNVLInstanceGroupRequest() {
|
|
10817
|
+
const message = {
|
|
10818
|
+
$type: "nebius.compute.v1.ListInstancesByNVLInstanceGroupRequest",
|
|
10819
|
+
nvlInstanceGroupId: "",
|
|
10820
|
+
pageSize: Long.ZERO,
|
|
10821
|
+
pageToken: "",
|
|
10822
|
+
};
|
|
10823
|
+
return applyListInstancesByNVLInstanceGroupRequestCustom(message);
|
|
10824
|
+
}
|
|
10674
10825
|
const BatchGetRequest_MESSAGE_DESCRIPTOR = {
|
|
10675
10826
|
fields: {
|
|
10676
10827
|
"instanceIds": { pbName: "instance_ids", scalarType: 9, repeated: true },
|
|
@@ -11125,6 +11276,17 @@ export const InstanceServiceServiceDescription = {
|
|
|
11125
11276
|
responseSerialize: (value) => Buffer.from(ListInstancesResponse.encode(value).finish()),
|
|
11126
11277
|
responseDeserialize: (value) => ListInstancesResponse.decode(value),
|
|
11127
11278
|
},
|
|
11279
|
+
listInstancesByNVLInstanceGroup: {
|
|
11280
|
+
path: "/nebius.compute.v1.InstanceService/ListInstancesByNVLInstanceGroup",
|
|
11281
|
+
requestStream: false,
|
|
11282
|
+
responseStream: false,
|
|
11283
|
+
requestSerialize: (value) => Buffer.from(ListInstancesByNVLInstanceGroupRequest.encode(value).finish()),
|
|
11284
|
+
requestDescriptor: () => ListInstancesByNVLInstanceGroupRequest.$descriptor,
|
|
11285
|
+
sendResetMask: false,
|
|
11286
|
+
requestDeserialize: (value) => ListInstancesByNVLInstanceGroupRequest.decode(value),
|
|
11287
|
+
responseSerialize: (value) => Buffer.from(ListInstancesResponse.encode(value).finish()),
|
|
11288
|
+
responseDeserialize: (value) => ListInstancesResponse.decode(value),
|
|
11289
|
+
},
|
|
11128
11290
|
create: {
|
|
11129
11291
|
path: "/nebius.compute.v1.InstanceService/Create",
|
|
11130
11292
|
requestStream: false,
|
|
@@ -11240,6 +11402,14 @@ export class InstanceService {
|
|
|
11240
11402
|
const deserialize = spec.responseDeserialize;
|
|
11241
11403
|
return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
11242
11404
|
}
|
|
11405
|
+
listInstancesByNVLInstanceGroup(...args) {
|
|
11406
|
+
const spec = this.spec.listInstancesByNVLInstanceGroup;
|
|
11407
|
+
const request = args[0];
|
|
11408
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
11409
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
11410
|
+
const deserialize = spec.responseDeserialize;
|
|
11411
|
+
return new SDKRequestClass(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
11412
|
+
}
|
|
11243
11413
|
create(...args) {
|
|
11244
11414
|
const spec = this.spec.create;
|
|
11245
11415
|
const request = args[0];
|
|
@@ -11307,6 +11477,7 @@ export class InstanceService {
|
|
|
11307
11477
|
export const InstanceRecoveryPolicy = createEnum("nebius.compute.v1.InstanceRecoveryPolicy", {
|
|
11308
11478
|
RECOVER: 0,
|
|
11309
11479
|
FAIL: 1,
|
|
11480
|
+
ALWAYS: 2,
|
|
11310
11481
|
});
|
|
11311
11482
|
protoRegistry.registerEnum(InstanceRecoveryPolicy);
|
|
11312
11483
|
export const PreemptibleSpec_PreemptionPolicy = createEnum("nebius.compute.v1.PreemptibleSpec.PreemptionPolicy", {
|