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