@nebius/js-sdk 0.1.32 → 0.1.34
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 +18 -0
- package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.js +121 -1
- package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/index.d.ts +46 -0
- package/dist/cjs/api/nebius/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/index.js +87 -1
- package/dist/cjs/api/nebius/index.js.map +1 -1
- package/dist/cjs/api/nebius/vpc/v1/index.d.ts +757 -0
- package/dist/cjs/api/nebius/vpc/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/vpc/v1/index.js +3574 -2
- 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/compute/v1/index.d.ts +18 -0
- package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/index.d.ts +46 -0
- package/dist/esm/api/nebius/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/vpc/v1/index.d.ts +757 -0
- package/dist/esm/api/nebius/vpc/v1/index.d.ts.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ListImagesRequest = exports.GetImageLatestByFamilyRequest = exports.GetImageRequest = exports.GpuClusterStatusInfinibandTopologyPathInstance = exports.GpuClusterStatusInfinibandTopologyPath = exports.GpuClusterStatus = exports.GpuClusterSpec = exports.GpuCluster = exports.GpuClusterService = exports.GpuClusterServiceBaseClient = exports.GpuClusterServiceServiceDescription = exports.ListGpuClustersResponse = exports.DeleteGpuClusterRequest = exports.UpdateGpuClusterRequest = exports.CreateGpuClusterRequest = exports.ListGpuClustersRequest = exports.GetGpuClusterRequest = exports.FilesystemStatus = exports.FilesystemSpec = exports.Filesystem = exports.FilesystemStatus_State = exports.FilesystemSpec_FilesystemType = exports.FilesystemService = exports.FilesystemServiceBaseClient = exports.FilesystemServiceServiceDescription = exports.ListFilesystemsResponse = exports.DeleteFilesystemRequest = exports.UpdateFilesystemRequest = exports.CreateFilesystemRequest = exports.ListFilesystemsRequest = exports.GetFilesystemRequest = exports.DiskEncryption = exports.DiskStatus_LockState = exports.DiskStatus = exports.SourceImageFamily = exports.DiskSpec = exports.Disk = exports.DiskEncryption_DiskEncryptionType = exports.DiskStatus_SourceImageCPUArchitecture = exports.DiskStatus_State = exports.DiskSpec_DiskType = exports.DiskService = exports.DiskServiceBaseClient = exports.DiskServiceServiceDescription = exports.ListDisksResponse = exports.DeleteDiskRequest = exports.UpdateDiskRequest = exports.CreateDiskRequest = exports.ListDisksRequest = exports.GetDiskRequest = void 0;
|
|
5
5
|
exports.MaintenanceServiceServiceDescription = exports.ListMaintenanceEventsResponse = exports.ListMaintenanceEventsRequest = exports.GetMaintenanceEventByInstanceRequest = exports.MaintenanceEventStatus = exports.MaintenanceEventSpec = exports.MaintenanceEvent = exports.ReservationPolicy = exports.InstanceStatusInfinibandTopologyPath = exports.InstanceStatus = exports.AttachedFilesystemSpec = exports.ExistingFilesystem = exports.ExistingDisk = exports.AttachedDiskSpec = exports.InstanceGpuClusterSpec = exports.ResourcesSpec = exports.PreemptibleSpec = exports.InstanceSpec = exports.Instance = exports.ReservationPolicy_Policy = exports.InstanceStatus_InstanceState = exports.AttachedFilesystemSpec_AttachMode = exports.AttachedDiskSpec_AttachMode = exports.PreemptibleSpec_PreemptionPolicy = exports.InstanceRecoveryPolicy = exports.InstanceService = exports.InstanceServiceBaseClient = exports.InstanceServiceServiceDescription = exports.StopInstanceRequest = exports.StartInstanceRequest = exports.ListInstancesResponse = exports.DeleteInstanceRequest = exports.UpdateInstanceRequest = exports.CreateInstanceRequest = exports.ListInstancesRequest = exports.GetInstanceRequest = exports.ImageStatus_ImageFamilyDeprecationStatus = exports.ImageStatus = exports.ImageSpec = exports.Image = exports.ImageStatus_State = exports.ImageSpec_CPUArchitecture = exports.ImageService = exports.ImageServiceBaseClient = exports.ImageServiceServiceDescription = exports.ListPublicRequest = exports.ListImagesResponse = exports.DeleteImageRequest = exports.UpdateImageRequest = exports.CreateImageRequest = void 0;
|
|
6
|
-
exports.PlatformStatus = exports.PresetResources = exports.Preset = exports.PlatformSpec = exports.Platform = exports.PlatformService = exports.PlatformServiceBaseClient = exports.PlatformServiceServiceDescription = exports.ListPlatformsResponse = exports.ListPlatformsRequest = exports.ListOperationsByParentRequest = exports.NodeService = exports.NodeServiceBaseClient = exports.NodeServiceServiceDescription = exports.NodeSetUnhealthyResponse = exports.NodeSetUnhealthyRequest_HealthCheckInfo = exports.NodeSetUnhealthyRequest = exports.IPAliasesStatus = exports.PublicIPAddressStatus = exports.IPAddressStatus = exports.NetworkInterfaceStatus = exports.IPAlias = exports.PublicIPAddress = exports.IPAddress = exports.NetworkInterfaceSpec = exports.MaintenanceService = exports.MaintenanceServiceBaseClient = void 0;
|
|
6
|
+
exports.PlatformStatus = exports.PresetResources = exports.Preset = exports.PlatformSpec = exports.Platform = exports.PlatformService = exports.PlatformServiceBaseClient = exports.PlatformServiceServiceDescription = exports.ListPlatformsResponse = exports.ListPlatformsRequest = exports.ListOperationsByParentRequest = exports.NodeService = exports.NodeServiceBaseClient = exports.NodeServiceServiceDescription = exports.NodeSetUnhealthyResponse = exports.NodeSetUnhealthyRequest_HealthCheckInfo = exports.NodeSetUnhealthyRequest = exports.SecurityGroup = exports.IPAliasesStatus = exports.PublicIPAddressStatus = exports.IPAddressStatus = exports.NetworkInterfaceStatus = exports.IPAlias = exports.PublicIPAddress = exports.IPAddress = exports.NetworkInterfaceSpec = exports.MaintenanceService = exports.MaintenanceServiceBaseClient = void 0;
|
|
7
7
|
const index_1 = require("../../../../runtime/protos/index");
|
|
8
8
|
const util_1 = require("util");
|
|
9
9
|
const protobuf_1 = require("../../../protobuf");
|
|
@@ -11128,6 +11128,11 @@ exports.NetworkInterfaceSpec = {
|
|
|
11128
11128
|
exports.IPAlias.encode(v, w);
|
|
11129
11129
|
w.join();
|
|
11130
11130
|
}
|
|
11131
|
+
for (const v of (message.securityGroups ?? [])) {
|
|
11132
|
+
const w = writer.uint32(58).fork();
|
|
11133
|
+
exports.SecurityGroup.encode(v, w);
|
|
11134
|
+
w.join();
|
|
11135
|
+
}
|
|
11131
11136
|
if (message[index_1.unknownFieldsSymbol]) {
|
|
11132
11137
|
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
11133
11138
|
}
|
|
@@ -11171,6 +11176,12 @@ exports.NetworkInterfaceSpec = {
|
|
|
11171
11176
|
message.aliases.push(exports.IPAlias.decode(reader, reader.uint32()));
|
|
11172
11177
|
continue;
|
|
11173
11178
|
}
|
|
11179
|
+
case 7: {
|
|
11180
|
+
if (tag !== 58)
|
|
11181
|
+
break;
|
|
11182
|
+
message.securityGroups.push(exports.SecurityGroup.decode(reader, reader.uint32()));
|
|
11183
|
+
continue;
|
|
11184
|
+
}
|
|
11174
11185
|
default:
|
|
11175
11186
|
break;
|
|
11176
11187
|
}
|
|
@@ -11207,6 +11218,9 @@ exports.NetworkInterfaceSpec = {
|
|
|
11207
11218
|
aliases: globalThis.Array.isArray(object?.aliases ?? object?.aliases)
|
|
11208
11219
|
? (object.aliases ?? object.aliases).map((e) => exports.IPAlias.fromJSON(e))
|
|
11209
11220
|
: [],
|
|
11221
|
+
securityGroups: globalThis.Array.isArray(object?.securityGroups ?? object?.security_groups)
|
|
11222
|
+
? (object.securityGroups ?? object.security_groups).map((e) => exports.SecurityGroup.fromJSON(e))
|
|
11223
|
+
: [],
|
|
11210
11224
|
});
|
|
11211
11225
|
},
|
|
11212
11226
|
toJSON(message, use = "json") {
|
|
@@ -11231,6 +11245,9 @@ exports.NetworkInterfaceSpec = {
|
|
|
11231
11245
|
if (message.aliases?.length) {
|
|
11232
11246
|
obj[pick("aliases", "aliases")] = message.aliases.map((e) => e ? exports.IPAlias.toJSON(e, use) : undefined);
|
|
11233
11247
|
}
|
|
11248
|
+
if (message.securityGroups?.length) {
|
|
11249
|
+
obj[pick("securityGroups", "security_groups")] = message.securityGroups.map((e) => e ? exports.SecurityGroup.toJSON(e, use) : undefined);
|
|
11250
|
+
}
|
|
11234
11251
|
return obj;
|
|
11235
11252
|
},
|
|
11236
11253
|
create(base) {
|
|
@@ -11251,6 +11268,7 @@ exports.NetworkInterfaceSpec = {
|
|
|
11251
11268
|
? exports.PublicIPAddress.fromPartial(object.publicIpAddress)
|
|
11252
11269
|
: undefined;
|
|
11253
11270
|
message.aliases = object.aliases?.map((e) => exports.IPAlias.fromPartial(e)) || [];
|
|
11271
|
+
message.securityGroups = object.securityGroups?.map((e) => exports.SecurityGroup.fromPartial(e)) || [];
|
|
11254
11272
|
return message;
|
|
11255
11273
|
},
|
|
11256
11274
|
};
|
|
@@ -11267,6 +11285,8 @@ function NetworkInterfaceSpecCustomInspect() {
|
|
|
11267
11285
|
parts.push("publicIpAddress" + "=" + (0, util_1.inspect)(this.publicIpAddress));
|
|
11268
11286
|
if ((this.aliases?.length ?? 0) !== 0)
|
|
11269
11287
|
parts.push("aliases" + "=" + (0, util_1.inspect)(this.aliases));
|
|
11288
|
+
if ((this.securityGroups?.length ?? 0) !== 0)
|
|
11289
|
+
parts.push("securityGroups" + "=" + (0, util_1.inspect)(this.securityGroups));
|
|
11270
11290
|
return `${this.$type}(${parts.join(", ")})`;
|
|
11271
11291
|
}
|
|
11272
11292
|
function NetworkInterfaceSpecCustomJson() {
|
|
@@ -11283,6 +11303,8 @@ function NetworkInterfaceSpecCustomJson() {
|
|
|
11283
11303
|
obj.publicIpAddress = (0, logging_1.inspectJson)(this.publicIpAddress);
|
|
11284
11304
|
if ((this.aliases?.length ?? 0) !== 0)
|
|
11285
11305
|
obj.aliases = (0, logging_1.inspectJson)(this.aliases);
|
|
11306
|
+
if ((this.securityGroups?.length ?? 0) !== 0)
|
|
11307
|
+
obj.securityGroups = (0, logging_1.inspectJson)(this.securityGroups);
|
|
11286
11308
|
return obj;
|
|
11287
11309
|
}
|
|
11288
11310
|
function applyNetworkInterfaceSpecCustom(message) {
|
|
@@ -11298,6 +11320,7 @@ function createBaseNetworkInterfaceSpec() {
|
|
|
11298
11320
|
ipAddress: undefined,
|
|
11299
11321
|
publicIpAddress: undefined,
|
|
11300
11322
|
aliases: [],
|
|
11323
|
+
securityGroups: [],
|
|
11301
11324
|
};
|
|
11302
11325
|
return applyNetworkInterfaceSpecCustom(message);
|
|
11303
11326
|
}
|
|
@@ -12239,6 +12262,103 @@ function createBaseIPAliasesStatus() {
|
|
|
12239
12262
|
};
|
|
12240
12263
|
return applyIPAliasesStatusCustom(message);
|
|
12241
12264
|
}
|
|
12265
|
+
exports.SecurityGroup = {
|
|
12266
|
+
$type: "nebius.compute.v1.SecurityGroup",
|
|
12267
|
+
encode(message, writer = new index_1.BinaryWriter()) {
|
|
12268
|
+
if (message.id !== "") {
|
|
12269
|
+
writer.uint32(10).string(message.id);
|
|
12270
|
+
}
|
|
12271
|
+
if (message[index_1.unknownFieldsSymbol]) {
|
|
12272
|
+
writer.raw(message[index_1.unknownFieldsSymbol]);
|
|
12273
|
+
}
|
|
12274
|
+
return writer;
|
|
12275
|
+
},
|
|
12276
|
+
decode(input, length) {
|
|
12277
|
+
const reader = input instanceof index_1.BinaryReader ? input : new index_1.BinaryReader(input);
|
|
12278
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
12279
|
+
const message = createBaseSecurityGroup();
|
|
12280
|
+
let writer = undefined;
|
|
12281
|
+
while (reader.pos < end) {
|
|
12282
|
+
const tag = reader.uint32();
|
|
12283
|
+
switch (tag >>> 3) {
|
|
12284
|
+
case 1: {
|
|
12285
|
+
if (tag !== 10)
|
|
12286
|
+
break;
|
|
12287
|
+
message.id = reader.string();
|
|
12288
|
+
continue;
|
|
12289
|
+
}
|
|
12290
|
+
default:
|
|
12291
|
+
break;
|
|
12292
|
+
}
|
|
12293
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12294
|
+
break;
|
|
12295
|
+
}
|
|
12296
|
+
{
|
|
12297
|
+
if (!writer)
|
|
12298
|
+
writer = new index_1.BinaryWriter();
|
|
12299
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
12300
|
+
writer.uint32(tag).raw(skipped);
|
|
12301
|
+
}
|
|
12302
|
+
}
|
|
12303
|
+
if (writer) {
|
|
12304
|
+
message[index_1.unknownFieldsSymbol] = writer.finish();
|
|
12305
|
+
}
|
|
12306
|
+
return message;
|
|
12307
|
+
},
|
|
12308
|
+
fromJSON(object) {
|
|
12309
|
+
return applySecurityGroupCustom({
|
|
12310
|
+
$type: "nebius.compute.v1.SecurityGroup",
|
|
12311
|
+
id: (0, index_1.isSet)(object.id ?? object.id)
|
|
12312
|
+
? String(object.id ?? object.id)
|
|
12313
|
+
: "",
|
|
12314
|
+
});
|
|
12315
|
+
},
|
|
12316
|
+
toJSON(message, use = "json") {
|
|
12317
|
+
const obj = {};
|
|
12318
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
12319
|
+
if (message.id !== "") {
|
|
12320
|
+
obj[pick("id", "id")] = message.id;
|
|
12321
|
+
}
|
|
12322
|
+
return obj;
|
|
12323
|
+
},
|
|
12324
|
+
create(base) {
|
|
12325
|
+
return exports.SecurityGroup.fromPartial(base ?? {});
|
|
12326
|
+
},
|
|
12327
|
+
fromPartial(object) {
|
|
12328
|
+
const message = createBaseSecurityGroup();
|
|
12329
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
12330
|
+
? object.id
|
|
12331
|
+
: "";
|
|
12332
|
+
return message;
|
|
12333
|
+
},
|
|
12334
|
+
};
|
|
12335
|
+
protobuf_1.protoRegistry.registerMessage(exports.SecurityGroup);
|
|
12336
|
+
function SecurityGroupCustomInspect() {
|
|
12337
|
+
const parts = [];
|
|
12338
|
+
if (this.id !== "")
|
|
12339
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
12340
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
12341
|
+
}
|
|
12342
|
+
function SecurityGroupCustomJson() {
|
|
12343
|
+
const obj = {
|
|
12344
|
+
type: this.$type,
|
|
12345
|
+
};
|
|
12346
|
+
if (this.id !== "")
|
|
12347
|
+
obj.id = (0, logging_1.inspectJson)(this.id);
|
|
12348
|
+
return obj;
|
|
12349
|
+
}
|
|
12350
|
+
function applySecurityGroupCustom(message) {
|
|
12351
|
+
message[logging_1.custom] = SecurityGroupCustomInspect;
|
|
12352
|
+
message[logging_1.customJson] = SecurityGroupCustomJson;
|
|
12353
|
+
return message;
|
|
12354
|
+
}
|
|
12355
|
+
function createBaseSecurityGroup() {
|
|
12356
|
+
const message = {
|
|
12357
|
+
$type: "nebius.compute.v1.SecurityGroup",
|
|
12358
|
+
id: "",
|
|
12359
|
+
};
|
|
12360
|
+
return applySecurityGroupCustom(message);
|
|
12361
|
+
}
|
|
12242
12362
|
exports.NodeSetUnhealthyRequest = {
|
|
12243
12363
|
$type: "nebius.compute.v1.NodeSetUnhealthyRequest",
|
|
12244
12364
|
encode(message, writer = new index_1.BinaryWriter()) {
|