@nebius/js-sdk 0.2.10 → 0.2.11
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 +248 -5
- package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/compute/v1/index.js +1248 -1
- package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/dns/v1/index.d.ts +270 -1
- package/dist/cjs/api/nebius/dns/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/dns/v1/index.js +1407 -499
- package/dist/cjs/api/nebius/dns/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.d.ts +6 -1
- package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/iam/v1/index.js +26 -0
- package/dist/cjs/api/nebius/iam/v1/index.js.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/cjs/api/nebius/mk8s/v1/index.js +23 -0
- package/dist/cjs/api/nebius/mk8s/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 +248 -5
- package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/compute/v1/index.js +1246 -0
- package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/dns/v1/index.d.ts +270 -1
- package/dist/esm/api/nebius/dns/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/dns/v1/index.js +1407 -499
- package/dist/esm/api/nebius/dns/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/iam/v1/index.d.ts +6 -1
- package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/iam/v1/index.js +26 -0
- package/dist/esm/api/nebius/iam/v1/index.js.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
- package/dist/esm/api/nebius/mk8s/v1/index.js +23 -0
- package/dist/esm/api/nebius/mk8s/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
|
@@ -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.LocalDisksSpec = exports.ReservationPolicy = exports.InstanceStatusInfinibandTopologyPath = exports.DiskAttachmentStatus = exports.InstanceStatus = exports.AttachedFilesystemSpec = exports.ExistingFilesystem = exports.ManagedDisk = 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.BatchGetResponse_BatchGetResult = exports.BatchGetResponse = exports.BatchGetRequest = exports.StopInstanceRequest = exports.StartInstanceRequest = exports.ListInstancesResponse = exports.DeleteInstanceRequest = exports.UpdateInstanceRequest = exports.CreateInstanceRequest = exports.ListInstancesRequest = exports.GetInstanceRequest = exports.ImageStatus_ImageFamilyDeprecationStatus = exports.ImageStatus = exports.ImageSpec_SourceStorage = 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.SecurityGroup = exports.IPAliasesStatus = exports.PublicIPAddressStatus = exports.IPAddressStatus = exports.NetworkInterfaceStatus = exports.IPAlias = exports.PublicIPAddress = exports.IPAddress = exports.NetworkInterfaceSpec = exports.MaintenanceService = exports.MaintenanceServiceBaseClient = exports.MaintenanceServiceServiceDescription = exports.ListMaintenanceEventsResponse = exports.ListMaintenanceEventsRequest = exports.GetMaintenanceEventByInstanceRequest = exports.MaintenanceEventStatus = exports.MaintenanceEventSpec = exports.MaintenanceEvent = exports.PassthroughGroupRequest = 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.NVLInstanceGroupStatus_InstanceInfo = exports.NVLInstanceGroupStatus = exports.NVLInstanceGroupSpec = exports.NVLInstanceGroup = exports.NVLInstanceGroupSpec_NVLInstanceGroupType = exports.NVLInstanceGroupService = exports.NVLInstanceGroupServiceBaseClient = exports.NVLInstanceGroupServiceServiceDescription = exports.DeleteNVLInstanceGroupRequest = exports.ListNVLInstanceGroupsResponse = exports.ListNVLInstanceGroupsRequest = exports.GetNVLInstanceGroupRequest = exports.CreateNVLInstanceGroupRequest = 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 = exports.MaintenanceServiceServiceDescription = exports.ListMaintenanceEventsResponse = exports.ListMaintenanceEventsRequest = exports.GetMaintenanceEventByInstanceRequest = exports.MaintenanceEventStatus = exports.MaintenanceEventSpec = exports.MaintenanceEvent = exports.PassthroughGroupRequest = void 0;
|
|
7
7
|
const index_js_1 = require("../../../../runtime/protos/index.js");
|
|
8
8
|
const util_1 = require("util");
|
|
9
9
|
const protobuf_js_1 = require("../../../protobuf.js");
|
|
@@ -9178,6 +9178,9 @@ exports.InstanceSpec = {
|
|
|
9178
9178
|
if (message.hostname !== "") {
|
|
9179
9179
|
writer.uint32(162).string(message.hostname);
|
|
9180
9180
|
}
|
|
9181
|
+
if (message.nvlInstanceGroupId !== "") {
|
|
9182
|
+
writer.uint32(170).string(message.nvlInstanceGroupId);
|
|
9183
|
+
}
|
|
9181
9184
|
if (message.reservationPolicy !== undefined) {
|
|
9182
9185
|
const w = writer.uint32(186).fork();
|
|
9183
9186
|
exports.ReservationPolicy.encode(message.reservationPolicy, w);
|
|
@@ -9273,6 +9276,12 @@ exports.InstanceSpec = {
|
|
|
9273
9276
|
message.hostname = reader.string();
|
|
9274
9277
|
continue;
|
|
9275
9278
|
}
|
|
9279
|
+
case 21: {
|
|
9280
|
+
if (tag !== 170)
|
|
9281
|
+
break;
|
|
9282
|
+
message.nvlInstanceGroupId = reader.string();
|
|
9283
|
+
continue;
|
|
9284
|
+
}
|
|
9276
9285
|
case 23: {
|
|
9277
9286
|
if (tag !== 186)
|
|
9278
9287
|
break;
|
|
@@ -9342,6 +9351,9 @@ exports.InstanceSpec = {
|
|
|
9342
9351
|
hostname: (0, index_js_1.isSet)(object.hostname ?? object.hostname)
|
|
9343
9352
|
? String(object.hostname ?? object.hostname)
|
|
9344
9353
|
: "",
|
|
9354
|
+
nvlInstanceGroupId: (0, index_js_1.isSet)(object.nvlInstanceGroupId ?? object.nvl_instance_group_id)
|
|
9355
|
+
? String(object.nvlInstanceGroupId ?? object.nvl_instance_group_id)
|
|
9356
|
+
: "",
|
|
9345
9357
|
reservationPolicy: (0, index_js_1.isSet)(object.reservationPolicy ?? object.reservation_policy)
|
|
9346
9358
|
? exports.ReservationPolicy.fromJSON(object.reservationPolicy ?? object.reservation_policy)
|
|
9347
9359
|
: undefined,
|
|
@@ -9397,6 +9409,9 @@ exports.InstanceSpec = {
|
|
|
9397
9409
|
if (message.hostname !== "") {
|
|
9398
9410
|
obj[pick("hostname", "hostname")] = message.hostname;
|
|
9399
9411
|
}
|
|
9412
|
+
if (message.nvlInstanceGroupId !== "") {
|
|
9413
|
+
obj[pick("nvlInstanceGroupId", "nvl_instance_group_id")] = message.nvlInstanceGroupId;
|
|
9414
|
+
}
|
|
9400
9415
|
if (message.reservationPolicy !== undefined) {
|
|
9401
9416
|
obj[pick("reservationPolicy", "reservation_policy")] = message.reservationPolicy
|
|
9402
9417
|
? exports.ReservationPolicy.toJSON(message.reservationPolicy, use)
|
|
@@ -9444,6 +9459,9 @@ exports.InstanceSpec = {
|
|
|
9444
9459
|
message.hostname = (object.hostname !== undefined && object.hostname !== null)
|
|
9445
9460
|
? object.hostname
|
|
9446
9461
|
: "";
|
|
9462
|
+
message.nvlInstanceGroupId = (object.nvlInstanceGroupId !== undefined && object.nvlInstanceGroupId !== null)
|
|
9463
|
+
? object.nvlInstanceGroupId
|
|
9464
|
+
: "";
|
|
9447
9465
|
message.reservationPolicy = (object.reservationPolicy !== undefined && object.reservationPolicy !== null)
|
|
9448
9466
|
? exports.ReservationPolicy.fromPartial(object.reservationPolicy)
|
|
9449
9467
|
: undefined;
|
|
@@ -9480,6 +9498,8 @@ function InstanceSpecCustomInspect() {
|
|
|
9480
9498
|
parts.push("preemptible" + "=" + (0, util_1.inspect)(this.preemptible));
|
|
9481
9499
|
if (this.hostname !== "")
|
|
9482
9500
|
parts.push("hostname" + "=" + (0, util_1.inspect)(this.hostname));
|
|
9501
|
+
if (this.nvlInstanceGroupId !== "")
|
|
9502
|
+
parts.push("nvlInstanceGroupId" + "=" + (0, util_1.inspect)(this.nvlInstanceGroupId));
|
|
9483
9503
|
if (this.reservationPolicy !== undefined)
|
|
9484
9504
|
parts.push("reservationPolicy" + "=" + (0, util_1.inspect)(this.reservationPolicy));
|
|
9485
9505
|
if (this.localDisks !== undefined)
|
|
@@ -9514,6 +9534,8 @@ function InstanceSpecCustomJson() {
|
|
|
9514
9534
|
obj.preemptible = (0, logging_js_1.inspectJson)(this.preemptible);
|
|
9515
9535
|
if (this.hostname !== "")
|
|
9516
9536
|
obj.hostname = (0, logging_js_1.inspectJson)(this.hostname);
|
|
9537
|
+
if (this.nvlInstanceGroupId !== "")
|
|
9538
|
+
obj.nvlInstanceGroupId = (0, logging_js_1.inspectJson)(this.nvlInstanceGroupId);
|
|
9517
9539
|
if (this.reservationPolicy !== undefined)
|
|
9518
9540
|
obj.reservationPolicy = (0, logging_js_1.inspectJson)(this.reservationPolicy);
|
|
9519
9541
|
if (this.localDisks !== undefined)
|
|
@@ -9540,6 +9562,7 @@ function createBaseInstanceSpec() {
|
|
|
9540
9562
|
recoveryPolicy: exports.InstanceRecoveryPolicy.RECOVER,
|
|
9541
9563
|
preemptible: undefined,
|
|
9542
9564
|
hostname: "",
|
|
9565
|
+
nvlInstanceGroupId: "",
|
|
9543
9566
|
reservationPolicy: undefined,
|
|
9544
9567
|
localDisks: undefined,
|
|
9545
9568
|
};
|
|
@@ -9548,6 +9571,12 @@ function createBaseInstanceSpec() {
|
|
|
9548
9571
|
exports.PreemptibleSpec = {
|
|
9549
9572
|
$type: "nebius.compute.v1.PreemptibleSpec",
|
|
9550
9573
|
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
9574
|
+
if (((message.priority ?? 0) !== 0)) {
|
|
9575
|
+
if (!__deprecatedWarned.has("nebius.compute.v1.PreemptibleSpec.priority")) {
|
|
9576
|
+
__deprecatedWarned.add("nebius.compute.v1.PreemptibleSpec.priority");
|
|
9577
|
+
(0, logging_js_1.deprecatedWarn)("it is deprecated and doesn't affect preemption behavior anymore.", "field", "nebius.compute.v1.PreemptibleSpec.priority", "2026-05-11");
|
|
9578
|
+
}
|
|
9579
|
+
}
|
|
9551
9580
|
if ((message.onPreemption ?? exports.PreemptibleSpec_PreemptionPolicy.UNSPECIFIED) !== exports.PreemptibleSpec_PreemptionPolicy.UNSPECIFIED) {
|
|
9552
9581
|
exports.PreemptibleSpec_PreemptionPolicy.encodeField(writer, 1, message.onPreemption);
|
|
9553
9582
|
}
|
|
@@ -14007,6 +14036,1224 @@ class NodeService {
|
|
|
14007
14036
|
}
|
|
14008
14037
|
}
|
|
14009
14038
|
exports.NodeService = NodeService;
|
|
14039
|
+
exports.CreateNVLInstanceGroupRequest = {
|
|
14040
|
+
$type: "nebius.compute.v1.CreateNVLInstanceGroupRequest",
|
|
14041
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
14042
|
+
if (message.metadata !== undefined) {
|
|
14043
|
+
const w = writer.uint32(10).fork();
|
|
14044
|
+
index_js_3.ResourceMetadata.encode(message.metadata, w);
|
|
14045
|
+
w.join();
|
|
14046
|
+
}
|
|
14047
|
+
if (message.spec !== undefined) {
|
|
14048
|
+
const w = writer.uint32(18).fork();
|
|
14049
|
+
exports.NVLInstanceGroupSpec.encode(message.spec, w);
|
|
14050
|
+
w.join();
|
|
14051
|
+
}
|
|
14052
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
14053
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
14054
|
+
}
|
|
14055
|
+
return writer;
|
|
14056
|
+
},
|
|
14057
|
+
decode(input, length) {
|
|
14058
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
14059
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14060
|
+
const message = createBaseCreateNVLInstanceGroupRequest();
|
|
14061
|
+
let writer = undefined;
|
|
14062
|
+
while (reader.pos < end) {
|
|
14063
|
+
const tag = reader.uint32();
|
|
14064
|
+
switch (tag >>> 3) {
|
|
14065
|
+
case 1: {
|
|
14066
|
+
if (tag !== 10)
|
|
14067
|
+
break;
|
|
14068
|
+
message.metadata = index_js_3.ResourceMetadata.decode(reader, reader.uint32());
|
|
14069
|
+
continue;
|
|
14070
|
+
}
|
|
14071
|
+
case 2: {
|
|
14072
|
+
if (tag !== 18)
|
|
14073
|
+
break;
|
|
14074
|
+
message.spec = exports.NVLInstanceGroupSpec.decode(reader, reader.uint32());
|
|
14075
|
+
continue;
|
|
14076
|
+
}
|
|
14077
|
+
default:
|
|
14078
|
+
break;
|
|
14079
|
+
}
|
|
14080
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14081
|
+
break;
|
|
14082
|
+
}
|
|
14083
|
+
{
|
|
14084
|
+
if (!writer)
|
|
14085
|
+
writer = new index_js_1.BinaryWriter();
|
|
14086
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
14087
|
+
writer.uint32(tag).raw(skipped);
|
|
14088
|
+
}
|
|
14089
|
+
}
|
|
14090
|
+
if (writer) {
|
|
14091
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
14092
|
+
}
|
|
14093
|
+
return message;
|
|
14094
|
+
},
|
|
14095
|
+
fromJSON(object) {
|
|
14096
|
+
return applyCreateNVLInstanceGroupRequestCustom({
|
|
14097
|
+
$type: "nebius.compute.v1.CreateNVLInstanceGroupRequest",
|
|
14098
|
+
metadata: (0, index_js_1.isSet)(object.metadata ?? object.metadata)
|
|
14099
|
+
? index_js_3.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
|
|
14100
|
+
: undefined,
|
|
14101
|
+
spec: (0, index_js_1.isSet)(object.spec ?? object.spec)
|
|
14102
|
+
? exports.NVLInstanceGroupSpec.fromJSON(object.spec ?? object.spec)
|
|
14103
|
+
: undefined,
|
|
14104
|
+
});
|
|
14105
|
+
},
|
|
14106
|
+
toJSON(message, use = "json") {
|
|
14107
|
+
const obj = {};
|
|
14108
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
14109
|
+
if (message.metadata !== undefined) {
|
|
14110
|
+
obj[pick("metadata", "metadata")] = message.metadata
|
|
14111
|
+
? index_js_3.ResourceMetadata.toJSON(message.metadata, use)
|
|
14112
|
+
: undefined;
|
|
14113
|
+
}
|
|
14114
|
+
if (message.spec !== undefined) {
|
|
14115
|
+
obj[pick("spec", "spec")] = message.spec
|
|
14116
|
+
? exports.NVLInstanceGroupSpec.toJSON(message.spec, use)
|
|
14117
|
+
: undefined;
|
|
14118
|
+
}
|
|
14119
|
+
return obj;
|
|
14120
|
+
},
|
|
14121
|
+
create(base) {
|
|
14122
|
+
return exports.CreateNVLInstanceGroupRequest.fromPartial(base ?? {});
|
|
14123
|
+
},
|
|
14124
|
+
fromPartial(object) {
|
|
14125
|
+
const message = createBaseCreateNVLInstanceGroupRequest();
|
|
14126
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
|
14127
|
+
? index_js_3.ResourceMetadata.fromPartial(object.metadata)
|
|
14128
|
+
: undefined;
|
|
14129
|
+
message.spec = (object.spec !== undefined && object.spec !== null)
|
|
14130
|
+
? exports.NVLInstanceGroupSpec.fromPartial(object.spec)
|
|
14131
|
+
: undefined;
|
|
14132
|
+
return message;
|
|
14133
|
+
},
|
|
14134
|
+
};
|
|
14135
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.CreateNVLInstanceGroupRequest);
|
|
14136
|
+
function CreateNVLInstanceGroupRequestCustomInspect() {
|
|
14137
|
+
const parts = [];
|
|
14138
|
+
if (this.metadata !== undefined)
|
|
14139
|
+
parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
|
|
14140
|
+
if (this.spec !== undefined)
|
|
14141
|
+
parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
|
|
14142
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
14143
|
+
}
|
|
14144
|
+
function CreateNVLInstanceGroupRequestCustomJson() {
|
|
14145
|
+
const obj = {
|
|
14146
|
+
type: this.$type,
|
|
14147
|
+
};
|
|
14148
|
+
if (this.metadata !== undefined)
|
|
14149
|
+
obj.metadata = (0, logging_js_1.inspectJson)(this.metadata);
|
|
14150
|
+
if (this.spec !== undefined)
|
|
14151
|
+
obj.spec = (0, logging_js_1.inspectJson)(this.spec);
|
|
14152
|
+
return obj;
|
|
14153
|
+
}
|
|
14154
|
+
function applyCreateNVLInstanceGroupRequestCustom(message) {
|
|
14155
|
+
message[logging_js_1.custom] = CreateNVLInstanceGroupRequestCustomInspect;
|
|
14156
|
+
message[logging_js_1.customJson] = CreateNVLInstanceGroupRequestCustomJson;
|
|
14157
|
+
return message;
|
|
14158
|
+
}
|
|
14159
|
+
function createBaseCreateNVLInstanceGroupRequest() {
|
|
14160
|
+
const message = {
|
|
14161
|
+
$type: "nebius.compute.v1.CreateNVLInstanceGroupRequest",
|
|
14162
|
+
metadata: undefined,
|
|
14163
|
+
spec: undefined,
|
|
14164
|
+
};
|
|
14165
|
+
return applyCreateNVLInstanceGroupRequestCustom(message);
|
|
14166
|
+
}
|
|
14167
|
+
exports.GetNVLInstanceGroupRequest = {
|
|
14168
|
+
$type: "nebius.compute.v1.GetNVLInstanceGroupRequest",
|
|
14169
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
14170
|
+
if (message.id !== "") {
|
|
14171
|
+
writer.uint32(10).string(message.id);
|
|
14172
|
+
}
|
|
14173
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
14174
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
14175
|
+
}
|
|
14176
|
+
return writer;
|
|
14177
|
+
},
|
|
14178
|
+
decode(input, length) {
|
|
14179
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
14180
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14181
|
+
const message = createBaseGetNVLInstanceGroupRequest();
|
|
14182
|
+
let writer = undefined;
|
|
14183
|
+
while (reader.pos < end) {
|
|
14184
|
+
const tag = reader.uint32();
|
|
14185
|
+
switch (tag >>> 3) {
|
|
14186
|
+
case 1: {
|
|
14187
|
+
if (tag !== 10)
|
|
14188
|
+
break;
|
|
14189
|
+
message.id = reader.string();
|
|
14190
|
+
continue;
|
|
14191
|
+
}
|
|
14192
|
+
default:
|
|
14193
|
+
break;
|
|
14194
|
+
}
|
|
14195
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14196
|
+
break;
|
|
14197
|
+
}
|
|
14198
|
+
{
|
|
14199
|
+
if (!writer)
|
|
14200
|
+
writer = new index_js_1.BinaryWriter();
|
|
14201
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
14202
|
+
writer.uint32(tag).raw(skipped);
|
|
14203
|
+
}
|
|
14204
|
+
}
|
|
14205
|
+
if (writer) {
|
|
14206
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
14207
|
+
}
|
|
14208
|
+
return message;
|
|
14209
|
+
},
|
|
14210
|
+
fromJSON(object) {
|
|
14211
|
+
return applyGetNVLInstanceGroupRequestCustom({
|
|
14212
|
+
$type: "nebius.compute.v1.GetNVLInstanceGroupRequest",
|
|
14213
|
+
id: (0, index_js_1.isSet)(object.id ?? object.id)
|
|
14214
|
+
? String(object.id ?? object.id)
|
|
14215
|
+
: "",
|
|
14216
|
+
});
|
|
14217
|
+
},
|
|
14218
|
+
toJSON(message, use = "json") {
|
|
14219
|
+
const obj = {};
|
|
14220
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
14221
|
+
if (message.id !== "") {
|
|
14222
|
+
obj[pick("id", "id")] = message.id;
|
|
14223
|
+
}
|
|
14224
|
+
return obj;
|
|
14225
|
+
},
|
|
14226
|
+
create(base) {
|
|
14227
|
+
return exports.GetNVLInstanceGroupRequest.fromPartial(base ?? {});
|
|
14228
|
+
},
|
|
14229
|
+
fromPartial(object) {
|
|
14230
|
+
const message = createBaseGetNVLInstanceGroupRequest();
|
|
14231
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
14232
|
+
? object.id
|
|
14233
|
+
: "";
|
|
14234
|
+
return message;
|
|
14235
|
+
},
|
|
14236
|
+
};
|
|
14237
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.GetNVLInstanceGroupRequest);
|
|
14238
|
+
function GetNVLInstanceGroupRequestCustomInspect() {
|
|
14239
|
+
const parts = [];
|
|
14240
|
+
if (this.id !== "")
|
|
14241
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
14242
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
14243
|
+
}
|
|
14244
|
+
function GetNVLInstanceGroupRequestCustomJson() {
|
|
14245
|
+
const obj = {
|
|
14246
|
+
type: this.$type,
|
|
14247
|
+
};
|
|
14248
|
+
if (this.id !== "")
|
|
14249
|
+
obj.id = (0, logging_js_1.inspectJson)(this.id);
|
|
14250
|
+
return obj;
|
|
14251
|
+
}
|
|
14252
|
+
function applyGetNVLInstanceGroupRequestCustom(message) {
|
|
14253
|
+
message[logging_js_1.custom] = GetNVLInstanceGroupRequestCustomInspect;
|
|
14254
|
+
message[logging_js_1.customJson] = GetNVLInstanceGroupRequestCustomJson;
|
|
14255
|
+
return message;
|
|
14256
|
+
}
|
|
14257
|
+
function createBaseGetNVLInstanceGroupRequest() {
|
|
14258
|
+
const message = {
|
|
14259
|
+
$type: "nebius.compute.v1.GetNVLInstanceGroupRequest",
|
|
14260
|
+
id: "",
|
|
14261
|
+
};
|
|
14262
|
+
return applyGetNVLInstanceGroupRequestCustom(message);
|
|
14263
|
+
}
|
|
14264
|
+
exports.ListNVLInstanceGroupsRequest = {
|
|
14265
|
+
$type: "nebius.compute.v1.ListNVLInstanceGroupsRequest",
|
|
14266
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
14267
|
+
if (message.parentId !== "") {
|
|
14268
|
+
writer.uint32(10).string(message.parentId);
|
|
14269
|
+
}
|
|
14270
|
+
if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
|
|
14271
|
+
writer.uint32(16).int64(message.pageSize.toString());
|
|
14272
|
+
}
|
|
14273
|
+
if (message.pageToken !== "") {
|
|
14274
|
+
writer.uint32(26).string(message.pageToken);
|
|
14275
|
+
}
|
|
14276
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
14277
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
14278
|
+
}
|
|
14279
|
+
return writer;
|
|
14280
|
+
},
|
|
14281
|
+
decode(input, length) {
|
|
14282
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
14283
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14284
|
+
const message = createBaseListNVLInstanceGroupsRequest();
|
|
14285
|
+
let writer = undefined;
|
|
14286
|
+
while (reader.pos < end) {
|
|
14287
|
+
const tag = reader.uint32();
|
|
14288
|
+
switch (tag >>> 3) {
|
|
14289
|
+
case 1: {
|
|
14290
|
+
if (tag !== 10)
|
|
14291
|
+
break;
|
|
14292
|
+
message.parentId = reader.string();
|
|
14293
|
+
continue;
|
|
14294
|
+
}
|
|
14295
|
+
case 2: {
|
|
14296
|
+
if (tag !== 16)
|
|
14297
|
+
break;
|
|
14298
|
+
message.pageSize = index_js_1.Long.fromValue(reader.int64());
|
|
14299
|
+
continue;
|
|
14300
|
+
}
|
|
14301
|
+
case 3: {
|
|
14302
|
+
if (tag !== 26)
|
|
14303
|
+
break;
|
|
14304
|
+
message.pageToken = reader.string();
|
|
14305
|
+
continue;
|
|
14306
|
+
}
|
|
14307
|
+
default:
|
|
14308
|
+
break;
|
|
14309
|
+
}
|
|
14310
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14311
|
+
break;
|
|
14312
|
+
}
|
|
14313
|
+
{
|
|
14314
|
+
if (!writer)
|
|
14315
|
+
writer = new index_js_1.BinaryWriter();
|
|
14316
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
14317
|
+
writer.uint32(tag).raw(skipped);
|
|
14318
|
+
}
|
|
14319
|
+
}
|
|
14320
|
+
if (writer) {
|
|
14321
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
14322
|
+
}
|
|
14323
|
+
return message;
|
|
14324
|
+
},
|
|
14325
|
+
fromJSON(object) {
|
|
14326
|
+
return applyListNVLInstanceGroupsRequestCustom({
|
|
14327
|
+
$type: "nebius.compute.v1.ListNVLInstanceGroupsRequest",
|
|
14328
|
+
parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
|
|
14329
|
+
? String(object.parentId ?? object.parent_id)
|
|
14330
|
+
: "",
|
|
14331
|
+
pageSize: (0, index_js_1.isSet)(object.pageSize ?? object.page_size)
|
|
14332
|
+
? index_js_1.Long.fromValue(object.pageSize ?? object.page_size)
|
|
14333
|
+
: index_js_1.Long.ZERO,
|
|
14334
|
+
pageToken: (0, index_js_1.isSet)(object.pageToken ?? object.page_token)
|
|
14335
|
+
? String(object.pageToken ?? object.page_token)
|
|
14336
|
+
: "",
|
|
14337
|
+
});
|
|
14338
|
+
},
|
|
14339
|
+
toJSON(message, use = "json") {
|
|
14340
|
+
const obj = {};
|
|
14341
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
14342
|
+
if (message.parentId !== "") {
|
|
14343
|
+
obj[pick("parentId", "parent_id")] = message.parentId;
|
|
14344
|
+
}
|
|
14345
|
+
if (!message.pageSize?.isZero?.()) {
|
|
14346
|
+
obj[pick("pageSize", "page_size")] = (message.pageSize || index_js_1.Long.ZERO).toString();
|
|
14347
|
+
}
|
|
14348
|
+
if (message.pageToken !== "") {
|
|
14349
|
+
obj[pick("pageToken", "page_token")] = message.pageToken;
|
|
14350
|
+
}
|
|
14351
|
+
return obj;
|
|
14352
|
+
},
|
|
14353
|
+
create(base) {
|
|
14354
|
+
return exports.ListNVLInstanceGroupsRequest.fromPartial(base ?? {});
|
|
14355
|
+
},
|
|
14356
|
+
fromPartial(object) {
|
|
14357
|
+
const message = createBaseListNVLInstanceGroupsRequest();
|
|
14358
|
+
message.parentId = (object.parentId !== undefined && object.parentId !== null)
|
|
14359
|
+
? object.parentId
|
|
14360
|
+
: "";
|
|
14361
|
+
message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
|
|
14362
|
+
? index_js_1.Long.fromValue(object.pageSize)
|
|
14363
|
+
: index_js_1.Long.ZERO;
|
|
14364
|
+
message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
|
|
14365
|
+
? object.pageToken
|
|
14366
|
+
: "";
|
|
14367
|
+
return message;
|
|
14368
|
+
},
|
|
14369
|
+
};
|
|
14370
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.ListNVLInstanceGroupsRequest);
|
|
14371
|
+
function ListNVLInstanceGroupsRequestCustomInspect() {
|
|
14372
|
+
const parts = [];
|
|
14373
|
+
if (this.parentId !== "")
|
|
14374
|
+
parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
|
|
14375
|
+
if (!this.pageSize?.isZero?.())
|
|
14376
|
+
parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
|
|
14377
|
+
if (this.pageToken !== "")
|
|
14378
|
+
parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
|
|
14379
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
14380
|
+
}
|
|
14381
|
+
function ListNVLInstanceGroupsRequestCustomJson() {
|
|
14382
|
+
const obj = {
|
|
14383
|
+
type: this.$type,
|
|
14384
|
+
};
|
|
14385
|
+
if (this.parentId !== "")
|
|
14386
|
+
obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
|
|
14387
|
+
if (!this.pageSize?.isZero?.())
|
|
14388
|
+
obj.pageSize = (0, logging_js_1.inspectJson)(this.pageSize);
|
|
14389
|
+
if (this.pageToken !== "")
|
|
14390
|
+
obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
|
|
14391
|
+
return obj;
|
|
14392
|
+
}
|
|
14393
|
+
function applyListNVLInstanceGroupsRequestCustom(message) {
|
|
14394
|
+
message[logging_js_1.custom] = ListNVLInstanceGroupsRequestCustomInspect;
|
|
14395
|
+
message[logging_js_1.customJson] = ListNVLInstanceGroupsRequestCustomJson;
|
|
14396
|
+
return message;
|
|
14397
|
+
}
|
|
14398
|
+
function createBaseListNVLInstanceGroupsRequest() {
|
|
14399
|
+
const message = {
|
|
14400
|
+
$type: "nebius.compute.v1.ListNVLInstanceGroupsRequest",
|
|
14401
|
+
parentId: "",
|
|
14402
|
+
pageSize: index_js_1.Long.ZERO,
|
|
14403
|
+
pageToken: "",
|
|
14404
|
+
};
|
|
14405
|
+
return applyListNVLInstanceGroupsRequestCustom(message);
|
|
14406
|
+
}
|
|
14407
|
+
exports.ListNVLInstanceGroupsResponse = {
|
|
14408
|
+
$type: "nebius.compute.v1.ListNVLInstanceGroupsResponse",
|
|
14409
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
14410
|
+
for (const v of (message.items ?? [])) {
|
|
14411
|
+
const w = writer.uint32(10).fork();
|
|
14412
|
+
exports.NVLInstanceGroup.encode(v, w);
|
|
14413
|
+
w.join();
|
|
14414
|
+
}
|
|
14415
|
+
if (message.nextPageToken !== "") {
|
|
14416
|
+
writer.uint32(18).string(message.nextPageToken);
|
|
14417
|
+
}
|
|
14418
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
14419
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
14420
|
+
}
|
|
14421
|
+
return writer;
|
|
14422
|
+
},
|
|
14423
|
+
decode(input, length) {
|
|
14424
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
14425
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14426
|
+
const message = createBaseListNVLInstanceGroupsResponse();
|
|
14427
|
+
let writer = undefined;
|
|
14428
|
+
while (reader.pos < end) {
|
|
14429
|
+
const tag = reader.uint32();
|
|
14430
|
+
switch (tag >>> 3) {
|
|
14431
|
+
case 1: {
|
|
14432
|
+
if (tag !== 10)
|
|
14433
|
+
break;
|
|
14434
|
+
message.items.push(exports.NVLInstanceGroup.decode(reader, reader.uint32()));
|
|
14435
|
+
continue;
|
|
14436
|
+
}
|
|
14437
|
+
case 2: {
|
|
14438
|
+
if (tag !== 18)
|
|
14439
|
+
break;
|
|
14440
|
+
message.nextPageToken = reader.string();
|
|
14441
|
+
continue;
|
|
14442
|
+
}
|
|
14443
|
+
default:
|
|
14444
|
+
break;
|
|
14445
|
+
}
|
|
14446
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14447
|
+
break;
|
|
14448
|
+
}
|
|
14449
|
+
{
|
|
14450
|
+
if (!writer)
|
|
14451
|
+
writer = new index_js_1.BinaryWriter();
|
|
14452
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
14453
|
+
writer.uint32(tag).raw(skipped);
|
|
14454
|
+
}
|
|
14455
|
+
}
|
|
14456
|
+
if (writer) {
|
|
14457
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
14458
|
+
}
|
|
14459
|
+
return message;
|
|
14460
|
+
},
|
|
14461
|
+
fromJSON(object) {
|
|
14462
|
+
return applyListNVLInstanceGroupsResponseCustom({
|
|
14463
|
+
$type: "nebius.compute.v1.ListNVLInstanceGroupsResponse",
|
|
14464
|
+
items: globalThis.Array.isArray(object?.items ?? object?.items)
|
|
14465
|
+
? (object.items ?? object.items).map((e) => exports.NVLInstanceGroup.fromJSON(e))
|
|
14466
|
+
: [],
|
|
14467
|
+
nextPageToken: (0, index_js_1.isSet)(object.nextPageToken ?? object.next_page_token)
|
|
14468
|
+
? String(object.nextPageToken ?? object.next_page_token)
|
|
14469
|
+
: "",
|
|
14470
|
+
});
|
|
14471
|
+
},
|
|
14472
|
+
toJSON(message, use = "json") {
|
|
14473
|
+
const obj = {};
|
|
14474
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
14475
|
+
if (message.items?.length) {
|
|
14476
|
+
obj[pick("items", "items")] = message.items.map((e) => e ? exports.NVLInstanceGroup.toJSON(e, use) : undefined);
|
|
14477
|
+
}
|
|
14478
|
+
if (message.nextPageToken !== "") {
|
|
14479
|
+
obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
|
|
14480
|
+
}
|
|
14481
|
+
return obj;
|
|
14482
|
+
},
|
|
14483
|
+
create(base) {
|
|
14484
|
+
return exports.ListNVLInstanceGroupsResponse.fromPartial(base ?? {});
|
|
14485
|
+
},
|
|
14486
|
+
fromPartial(object) {
|
|
14487
|
+
const message = createBaseListNVLInstanceGroupsResponse();
|
|
14488
|
+
message.items = object.items?.map((e) => exports.NVLInstanceGroup.fromPartial(e)) || [];
|
|
14489
|
+
message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
|
|
14490
|
+
? object.nextPageToken
|
|
14491
|
+
: "";
|
|
14492
|
+
return message;
|
|
14493
|
+
},
|
|
14494
|
+
};
|
|
14495
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.ListNVLInstanceGroupsResponse);
|
|
14496
|
+
function ListNVLInstanceGroupsResponseCustomInspect() {
|
|
14497
|
+
const parts = [];
|
|
14498
|
+
if ((this.items?.length ?? 0) !== 0)
|
|
14499
|
+
parts.push("items" + "=" + (0, util_1.inspect)(this.items));
|
|
14500
|
+
if (this.nextPageToken !== "")
|
|
14501
|
+
parts.push("nextPageToken" + "=" + (0, util_1.inspect)(this.nextPageToken));
|
|
14502
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
14503
|
+
}
|
|
14504
|
+
function ListNVLInstanceGroupsResponseCustomJson() {
|
|
14505
|
+
const obj = {
|
|
14506
|
+
type: this.$type,
|
|
14507
|
+
};
|
|
14508
|
+
if ((this.items?.length ?? 0) !== 0)
|
|
14509
|
+
obj.items = (0, logging_js_1.inspectJson)(this.items);
|
|
14510
|
+
if (this.nextPageToken !== "")
|
|
14511
|
+
obj.nextPageToken = (0, logging_js_1.inspectJson)(this.nextPageToken);
|
|
14512
|
+
return obj;
|
|
14513
|
+
}
|
|
14514
|
+
function applyListNVLInstanceGroupsResponseCustom(message) {
|
|
14515
|
+
message[logging_js_1.custom] = ListNVLInstanceGroupsResponseCustomInspect;
|
|
14516
|
+
message[logging_js_1.customJson] = ListNVLInstanceGroupsResponseCustomJson;
|
|
14517
|
+
return message;
|
|
14518
|
+
}
|
|
14519
|
+
function createBaseListNVLInstanceGroupsResponse() {
|
|
14520
|
+
const message = {
|
|
14521
|
+
$type: "nebius.compute.v1.ListNVLInstanceGroupsResponse",
|
|
14522
|
+
items: [],
|
|
14523
|
+
nextPageToken: "",
|
|
14524
|
+
};
|
|
14525
|
+
return applyListNVLInstanceGroupsResponseCustom(message);
|
|
14526
|
+
}
|
|
14527
|
+
exports.DeleteNVLInstanceGroupRequest = {
|
|
14528
|
+
$type: "nebius.compute.v1.DeleteNVLInstanceGroupRequest",
|
|
14529
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
14530
|
+
if (message.id !== "") {
|
|
14531
|
+
writer.uint32(10).string(message.id);
|
|
14532
|
+
}
|
|
14533
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
14534
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
14535
|
+
}
|
|
14536
|
+
return writer;
|
|
14537
|
+
},
|
|
14538
|
+
decode(input, length) {
|
|
14539
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
14540
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14541
|
+
const message = createBaseDeleteNVLInstanceGroupRequest();
|
|
14542
|
+
let writer = undefined;
|
|
14543
|
+
while (reader.pos < end) {
|
|
14544
|
+
const tag = reader.uint32();
|
|
14545
|
+
switch (tag >>> 3) {
|
|
14546
|
+
case 1: {
|
|
14547
|
+
if (tag !== 10)
|
|
14548
|
+
break;
|
|
14549
|
+
message.id = reader.string();
|
|
14550
|
+
continue;
|
|
14551
|
+
}
|
|
14552
|
+
default:
|
|
14553
|
+
break;
|
|
14554
|
+
}
|
|
14555
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14556
|
+
break;
|
|
14557
|
+
}
|
|
14558
|
+
{
|
|
14559
|
+
if (!writer)
|
|
14560
|
+
writer = new index_js_1.BinaryWriter();
|
|
14561
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
14562
|
+
writer.uint32(tag).raw(skipped);
|
|
14563
|
+
}
|
|
14564
|
+
}
|
|
14565
|
+
if (writer) {
|
|
14566
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
14567
|
+
}
|
|
14568
|
+
return message;
|
|
14569
|
+
},
|
|
14570
|
+
fromJSON(object) {
|
|
14571
|
+
return applyDeleteNVLInstanceGroupRequestCustom({
|
|
14572
|
+
$type: "nebius.compute.v1.DeleteNVLInstanceGroupRequest",
|
|
14573
|
+
id: (0, index_js_1.isSet)(object.id ?? object.id)
|
|
14574
|
+
? String(object.id ?? object.id)
|
|
14575
|
+
: "",
|
|
14576
|
+
});
|
|
14577
|
+
},
|
|
14578
|
+
toJSON(message, use = "json") {
|
|
14579
|
+
const obj = {};
|
|
14580
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
14581
|
+
if (message.id !== "") {
|
|
14582
|
+
obj[pick("id", "id")] = message.id;
|
|
14583
|
+
}
|
|
14584
|
+
return obj;
|
|
14585
|
+
},
|
|
14586
|
+
create(base) {
|
|
14587
|
+
return exports.DeleteNVLInstanceGroupRequest.fromPartial(base ?? {});
|
|
14588
|
+
},
|
|
14589
|
+
fromPartial(object) {
|
|
14590
|
+
const message = createBaseDeleteNVLInstanceGroupRequest();
|
|
14591
|
+
message.id = (object.id !== undefined && object.id !== null)
|
|
14592
|
+
? object.id
|
|
14593
|
+
: "";
|
|
14594
|
+
return message;
|
|
14595
|
+
},
|
|
14596
|
+
};
|
|
14597
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.DeleteNVLInstanceGroupRequest);
|
|
14598
|
+
function DeleteNVLInstanceGroupRequestCustomInspect() {
|
|
14599
|
+
const parts = [];
|
|
14600
|
+
if (this.id !== "")
|
|
14601
|
+
parts.push("id" + "=" + (0, util_1.inspect)(this.id));
|
|
14602
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
14603
|
+
}
|
|
14604
|
+
function DeleteNVLInstanceGroupRequestCustomJson() {
|
|
14605
|
+
const obj = {
|
|
14606
|
+
type: this.$type,
|
|
14607
|
+
};
|
|
14608
|
+
if (this.id !== "")
|
|
14609
|
+
obj.id = (0, logging_js_1.inspectJson)(this.id);
|
|
14610
|
+
return obj;
|
|
14611
|
+
}
|
|
14612
|
+
function applyDeleteNVLInstanceGroupRequestCustom(message) {
|
|
14613
|
+
message[logging_js_1.custom] = DeleteNVLInstanceGroupRequestCustomInspect;
|
|
14614
|
+
message[logging_js_1.customJson] = DeleteNVLInstanceGroupRequestCustomJson;
|
|
14615
|
+
return message;
|
|
14616
|
+
}
|
|
14617
|
+
function createBaseDeleteNVLInstanceGroupRequest() {
|
|
14618
|
+
const message = {
|
|
14619
|
+
$type: "nebius.compute.v1.DeleteNVLInstanceGroupRequest",
|
|
14620
|
+
id: "",
|
|
14621
|
+
};
|
|
14622
|
+
return applyDeleteNVLInstanceGroupRequestCustom(message);
|
|
14623
|
+
}
|
|
14624
|
+
exports.NVLInstanceGroupServiceServiceDescription = {
|
|
14625
|
+
create: {
|
|
14626
|
+
path: "/nebius.compute.v1.NVLInstanceGroupService/Create",
|
|
14627
|
+
requestStream: false,
|
|
14628
|
+
responseStream: false,
|
|
14629
|
+
requestSerialize: (value) => Buffer.from(exports.CreateNVLInstanceGroupRequest.encode(value).finish()),
|
|
14630
|
+
sendResetMask: false,
|
|
14631
|
+
requestDeserialize: (value) => exports.CreateNVLInstanceGroupRequest.decode(value),
|
|
14632
|
+
responseSerialize: (value) => Buffer.from(index_js_3.Operation.encode(value).finish()),
|
|
14633
|
+
responseDeserialize: (value) => index_js_3.Operation.decode(value),
|
|
14634
|
+
},
|
|
14635
|
+
get: {
|
|
14636
|
+
path: "/nebius.compute.v1.NVLInstanceGroupService/Get",
|
|
14637
|
+
requestStream: false,
|
|
14638
|
+
responseStream: false,
|
|
14639
|
+
requestSerialize: (value) => Buffer.from(exports.GetNVLInstanceGroupRequest.encode(value).finish()),
|
|
14640
|
+
sendResetMask: false,
|
|
14641
|
+
requestDeserialize: (value) => exports.GetNVLInstanceGroupRequest.decode(value),
|
|
14642
|
+
responseSerialize: (value) => Buffer.from(exports.NVLInstanceGroup.encode(value).finish()),
|
|
14643
|
+
responseDeserialize: (value) => exports.NVLInstanceGroup.decode(value),
|
|
14644
|
+
},
|
|
14645
|
+
getByName: {
|
|
14646
|
+
path: "/nebius.compute.v1.NVLInstanceGroupService/GetByName",
|
|
14647
|
+
requestStream: false,
|
|
14648
|
+
responseStream: false,
|
|
14649
|
+
requestSerialize: (value) => Buffer.from(index_js_3.GetByNameRequest.encode(value).finish()),
|
|
14650
|
+
sendResetMask: false,
|
|
14651
|
+
requestDeserialize: (value) => index_js_3.GetByNameRequest.decode(value),
|
|
14652
|
+
responseSerialize: (value) => Buffer.from(exports.NVLInstanceGroup.encode(value).finish()),
|
|
14653
|
+
responseDeserialize: (value) => exports.NVLInstanceGroup.decode(value),
|
|
14654
|
+
},
|
|
14655
|
+
list: {
|
|
14656
|
+
path: "/nebius.compute.v1.NVLInstanceGroupService/List",
|
|
14657
|
+
requestStream: false,
|
|
14658
|
+
responseStream: false,
|
|
14659
|
+
requestSerialize: (value) => Buffer.from(exports.ListNVLInstanceGroupsRequest.encode(value).finish()),
|
|
14660
|
+
sendResetMask: false,
|
|
14661
|
+
requestDeserialize: (value) => exports.ListNVLInstanceGroupsRequest.decode(value),
|
|
14662
|
+
responseSerialize: (value) => Buffer.from(exports.ListNVLInstanceGroupsResponse.encode(value).finish()),
|
|
14663
|
+
responseDeserialize: (value) => exports.ListNVLInstanceGroupsResponse.decode(value),
|
|
14664
|
+
},
|
|
14665
|
+
delete: {
|
|
14666
|
+
path: "/nebius.compute.v1.NVLInstanceGroupService/Delete",
|
|
14667
|
+
requestStream: false,
|
|
14668
|
+
responseStream: false,
|
|
14669
|
+
requestSerialize: (value) => Buffer.from(exports.DeleteNVLInstanceGroupRequest.encode(value).finish()),
|
|
14670
|
+
sendResetMask: false,
|
|
14671
|
+
requestDeserialize: (value) => exports.DeleteNVLInstanceGroupRequest.decode(value),
|
|
14672
|
+
responseSerialize: (value) => Buffer.from(index_js_3.Operation.encode(value).finish()),
|
|
14673
|
+
responseDeserialize: (value) => index_js_3.Operation.decode(value),
|
|
14674
|
+
},
|
|
14675
|
+
};
|
|
14676
|
+
exports.NVLInstanceGroupServiceBaseClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.NVLInstanceGroupServiceServiceDescription, "nebius.compute.v1.NVLInstanceGroupService");
|
|
14677
|
+
class NVLInstanceGroupService {
|
|
14678
|
+
sdk;
|
|
14679
|
+
$type = "nebius.compute.v1.NVLInstanceGroupService";
|
|
14680
|
+
addr;
|
|
14681
|
+
spec;
|
|
14682
|
+
apiServiceName = "compute";
|
|
14683
|
+
constructor(sdk) {
|
|
14684
|
+
this.sdk = sdk;
|
|
14685
|
+
const addr = sdk.getAddressFromServiceName(this.$type, this.apiServiceName);
|
|
14686
|
+
this.addr = addr;
|
|
14687
|
+
this.spec = exports.NVLInstanceGroupServiceServiceDescription;
|
|
14688
|
+
}
|
|
14689
|
+
getOperationService() {
|
|
14690
|
+
return new index_js_3.OperationService(this.sdk, this.addr);
|
|
14691
|
+
}
|
|
14692
|
+
create(...args) {
|
|
14693
|
+
const spec = this.spec.create;
|
|
14694
|
+
const request = args[0];
|
|
14695
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
14696
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
14697
|
+
const deserialize = (value) => {
|
|
14698
|
+
const resp = spec.responseDeserialize(value);
|
|
14699
|
+
return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
14700
|
+
};
|
|
14701
|
+
return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
14702
|
+
}
|
|
14703
|
+
get(...args) {
|
|
14704
|
+
const spec = this.spec.get;
|
|
14705
|
+
const request = args[0];
|
|
14706
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
14707
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
14708
|
+
const deserialize = spec.responseDeserialize;
|
|
14709
|
+
return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
14710
|
+
}
|
|
14711
|
+
getByName(...args) {
|
|
14712
|
+
const spec = this.spec.getByName;
|
|
14713
|
+
const request = args[0];
|
|
14714
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
14715
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
14716
|
+
const deserialize = spec.responseDeserialize;
|
|
14717
|
+
return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
14718
|
+
}
|
|
14719
|
+
list(...args) {
|
|
14720
|
+
const spec = this.spec.list;
|
|
14721
|
+
const request = args[0];
|
|
14722
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
14723
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
14724
|
+
const deserialize = spec.responseDeserialize;
|
|
14725
|
+
return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
14726
|
+
}
|
|
14727
|
+
delete(...args) {
|
|
14728
|
+
const spec = this.spec.delete;
|
|
14729
|
+
const request = args[0];
|
|
14730
|
+
const metadata = (args.length > 1 ? args[1] : undefined);
|
|
14731
|
+
const options = (args.length > 2 ? args[2] : undefined);
|
|
14732
|
+
const deserialize = (value) => {
|
|
14733
|
+
const resp = spec.responseDeserialize(value);
|
|
14734
|
+
return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
|
|
14735
|
+
};
|
|
14736
|
+
return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
|
|
14737
|
+
}
|
|
14738
|
+
}
|
|
14739
|
+
exports.NVLInstanceGroupService = NVLInstanceGroupService;
|
|
14740
|
+
exports.NVLInstanceGroupSpec_NVLInstanceGroupType = (0, index_js_1.createEnum)("nebius.compute.v1.NVLInstanceGroupSpec.NVLInstanceGroupType", {
|
|
14741
|
+
UNSPECIFIED: 0,
|
|
14742
|
+
GB200: 1,
|
|
14743
|
+
GB300: 2,
|
|
14744
|
+
});
|
|
14745
|
+
protobuf_js_1.protoRegistry.registerEnum(exports.NVLInstanceGroupSpec_NVLInstanceGroupType);
|
|
14746
|
+
exports.NVLInstanceGroup = {
|
|
14747
|
+
$type: "nebius.compute.v1.NVLInstanceGroup",
|
|
14748
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
14749
|
+
if (message.metadata !== undefined) {
|
|
14750
|
+
const w = writer.uint32(10).fork();
|
|
14751
|
+
index_js_3.ResourceMetadata.encode(message.metadata, w);
|
|
14752
|
+
w.join();
|
|
14753
|
+
}
|
|
14754
|
+
if (message.spec !== undefined) {
|
|
14755
|
+
const w = writer.uint32(18).fork();
|
|
14756
|
+
exports.NVLInstanceGroupSpec.encode(message.spec, w);
|
|
14757
|
+
w.join();
|
|
14758
|
+
}
|
|
14759
|
+
if (message.status !== undefined) {
|
|
14760
|
+
const w = writer.uint32(26).fork();
|
|
14761
|
+
exports.NVLInstanceGroupStatus.encode(message.status, w);
|
|
14762
|
+
w.join();
|
|
14763
|
+
}
|
|
14764
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
14765
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
14766
|
+
}
|
|
14767
|
+
return writer;
|
|
14768
|
+
},
|
|
14769
|
+
decode(input, length) {
|
|
14770
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
14771
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14772
|
+
const message = createBaseNVLInstanceGroup();
|
|
14773
|
+
let writer = undefined;
|
|
14774
|
+
while (reader.pos < end) {
|
|
14775
|
+
const tag = reader.uint32();
|
|
14776
|
+
switch (tag >>> 3) {
|
|
14777
|
+
case 1: {
|
|
14778
|
+
if (tag !== 10)
|
|
14779
|
+
break;
|
|
14780
|
+
message.metadata = index_js_3.ResourceMetadata.decode(reader, reader.uint32());
|
|
14781
|
+
continue;
|
|
14782
|
+
}
|
|
14783
|
+
case 2: {
|
|
14784
|
+
if (tag !== 18)
|
|
14785
|
+
break;
|
|
14786
|
+
message.spec = exports.NVLInstanceGroupSpec.decode(reader, reader.uint32());
|
|
14787
|
+
continue;
|
|
14788
|
+
}
|
|
14789
|
+
case 3: {
|
|
14790
|
+
if (tag !== 26)
|
|
14791
|
+
break;
|
|
14792
|
+
message.status = exports.NVLInstanceGroupStatus.decode(reader, reader.uint32());
|
|
14793
|
+
continue;
|
|
14794
|
+
}
|
|
14795
|
+
default:
|
|
14796
|
+
break;
|
|
14797
|
+
}
|
|
14798
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14799
|
+
break;
|
|
14800
|
+
}
|
|
14801
|
+
{
|
|
14802
|
+
if (!writer)
|
|
14803
|
+
writer = new index_js_1.BinaryWriter();
|
|
14804
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
14805
|
+
writer.uint32(tag).raw(skipped);
|
|
14806
|
+
}
|
|
14807
|
+
}
|
|
14808
|
+
if (writer) {
|
|
14809
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
14810
|
+
}
|
|
14811
|
+
return message;
|
|
14812
|
+
},
|
|
14813
|
+
fromJSON(object) {
|
|
14814
|
+
return applyNVLInstanceGroupCustom({
|
|
14815
|
+
$type: "nebius.compute.v1.NVLInstanceGroup",
|
|
14816
|
+
metadata: (0, index_js_1.isSet)(object.metadata ?? object.metadata)
|
|
14817
|
+
? index_js_3.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
|
|
14818
|
+
: undefined,
|
|
14819
|
+
spec: (0, index_js_1.isSet)(object.spec ?? object.spec)
|
|
14820
|
+
? exports.NVLInstanceGroupSpec.fromJSON(object.spec ?? object.spec)
|
|
14821
|
+
: undefined,
|
|
14822
|
+
status: (0, index_js_1.isSet)(object.status ?? object.status)
|
|
14823
|
+
? exports.NVLInstanceGroupStatus.fromJSON(object.status ?? object.status)
|
|
14824
|
+
: undefined,
|
|
14825
|
+
});
|
|
14826
|
+
},
|
|
14827
|
+
toJSON(message, use = "json") {
|
|
14828
|
+
const obj = {};
|
|
14829
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
14830
|
+
if (message.metadata !== undefined) {
|
|
14831
|
+
obj[pick("metadata", "metadata")] = message.metadata
|
|
14832
|
+
? index_js_3.ResourceMetadata.toJSON(message.metadata, use)
|
|
14833
|
+
: undefined;
|
|
14834
|
+
}
|
|
14835
|
+
if (message.spec !== undefined) {
|
|
14836
|
+
obj[pick("spec", "spec")] = message.spec
|
|
14837
|
+
? exports.NVLInstanceGroupSpec.toJSON(message.spec, use)
|
|
14838
|
+
: undefined;
|
|
14839
|
+
}
|
|
14840
|
+
if (message.status !== undefined) {
|
|
14841
|
+
obj[pick("status", "status")] = message.status
|
|
14842
|
+
? exports.NVLInstanceGroupStatus.toJSON(message.status, use)
|
|
14843
|
+
: undefined;
|
|
14844
|
+
}
|
|
14845
|
+
return obj;
|
|
14846
|
+
},
|
|
14847
|
+
create(base) {
|
|
14848
|
+
return exports.NVLInstanceGroup.fromPartial(base ?? {});
|
|
14849
|
+
},
|
|
14850
|
+
fromPartial(object) {
|
|
14851
|
+
const message = createBaseNVLInstanceGroup();
|
|
14852
|
+
message.metadata = (object.metadata !== undefined && object.metadata !== null)
|
|
14853
|
+
? index_js_3.ResourceMetadata.fromPartial(object.metadata)
|
|
14854
|
+
: undefined;
|
|
14855
|
+
message.spec = (object.spec !== undefined && object.spec !== null)
|
|
14856
|
+
? exports.NVLInstanceGroupSpec.fromPartial(object.spec)
|
|
14857
|
+
: undefined;
|
|
14858
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
14859
|
+
? exports.NVLInstanceGroupStatus.fromPartial(object.status)
|
|
14860
|
+
: undefined;
|
|
14861
|
+
return message;
|
|
14862
|
+
},
|
|
14863
|
+
};
|
|
14864
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.NVLInstanceGroup);
|
|
14865
|
+
function NVLInstanceGroupCustomInspect() {
|
|
14866
|
+
const parts = [];
|
|
14867
|
+
if (this.metadata !== undefined)
|
|
14868
|
+
parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
|
|
14869
|
+
if (this.spec !== undefined)
|
|
14870
|
+
parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
|
|
14871
|
+
if (this.status !== undefined)
|
|
14872
|
+
parts.push("status" + "=" + (0, util_1.inspect)(this.status));
|
|
14873
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
14874
|
+
}
|
|
14875
|
+
function NVLInstanceGroupCustomJson() {
|
|
14876
|
+
const obj = {
|
|
14877
|
+
type: this.$type,
|
|
14878
|
+
};
|
|
14879
|
+
if (this.metadata !== undefined)
|
|
14880
|
+
obj.metadata = (0, logging_js_1.inspectJson)(this.metadata);
|
|
14881
|
+
if (this.spec !== undefined)
|
|
14882
|
+
obj.spec = (0, logging_js_1.inspectJson)(this.spec);
|
|
14883
|
+
if (this.status !== undefined)
|
|
14884
|
+
obj.status = (0, logging_js_1.inspectJson)(this.status);
|
|
14885
|
+
return obj;
|
|
14886
|
+
}
|
|
14887
|
+
function applyNVLInstanceGroupCustom(message) {
|
|
14888
|
+
message[logging_js_1.custom] = NVLInstanceGroupCustomInspect;
|
|
14889
|
+
message[logging_js_1.customJson] = NVLInstanceGroupCustomJson;
|
|
14890
|
+
return message;
|
|
14891
|
+
}
|
|
14892
|
+
function createBaseNVLInstanceGroup() {
|
|
14893
|
+
const message = {
|
|
14894
|
+
$type: "nebius.compute.v1.NVLInstanceGroup",
|
|
14895
|
+
metadata: undefined,
|
|
14896
|
+
spec: undefined,
|
|
14897
|
+
status: undefined,
|
|
14898
|
+
};
|
|
14899
|
+
return applyNVLInstanceGroupCustom(message);
|
|
14900
|
+
}
|
|
14901
|
+
exports.NVLInstanceGroupSpec = {
|
|
14902
|
+
$type: "nebius.compute.v1.NVLInstanceGroupSpec",
|
|
14903
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
14904
|
+
if ((message.type ?? exports.NVLInstanceGroupSpec_NVLInstanceGroupType.UNSPECIFIED) !== exports.NVLInstanceGroupSpec_NVLInstanceGroupType.UNSPECIFIED) {
|
|
14905
|
+
exports.NVLInstanceGroupSpec_NVLInstanceGroupType.encodeField(writer, 1, message.type);
|
|
14906
|
+
}
|
|
14907
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
14908
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
14909
|
+
}
|
|
14910
|
+
return writer;
|
|
14911
|
+
},
|
|
14912
|
+
decode(input, length) {
|
|
14913
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
14914
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14915
|
+
const message = createBaseNVLInstanceGroupSpec();
|
|
14916
|
+
let writer = undefined;
|
|
14917
|
+
while (reader.pos < end) {
|
|
14918
|
+
const tag = reader.uint32();
|
|
14919
|
+
switch (tag >>> 3) {
|
|
14920
|
+
case 1: {
|
|
14921
|
+
if (tag !== 8)
|
|
14922
|
+
break;
|
|
14923
|
+
message.type = exports.NVLInstanceGroupSpec_NVLInstanceGroupType.fromNumber(reader.int32());
|
|
14924
|
+
continue;
|
|
14925
|
+
}
|
|
14926
|
+
default:
|
|
14927
|
+
break;
|
|
14928
|
+
}
|
|
14929
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14930
|
+
break;
|
|
14931
|
+
}
|
|
14932
|
+
{
|
|
14933
|
+
if (!writer)
|
|
14934
|
+
writer = new index_js_1.BinaryWriter();
|
|
14935
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
14936
|
+
writer.uint32(tag).raw(skipped);
|
|
14937
|
+
}
|
|
14938
|
+
}
|
|
14939
|
+
if (writer) {
|
|
14940
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
14941
|
+
}
|
|
14942
|
+
return message;
|
|
14943
|
+
},
|
|
14944
|
+
fromJSON(object) {
|
|
14945
|
+
return applyNVLInstanceGroupSpecCustom({
|
|
14946
|
+
$type: "nebius.compute.v1.NVLInstanceGroupSpec",
|
|
14947
|
+
type: (0, index_js_1.isSet)(object.type ?? object.type)
|
|
14948
|
+
? exports.NVLInstanceGroupSpec_NVLInstanceGroupType.fromJSON(object.type ?? object.type)
|
|
14949
|
+
: exports.NVLInstanceGroupSpec_NVLInstanceGroupType.UNSPECIFIED,
|
|
14950
|
+
});
|
|
14951
|
+
},
|
|
14952
|
+
toJSON(message, use = "json") {
|
|
14953
|
+
const obj = {};
|
|
14954
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
14955
|
+
if ((message.type ?? exports.NVLInstanceGroupSpec_NVLInstanceGroupType.UNSPECIFIED) !== exports.NVLInstanceGroupSpec_NVLInstanceGroupType.UNSPECIFIED) {
|
|
14956
|
+
obj[pick("type", "type")] = exports.NVLInstanceGroupSpec_NVLInstanceGroupType.toJSON(message.type);
|
|
14957
|
+
}
|
|
14958
|
+
return obj;
|
|
14959
|
+
},
|
|
14960
|
+
create(base) {
|
|
14961
|
+
return exports.NVLInstanceGroupSpec.fromPartial(base ?? {});
|
|
14962
|
+
},
|
|
14963
|
+
fromPartial(object) {
|
|
14964
|
+
const message = createBaseNVLInstanceGroupSpec();
|
|
14965
|
+
message.type = (object.type !== undefined && object.type !== null)
|
|
14966
|
+
? exports.NVLInstanceGroupSpec_NVLInstanceGroupType.fromJSON(object.type.name)
|
|
14967
|
+
: exports.NVLInstanceGroupSpec_NVLInstanceGroupType.UNSPECIFIED;
|
|
14968
|
+
return message;
|
|
14969
|
+
},
|
|
14970
|
+
};
|
|
14971
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.NVLInstanceGroupSpec);
|
|
14972
|
+
function NVLInstanceGroupSpecCustomInspect() {
|
|
14973
|
+
const parts = [];
|
|
14974
|
+
if (this.type !== undefined)
|
|
14975
|
+
parts.push("type" + "=" + (0, util_1.inspect)(this.type));
|
|
14976
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
14977
|
+
}
|
|
14978
|
+
function NVLInstanceGroupSpecCustomJson() {
|
|
14979
|
+
const obj = {
|
|
14980
|
+
type: this.$type,
|
|
14981
|
+
};
|
|
14982
|
+
if (this.type !== undefined)
|
|
14983
|
+
obj.type = (0, logging_js_1.inspectJson)(this.type);
|
|
14984
|
+
return obj;
|
|
14985
|
+
}
|
|
14986
|
+
function applyNVLInstanceGroupSpecCustom(message) {
|
|
14987
|
+
message[logging_js_1.custom] = NVLInstanceGroupSpecCustomInspect;
|
|
14988
|
+
message[logging_js_1.customJson] = NVLInstanceGroupSpecCustomJson;
|
|
14989
|
+
return message;
|
|
14990
|
+
}
|
|
14991
|
+
function createBaseNVLInstanceGroupSpec() {
|
|
14992
|
+
const message = {
|
|
14993
|
+
$type: "nebius.compute.v1.NVLInstanceGroupSpec",
|
|
14994
|
+
type: exports.NVLInstanceGroupSpec_NVLInstanceGroupType.UNSPECIFIED,
|
|
14995
|
+
};
|
|
14996
|
+
return applyNVLInstanceGroupSpecCustom(message);
|
|
14997
|
+
}
|
|
14998
|
+
exports.NVLInstanceGroupStatus = {
|
|
14999
|
+
$type: "nebius.compute.v1.NVLInstanceGroupStatus",
|
|
15000
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
15001
|
+
for (const [k, v] of Object.entries(message.instances ?? {})) {
|
|
15002
|
+
const w = writer.uint32(10).fork();
|
|
15003
|
+
w.uint32(10).string(k);
|
|
15004
|
+
(() => {
|
|
15005
|
+
const w2 = writer.uint32(18).fork();
|
|
15006
|
+
exports.NVLInstanceGroupStatus_InstanceInfo.encode(v, w2);
|
|
15007
|
+
w2.join();
|
|
15008
|
+
})();
|
|
15009
|
+
w.join();
|
|
15010
|
+
}
|
|
15011
|
+
if (message.reconciling === true) {
|
|
15012
|
+
writer.uint32(24).bool(message.reconciling);
|
|
15013
|
+
}
|
|
15014
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
15015
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
15016
|
+
}
|
|
15017
|
+
return writer;
|
|
15018
|
+
},
|
|
15019
|
+
decode(input, length) {
|
|
15020
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
15021
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15022
|
+
const message = createBaseNVLInstanceGroupStatus();
|
|
15023
|
+
let writer = undefined;
|
|
15024
|
+
while (reader.pos < end) {
|
|
15025
|
+
const tag = reader.uint32();
|
|
15026
|
+
switch (tag >>> 3) {
|
|
15027
|
+
case 1: {
|
|
15028
|
+
if (tag !== 10)
|
|
15029
|
+
break; // wire type guard
|
|
15030
|
+
const end2 = reader.uint32() + reader.pos;
|
|
15031
|
+
let key = "";
|
|
15032
|
+
let value = undefined;
|
|
15033
|
+
while (reader.pos < end2) {
|
|
15034
|
+
const tag2 = reader.uint32();
|
|
15035
|
+
switch (tag2 >>> 3) {
|
|
15036
|
+
case 1: {
|
|
15037
|
+
key = reader.string();
|
|
15038
|
+
continue;
|
|
15039
|
+
}
|
|
15040
|
+
case 2: {
|
|
15041
|
+
value = exports.NVLInstanceGroupStatus_InstanceInfo.decode(reader, reader.uint32());
|
|
15042
|
+
continue;
|
|
15043
|
+
}
|
|
15044
|
+
}
|
|
15045
|
+
if ((tag2 & 7) === 4 || tag2 === 0)
|
|
15046
|
+
break;
|
|
15047
|
+
reader.skip(tag2 & 7);
|
|
15048
|
+
}
|
|
15049
|
+
if (value !== undefined) {
|
|
15050
|
+
const stringKey = String(key);
|
|
15051
|
+
message.instances[stringKey] = value;
|
|
15052
|
+
}
|
|
15053
|
+
continue;
|
|
15054
|
+
}
|
|
15055
|
+
case 3: {
|
|
15056
|
+
if (tag !== 24)
|
|
15057
|
+
break;
|
|
15058
|
+
message.reconciling = reader.bool();
|
|
15059
|
+
continue;
|
|
15060
|
+
}
|
|
15061
|
+
default:
|
|
15062
|
+
break;
|
|
15063
|
+
}
|
|
15064
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15065
|
+
break;
|
|
15066
|
+
}
|
|
15067
|
+
{
|
|
15068
|
+
if (!writer)
|
|
15069
|
+
writer = new index_js_1.BinaryWriter();
|
|
15070
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
15071
|
+
writer.uint32(tag).raw(skipped);
|
|
15072
|
+
}
|
|
15073
|
+
}
|
|
15074
|
+
if (writer) {
|
|
15075
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
15076
|
+
}
|
|
15077
|
+
return message;
|
|
15078
|
+
},
|
|
15079
|
+
fromJSON(object) {
|
|
15080
|
+
return applyNVLInstanceGroupStatusCustom({
|
|
15081
|
+
$type: "nebius.compute.v1.NVLInstanceGroupStatus",
|
|
15082
|
+
instances: ((0, index_js_1.isSet)(object.instances) && typeof object.instances === "object" ? object.instances
|
|
15083
|
+
: ((0, index_js_1.isSet)(object.instances) && typeof object.instances === "object" ? object.instances : undefined))
|
|
15084
|
+
? Object.entries((object.instances ?? object.instances)).reduce((acc, [key, value]) => {
|
|
15085
|
+
acc[key] = exports.NVLInstanceGroupStatus_InstanceInfo.fromJSON(value);
|
|
15086
|
+
return acc;
|
|
15087
|
+
}, {})
|
|
15088
|
+
: {},
|
|
15089
|
+
reconciling: (0, index_js_1.isSet)(object.reconciling ?? object.reconciling)
|
|
15090
|
+
? Boolean(object.reconciling ?? object.reconciling)
|
|
15091
|
+
: false,
|
|
15092
|
+
});
|
|
15093
|
+
},
|
|
15094
|
+
toJSON(message, use = "json") {
|
|
15095
|
+
const obj = {};
|
|
15096
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
15097
|
+
if (message.instances) {
|
|
15098
|
+
const entries = Object.entries(message.instances);
|
|
15099
|
+
if (entries.length > 0) {
|
|
15100
|
+
obj[pick("instances", "instances")] = {};
|
|
15101
|
+
entries.forEach(([k, v]) => {
|
|
15102
|
+
obj[pick("instances", "instances")][k] = exports.NVLInstanceGroupStatus_InstanceInfo.toJSON(v, use);
|
|
15103
|
+
});
|
|
15104
|
+
}
|
|
15105
|
+
}
|
|
15106
|
+
if (message.reconciling === true) {
|
|
15107
|
+
obj[pick("reconciling", "reconciling")] = message.reconciling;
|
|
15108
|
+
}
|
|
15109
|
+
return obj;
|
|
15110
|
+
},
|
|
15111
|
+
create(base) {
|
|
15112
|
+
return exports.NVLInstanceGroupStatus.fromPartial(base ?? {});
|
|
15113
|
+
},
|
|
15114
|
+
fromPartial(object) {
|
|
15115
|
+
const message = createBaseNVLInstanceGroupStatus();
|
|
15116
|
+
message.instances = Object.entries(object.instances ?? {}).reduce((acc, [key, value]) => {
|
|
15117
|
+
if (value !== undefined) {
|
|
15118
|
+
acc[key] = exports.NVLInstanceGroupStatus_InstanceInfo.fromPartial(value);
|
|
15119
|
+
}
|
|
15120
|
+
return acc;
|
|
15121
|
+
}, {});
|
|
15122
|
+
message.reconciling = (object.reconciling !== undefined && object.reconciling !== null)
|
|
15123
|
+
? object.reconciling
|
|
15124
|
+
: false;
|
|
15125
|
+
return message;
|
|
15126
|
+
},
|
|
15127
|
+
};
|
|
15128
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.NVLInstanceGroupStatus);
|
|
15129
|
+
function NVLInstanceGroupStatusCustomInspect() {
|
|
15130
|
+
const parts = [];
|
|
15131
|
+
if (Object.keys(this.instances || {}).length)
|
|
15132
|
+
parts.push("instances" + "=" + (0, util_1.inspect)(this.instances));
|
|
15133
|
+
if (this.reconciling === true)
|
|
15134
|
+
parts.push("reconciling" + "=" + (0, util_1.inspect)(this.reconciling));
|
|
15135
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
15136
|
+
}
|
|
15137
|
+
function NVLInstanceGroupStatusCustomJson() {
|
|
15138
|
+
const obj = {
|
|
15139
|
+
type: this.$type,
|
|
15140
|
+
};
|
|
15141
|
+
if (Object.keys(this.instances || {}).length)
|
|
15142
|
+
obj.instances = (0, logging_js_1.inspectJson)(this.instances);
|
|
15143
|
+
if (this.reconciling === true)
|
|
15144
|
+
obj.reconciling = (0, logging_js_1.inspectJson)(this.reconciling);
|
|
15145
|
+
return obj;
|
|
15146
|
+
}
|
|
15147
|
+
function applyNVLInstanceGroupStatusCustom(message) {
|
|
15148
|
+
message[logging_js_1.custom] = NVLInstanceGroupStatusCustomInspect;
|
|
15149
|
+
message[logging_js_1.customJson] = NVLInstanceGroupStatusCustomJson;
|
|
15150
|
+
return message;
|
|
15151
|
+
}
|
|
15152
|
+
function createBaseNVLInstanceGroupStatus() {
|
|
15153
|
+
const message = {
|
|
15154
|
+
$type: "nebius.compute.v1.NVLInstanceGroupStatus",
|
|
15155
|
+
instances: {},
|
|
15156
|
+
reconciling: false,
|
|
15157
|
+
};
|
|
15158
|
+
return applyNVLInstanceGroupStatusCustom(message);
|
|
15159
|
+
}
|
|
15160
|
+
exports.NVLInstanceGroupStatus_InstanceInfo = {
|
|
15161
|
+
$type: "nebius.compute.v1.NVLInstanceGroupStatus.InstanceInfo",
|
|
15162
|
+
encode(message, writer = new index_js_1.BinaryWriter()) {
|
|
15163
|
+
if ((message.instanceState ?? exports.InstanceStatus_InstanceState.UNSPECIFIED) !== exports.InstanceStatus_InstanceState.UNSPECIFIED) {
|
|
15164
|
+
exports.InstanceStatus_InstanceState.encodeField(writer, 1, message.instanceState);
|
|
15165
|
+
}
|
|
15166
|
+
if (message[index_js_1.unknownFieldsSymbol]) {
|
|
15167
|
+
writer.raw(message[index_js_1.unknownFieldsSymbol]);
|
|
15168
|
+
}
|
|
15169
|
+
return writer;
|
|
15170
|
+
},
|
|
15171
|
+
decode(input, length) {
|
|
15172
|
+
const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
|
|
15173
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
15174
|
+
const message = createBaseNVLInstanceGroupStatus_InstanceInfo();
|
|
15175
|
+
let writer = undefined;
|
|
15176
|
+
while (reader.pos < end) {
|
|
15177
|
+
const tag = reader.uint32();
|
|
15178
|
+
switch (tag >>> 3) {
|
|
15179
|
+
case 1: {
|
|
15180
|
+
if (tag !== 8)
|
|
15181
|
+
break;
|
|
15182
|
+
message.instanceState = exports.InstanceStatus_InstanceState.fromNumber(reader.int32());
|
|
15183
|
+
continue;
|
|
15184
|
+
}
|
|
15185
|
+
default:
|
|
15186
|
+
break;
|
|
15187
|
+
}
|
|
15188
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15189
|
+
break;
|
|
15190
|
+
}
|
|
15191
|
+
{
|
|
15192
|
+
if (!writer)
|
|
15193
|
+
writer = new index_js_1.BinaryWriter();
|
|
15194
|
+
const skipped = reader.skip(tag & 7, tag >>> 3);
|
|
15195
|
+
writer.uint32(tag).raw(skipped);
|
|
15196
|
+
}
|
|
15197
|
+
}
|
|
15198
|
+
if (writer) {
|
|
15199
|
+
message[index_js_1.unknownFieldsSymbol] = writer.finish();
|
|
15200
|
+
}
|
|
15201
|
+
return message;
|
|
15202
|
+
},
|
|
15203
|
+
fromJSON(object) {
|
|
15204
|
+
return applyNVLInstanceGroupStatus_InstanceInfoCustom({
|
|
15205
|
+
$type: "nebius.compute.v1.NVLInstanceGroupStatus.InstanceInfo",
|
|
15206
|
+
instanceState: (0, index_js_1.isSet)(object.instanceState ?? object.instance_state)
|
|
15207
|
+
? exports.InstanceStatus_InstanceState.fromJSON(object.instanceState ?? object.instance_state)
|
|
15208
|
+
: exports.InstanceStatus_InstanceState.UNSPECIFIED,
|
|
15209
|
+
});
|
|
15210
|
+
},
|
|
15211
|
+
toJSON(message, use = "json") {
|
|
15212
|
+
const obj = {};
|
|
15213
|
+
const pick = (json, pb) => (use === "json" ? json : pb);
|
|
15214
|
+
if ((message.instanceState ?? exports.InstanceStatus_InstanceState.UNSPECIFIED) !== exports.InstanceStatus_InstanceState.UNSPECIFIED) {
|
|
15215
|
+
obj[pick("instanceState", "instance_state")] = exports.InstanceStatus_InstanceState.toJSON(message.instanceState);
|
|
15216
|
+
}
|
|
15217
|
+
return obj;
|
|
15218
|
+
},
|
|
15219
|
+
create(base) {
|
|
15220
|
+
return exports.NVLInstanceGroupStatus_InstanceInfo.fromPartial(base ?? {});
|
|
15221
|
+
},
|
|
15222
|
+
fromPartial(object) {
|
|
15223
|
+
const message = createBaseNVLInstanceGroupStatus_InstanceInfo();
|
|
15224
|
+
message.instanceState = (object.instanceState !== undefined && object.instanceState !== null)
|
|
15225
|
+
? exports.InstanceStatus_InstanceState.fromJSON(object.instanceState.name)
|
|
15226
|
+
: exports.InstanceStatus_InstanceState.UNSPECIFIED;
|
|
15227
|
+
return message;
|
|
15228
|
+
},
|
|
15229
|
+
};
|
|
15230
|
+
protobuf_js_1.protoRegistry.registerMessage(exports.NVLInstanceGroupStatus_InstanceInfo);
|
|
15231
|
+
function NVLInstanceGroupStatus_InstanceInfoCustomInspect() {
|
|
15232
|
+
const parts = [];
|
|
15233
|
+
if (this.instanceState !== undefined)
|
|
15234
|
+
parts.push("instanceState" + "=" + (0, util_1.inspect)(this.instanceState));
|
|
15235
|
+
return `${this.$type}(${parts.join(", ")})`;
|
|
15236
|
+
}
|
|
15237
|
+
function NVLInstanceGroupStatus_InstanceInfoCustomJson() {
|
|
15238
|
+
const obj = {
|
|
15239
|
+
type: this.$type,
|
|
15240
|
+
};
|
|
15241
|
+
if (this.instanceState !== undefined)
|
|
15242
|
+
obj.instanceState = (0, logging_js_1.inspectJson)(this.instanceState);
|
|
15243
|
+
return obj;
|
|
15244
|
+
}
|
|
15245
|
+
function applyNVLInstanceGroupStatus_InstanceInfoCustom(message) {
|
|
15246
|
+
message[logging_js_1.custom] = NVLInstanceGroupStatus_InstanceInfoCustomInspect;
|
|
15247
|
+
message[logging_js_1.customJson] = NVLInstanceGroupStatus_InstanceInfoCustomJson;
|
|
15248
|
+
return message;
|
|
15249
|
+
}
|
|
15250
|
+
function createBaseNVLInstanceGroupStatus_InstanceInfo() {
|
|
15251
|
+
const message = {
|
|
15252
|
+
$type: "nebius.compute.v1.NVLInstanceGroupStatus.InstanceInfo",
|
|
15253
|
+
instanceState: exports.InstanceStatus_InstanceState.UNSPECIFIED,
|
|
15254
|
+
};
|
|
15255
|
+
return applyNVLInstanceGroupStatus_InstanceInfoCustom(message);
|
|
15256
|
+
}
|
|
14010
15257
|
exports.ListOperationsByParentRequest = {
|
|
14011
15258
|
$type: "nebius.compute.v1.ListOperationsByParentRequest",
|
|
14012
15259
|
encode(message, writer = new index_js_1.BinaryWriter()) {
|