@nebius/js-sdk 0.2.18 → 0.2.19
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/vpc/v1/index.d.ts +26 -0
- package/dist/cjs/api/nebius/vpc/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/vpc/v1/index.js +51 -4
- package/dist/cjs/api/nebius/vpc/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.d.ts +26 -0
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/vpc/v1alpha1/index.js +49 -2
- 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/vpc/v1/index.d.ts +26 -0
- package/dist/esm/api/nebius/vpc/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/vpc/v1/index.js +47 -0
- package/dist/esm/api/nebius/vpc/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/vpc/v1alpha1/index.d.ts +26 -0
- package/dist/esm/api/nebius/vpc/v1alpha1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/vpc/v1alpha1/index.js +47 -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
|
@@ -1,10 +1,10 @@
|
|
|
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.
|
|
6
|
-
exports.
|
|
7
|
-
exports.TargetStatus = exports.TargetGroupStatus = exports.ComputeInstance = exports.Target = exports.TargetGroupSpec = exports.TargetGroup = exports.TargetStatus_TargetState = exports.TargetGroupService = exports.TargetGroupServiceBaseClient = exports.TargetGroupServiceServiceDescription = exports.UpdateTargetGroupRequest = exports.GetTargetGroupRequest = exports.SubnetAssociatedRouteTable = exports.SubnetStatus = exports.SubnetCidr = void 0;
|
|
4
|
+
exports.PoolServiceServiceDescription = exports.DeletePoolRequest = exports.UpdatePoolRequest = exports.CreatePoolRequest = exports.ListPoolsResponse = exports.ListPoolsBySourcePoolRequest = exports.ListPoolsRequest = exports.GetPoolByNameRequest = exports.GetPoolRequest = exports.NetworkStatus = exports.NetworkPool = exports.IPv4PublicNetworkPools = exports.IPv4PrivateNetworkPools = exports.NetworkSpec = exports.Network = exports.NetworkStatus_State = exports.NetworkService = exports.NetworkServiceBaseClient = exports.NetworkServiceServiceDescription = exports.DeleteNetworkRequest = exports.UpdateNetworkRequest = exports.CreateDefaultNetworkRequest = exports.CreateNetworkRequest = exports.ListNetworksResponse = exports.ListNetworksRequest = exports.GetNetworkByNameRequest = exports.GetNetworkRequest = exports.LoadBalancerAssignment = exports.NetworkInterfaceAssignment = exports.Assignment = exports.AllocationDetails = exports.AllocationStatus = exports.IPv4PublicAllocationSpec = exports.IPv4PrivateAllocationSpec = exports.AllocationSpec = exports.Allocation = exports.NetworkInterfaceAssignment_Type = exports.AllocationStatus_State = exports.AllocationService = exports.AllocationServiceBaseClient = exports.AllocationServiceServiceDescription = exports.DeleteAllocationRequest = exports.UpdateAllocationRequest = exports.CreateAllocationRequest = exports.ListAllocationsResponse = exports.ListAllocationsBySubnetRequest = exports.ListAllocationsByPoolRequest = exports.ListAllocationsRequest = exports.GetAllocationByNameRequest = exports.GetAllocationRequest = void 0;
|
|
5
|
+
exports.GetSecurityGroupByNameRequest = exports.GetSecurityGroupRequest = exports.DefaultEgressGatewayState = exports.AllocationNextHopState = exports.NextHopState = exports.RouteStatus = exports.AllocationNextHop = exports.NextHop = exports.DestinationMatch = exports.RouteSpec = exports.Route = exports.RouteStatus_Type = exports.RouteStatus_State = exports.RouteTableAssignment = exports.RouteTableStatus = exports.RouteTableSpec = exports.RouteTable = exports.RouteTableStatus_State = exports.RouteTableService = exports.RouteTableServiceBaseClient = exports.RouteTableServiceServiceDescription = exports.DeleteRouteTableRequest = exports.UpdateRouteTableRequest = exports.CreateRouteTableRequest = exports.ListRouteTablesResponse = exports.ListRouteTablesByNetworkRequest = exports.ListRouteTablesRequest = exports.GetRouteTableByNameRequest = exports.GetRouteTableRequest = exports.RouteService = exports.RouteServiceBaseClient = exports.RouteServiceServiceDescription = exports.DeleteRouteRequest = exports.UpdateRouteRequest = exports.CreateRouteRequest = exports.ListRoutesResponse = exports.ListRoutesRequest = exports.GetRouteByNameRequest = exports.GetRouteRequest = exports.PoolAssignment = exports.PoolStatus = exports.PoolCidr = exports.PoolSpec = exports.Pool = exports.PoolStatus_State = exports.IpVisibility = exports.IpVersion = exports.AddressBlockState = exports.PoolService = exports.PoolServiceBaseClient = void 0;
|
|
6
|
+
exports.IPv4PublicSubnetPools = exports.IPv4PrivateSubnetPools = exports.SubnetSpec = exports.Subnet = exports.SubnetStatus_State = exports.SubnetService = exports.SubnetServiceBaseClient = exports.SubnetServiceServiceDescription = exports.DeleteSubnetRequest = exports.UpdateSubnetRequest = exports.CreateSubnetRequest = exports.ListSubnetsResponse = exports.ListSubnetsByNetworkRequest = exports.ListSubnetsRequest = exports.GetSubnetByNameRequest = exports.GetSubnetRequest = exports.RuleMatchStatus = exports.SecurityRuleStatus = exports.RuleEgress = exports.RuleIngress = exports.SecurityRuleSpec = exports.SecurityRule = exports.SecurityRuleStatus_State = exports.RuleType = exports.RuleAccessAction = exports.RuleProtocol = exports.RuleDirection = exports.SecurityRuleService = exports.SecurityRuleServiceBaseClient = exports.SecurityRuleServiceServiceDescription = exports.DeleteSecurityRuleRequest = exports.UpdateSecurityRuleRequest = exports.CreateSecurityRuleRequest = exports.ListSecurityRulesResponse = exports.ListSecurityRulesRequest = exports.GetSecurityRuleByNameRequest = exports.GetSecurityRuleRequest = exports.SecurityGroupStatus = exports.SecurityGroupSpec = exports.SecurityGroup = exports.SecurityGroupStatus_State = exports.SecurityGroupService = exports.SecurityGroupServiceBaseClient = exports.SecurityGroupServiceServiceDescription = exports.DeleteSecurityGroupRequest = exports.UpdateSecurityGroupRequest = exports.CreateSecurityGroupRequest = exports.ListSecurityGroupsResponse = exports.ListSecurityGroupsByNetworkRequest = exports.ListSecurityGroupsRequest = void 0;
|
|
7
|
+
exports.TargetStatus = exports.TargetGroupStatus = exports.ComputeInstance = exports.Target = exports.TargetGroupSpec = exports.TargetGroup = exports.TargetStatus_TargetState = exports.TargetGroupService = exports.TargetGroupServiceBaseClient = exports.TargetGroupServiceServiceDescription = exports.UpdateTargetGroupRequest = exports.GetTargetGroupRequest = exports.SubnetAssociatedRouteTable = exports.SubnetStatus = exports.SubnetCidr = exports.SubnetPool = void 0;
|
|
8
8
|
const index_js_1 = require("../../../../runtime/protos/index.js");
|
|
9
9
|
const util_1 = require("util");
|
|
10
10
|
const protobuf_js_1 = require("../../../protobuf.js");
|
|
@@ -1336,6 +1336,30 @@ exports.AllocationStatus_State = (0, index_js_1.createEnum)("nebius.vpc.v1.Alloc
|
|
|
1336
1336
|
DELETING: 4,
|
|
1337
1337
|
}, AllocationStatus_State_VALUE_COMMENTS);
|
|
1338
1338
|
protobuf_js_1.protoRegistry.registerEnum(exports.AllocationStatus_State);
|
|
1339
|
+
const NetworkInterfaceAssignment_Type_VALUE_COMMENTS = {
|
|
1340
|
+
PRIMARY: " Allocation is attached as the interface private IPv4 address.\n",
|
|
1341
|
+
ALIAS: " Allocation is attached as an IP alias.\n",
|
|
1342
|
+
PUBLIC: " Allocation is attached as the interface public IPv4 address.\n",
|
|
1343
|
+
};
|
|
1344
|
+
exports.NetworkInterfaceAssignment_Type = (0, index_js_1.createEnum)("nebius.vpc.v1.NetworkInterfaceAssignment.Type", {
|
|
1345
|
+
TYPE_UNSPECIFIED: 0,
|
|
1346
|
+
/**
|
|
1347
|
+
* Allocation is attached as the interface private IPv4 address.
|
|
1348
|
+
*
|
|
1349
|
+
*/
|
|
1350
|
+
PRIMARY: 1,
|
|
1351
|
+
/**
|
|
1352
|
+
* Allocation is attached as an IP alias.
|
|
1353
|
+
*
|
|
1354
|
+
*/
|
|
1355
|
+
ALIAS: 2,
|
|
1356
|
+
/**
|
|
1357
|
+
* Allocation is attached as the interface public IPv4 address.
|
|
1358
|
+
*
|
|
1359
|
+
*/
|
|
1360
|
+
PUBLIC: 3,
|
|
1361
|
+
}, NetworkInterfaceAssignment_Type_VALUE_COMMENTS);
|
|
1362
|
+
protobuf_js_1.protoRegistry.registerEnum(exports.NetworkInterfaceAssignment_Type);
|
|
1339
1363
|
exports.Allocation = {
|
|
1340
1364
|
$type: "nebius.vpc.v1.Allocation",
|
|
1341
1365
|
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
@@ -2482,6 +2506,9 @@ exports.NetworkInterfaceAssignment = {
|
|
|
2482
2506
|
if (message.name !== "") {
|
|
2483
2507
|
writer.uint32(18).string(message.name);
|
|
2484
2508
|
}
|
|
2509
|
+
if ((message.type ?? exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) !== exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) {
|
|
2510
|
+
exports.NetworkInterfaceAssignment_Type.encodeField(writer, 3, message.type);
|
|
2511
|
+
}
|
|
2485
2512
|
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
2486
2513
|
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
2487
2514
|
}
|
|
@@ -2507,6 +2534,12 @@ exports.NetworkInterfaceAssignment = {
|
|
|
2507
2534
|
message.name = reader.string();
|
|
2508
2535
|
continue;
|
|
2509
2536
|
}
|
|
2537
|
+
case 3: {
|
|
2538
|
+
if (tag !== 24)
|
|
2539
|
+
break;
|
|
2540
|
+
message.type = exports.NetworkInterfaceAssignment_Type.fromNumber(reader.int32());
|
|
2541
|
+
continue;
|
|
2542
|
+
}
|
|
2510
2543
|
default:
|
|
2511
2544
|
break;
|
|
2512
2545
|
}
|
|
@@ -2534,6 +2567,9 @@ exports.NetworkInterfaceAssignment = {
|
|
|
2534
2567
|
name: (0, index_js_1.isSet)(object.name ?? object.name)
|
|
2535
2568
|
? String(object.name ?? object.name)
|
|
2536
2569
|
: "",
|
|
2570
|
+
type: (0, index_js_1.isSet)(object.type ?? object.type)
|
|
2571
|
+
? exports.NetworkInterfaceAssignment_Type.fromJSON(object.type ?? object.type)
|
|
2572
|
+
: exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED,
|
|
2537
2573
|
});
|
|
2538
2574
|
},
|
|
2539
2575
|
toJSON(message, use = "json") {
|
|
@@ -2545,6 +2581,9 @@ exports.NetworkInterfaceAssignment = {
|
|
|
2545
2581
|
if (message.name !== "") {
|
|
2546
2582
|
obj[pick("name", "name")] = message.name;
|
|
2547
2583
|
}
|
|
2584
|
+
if ((message.type ?? exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) !== exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED) {
|
|
2585
|
+
obj[pick("type", "type")] = exports.NetworkInterfaceAssignment_Type.toJSON(message.type);
|
|
2586
|
+
}
|
|
2548
2587
|
return obj;
|
|
2549
2588
|
},
|
|
2550
2589
|
create(base) {
|
|
@@ -2558,6 +2597,9 @@ exports.NetworkInterfaceAssignment = {
|
|
|
2558
2597
|
message.name = (object.name !== undefined && object.name !== null)
|
|
2559
2598
|
? object.name
|
|
2560
2599
|
: "";
|
|
2600
|
+
message.type = (object.type !== undefined && object.type !== null)
|
|
2601
|
+
? exports.NetworkInterfaceAssignment_Type.fromJSON(object.type.name)
|
|
2602
|
+
: exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED;
|
|
2561
2603
|
return message;
|
|
2562
2604
|
},
|
|
2563
2605
|
};
|
|
@@ -2568,6 +2610,8 @@ function NetworkInterfaceAssignmentCustomInspect() {
|
|
|
2568
2610
|
parts.push("instanceId" + "=" + (0, util_1.inspect)(this.instanceId));
|
|
2569
2611
|
if (this.name !== "")
|
|
2570
2612
|
parts.push("name" + "=" + (0, util_1.inspect)(this.name));
|
|
2613
|
+
if (this.type !== undefined)
|
|
2614
|
+
parts.push("type" + "=" + (0, util_1.inspect)(this.type));
|
|
2571
2615
|
return `${this.$type}(${parts.join(", ")})`;
|
|
2572
2616
|
}
|
|
2573
2617
|
function NetworkInterfaceAssignmentCustomJson() {
|
|
@@ -2578,6 +2622,8 @@ function NetworkInterfaceAssignmentCustomJson() {
|
|
|
2578
2622
|
obj.instanceId = (0, logging_js_1.inspectJson)(this.instanceId);
|
|
2579
2623
|
if (this.name !== "")
|
|
2580
2624
|
obj.name = (0, logging_js_1.inspectJson)(this.name);
|
|
2625
|
+
if (this.type !== undefined)
|
|
2626
|
+
obj.type = (0, logging_js_1.inspectJson)(this.type);
|
|
2581
2627
|
return obj;
|
|
2582
2628
|
}
|
|
2583
2629
|
function applyNetworkInterfaceAssignmentCustom(message) {
|
|
@@ -2590,6 +2636,7 @@ function createBaseNetworkInterfaceAssignment() {
|
|
|
2590
2636
|
$type: "nebius.vpc.v1.NetworkInterfaceAssignment",
|
|
2591
2637
|
instanceId: "",
|
|
2592
2638
|
name: "",
|
|
2639
|
+
type: exports.NetworkInterfaceAssignment_Type.TYPE_UNSPECIFIED,
|
|
2593
2640
|
};
|
|
2594
2641
|
return applyNetworkInterfaceAssignmentCustom(message);
|
|
2595
2642
|
}
|