@nebius/js-sdk 0.2.8 → 0.2.9
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/iam/v2/index.d.ts +5 -0
- package/dist/cjs/api/nebius/iam/v2/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/iam/v2/index.js +23 -0
- package/dist/cjs/api/nebius/iam/v2/index.js.map +1 -1
- package/dist/cjs/api/nebius/storage/v1/index.d.ts +11 -6
- package/dist/cjs/api/nebius/storage/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/storage/v1/index.js +9 -1
- package/dist/cjs/api/nebius/storage/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/vpc/v1/index.d.ts +18 -0
- package/dist/cjs/api/nebius/vpc/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/vpc/v1/index.js +32 -3
- package/dist/cjs/api/nebius/vpc/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/iam/v2/index.d.ts +5 -0
- package/dist/esm/api/nebius/iam/v2/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/iam/v2/index.js +23 -0
- package/dist/esm/api/nebius/iam/v2/index.js.map +1 -1
- package/dist/esm/api/nebius/storage/v1/index.d.ts +11 -6
- package/dist/esm/api/nebius/storage/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/storage/v1/index.js +9 -1
- package/dist/esm/api/nebius/storage/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/vpc/v1/index.d.ts +18 -0
- package/dist/esm/api/nebius/vpc/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/vpc/v1/index.js +29 -0
- package/dist/esm/api/nebius/vpc/v1/index.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -9083,6 +9083,12 @@ export const RouteStatus_State = createEnum("nebius.vpc.v1.RouteStatus.State", {
|
|
|
9083
9083
|
READY: 10,
|
|
9084
9084
|
}, RouteStatus_State_VALUE_COMMENTS);
|
|
9085
9085
|
protoRegistry.registerEnum(RouteStatus_State);
|
|
9086
|
+
export const RouteStatus_Type = createEnum("nebius.vpc.v1.RouteStatus.Type", {
|
|
9087
|
+
TYPE_UNSPECIFIED: 0,
|
|
9088
|
+
STATIC: 1,
|
|
9089
|
+
REDISTRIBUTED: 2,
|
|
9090
|
+
});
|
|
9091
|
+
protoRegistry.registerEnum(RouteStatus_Type);
|
|
9086
9092
|
export const Route = {
|
|
9087
9093
|
$type: "nebius.vpc.v1.Route",
|
|
9088
9094
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -9743,6 +9749,9 @@ export const RouteStatus = {
|
|
|
9743
9749
|
NextHopState.encode(message.nextHop, w);
|
|
9744
9750
|
w.join();
|
|
9745
9751
|
}
|
|
9752
|
+
if ((message.type ?? RouteStatus_Type.TYPE_UNSPECIFIED) !== RouteStatus_Type.TYPE_UNSPECIFIED) {
|
|
9753
|
+
RouteStatus_Type.encodeField(writer, 3, message.type);
|
|
9754
|
+
}
|
|
9746
9755
|
if (message[unknownFieldsSymbol]) {
|
|
9747
9756
|
writer.raw(message[unknownFieldsSymbol]);
|
|
9748
9757
|
}
|
|
@@ -9768,6 +9777,12 @@ export const RouteStatus = {
|
|
|
9768
9777
|
message.nextHop = NextHopState.decode(reader, reader.uint32());
|
|
9769
9778
|
continue;
|
|
9770
9779
|
}
|
|
9780
|
+
case 3: {
|
|
9781
|
+
if (tag !== 24)
|
|
9782
|
+
break;
|
|
9783
|
+
message.type = RouteStatus_Type.fromNumber(reader.int32());
|
|
9784
|
+
continue;
|
|
9785
|
+
}
|
|
9771
9786
|
default:
|
|
9772
9787
|
break;
|
|
9773
9788
|
}
|
|
@@ -9795,6 +9810,9 @@ export const RouteStatus = {
|
|
|
9795
9810
|
nextHop: isSet(object.nextHop ?? object.next_hop)
|
|
9796
9811
|
? NextHopState.fromJSON(object.nextHop ?? object.next_hop)
|
|
9797
9812
|
: undefined,
|
|
9813
|
+
type: isSet(object.type ?? object.type)
|
|
9814
|
+
? RouteStatus_Type.fromJSON(object.type ?? object.type)
|
|
9815
|
+
: RouteStatus_Type.TYPE_UNSPECIFIED,
|
|
9798
9816
|
});
|
|
9799
9817
|
},
|
|
9800
9818
|
toJSON(message, use = "json") {
|
|
@@ -9808,6 +9826,9 @@ export const RouteStatus = {
|
|
|
9808
9826
|
? NextHopState.toJSON(message.nextHop, use)
|
|
9809
9827
|
: undefined;
|
|
9810
9828
|
}
|
|
9829
|
+
if ((message.type ?? RouteStatus_Type.TYPE_UNSPECIFIED) !== RouteStatus_Type.TYPE_UNSPECIFIED) {
|
|
9830
|
+
obj[pick("type", "type")] = RouteStatus_Type.toJSON(message.type);
|
|
9831
|
+
}
|
|
9811
9832
|
return obj;
|
|
9812
9833
|
},
|
|
9813
9834
|
create(base) {
|
|
@@ -9821,6 +9842,9 @@ export const RouteStatus = {
|
|
|
9821
9842
|
message.nextHop = (object.nextHop !== undefined && object.nextHop !== null)
|
|
9822
9843
|
? NextHopState.fromPartial(object.nextHop)
|
|
9823
9844
|
: undefined;
|
|
9845
|
+
message.type = (object.type !== undefined && object.type !== null)
|
|
9846
|
+
? RouteStatus_Type.fromJSON(object.type.name)
|
|
9847
|
+
: RouteStatus_Type.TYPE_UNSPECIFIED;
|
|
9824
9848
|
return message;
|
|
9825
9849
|
},
|
|
9826
9850
|
};
|
|
@@ -9831,6 +9855,8 @@ function RouteStatusCustomInspect() {
|
|
|
9831
9855
|
parts.push("state" + "=" + inspect(this.state));
|
|
9832
9856
|
if (this.nextHop !== undefined)
|
|
9833
9857
|
parts.push("nextHop" + "=" + inspect(this.nextHop));
|
|
9858
|
+
if (this.type !== undefined)
|
|
9859
|
+
parts.push("type" + "=" + inspect(this.type));
|
|
9834
9860
|
return `${this.$type}(${parts.join(", ")})`;
|
|
9835
9861
|
}
|
|
9836
9862
|
function RouteStatusCustomJson() {
|
|
@@ -9841,6 +9867,8 @@ function RouteStatusCustomJson() {
|
|
|
9841
9867
|
obj.state = inspectJson(this.state);
|
|
9842
9868
|
if (this.nextHop !== undefined)
|
|
9843
9869
|
obj.nextHop = inspectJson(this.nextHop);
|
|
9870
|
+
if (this.type !== undefined)
|
|
9871
|
+
obj.type = inspectJson(this.type);
|
|
9844
9872
|
return obj;
|
|
9845
9873
|
}
|
|
9846
9874
|
function applyRouteStatusCustom(message) {
|
|
@@ -9853,6 +9881,7 @@ function createBaseRouteStatus() {
|
|
|
9853
9881
|
$type: "nebius.vpc.v1.RouteStatus",
|
|
9854
9882
|
state: RouteStatus_State.STATE_UNSPECIFIED,
|
|
9855
9883
|
nextHop: undefined,
|
|
9884
|
+
type: RouteStatus_Type.TYPE_UNSPECIFIED,
|
|
9856
9885
|
};
|
|
9857
9886
|
return applyRouteStatusCustom(message);
|
|
9858
9887
|
}
|