@nebius/js-sdk 0.2.10 → 0.2.12

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.
Files changed (45) hide show
  1. package/dist/cjs/api/nebius/audit/v2/index.d.ts +1 -0
  2. package/dist/cjs/api/nebius/audit/v2/index.d.ts.map +1 -1
  3. package/dist/cjs/api/nebius/audit/v2/index.js +6 -0
  4. package/dist/cjs/api/nebius/audit/v2/index.js.map +1 -1
  5. package/dist/cjs/api/nebius/compute/v1/index.d.ts +248 -5
  6. package/dist/cjs/api/nebius/compute/v1/index.d.ts.map +1 -1
  7. package/dist/cjs/api/nebius/compute/v1/index.js +1248 -1
  8. package/dist/cjs/api/nebius/compute/v1/index.js.map +1 -1
  9. package/dist/cjs/api/nebius/dns/v1/index.d.ts +270 -1
  10. package/dist/cjs/api/nebius/dns/v1/index.d.ts.map +1 -1
  11. package/dist/cjs/api/nebius/dns/v1/index.js +1407 -499
  12. package/dist/cjs/api/nebius/dns/v1/index.js.map +1 -1
  13. package/dist/cjs/api/nebius/iam/v1/index.d.ts +6 -1
  14. package/dist/cjs/api/nebius/iam/v1/index.d.ts.map +1 -1
  15. package/dist/cjs/api/nebius/iam/v1/index.js +26 -0
  16. package/dist/cjs/api/nebius/iam/v1/index.js.map +1 -1
  17. package/dist/cjs/api/nebius/mk8s/v1/index.d.ts +1 -1
  18. package/dist/cjs/api/nebius/mk8s/v1/index.d.ts.map +1 -1
  19. package/dist/cjs/api/nebius/mk8s/v1/index.js +23 -0
  20. package/dist/cjs/api/nebius/mk8s/v1/index.js.map +1 -1
  21. package/dist/cjs/version.d.ts +1 -1
  22. package/dist/cjs/version.js +1 -1
  23. package/dist/esm/api/nebius/audit/v2/index.d.ts +1 -0
  24. package/dist/esm/api/nebius/audit/v2/index.d.ts.map +1 -1
  25. package/dist/esm/api/nebius/audit/v2/index.js +6 -0
  26. package/dist/esm/api/nebius/audit/v2/index.js.map +1 -1
  27. package/dist/esm/api/nebius/compute/v1/index.d.ts +248 -5
  28. package/dist/esm/api/nebius/compute/v1/index.d.ts.map +1 -1
  29. package/dist/esm/api/nebius/compute/v1/index.js +1246 -0
  30. package/dist/esm/api/nebius/compute/v1/index.js.map +1 -1
  31. package/dist/esm/api/nebius/dns/v1/index.d.ts +270 -1
  32. package/dist/esm/api/nebius/dns/v1/index.d.ts.map +1 -1
  33. package/dist/esm/api/nebius/dns/v1/index.js +1407 -499
  34. package/dist/esm/api/nebius/dns/v1/index.js.map +1 -1
  35. package/dist/esm/api/nebius/iam/v1/index.d.ts +6 -1
  36. package/dist/esm/api/nebius/iam/v1/index.d.ts.map +1 -1
  37. package/dist/esm/api/nebius/iam/v1/index.js +26 -0
  38. package/dist/esm/api/nebius/iam/v1/index.js.map +1 -1
  39. package/dist/esm/api/nebius/mk8s/v1/index.d.ts +1 -1
  40. package/dist/esm/api/nebius/mk8s/v1/index.d.ts.map +1 -1
  41. package/dist/esm/api/nebius/mk8s/v1/index.js +23 -0
  42. package/dist/esm/api/nebius/mk8s/v1/index.js.map +1 -1
  43. package/dist/esm/version.d.ts +1 -1
  44. package/dist/esm/version.js +1 -1
  45. package/package.json +1 -1
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  /* Generated by Nebius TS generator. DO NOT EDIT! */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ListZonesResponse = exports.ListZonesRequest = exports.GetZoneRequest = exports.ZoneStatus = exports.SoaSpec = exports.VpcZoneScope = exports.ZoneSpec = exports.Zone = exports.ZoneService = exports.ZoneServiceBaseClient = exports.ZoneServiceServiceDescription = exports.ListRecordsResponse = exports.ListRecordsRequest = exports.GetRecordRequest = exports.RecordStatus = exports.RecordSpec = exports.Record = exports.RecordSpec_RecordType = exports.RecordService = exports.RecordServiceBaseClient = exports.RecordServiceServiceDescription = void 0;
4
+ exports.DeleteZoneRequest = exports.UpdateZoneRequest = exports.CreateZoneRequest = exports.ListZonesResponse = exports.ListZonesRequest = exports.GetZoneRequest = exports.ZoneStatus = exports.SoaSpec = exports.VpcZoneScope = exports.ZoneSpec = exports.Zone = exports.ZoneService = exports.ZoneServiceBaseClient = exports.ZoneServiceServiceDescription = exports.DeleteRecordRequest = exports.UpdateRecordRequest = exports.CreateRecordRequest = exports.ListRecordsResponse = exports.ListRecordsRequest = exports.GetRecordRequest = exports.RecordStatus = exports.RecordSpec = exports.Record = exports.RecordSpec_RecordType = exports.RecordService = exports.RecordServiceBaseClient = exports.RecordServiceServiceDescription = void 0;
5
5
  const index_js_1 = require("../../../../runtime/protos/index.js");
6
6
  const util_1 = require("util");
7
7
  const protobuf_js_1 = require("../../../protobuf.js");
8
8
  const logging_js_1 = require("../../../../runtime/util/logging.js");
9
9
  const grpc_js_1 = require("@grpc/grpc-js");
10
10
  const request_js_1 = require("../../../../runtime/request.js");
11
+ const operation_js_1 = require("../../../../runtime/operation.js");
11
12
  const index_js_2 = require("../../common/v1/index.js");
12
13
  const __deprecatedWarned = new Set();
13
14
  exports.RecordServiceServiceDescription = {
@@ -41,6 +42,36 @@ exports.RecordServiceServiceDescription = {
41
42
  responseSerialize: (value) => Buffer.from(exports.ListRecordsResponse.encode(value).finish()),
42
43
  responseDeserialize: (value) => exports.ListRecordsResponse.decode(value),
43
44
  },
45
+ create: {
46
+ path: "/nebius.dns.v1.RecordService/Create",
47
+ requestStream: false,
48
+ responseStream: false,
49
+ requestSerialize: (value) => Buffer.from(exports.CreateRecordRequest.encode(value).finish()),
50
+ sendResetMask: false,
51
+ requestDeserialize: (value) => exports.CreateRecordRequest.decode(value),
52
+ responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
53
+ responseDeserialize: (value) => index_js_2.Operation.decode(value),
54
+ },
55
+ update: {
56
+ path: "/nebius.dns.v1.RecordService/Update",
57
+ requestStream: false,
58
+ responseStream: false,
59
+ requestSerialize: (value) => Buffer.from(exports.UpdateRecordRequest.encode(value).finish()),
60
+ sendResetMask: true,
61
+ requestDeserialize: (value) => exports.UpdateRecordRequest.decode(value),
62
+ responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
63
+ responseDeserialize: (value) => index_js_2.Operation.decode(value),
64
+ },
65
+ delete: {
66
+ path: "/nebius.dns.v1.RecordService/Delete",
67
+ requestStream: false,
68
+ responseStream: false,
69
+ requestSerialize: (value) => Buffer.from(exports.DeleteRecordRequest.encode(value).finish()),
70
+ sendResetMask: false,
71
+ requestDeserialize: (value) => exports.DeleteRecordRequest.decode(value),
72
+ responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
73
+ responseDeserialize: (value) => index_js_2.Operation.decode(value),
74
+ },
44
75
  };
45
76
  exports.RecordServiceBaseClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.RecordServiceServiceDescription, "nebius.dns.v1.RecordService");
46
77
  class RecordService {
@@ -55,6 +86,9 @@ class RecordService {
55
86
  this.addr = addr;
56
87
  this.spec = exports.RecordServiceServiceDescription;
57
88
  }
89
+ getOperationService() {
90
+ return new index_js_2.OperationService(this.sdk, this.addr);
91
+ }
58
92
  get(...args) {
59
93
  const spec = this.spec.get;
60
94
  const request = args[0];
@@ -79,6 +113,39 @@ class RecordService {
79
113
  const deserialize = spec.responseDeserialize;
80
114
  return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
81
115
  }
116
+ create(...args) {
117
+ const spec = this.spec.create;
118
+ const request = args[0];
119
+ const metadata = (args.length > 1 ? args[1] : undefined);
120
+ const options = (args.length > 2 ? args[2] : undefined);
121
+ const deserialize = (value) => {
122
+ const resp = spec.responseDeserialize(value);
123
+ return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
124
+ };
125
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
126
+ }
127
+ update(...args) {
128
+ const spec = this.spec.update;
129
+ const request = args[0];
130
+ const metadata = (args.length > 1 ? args[1] : undefined);
131
+ const options = (args.length > 2 ? args[2] : undefined);
132
+ const deserialize = (value) => {
133
+ const resp = spec.responseDeserialize(value);
134
+ return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
135
+ };
136
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
137
+ }
138
+ delete(...args) {
139
+ const spec = this.spec.delete;
140
+ const request = args[0];
141
+ const metadata = (args.length > 1 ? args[1] : undefined);
142
+ const options = (args.length > 2 ? args[2] : undefined);
143
+ const deserialize = (value) => {
144
+ const resp = spec.responseDeserialize(value);
145
+ return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
146
+ };
147
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
148
+ }
82
149
  }
83
150
  exports.RecordService = RecordService;
84
151
  const RecordSpec_RecordType_VALUE_COMMENTS = {
@@ -1035,79 +1102,8 @@ function createBaseListRecordsResponse() {
1035
1102
  };
1036
1103
  return applyListRecordsResponseCustom(message);
1037
1104
  }
1038
- exports.ZoneServiceServiceDescription = {
1039
- get: {
1040
- path: "/nebius.dns.v1.ZoneService/Get",
1041
- requestStream: false,
1042
- responseStream: false,
1043
- requestSerialize: (value) => Buffer.from(exports.GetZoneRequest.encode(value).finish()),
1044
- sendResetMask: false,
1045
- requestDeserialize: (value) => exports.GetZoneRequest.decode(value),
1046
- responseSerialize: (value) => Buffer.from(exports.Zone.encode(value).finish()),
1047
- responseDeserialize: (value) => exports.Zone.decode(value),
1048
- },
1049
- getByName: {
1050
- path: "/nebius.dns.v1.ZoneService/GetByName",
1051
- requestStream: false,
1052
- responseStream: false,
1053
- requestSerialize: (value) => Buffer.from(index_js_2.GetByNameRequest.encode(value).finish()),
1054
- sendResetMask: false,
1055
- requestDeserialize: (value) => index_js_2.GetByNameRequest.decode(value),
1056
- responseSerialize: (value) => Buffer.from(exports.Zone.encode(value).finish()),
1057
- responseDeserialize: (value) => exports.Zone.decode(value),
1058
- },
1059
- list: {
1060
- path: "/nebius.dns.v1.ZoneService/List",
1061
- requestStream: false,
1062
- responseStream: false,
1063
- requestSerialize: (value) => Buffer.from(exports.ListZonesRequest.encode(value).finish()),
1064
- sendResetMask: false,
1065
- requestDeserialize: (value) => exports.ListZonesRequest.decode(value),
1066
- responseSerialize: (value) => Buffer.from(exports.ListZonesResponse.encode(value).finish()),
1067
- responseDeserialize: (value) => exports.ListZonesResponse.decode(value),
1068
- },
1069
- };
1070
- exports.ZoneServiceBaseClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.ZoneServiceServiceDescription, "nebius.dns.v1.ZoneService");
1071
- class ZoneService {
1072
- sdk;
1073
- $type = "nebius.dns.v1.ZoneService";
1074
- addr;
1075
- spec;
1076
- apiServiceName = "dns";
1077
- constructor(sdk) {
1078
- this.sdk = sdk;
1079
- const addr = sdk.getAddressFromServiceName(this.$type, this.apiServiceName);
1080
- this.addr = addr;
1081
- this.spec = exports.ZoneServiceServiceDescription;
1082
- }
1083
- get(...args) {
1084
- const spec = this.spec.get;
1085
- const request = args[0];
1086
- const metadata = (args.length > 1 ? args[1] : undefined);
1087
- const options = (args.length > 2 ? args[2] : undefined);
1088
- const deserialize = spec.responseDeserialize;
1089
- return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1090
- }
1091
- getByName(...args) {
1092
- const spec = this.spec.getByName;
1093
- const request = args[0];
1094
- const metadata = (args.length > 1 ? args[1] : undefined);
1095
- const options = (args.length > 2 ? args[2] : undefined);
1096
- const deserialize = spec.responseDeserialize;
1097
- return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1098
- }
1099
- list(...args) {
1100
- const spec = this.spec.list;
1101
- const request = args[0];
1102
- const metadata = (args.length > 1 ? args[1] : undefined);
1103
- const options = (args.length > 2 ? args[2] : undefined);
1104
- const deserialize = spec.responseDeserialize;
1105
- return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1106
- }
1107
- }
1108
- exports.ZoneService = ZoneService;
1109
- exports.Zone = {
1110
- $type: "nebius.dns.v1.Zone",
1105
+ exports.CreateRecordRequest = {
1106
+ $type: "nebius.dns.v1.CreateRecordRequest",
1111
1107
  encode(message, writer = new index_js_1.BinaryWriter()) {
1112
1108
  if (message.metadata !== undefined) {
1113
1109
  const w = writer.uint32(10).fork();
@@ -1116,12 +1112,7 @@ exports.Zone = {
1116
1112
  }
1117
1113
  if (message.spec !== undefined) {
1118
1114
  const w = writer.uint32(18).fork();
1119
- exports.ZoneSpec.encode(message.spec, w);
1120
- w.join();
1121
- }
1122
- if (message.status !== undefined) {
1123
- const w = writer.uint32(26).fork();
1124
- exports.ZoneStatus.encode(message.status, w);
1115
+ exports.RecordSpec.encode(message.spec, w);
1125
1116
  w.join();
1126
1117
  }
1127
1118
  if (message[index_js_1.unknownFieldsSymbol]) {
@@ -1132,7 +1123,7 @@ exports.Zone = {
1132
1123
  decode(input, length) {
1133
1124
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1134
1125
  const end = length === undefined ? reader.len : reader.pos + length;
1135
- const message = createBaseZone();
1126
+ const message = createBaseCreateRecordRequest();
1136
1127
  let writer = undefined;
1137
1128
  while (reader.pos < end) {
1138
1129
  const tag = reader.uint32();
@@ -1146,13 +1137,7 @@ exports.Zone = {
1146
1137
  case 2: {
1147
1138
  if (tag !== 18)
1148
1139
  break;
1149
- message.spec = exports.ZoneSpec.decode(reader, reader.uint32());
1150
- continue;
1151
- }
1152
- case 3: {
1153
- if (tag !== 26)
1154
- break;
1155
- message.status = exports.ZoneStatus.decode(reader, reader.uint32());
1140
+ message.spec = exports.RecordSpec.decode(reader, reader.uint32());
1156
1141
  continue;
1157
1142
  }
1158
1143
  default:
@@ -1174,16 +1159,13 @@ exports.Zone = {
1174
1159
  return message;
1175
1160
  },
1176
1161
  fromJSON(object) {
1177
- return applyZoneCustom({
1178
- $type: "nebius.dns.v1.Zone",
1162
+ return applyCreateRecordRequestCustom({
1163
+ $type: "nebius.dns.v1.CreateRecordRequest",
1179
1164
  metadata: (0, index_js_1.isSet)(object.metadata ?? object.metadata)
1180
1165
  ? index_js_2.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
1181
1166
  : undefined,
1182
1167
  spec: (0, index_js_1.isSet)(object.spec ?? object.spec)
1183
- ? exports.ZoneSpec.fromJSON(object.spec ?? object.spec)
1184
- : undefined,
1185
- status: (0, index_js_1.isSet)(object.status ?? object.status)
1186
- ? exports.ZoneStatus.fromJSON(object.status ?? object.status)
1168
+ ? exports.RecordSpec.fromJSON(object.spec ?? object.spec)
1187
1169
  : undefined,
1188
1170
  });
1189
1171
  },
@@ -1197,45 +1179,35 @@ exports.Zone = {
1197
1179
  }
1198
1180
  if (message.spec !== undefined) {
1199
1181
  obj[pick("spec", "spec")] = message.spec
1200
- ? exports.ZoneSpec.toJSON(message.spec, use)
1201
- : undefined;
1202
- }
1203
- if (message.status !== undefined) {
1204
- obj[pick("status", "status")] = message.status
1205
- ? exports.ZoneStatus.toJSON(message.status, use)
1182
+ ? exports.RecordSpec.toJSON(message.spec, use)
1206
1183
  : undefined;
1207
1184
  }
1208
1185
  return obj;
1209
1186
  },
1210
1187
  create(base) {
1211
- return exports.Zone.fromPartial(base ?? {});
1188
+ return exports.CreateRecordRequest.fromPartial(base ?? {});
1212
1189
  },
1213
1190
  fromPartial(object) {
1214
- const message = createBaseZone();
1191
+ const message = createBaseCreateRecordRequest();
1215
1192
  message.metadata = (object.metadata !== undefined && object.metadata !== null)
1216
1193
  ? index_js_2.ResourceMetadata.fromPartial(object.metadata)
1217
1194
  : undefined;
1218
1195
  message.spec = (object.spec !== undefined && object.spec !== null)
1219
- ? exports.ZoneSpec.fromPartial(object.spec)
1220
- : undefined;
1221
- message.status = (object.status !== undefined && object.status !== null)
1222
- ? exports.ZoneStatus.fromPartial(object.status)
1196
+ ? exports.RecordSpec.fromPartial(object.spec)
1223
1197
  : undefined;
1224
1198
  return message;
1225
1199
  },
1226
1200
  };
1227
- protobuf_js_1.protoRegistry.registerMessage(exports.Zone);
1228
- function ZoneCustomInspect() {
1201
+ protobuf_js_1.protoRegistry.registerMessage(exports.CreateRecordRequest);
1202
+ function CreateRecordRequestCustomInspect() {
1229
1203
  const parts = [];
1230
1204
  if (this.metadata !== undefined)
1231
1205
  parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
1232
1206
  if (this.spec !== undefined)
1233
1207
  parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
1234
- if (this.status !== undefined)
1235
- parts.push("status" + "=" + (0, util_1.inspect)(this.status));
1236
1208
  return `${this.$type}(${parts.join(", ")})`;
1237
1209
  }
1238
- function ZoneCustomJson() {
1210
+ function CreateRecordRequestCustomJson() {
1239
1211
  const obj = {
1240
1212
  type: this.$type,
1241
1213
  };
@@ -1243,39 +1215,32 @@ function ZoneCustomJson() {
1243
1215
  obj.metadata = (0, logging_js_1.inspectJson)(this.metadata);
1244
1216
  if (this.spec !== undefined)
1245
1217
  obj.spec = (0, logging_js_1.inspectJson)(this.spec);
1246
- if (this.status !== undefined)
1247
- obj.status = (0, logging_js_1.inspectJson)(this.status);
1248
1218
  return obj;
1249
1219
  }
1250
- function applyZoneCustom(message) {
1251
- message[logging_js_1.custom] = ZoneCustomInspect;
1252
- message[logging_js_1.customJson] = ZoneCustomJson;
1220
+ function applyCreateRecordRequestCustom(message) {
1221
+ message[logging_js_1.custom] = CreateRecordRequestCustomInspect;
1222
+ message[logging_js_1.customJson] = CreateRecordRequestCustomJson;
1253
1223
  return message;
1254
1224
  }
1255
- function createBaseZone() {
1225
+ function createBaseCreateRecordRequest() {
1256
1226
  const message = {
1257
- $type: "nebius.dns.v1.Zone",
1227
+ $type: "nebius.dns.v1.CreateRecordRequest",
1258
1228
  metadata: undefined,
1259
1229
  spec: undefined,
1260
- status: undefined,
1261
1230
  };
1262
- return applyZoneCustom(message);
1231
+ return applyCreateRecordRequestCustom(message);
1263
1232
  }
1264
- exports.ZoneSpec = {
1265
- $type: "nebius.dns.v1.ZoneSpec",
1233
+ exports.UpdateRecordRequest = {
1234
+ $type: "nebius.dns.v1.UpdateRecordRequest",
1266
1235
  encode(message, writer = new index_js_1.BinaryWriter()) {
1267
- if (message.domainName !== "") {
1268
- writer.uint32(10).string(message.domainName);
1269
- }
1270
- if (message.soaSpec !== undefined) {
1271
- const w = writer.uint32(242).fork();
1272
- exports.SoaSpec.encode(message.soaSpec, w);
1236
+ if (message.metadata !== undefined) {
1237
+ const w = writer.uint32(10).fork();
1238
+ index_js_2.ResourceMetadata.encode(message.metadata, w);
1273
1239
  w.join();
1274
1240
  }
1275
- if (message.scope?.$case === undefined) { /* noop */ }
1276
- else if (message.scope?.$case === "vpc") {
1277
- const w = writer.uint32(98).fork();
1278
- exports.VpcZoneScope.encode(message.scope.vpc, w);
1241
+ if (message.spec !== undefined) {
1242
+ const w = writer.uint32(18).fork();
1243
+ exports.RecordSpec.encode(message.spec, w);
1279
1244
  w.join();
1280
1245
  }
1281
1246
  if (message[index_js_1.unknownFieldsSymbol]) {
@@ -1286,7 +1251,7 @@ exports.ZoneSpec = {
1286
1251
  decode(input, length) {
1287
1252
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1288
1253
  const end = length === undefined ? reader.len : reader.pos + length;
1289
- const message = createBaseZoneSpec();
1254
+ const message = createBaseUpdateRecordRequest();
1290
1255
  let writer = undefined;
1291
1256
  while (reader.pos < end) {
1292
1257
  const tag = reader.uint32();
@@ -1294,22 +1259,13 @@ exports.ZoneSpec = {
1294
1259
  case 1: {
1295
1260
  if (tag !== 10)
1296
1261
  break;
1297
- message.domainName = reader.string();
1298
- continue;
1299
- }
1300
- case 30: {
1301
- if (tag !== 242)
1302
- break;
1303
- message.soaSpec = exports.SoaSpec.decode(reader, reader.uint32());
1262
+ message.metadata = index_js_2.ResourceMetadata.decode(reader, reader.uint32());
1304
1263
  continue;
1305
1264
  }
1306
- case 12: {
1307
- if (tag !== 98)
1265
+ case 2: {
1266
+ if (tag !== 18)
1308
1267
  break;
1309
- message.scope = {
1310
- $case: "vpc",
1311
- vpc: exports.VpcZoneScope.decode(reader, reader.uint32())
1312
- };
1268
+ message.spec = exports.RecordSpec.decode(reader, reader.uint32());
1313
1269
  continue;
1314
1270
  }
1315
1271
  default:
@@ -1331,109 +1287,882 @@ exports.ZoneSpec = {
1331
1287
  return message;
1332
1288
  },
1333
1289
  fromJSON(object) {
1334
- return applyZoneSpecCustom({
1335
- $type: "nebius.dns.v1.ZoneSpec",
1336
- domainName: (0, index_js_1.isSet)(object.domainName ?? object.domain_name)
1337
- ? String(object.domainName ?? object.domain_name)
1338
- : "",
1339
- soaSpec: (0, index_js_1.isSet)(object.soaSpec ?? object.soa_spec)
1340
- ? exports.SoaSpec.fromJSON(object.soaSpec ?? object.soa_spec)
1290
+ return applyUpdateRecordRequestCustom({
1291
+ $type: "nebius.dns.v1.UpdateRecordRequest",
1292
+ metadata: (0, index_js_1.isSet)(object.metadata ?? object.metadata)
1293
+ ? index_js_2.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
1294
+ : undefined,
1295
+ spec: (0, index_js_1.isSet)(object.spec ?? object.spec)
1296
+ ? exports.RecordSpec.fromJSON(object.spec ?? object.spec)
1341
1297
  : undefined,
1342
- scope: (() => {
1343
- if ((0, index_js_1.isSet)(object.vpc) || (0, index_js_1.isSet)(object.vpc)) {
1344
- return {
1345
- $case: "vpc",
1346
- vpc: exports.VpcZoneScope.fromJSON(object.vpc ?? object.vpc)
1347
- };
1348
- }
1349
- return undefined;
1350
- })(),
1351
1298
  });
1352
1299
  },
1353
1300
  toJSON(message, use = "json") {
1354
1301
  const obj = {};
1355
1302
  const pick = (json, pb) => (use === "json" ? json : pb);
1356
- if (message.domainName !== "") {
1357
- obj[pick("domainName", "domain_name")] = message.domainName;
1358
- }
1359
- if (message.soaSpec !== undefined) {
1360
- obj[pick("soaSpec", "soa_spec")] = message.soaSpec
1361
- ? exports.SoaSpec.toJSON(message.soaSpec, use)
1303
+ if (message.metadata !== undefined) {
1304
+ obj[pick("metadata", "metadata")] = message.metadata
1305
+ ? index_js_2.ResourceMetadata.toJSON(message.metadata, use)
1362
1306
  : undefined;
1363
1307
  }
1364
- switch (message.scope?.$case) {
1365
- case "vpc": {
1366
- obj[pick("vpc", "vpc")] = exports.VpcZoneScope.toJSON(message.scope.vpc, use);
1367
- break;
1368
- }
1369
- default: break;
1308
+ if (message.spec !== undefined) {
1309
+ obj[pick("spec", "spec")] = message.spec
1310
+ ? exports.RecordSpec.toJSON(message.spec, use)
1311
+ : undefined;
1370
1312
  }
1371
1313
  return obj;
1372
1314
  },
1373
1315
  create(base) {
1374
- return exports.ZoneSpec.fromPartial(base ?? {});
1316
+ return exports.UpdateRecordRequest.fromPartial(base ?? {});
1375
1317
  },
1376
1318
  fromPartial(object) {
1377
- const message = createBaseZoneSpec();
1378
- message.domainName = (object.domainName !== undefined && object.domainName !== null)
1379
- ? object.domainName
1380
- : "";
1381
- message.soaSpec = (object.soaSpec !== undefined && object.soaSpec !== null)
1382
- ? exports.SoaSpec.fromPartial(object.soaSpec)
1319
+ const message = createBaseUpdateRecordRequest();
1320
+ message.metadata = (object.metadata !== undefined && object.metadata !== null)
1321
+ ? index_js_2.ResourceMetadata.fromPartial(object.metadata)
1322
+ : undefined;
1323
+ message.spec = (object.spec !== undefined && object.spec !== null)
1324
+ ? exports.RecordSpec.fromPartial(object.spec)
1383
1325
  : undefined;
1384
- switch (object.scope?.$case) {
1385
- case "vpc": {
1386
- if (object.scope.vpc !== undefined && object.scope.vpc !== null) {
1387
- message.scope = {
1388
- $case: "vpc",
1389
- vpc: exports.VpcZoneScope.fromPartial(object.scope.vpc),
1390
- };
1391
- }
1392
- break;
1393
- }
1394
- default: break;
1395
- }
1396
1326
  return message;
1397
1327
  },
1398
1328
  };
1399
- protobuf_js_1.protoRegistry.registerMessage(exports.ZoneSpec);
1400
- function ZoneSpecCustomInspect() {
1329
+ protobuf_js_1.protoRegistry.registerMessage(exports.UpdateRecordRequest);
1330
+ function UpdateRecordRequestCustomInspect() {
1401
1331
  const parts = [];
1402
- if (this.domainName !== "")
1403
- parts.push("domainName" + "=" + (0, util_1.inspect)(this.domainName));
1404
- if (this.soaSpec !== undefined)
1405
- parts.push("soaSpec" + "=" + (0, util_1.inspect)(this.soaSpec));
1332
+ if (this.metadata !== undefined)
1333
+ parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
1334
+ if (this.spec !== undefined)
1335
+ parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
1336
+ return `${this.$type}(${parts.join(", ")})`;
1337
+ }
1338
+ function UpdateRecordRequestCustomJson() {
1339
+ const obj = {
1340
+ type: this.$type,
1341
+ };
1342
+ if (this.metadata !== undefined)
1343
+ obj.metadata = (0, logging_js_1.inspectJson)(this.metadata);
1344
+ if (this.spec !== undefined)
1345
+ obj.spec = (0, logging_js_1.inspectJson)(this.spec);
1346
+ return obj;
1347
+ }
1348
+ function applyUpdateRecordRequestCustom(message) {
1349
+ message[logging_js_1.custom] = UpdateRecordRequestCustomInspect;
1350
+ message[logging_js_1.customJson] = UpdateRecordRequestCustomJson;
1351
+ return message;
1352
+ }
1353
+ function createBaseUpdateRecordRequest() {
1354
+ const message = {
1355
+ $type: "nebius.dns.v1.UpdateRecordRequest",
1356
+ metadata: undefined,
1357
+ spec: undefined,
1358
+ };
1359
+ return applyUpdateRecordRequestCustom(message);
1360
+ }
1361
+ exports.DeleteRecordRequest = {
1362
+ $type: "nebius.dns.v1.DeleteRecordRequest",
1363
+ encode(message, writer = new index_js_1.BinaryWriter()) {
1364
+ if (message.id !== "") {
1365
+ writer.uint32(10).string(message.id);
1366
+ }
1367
+ if (message.resourceVersion !== undefined && !message.resourceVersion.isZero?.()) {
1368
+ writer.uint32(16).int64(message.resourceVersion.toString());
1369
+ }
1370
+ if (message.force === true) {
1371
+ writer.uint32(24).bool(message.force);
1372
+ }
1373
+ if (message[index_js_1.unknownFieldsSymbol]) {
1374
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
1375
+ }
1376
+ return writer;
1377
+ },
1378
+ decode(input, length) {
1379
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1380
+ const end = length === undefined ? reader.len : reader.pos + length;
1381
+ const message = createBaseDeleteRecordRequest();
1382
+ let writer = undefined;
1383
+ while (reader.pos < end) {
1384
+ const tag = reader.uint32();
1385
+ switch (tag >>> 3) {
1386
+ case 1: {
1387
+ if (tag !== 10)
1388
+ break;
1389
+ message.id = reader.string();
1390
+ continue;
1391
+ }
1392
+ case 2: {
1393
+ if (tag !== 16)
1394
+ break;
1395
+ message.resourceVersion = index_js_1.Long.fromValue(reader.int64());
1396
+ continue;
1397
+ }
1398
+ case 3: {
1399
+ if (tag !== 24)
1400
+ break;
1401
+ message.force = reader.bool();
1402
+ continue;
1403
+ }
1404
+ default:
1405
+ break;
1406
+ }
1407
+ if ((tag & 7) === 4 || tag === 0) {
1408
+ break;
1409
+ }
1410
+ {
1411
+ if (!writer)
1412
+ writer = new index_js_1.BinaryWriter();
1413
+ const skipped = reader.skip(tag & 7, tag >>> 3);
1414
+ writer.uint32(tag).raw(skipped);
1415
+ }
1416
+ }
1417
+ if (writer) {
1418
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
1419
+ }
1420
+ return message;
1421
+ },
1422
+ fromJSON(object) {
1423
+ return applyDeleteRecordRequestCustom({
1424
+ $type: "nebius.dns.v1.DeleteRecordRequest",
1425
+ id: (0, index_js_1.isSet)(object.id ?? object.id)
1426
+ ? String(object.id ?? object.id)
1427
+ : "",
1428
+ resourceVersion: (0, index_js_1.isSet)(object.resourceVersion ?? object.resource_version)
1429
+ ? index_js_1.Long.fromValue(object.resourceVersion ?? object.resource_version)
1430
+ : index_js_1.Long.ZERO,
1431
+ force: (0, index_js_1.isSet)(object.force ?? object.force)
1432
+ ? Boolean(object.force ?? object.force)
1433
+ : false,
1434
+ });
1435
+ },
1436
+ toJSON(message, use = "json") {
1437
+ const obj = {};
1438
+ const pick = (json, pb) => (use === "json" ? json : pb);
1439
+ if (message.id !== "") {
1440
+ obj[pick("id", "id")] = message.id;
1441
+ }
1442
+ if (!message.resourceVersion?.isZero?.()) {
1443
+ obj[pick("resourceVersion", "resource_version")] = (message.resourceVersion || index_js_1.Long.ZERO).toString();
1444
+ }
1445
+ if (message.force === true) {
1446
+ obj[pick("force", "force")] = message.force;
1447
+ }
1448
+ return obj;
1449
+ },
1450
+ create(base) {
1451
+ return exports.DeleteRecordRequest.fromPartial(base ?? {});
1452
+ },
1453
+ fromPartial(object) {
1454
+ const message = createBaseDeleteRecordRequest();
1455
+ message.id = (object.id !== undefined && object.id !== null)
1456
+ ? object.id
1457
+ : "";
1458
+ message.resourceVersion = (object.resourceVersion !== undefined && object.resourceVersion !== null)
1459
+ ? index_js_1.Long.fromValue(object.resourceVersion)
1460
+ : index_js_1.Long.ZERO;
1461
+ message.force = (object.force !== undefined && object.force !== null)
1462
+ ? object.force
1463
+ : false;
1464
+ return message;
1465
+ },
1466
+ };
1467
+ protobuf_js_1.protoRegistry.registerMessage(exports.DeleteRecordRequest);
1468
+ function DeleteRecordRequestCustomInspect() {
1469
+ const parts = [];
1470
+ if (this.id !== "")
1471
+ parts.push("id" + "=" + (0, util_1.inspect)(this.id));
1472
+ if (!this.resourceVersion?.isZero?.())
1473
+ parts.push("resourceVersion" + "=" + (0, util_1.inspect)(this.resourceVersion));
1474
+ if (this.force === true)
1475
+ parts.push("force" + "=" + (0, util_1.inspect)(this.force));
1476
+ return `${this.$type}(${parts.join(", ")})`;
1477
+ }
1478
+ function DeleteRecordRequestCustomJson() {
1479
+ const obj = {
1480
+ type: this.$type,
1481
+ };
1482
+ if (this.id !== "")
1483
+ obj.id = (0, logging_js_1.inspectJson)(this.id);
1484
+ if (!this.resourceVersion?.isZero?.())
1485
+ obj.resourceVersion = (0, logging_js_1.inspectJson)(this.resourceVersion);
1486
+ if (this.force === true)
1487
+ obj.force = (0, logging_js_1.inspectJson)(this.force);
1488
+ return obj;
1489
+ }
1490
+ function applyDeleteRecordRequestCustom(message) {
1491
+ message[logging_js_1.custom] = DeleteRecordRequestCustomInspect;
1492
+ message[logging_js_1.customJson] = DeleteRecordRequestCustomJson;
1493
+ return message;
1494
+ }
1495
+ function createBaseDeleteRecordRequest() {
1496
+ const message = {
1497
+ $type: "nebius.dns.v1.DeleteRecordRequest",
1498
+ id: "",
1499
+ resourceVersion: index_js_1.Long.ZERO,
1500
+ force: false,
1501
+ };
1502
+ return applyDeleteRecordRequestCustom(message);
1503
+ }
1504
+ exports.ZoneServiceServiceDescription = {
1505
+ get: {
1506
+ path: "/nebius.dns.v1.ZoneService/Get",
1507
+ requestStream: false,
1508
+ responseStream: false,
1509
+ requestSerialize: (value) => Buffer.from(exports.GetZoneRequest.encode(value).finish()),
1510
+ sendResetMask: false,
1511
+ requestDeserialize: (value) => exports.GetZoneRequest.decode(value),
1512
+ responseSerialize: (value) => Buffer.from(exports.Zone.encode(value).finish()),
1513
+ responseDeserialize: (value) => exports.Zone.decode(value),
1514
+ },
1515
+ getByName: {
1516
+ path: "/nebius.dns.v1.ZoneService/GetByName",
1517
+ requestStream: false,
1518
+ responseStream: false,
1519
+ requestSerialize: (value) => Buffer.from(index_js_2.GetByNameRequest.encode(value).finish()),
1520
+ sendResetMask: false,
1521
+ requestDeserialize: (value) => index_js_2.GetByNameRequest.decode(value),
1522
+ responseSerialize: (value) => Buffer.from(exports.Zone.encode(value).finish()),
1523
+ responseDeserialize: (value) => exports.Zone.decode(value),
1524
+ },
1525
+ list: {
1526
+ path: "/nebius.dns.v1.ZoneService/List",
1527
+ requestStream: false,
1528
+ responseStream: false,
1529
+ requestSerialize: (value) => Buffer.from(exports.ListZonesRequest.encode(value).finish()),
1530
+ sendResetMask: false,
1531
+ requestDeserialize: (value) => exports.ListZonesRequest.decode(value),
1532
+ responseSerialize: (value) => Buffer.from(exports.ListZonesResponse.encode(value).finish()),
1533
+ responseDeserialize: (value) => exports.ListZonesResponse.decode(value),
1534
+ },
1535
+ create: {
1536
+ path: "/nebius.dns.v1.ZoneService/Create",
1537
+ requestStream: false,
1538
+ responseStream: false,
1539
+ requestSerialize: (value) => Buffer.from(exports.CreateZoneRequest.encode(value).finish()),
1540
+ sendResetMask: false,
1541
+ requestDeserialize: (value) => exports.CreateZoneRequest.decode(value),
1542
+ responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
1543
+ responseDeserialize: (value) => index_js_2.Operation.decode(value),
1544
+ },
1545
+ update: {
1546
+ path: "/nebius.dns.v1.ZoneService/Update",
1547
+ requestStream: false,
1548
+ responseStream: false,
1549
+ requestSerialize: (value) => Buffer.from(exports.UpdateZoneRequest.encode(value).finish()),
1550
+ sendResetMask: true,
1551
+ requestDeserialize: (value) => exports.UpdateZoneRequest.decode(value),
1552
+ responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
1553
+ responseDeserialize: (value) => index_js_2.Operation.decode(value),
1554
+ },
1555
+ delete: {
1556
+ path: "/nebius.dns.v1.ZoneService/Delete",
1557
+ requestStream: false,
1558
+ responseStream: false,
1559
+ requestSerialize: (value) => Buffer.from(exports.DeleteZoneRequest.encode(value).finish()),
1560
+ sendResetMask: false,
1561
+ requestDeserialize: (value) => exports.DeleteZoneRequest.decode(value),
1562
+ responseSerialize: (value) => Buffer.from(index_js_2.Operation.encode(value).finish()),
1563
+ responseDeserialize: (value) => index_js_2.Operation.decode(value),
1564
+ },
1565
+ };
1566
+ exports.ZoneServiceBaseClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.ZoneServiceServiceDescription, "nebius.dns.v1.ZoneService");
1567
+ class ZoneService {
1568
+ sdk;
1569
+ $type = "nebius.dns.v1.ZoneService";
1570
+ addr;
1571
+ spec;
1572
+ apiServiceName = "dns";
1573
+ constructor(sdk) {
1574
+ this.sdk = sdk;
1575
+ const addr = sdk.getAddressFromServiceName(this.$type, this.apiServiceName);
1576
+ this.addr = addr;
1577
+ this.spec = exports.ZoneServiceServiceDescription;
1578
+ }
1579
+ getOperationService() {
1580
+ return new index_js_2.OperationService(this.sdk, this.addr);
1581
+ }
1582
+ get(...args) {
1583
+ const spec = this.spec.get;
1584
+ const request = args[0];
1585
+ const metadata = (args.length > 1 ? args[1] : undefined);
1586
+ const options = (args.length > 2 ? args[2] : undefined);
1587
+ const deserialize = spec.responseDeserialize;
1588
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1589
+ }
1590
+ getByName(...args) {
1591
+ const spec = this.spec.getByName;
1592
+ const request = args[0];
1593
+ const metadata = (args.length > 1 ? args[1] : undefined);
1594
+ const options = (args.length > 2 ? args[2] : undefined);
1595
+ const deserialize = spec.responseDeserialize;
1596
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1597
+ }
1598
+ list(...args) {
1599
+ const spec = this.spec.list;
1600
+ const request = args[0];
1601
+ const metadata = (args.length > 1 ? args[1] : undefined);
1602
+ const options = (args.length > 2 ? args[2] : undefined);
1603
+ const deserialize = spec.responseDeserialize;
1604
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1605
+ }
1606
+ create(...args) {
1607
+ const spec = this.spec.create;
1608
+ const request = args[0];
1609
+ const metadata = (args.length > 1 ? args[1] : undefined);
1610
+ const options = (args.length > 2 ? args[2] : undefined);
1611
+ const deserialize = (value) => {
1612
+ const resp = spec.responseDeserialize(value);
1613
+ return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
1614
+ };
1615
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1616
+ }
1617
+ update(...args) {
1618
+ const spec = this.spec.update;
1619
+ const request = args[0];
1620
+ const metadata = (args.length > 1 ? args[1] : undefined);
1621
+ const options = (args.length > 2 ? args[2] : undefined);
1622
+ const deserialize = (value) => {
1623
+ const resp = spec.responseDeserialize(value);
1624
+ return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
1625
+ };
1626
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1627
+ }
1628
+ delete(...args) {
1629
+ const spec = this.spec.delete;
1630
+ const request = args[0];
1631
+ const metadata = (args.length > 1 ? args[1] : undefined);
1632
+ const options = (args.length > 2 ? args[2] : undefined);
1633
+ const deserialize = (value) => {
1634
+ const resp = spec.responseDeserialize(value);
1635
+ return new operation_js_1.Operation(resp, this.getOperationService(), this.sdk.logger.child("operation"));
1636
+ };
1637
+ return new request_js_1.Request(this.sdk, spec, this.addr, deserialize, request, metadata, options);
1638
+ }
1639
+ }
1640
+ exports.ZoneService = ZoneService;
1641
+ exports.Zone = {
1642
+ $type: "nebius.dns.v1.Zone",
1643
+ encode(message, writer = new index_js_1.BinaryWriter()) {
1644
+ if (message.metadata !== undefined) {
1645
+ const w = writer.uint32(10).fork();
1646
+ index_js_2.ResourceMetadata.encode(message.metadata, w);
1647
+ w.join();
1648
+ }
1649
+ if (message.spec !== undefined) {
1650
+ const w = writer.uint32(18).fork();
1651
+ exports.ZoneSpec.encode(message.spec, w);
1652
+ w.join();
1653
+ }
1654
+ if (message.status !== undefined) {
1655
+ const w = writer.uint32(26).fork();
1656
+ exports.ZoneStatus.encode(message.status, w);
1657
+ w.join();
1658
+ }
1659
+ if (message[index_js_1.unknownFieldsSymbol]) {
1660
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
1661
+ }
1662
+ return writer;
1663
+ },
1664
+ decode(input, length) {
1665
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1666
+ const end = length === undefined ? reader.len : reader.pos + length;
1667
+ const message = createBaseZone();
1668
+ let writer = undefined;
1669
+ while (reader.pos < end) {
1670
+ const tag = reader.uint32();
1671
+ switch (tag >>> 3) {
1672
+ case 1: {
1673
+ if (tag !== 10)
1674
+ break;
1675
+ message.metadata = index_js_2.ResourceMetadata.decode(reader, reader.uint32());
1676
+ continue;
1677
+ }
1678
+ case 2: {
1679
+ if (tag !== 18)
1680
+ break;
1681
+ message.spec = exports.ZoneSpec.decode(reader, reader.uint32());
1682
+ continue;
1683
+ }
1684
+ case 3: {
1685
+ if (tag !== 26)
1686
+ break;
1687
+ message.status = exports.ZoneStatus.decode(reader, reader.uint32());
1688
+ continue;
1689
+ }
1690
+ default:
1691
+ break;
1692
+ }
1693
+ if ((tag & 7) === 4 || tag === 0) {
1694
+ break;
1695
+ }
1696
+ {
1697
+ if (!writer)
1698
+ writer = new index_js_1.BinaryWriter();
1699
+ const skipped = reader.skip(tag & 7, tag >>> 3);
1700
+ writer.uint32(tag).raw(skipped);
1701
+ }
1702
+ }
1703
+ if (writer) {
1704
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
1705
+ }
1706
+ return message;
1707
+ },
1708
+ fromJSON(object) {
1709
+ return applyZoneCustom({
1710
+ $type: "nebius.dns.v1.Zone",
1711
+ metadata: (0, index_js_1.isSet)(object.metadata ?? object.metadata)
1712
+ ? index_js_2.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
1713
+ : undefined,
1714
+ spec: (0, index_js_1.isSet)(object.spec ?? object.spec)
1715
+ ? exports.ZoneSpec.fromJSON(object.spec ?? object.spec)
1716
+ : undefined,
1717
+ status: (0, index_js_1.isSet)(object.status ?? object.status)
1718
+ ? exports.ZoneStatus.fromJSON(object.status ?? object.status)
1719
+ : undefined,
1720
+ });
1721
+ },
1722
+ toJSON(message, use = "json") {
1723
+ const obj = {};
1724
+ const pick = (json, pb) => (use === "json" ? json : pb);
1725
+ if (message.metadata !== undefined) {
1726
+ obj[pick("metadata", "metadata")] = message.metadata
1727
+ ? index_js_2.ResourceMetadata.toJSON(message.metadata, use)
1728
+ : undefined;
1729
+ }
1730
+ if (message.spec !== undefined) {
1731
+ obj[pick("spec", "spec")] = message.spec
1732
+ ? exports.ZoneSpec.toJSON(message.spec, use)
1733
+ : undefined;
1734
+ }
1735
+ if (message.status !== undefined) {
1736
+ obj[pick("status", "status")] = message.status
1737
+ ? exports.ZoneStatus.toJSON(message.status, use)
1738
+ : undefined;
1739
+ }
1740
+ return obj;
1741
+ },
1742
+ create(base) {
1743
+ return exports.Zone.fromPartial(base ?? {});
1744
+ },
1745
+ fromPartial(object) {
1746
+ const message = createBaseZone();
1747
+ message.metadata = (object.metadata !== undefined && object.metadata !== null)
1748
+ ? index_js_2.ResourceMetadata.fromPartial(object.metadata)
1749
+ : undefined;
1750
+ message.spec = (object.spec !== undefined && object.spec !== null)
1751
+ ? exports.ZoneSpec.fromPartial(object.spec)
1752
+ : undefined;
1753
+ message.status = (object.status !== undefined && object.status !== null)
1754
+ ? exports.ZoneStatus.fromPartial(object.status)
1755
+ : undefined;
1756
+ return message;
1757
+ },
1758
+ };
1759
+ protobuf_js_1.protoRegistry.registerMessage(exports.Zone);
1760
+ function ZoneCustomInspect() {
1761
+ const parts = [];
1762
+ if (this.metadata !== undefined)
1763
+ parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
1764
+ if (this.spec !== undefined)
1765
+ parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
1766
+ if (this.status !== undefined)
1767
+ parts.push("status" + "=" + (0, util_1.inspect)(this.status));
1768
+ return `${this.$type}(${parts.join(", ")})`;
1769
+ }
1770
+ function ZoneCustomJson() {
1771
+ const obj = {
1772
+ type: this.$type,
1773
+ };
1774
+ if (this.metadata !== undefined)
1775
+ obj.metadata = (0, logging_js_1.inspectJson)(this.metadata);
1776
+ if (this.spec !== undefined)
1777
+ obj.spec = (0, logging_js_1.inspectJson)(this.spec);
1778
+ if (this.status !== undefined)
1779
+ obj.status = (0, logging_js_1.inspectJson)(this.status);
1780
+ return obj;
1781
+ }
1782
+ function applyZoneCustom(message) {
1783
+ message[logging_js_1.custom] = ZoneCustomInspect;
1784
+ message[logging_js_1.customJson] = ZoneCustomJson;
1785
+ return message;
1786
+ }
1787
+ function createBaseZone() {
1788
+ const message = {
1789
+ $type: "nebius.dns.v1.Zone",
1790
+ metadata: undefined,
1791
+ spec: undefined,
1792
+ status: undefined,
1793
+ };
1794
+ return applyZoneCustom(message);
1795
+ }
1796
+ exports.ZoneSpec = {
1797
+ $type: "nebius.dns.v1.ZoneSpec",
1798
+ encode(message, writer = new index_js_1.BinaryWriter()) {
1799
+ if (message.domainName !== "") {
1800
+ writer.uint32(10).string(message.domainName);
1801
+ }
1802
+ if (message.soaSpec !== undefined) {
1803
+ const w = writer.uint32(242).fork();
1804
+ exports.SoaSpec.encode(message.soaSpec, w);
1805
+ w.join();
1806
+ }
1807
+ if (message.scope?.$case === undefined) { /* noop */ }
1808
+ else if (message.scope?.$case === "vpc") {
1809
+ const w = writer.uint32(98).fork();
1810
+ exports.VpcZoneScope.encode(message.scope.vpc, w);
1811
+ w.join();
1812
+ }
1813
+ if (message[index_js_1.unknownFieldsSymbol]) {
1814
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
1815
+ }
1816
+ return writer;
1817
+ },
1818
+ decode(input, length) {
1819
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1820
+ const end = length === undefined ? reader.len : reader.pos + length;
1821
+ const message = createBaseZoneSpec();
1822
+ let writer = undefined;
1823
+ while (reader.pos < end) {
1824
+ const tag = reader.uint32();
1825
+ switch (tag >>> 3) {
1826
+ case 1: {
1827
+ if (tag !== 10)
1828
+ break;
1829
+ message.domainName = reader.string();
1830
+ continue;
1831
+ }
1832
+ case 30: {
1833
+ if (tag !== 242)
1834
+ break;
1835
+ message.soaSpec = exports.SoaSpec.decode(reader, reader.uint32());
1836
+ continue;
1837
+ }
1838
+ case 12: {
1839
+ if (tag !== 98)
1840
+ break;
1841
+ message.scope = {
1842
+ $case: "vpc",
1843
+ vpc: exports.VpcZoneScope.decode(reader, reader.uint32())
1844
+ };
1845
+ continue;
1846
+ }
1847
+ default:
1848
+ break;
1849
+ }
1850
+ if ((tag & 7) === 4 || tag === 0) {
1851
+ break;
1852
+ }
1853
+ {
1854
+ if (!writer)
1855
+ writer = new index_js_1.BinaryWriter();
1856
+ const skipped = reader.skip(tag & 7, tag >>> 3);
1857
+ writer.uint32(tag).raw(skipped);
1858
+ }
1859
+ }
1860
+ if (writer) {
1861
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
1862
+ }
1863
+ return message;
1864
+ },
1865
+ fromJSON(object) {
1866
+ return applyZoneSpecCustom({
1867
+ $type: "nebius.dns.v1.ZoneSpec",
1868
+ domainName: (0, index_js_1.isSet)(object.domainName ?? object.domain_name)
1869
+ ? String(object.domainName ?? object.domain_name)
1870
+ : "",
1871
+ soaSpec: (0, index_js_1.isSet)(object.soaSpec ?? object.soa_spec)
1872
+ ? exports.SoaSpec.fromJSON(object.soaSpec ?? object.soa_spec)
1873
+ : undefined,
1874
+ scope: (() => {
1875
+ if ((0, index_js_1.isSet)(object.vpc) || (0, index_js_1.isSet)(object.vpc)) {
1876
+ return {
1877
+ $case: "vpc",
1878
+ vpc: exports.VpcZoneScope.fromJSON(object.vpc ?? object.vpc)
1879
+ };
1880
+ }
1881
+ return undefined;
1882
+ })(),
1883
+ });
1884
+ },
1885
+ toJSON(message, use = "json") {
1886
+ const obj = {};
1887
+ const pick = (json, pb) => (use === "json" ? json : pb);
1888
+ if (message.domainName !== "") {
1889
+ obj[pick("domainName", "domain_name")] = message.domainName;
1890
+ }
1891
+ if (message.soaSpec !== undefined) {
1892
+ obj[pick("soaSpec", "soa_spec")] = message.soaSpec
1893
+ ? exports.SoaSpec.toJSON(message.soaSpec, use)
1894
+ : undefined;
1895
+ }
1896
+ switch (message.scope?.$case) {
1897
+ case "vpc": {
1898
+ obj[pick("vpc", "vpc")] = exports.VpcZoneScope.toJSON(message.scope.vpc, use);
1899
+ break;
1900
+ }
1901
+ default: break;
1902
+ }
1903
+ return obj;
1904
+ },
1905
+ create(base) {
1906
+ return exports.ZoneSpec.fromPartial(base ?? {});
1907
+ },
1908
+ fromPartial(object) {
1909
+ const message = createBaseZoneSpec();
1910
+ message.domainName = (object.domainName !== undefined && object.domainName !== null)
1911
+ ? object.domainName
1912
+ : "";
1913
+ message.soaSpec = (object.soaSpec !== undefined && object.soaSpec !== null)
1914
+ ? exports.SoaSpec.fromPartial(object.soaSpec)
1915
+ : undefined;
1916
+ switch (object.scope?.$case) {
1917
+ case "vpc": {
1918
+ if (object.scope.vpc !== undefined && object.scope.vpc !== null) {
1919
+ message.scope = {
1920
+ $case: "vpc",
1921
+ vpc: exports.VpcZoneScope.fromPartial(object.scope.vpc),
1922
+ };
1923
+ }
1924
+ break;
1925
+ }
1926
+ default: break;
1927
+ }
1928
+ return message;
1929
+ },
1930
+ };
1931
+ protobuf_js_1.protoRegistry.registerMessage(exports.ZoneSpec);
1932
+ function ZoneSpecCustomInspect() {
1933
+ const parts = [];
1934
+ if (this.domainName !== "")
1935
+ parts.push("domainName" + "=" + (0, util_1.inspect)(this.domainName));
1936
+ if (this.soaSpec !== undefined)
1937
+ parts.push("soaSpec" + "=" + (0, util_1.inspect)(this.soaSpec));
1938
+ return `${this.$type}(${parts.join(", ")})`;
1939
+ }
1940
+ function ZoneSpecCustomJson() {
1941
+ const obj = {
1942
+ type: this.$type,
1943
+ };
1944
+ if (this.domainName !== "")
1945
+ obj.domainName = (0, logging_js_1.inspectJson)(this.domainName);
1946
+ if (this.soaSpec !== undefined)
1947
+ obj.soaSpec = (0, logging_js_1.inspectJson)(this.soaSpec);
1948
+ return obj;
1949
+ }
1950
+ function applyZoneSpecCustom(message) {
1951
+ message[logging_js_1.custom] = ZoneSpecCustomInspect;
1952
+ message[logging_js_1.customJson] = ZoneSpecCustomJson;
1953
+ return message;
1954
+ }
1955
+ function createBaseZoneSpec() {
1956
+ const message = {
1957
+ $type: "nebius.dns.v1.ZoneSpec",
1958
+ domainName: "",
1959
+ soaSpec: undefined,
1960
+ scope: undefined,
1961
+ };
1962
+ return applyZoneSpecCustom(message);
1963
+ }
1964
+ exports.VpcZoneScope = {
1965
+ $type: "nebius.dns.v1.VpcZoneScope",
1966
+ encode(message, writer = new index_js_1.BinaryWriter()) {
1967
+ if (message.primaryNetworkId !== "") {
1968
+ writer.uint32(10).string(message.primaryNetworkId);
1969
+ }
1970
+ if (message[index_js_1.unknownFieldsSymbol]) {
1971
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
1972
+ }
1973
+ return writer;
1974
+ },
1975
+ decode(input, length) {
1976
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1977
+ const end = length === undefined ? reader.len : reader.pos + length;
1978
+ const message = createBaseVpcZoneScope();
1979
+ let writer = undefined;
1980
+ while (reader.pos < end) {
1981
+ const tag = reader.uint32();
1982
+ switch (tag >>> 3) {
1983
+ case 1: {
1984
+ if (tag !== 10)
1985
+ break;
1986
+ message.primaryNetworkId = reader.string();
1987
+ continue;
1988
+ }
1989
+ default:
1990
+ break;
1991
+ }
1992
+ if ((tag & 7) === 4 || tag === 0) {
1993
+ break;
1994
+ }
1995
+ {
1996
+ if (!writer)
1997
+ writer = new index_js_1.BinaryWriter();
1998
+ const skipped = reader.skip(tag & 7, tag >>> 3);
1999
+ writer.uint32(tag).raw(skipped);
2000
+ }
2001
+ }
2002
+ if (writer) {
2003
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
2004
+ }
2005
+ return message;
2006
+ },
2007
+ fromJSON(object) {
2008
+ return applyVpcZoneScopeCustom({
2009
+ $type: "nebius.dns.v1.VpcZoneScope",
2010
+ primaryNetworkId: (0, index_js_1.isSet)(object.primaryNetworkId ?? object.primary_network_id)
2011
+ ? String(object.primaryNetworkId ?? object.primary_network_id)
2012
+ : "",
2013
+ });
2014
+ },
2015
+ toJSON(message, use = "json") {
2016
+ const obj = {};
2017
+ const pick = (json, pb) => (use === "json" ? json : pb);
2018
+ if (message.primaryNetworkId !== "") {
2019
+ obj[pick("primaryNetworkId", "primary_network_id")] = message.primaryNetworkId;
2020
+ }
2021
+ return obj;
2022
+ },
2023
+ create(base) {
2024
+ return exports.VpcZoneScope.fromPartial(base ?? {});
2025
+ },
2026
+ fromPartial(object) {
2027
+ const message = createBaseVpcZoneScope();
2028
+ message.primaryNetworkId = (object.primaryNetworkId !== undefined && object.primaryNetworkId !== null)
2029
+ ? object.primaryNetworkId
2030
+ : "";
2031
+ return message;
2032
+ },
2033
+ };
2034
+ protobuf_js_1.protoRegistry.registerMessage(exports.VpcZoneScope);
2035
+ function VpcZoneScopeCustomInspect() {
2036
+ const parts = [];
2037
+ if (this.primaryNetworkId !== "")
2038
+ parts.push("primaryNetworkId" + "=" + (0, util_1.inspect)(this.primaryNetworkId));
2039
+ return `${this.$type}(${parts.join(", ")})`;
2040
+ }
2041
+ function VpcZoneScopeCustomJson() {
2042
+ const obj = {
2043
+ type: this.$type,
2044
+ };
2045
+ if (this.primaryNetworkId !== "")
2046
+ obj.primaryNetworkId = (0, logging_js_1.inspectJson)(this.primaryNetworkId);
2047
+ return obj;
2048
+ }
2049
+ function applyVpcZoneScopeCustom(message) {
2050
+ message[logging_js_1.custom] = VpcZoneScopeCustomInspect;
2051
+ message[logging_js_1.customJson] = VpcZoneScopeCustomJson;
2052
+ return message;
2053
+ }
2054
+ function createBaseVpcZoneScope() {
2055
+ const message = {
2056
+ $type: "nebius.dns.v1.VpcZoneScope",
2057
+ primaryNetworkId: "",
2058
+ };
2059
+ return applyVpcZoneScopeCustom(message);
2060
+ }
2061
+ exports.SoaSpec = {
2062
+ $type: "nebius.dns.v1.SoaSpec",
2063
+ encode(message, writer = new index_js_1.BinaryWriter()) {
2064
+ if (message.negativeTtl !== undefined && !message.negativeTtl.isZero?.()) {
2065
+ writer.uint32(240).int64(message.negativeTtl.toString());
2066
+ }
2067
+ if (message[index_js_1.unknownFieldsSymbol]) {
2068
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
2069
+ }
2070
+ return writer;
2071
+ },
2072
+ decode(input, length) {
2073
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
2074
+ const end = length === undefined ? reader.len : reader.pos + length;
2075
+ const message = createBaseSoaSpec();
2076
+ let writer = undefined;
2077
+ while (reader.pos < end) {
2078
+ const tag = reader.uint32();
2079
+ switch (tag >>> 3) {
2080
+ case 30: {
2081
+ if (tag !== 240)
2082
+ break;
2083
+ message.negativeTtl = index_js_1.Long.fromValue(reader.int64());
2084
+ continue;
2085
+ }
2086
+ default:
2087
+ break;
2088
+ }
2089
+ if ((tag & 7) === 4 || tag === 0) {
2090
+ break;
2091
+ }
2092
+ {
2093
+ if (!writer)
2094
+ writer = new index_js_1.BinaryWriter();
2095
+ const skipped = reader.skip(tag & 7, tag >>> 3);
2096
+ writer.uint32(tag).raw(skipped);
2097
+ }
2098
+ }
2099
+ if (writer) {
2100
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
2101
+ }
2102
+ return message;
2103
+ },
2104
+ fromJSON(object) {
2105
+ return applySoaSpecCustom({
2106
+ $type: "nebius.dns.v1.SoaSpec",
2107
+ negativeTtl: (0, index_js_1.isSet)(object.negativeTtl ?? object.negative_ttl)
2108
+ ? index_js_1.Long.fromValue(object.negativeTtl ?? object.negative_ttl)
2109
+ : index_js_1.Long.ZERO,
2110
+ });
2111
+ },
2112
+ toJSON(message, use = "json") {
2113
+ const obj = {};
2114
+ const pick = (json, pb) => (use === "json" ? json : pb);
2115
+ if (!message.negativeTtl?.isZero?.()) {
2116
+ obj[pick("negativeTtl", "negative_ttl")] = (message.negativeTtl || index_js_1.Long.ZERO).toString();
2117
+ }
2118
+ return obj;
2119
+ },
2120
+ create(base) {
2121
+ return exports.SoaSpec.fromPartial(base ?? {});
2122
+ },
2123
+ fromPartial(object) {
2124
+ const message = createBaseSoaSpec();
2125
+ message.negativeTtl = (object.negativeTtl !== undefined && object.negativeTtl !== null)
2126
+ ? index_js_1.Long.fromValue(object.negativeTtl)
2127
+ : index_js_1.Long.ZERO;
2128
+ return message;
2129
+ },
2130
+ };
2131
+ protobuf_js_1.protoRegistry.registerMessage(exports.SoaSpec);
2132
+ function SoaSpecCustomInspect() {
2133
+ const parts = [];
2134
+ if (!this.negativeTtl?.isZero?.())
2135
+ parts.push("negativeTtl" + "=" + (0, util_1.inspect)(this.negativeTtl));
1406
2136
  return `${this.$type}(${parts.join(", ")})`;
1407
2137
  }
1408
- function ZoneSpecCustomJson() {
2138
+ function SoaSpecCustomJson() {
1409
2139
  const obj = {
1410
2140
  type: this.$type,
1411
2141
  };
1412
- if (this.domainName !== "")
1413
- obj.domainName = (0, logging_js_1.inspectJson)(this.domainName);
1414
- if (this.soaSpec !== undefined)
1415
- obj.soaSpec = (0, logging_js_1.inspectJson)(this.soaSpec);
2142
+ if (!this.negativeTtl?.isZero?.())
2143
+ obj.negativeTtl = (0, logging_js_1.inspectJson)(this.negativeTtl);
1416
2144
  return obj;
1417
2145
  }
1418
- function applyZoneSpecCustom(message) {
1419
- message[logging_js_1.custom] = ZoneSpecCustomInspect;
1420
- message[logging_js_1.customJson] = ZoneSpecCustomJson;
2146
+ function applySoaSpecCustom(message) {
2147
+ message[logging_js_1.custom] = SoaSpecCustomInspect;
2148
+ message[logging_js_1.customJson] = SoaSpecCustomJson;
1421
2149
  return message;
1422
2150
  }
1423
- function createBaseZoneSpec() {
2151
+ function createBaseSoaSpec() {
1424
2152
  const message = {
1425
- $type: "nebius.dns.v1.ZoneSpec",
1426
- domainName: "",
1427
- soaSpec: undefined,
1428
- scope: undefined,
2153
+ $type: "nebius.dns.v1.SoaSpec",
2154
+ negativeTtl: index_js_1.Long.ZERO,
1429
2155
  };
1430
- return applyZoneSpecCustom(message);
2156
+ return applySoaSpecCustom(message);
1431
2157
  }
1432
- exports.VpcZoneScope = {
1433
- $type: "nebius.dns.v1.VpcZoneScope",
2158
+ exports.ZoneStatus = {
2159
+ $type: "nebius.dns.v1.ZoneStatus",
1434
2160
  encode(message, writer = new index_js_1.BinaryWriter()) {
1435
- if (message.primaryNetworkId !== "") {
1436
- writer.uint32(10).string(message.primaryNetworkId);
2161
+ if (message.recordCount !== undefined && !message.recordCount.isZero?.()) {
2162
+ writer.uint32(160).int64(message.recordCount.toString());
2163
+ }
2164
+ if (message.reconciling === true) {
2165
+ writer.uint32(800).bool(message.reconciling);
1437
2166
  }
1438
2167
  if (message[index_js_1.unknownFieldsSymbol]) {
1439
2168
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
@@ -1443,7 +2172,127 @@ exports.VpcZoneScope = {
1443
2172
  decode(input, length) {
1444
2173
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1445
2174
  const end = length === undefined ? reader.len : reader.pos + length;
1446
- const message = createBaseVpcZoneScope();
2175
+ const message = createBaseZoneStatus();
2176
+ let writer = undefined;
2177
+ while (reader.pos < end) {
2178
+ const tag = reader.uint32();
2179
+ switch (tag >>> 3) {
2180
+ case 20: {
2181
+ if (tag !== 160)
2182
+ break;
2183
+ message.recordCount = index_js_1.Long.fromValue(reader.int64());
2184
+ continue;
2185
+ }
2186
+ case 100: {
2187
+ if (tag !== 800)
2188
+ break;
2189
+ message.reconciling = reader.bool();
2190
+ continue;
2191
+ }
2192
+ default:
2193
+ break;
2194
+ }
2195
+ if ((tag & 7) === 4 || tag === 0) {
2196
+ break;
2197
+ }
2198
+ {
2199
+ if (!writer)
2200
+ writer = new index_js_1.BinaryWriter();
2201
+ const skipped = reader.skip(tag & 7, tag >>> 3);
2202
+ writer.uint32(tag).raw(skipped);
2203
+ }
2204
+ }
2205
+ if (writer) {
2206
+ message[index_js_1.unknownFieldsSymbol] = writer.finish();
2207
+ }
2208
+ return message;
2209
+ },
2210
+ fromJSON(object) {
2211
+ return applyZoneStatusCustom({
2212
+ $type: "nebius.dns.v1.ZoneStatus",
2213
+ recordCount: (0, index_js_1.isSet)(object.recordCount ?? object.record_count)
2214
+ ? index_js_1.Long.fromValue(object.recordCount ?? object.record_count)
2215
+ : index_js_1.Long.ZERO,
2216
+ reconciling: (0, index_js_1.isSet)(object.reconciling ?? object.reconciling)
2217
+ ? Boolean(object.reconciling ?? object.reconciling)
2218
+ : false,
2219
+ });
2220
+ },
2221
+ toJSON(message, use = "json") {
2222
+ const obj = {};
2223
+ const pick = (json, pb) => (use === "json" ? json : pb);
2224
+ if (!message.recordCount?.isZero?.()) {
2225
+ obj[pick("recordCount", "record_count")] = (message.recordCount || index_js_1.Long.ZERO).toString();
2226
+ }
2227
+ if (message.reconciling === true) {
2228
+ obj[pick("reconciling", "reconciling")] = message.reconciling;
2229
+ }
2230
+ return obj;
2231
+ },
2232
+ create(base) {
2233
+ return exports.ZoneStatus.fromPartial(base ?? {});
2234
+ },
2235
+ fromPartial(object) {
2236
+ const message = createBaseZoneStatus();
2237
+ message.recordCount = (object.recordCount !== undefined && object.recordCount !== null)
2238
+ ? index_js_1.Long.fromValue(object.recordCount)
2239
+ : index_js_1.Long.ZERO;
2240
+ message.reconciling = (object.reconciling !== undefined && object.reconciling !== null)
2241
+ ? object.reconciling
2242
+ : false;
2243
+ return message;
2244
+ },
2245
+ };
2246
+ protobuf_js_1.protoRegistry.registerMessage(exports.ZoneStatus);
2247
+ function ZoneStatusCustomInspect() {
2248
+ const parts = [];
2249
+ if (!this.recordCount?.isZero?.())
2250
+ parts.push("recordCount" + "=" + (0, util_1.inspect)(this.recordCount));
2251
+ if (this.reconciling === true)
2252
+ parts.push("reconciling" + "=" + (0, util_1.inspect)(this.reconciling));
2253
+ return `${this.$type}(${parts.join(", ")})`;
2254
+ }
2255
+ function ZoneStatusCustomJson() {
2256
+ const obj = {
2257
+ type: this.$type,
2258
+ };
2259
+ if (!this.recordCount?.isZero?.())
2260
+ obj.recordCount = (0, logging_js_1.inspectJson)(this.recordCount);
2261
+ if (this.reconciling === true)
2262
+ obj.reconciling = (0, logging_js_1.inspectJson)(this.reconciling);
2263
+ return obj;
2264
+ }
2265
+ function applyZoneStatusCustom(message) {
2266
+ message[logging_js_1.custom] = ZoneStatusCustomInspect;
2267
+ message[logging_js_1.customJson] = ZoneStatusCustomJson;
2268
+ return message;
2269
+ }
2270
+ function createBaseZoneStatus() {
2271
+ const message = {
2272
+ $type: "nebius.dns.v1.ZoneStatus",
2273
+ recordCount: index_js_1.Long.ZERO,
2274
+ reconciling: false,
2275
+ };
2276
+ return applyZoneStatusCustom(message);
2277
+ }
2278
+ exports.GetZoneRequest = {
2279
+ $type: "nebius.dns.v1.GetZoneRequest",
2280
+ encode(message, writer = new index_js_1.BinaryWriter()) {
2281
+ if (message.id !== "") {
2282
+ writer.uint32(10).string(message.id);
2283
+ }
2284
+ if (message.resourceVersion !== undefined && !message.resourceVersion.isZero?.()) {
2285
+ writer.uint32(16).int64(message.resourceVersion.toString());
2286
+ }
2287
+ if (message[index_js_1.unknownFieldsSymbol]) {
2288
+ writer.raw(message[index_js_1.unknownFieldsSymbol]);
2289
+ }
2290
+ return writer;
2291
+ },
2292
+ decode(input, length) {
2293
+ const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
2294
+ const end = length === undefined ? reader.len : reader.pos + length;
2295
+ const message = createBaseGetZoneRequest();
1447
2296
  let writer = undefined;
1448
2297
  while (reader.pos < end) {
1449
2298
  const tag = reader.uint32();
@@ -1451,7 +2300,13 @@ exports.VpcZoneScope = {
1451
2300
  case 1: {
1452
2301
  if (tag !== 10)
1453
2302
  break;
1454
- message.primaryNetworkId = reader.string();
2303
+ message.id = reader.string();
2304
+ continue;
2305
+ }
2306
+ case 2: {
2307
+ if (tag !== 16)
2308
+ break;
2309
+ message.resourceVersion = index_js_1.Long.fromValue(reader.int64());
1455
2310
  continue;
1456
2311
  }
1457
2312
  default:
@@ -1473,64 +2328,84 @@ exports.VpcZoneScope = {
1473
2328
  return message;
1474
2329
  },
1475
2330
  fromJSON(object) {
1476
- return applyVpcZoneScopeCustom({
1477
- $type: "nebius.dns.v1.VpcZoneScope",
1478
- primaryNetworkId: (0, index_js_1.isSet)(object.primaryNetworkId ?? object.primary_network_id)
1479
- ? String(object.primaryNetworkId ?? object.primary_network_id)
2331
+ return applyGetZoneRequestCustom({
2332
+ $type: "nebius.dns.v1.GetZoneRequest",
2333
+ id: (0, index_js_1.isSet)(object.id ?? object.id)
2334
+ ? String(object.id ?? object.id)
1480
2335
  : "",
2336
+ resourceVersion: (0, index_js_1.isSet)(object.resourceVersion ?? object.resource_version)
2337
+ ? index_js_1.Long.fromValue(object.resourceVersion ?? object.resource_version)
2338
+ : index_js_1.Long.ZERO,
1481
2339
  });
1482
2340
  },
1483
2341
  toJSON(message, use = "json") {
1484
2342
  const obj = {};
1485
2343
  const pick = (json, pb) => (use === "json" ? json : pb);
1486
- if (message.primaryNetworkId !== "") {
1487
- obj[pick("primaryNetworkId", "primary_network_id")] = message.primaryNetworkId;
2344
+ if (message.id !== "") {
2345
+ obj[pick("id", "id")] = message.id;
2346
+ }
2347
+ if (!message.resourceVersion?.isZero?.()) {
2348
+ obj[pick("resourceVersion", "resource_version")] = (message.resourceVersion || index_js_1.Long.ZERO).toString();
1488
2349
  }
1489
2350
  return obj;
1490
2351
  },
1491
2352
  create(base) {
1492
- return exports.VpcZoneScope.fromPartial(base ?? {});
2353
+ return exports.GetZoneRequest.fromPartial(base ?? {});
1493
2354
  },
1494
2355
  fromPartial(object) {
1495
- const message = createBaseVpcZoneScope();
1496
- message.primaryNetworkId = (object.primaryNetworkId !== undefined && object.primaryNetworkId !== null)
1497
- ? object.primaryNetworkId
2356
+ const message = createBaseGetZoneRequest();
2357
+ message.id = (object.id !== undefined && object.id !== null)
2358
+ ? object.id
1498
2359
  : "";
2360
+ message.resourceVersion = (object.resourceVersion !== undefined && object.resourceVersion !== null)
2361
+ ? index_js_1.Long.fromValue(object.resourceVersion)
2362
+ : index_js_1.Long.ZERO;
1499
2363
  return message;
1500
2364
  },
1501
2365
  };
1502
- protobuf_js_1.protoRegistry.registerMessage(exports.VpcZoneScope);
1503
- function VpcZoneScopeCustomInspect() {
2366
+ protobuf_js_1.protoRegistry.registerMessage(exports.GetZoneRequest);
2367
+ function GetZoneRequestCustomInspect() {
1504
2368
  const parts = [];
1505
- if (this.primaryNetworkId !== "")
1506
- parts.push("primaryNetworkId" + "=" + (0, util_1.inspect)(this.primaryNetworkId));
2369
+ if (this.id !== "")
2370
+ parts.push("id" + "=" + (0, util_1.inspect)(this.id));
2371
+ if (!this.resourceVersion?.isZero?.())
2372
+ parts.push("resourceVersion" + "=" + (0, util_1.inspect)(this.resourceVersion));
1507
2373
  return `${this.$type}(${parts.join(", ")})`;
1508
2374
  }
1509
- function VpcZoneScopeCustomJson() {
2375
+ function GetZoneRequestCustomJson() {
1510
2376
  const obj = {
1511
2377
  type: this.$type,
1512
2378
  };
1513
- if (this.primaryNetworkId !== "")
1514
- obj.primaryNetworkId = (0, logging_js_1.inspectJson)(this.primaryNetworkId);
2379
+ if (this.id !== "")
2380
+ obj.id = (0, logging_js_1.inspectJson)(this.id);
2381
+ if (!this.resourceVersion?.isZero?.())
2382
+ obj.resourceVersion = (0, logging_js_1.inspectJson)(this.resourceVersion);
1515
2383
  return obj;
1516
2384
  }
1517
- function applyVpcZoneScopeCustom(message) {
1518
- message[logging_js_1.custom] = VpcZoneScopeCustomInspect;
1519
- message[logging_js_1.customJson] = VpcZoneScopeCustomJson;
2385
+ function applyGetZoneRequestCustom(message) {
2386
+ message[logging_js_1.custom] = GetZoneRequestCustomInspect;
2387
+ message[logging_js_1.customJson] = GetZoneRequestCustomJson;
1520
2388
  return message;
1521
2389
  }
1522
- function createBaseVpcZoneScope() {
2390
+ function createBaseGetZoneRequest() {
1523
2391
  const message = {
1524
- $type: "nebius.dns.v1.VpcZoneScope",
1525
- primaryNetworkId: "",
2392
+ $type: "nebius.dns.v1.GetZoneRequest",
2393
+ id: "",
2394
+ resourceVersion: index_js_1.Long.ZERO,
1526
2395
  };
1527
- return applyVpcZoneScopeCustom(message);
2396
+ return applyGetZoneRequestCustom(message);
1528
2397
  }
1529
- exports.SoaSpec = {
1530
- $type: "nebius.dns.v1.SoaSpec",
2398
+ exports.ListZonesRequest = {
2399
+ $type: "nebius.dns.v1.ListZonesRequest",
1531
2400
  encode(message, writer = new index_js_1.BinaryWriter()) {
1532
- if (message.negativeTtl !== undefined && !message.negativeTtl.isZero?.()) {
1533
- writer.uint32(240).int64(message.negativeTtl.toString());
2401
+ if (message.parentId !== "") {
2402
+ writer.uint32(10).string(message.parentId);
2403
+ }
2404
+ if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
2405
+ writer.uint32(16).int64(message.pageSize.toString());
2406
+ }
2407
+ if (message.pageToken !== "") {
2408
+ writer.uint32(26).string(message.pageToken);
1534
2409
  }
1535
2410
  if (message[index_js_1.unknownFieldsSymbol]) {
1536
2411
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
@@ -1540,15 +2415,27 @@ exports.SoaSpec = {
1540
2415
  decode(input, length) {
1541
2416
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1542
2417
  const end = length === undefined ? reader.len : reader.pos + length;
1543
- const message = createBaseSoaSpec();
2418
+ const message = createBaseListZonesRequest();
1544
2419
  let writer = undefined;
1545
2420
  while (reader.pos < end) {
1546
2421
  const tag = reader.uint32();
1547
2422
  switch (tag >>> 3) {
1548
- case 30: {
1549
- if (tag !== 240)
2423
+ case 1: {
2424
+ if (tag !== 10)
1550
2425
  break;
1551
- message.negativeTtl = index_js_1.Long.fromValue(reader.int64());
2426
+ message.parentId = reader.string();
2427
+ continue;
2428
+ }
2429
+ case 2: {
2430
+ if (tag !== 16)
2431
+ break;
2432
+ message.pageSize = index_js_1.Long.fromValue(reader.int64());
2433
+ continue;
2434
+ }
2435
+ case 3: {
2436
+ if (tag !== 26)
2437
+ break;
2438
+ message.pageToken = reader.string();
1552
2439
  continue;
1553
2440
  }
1554
2441
  default:
@@ -1570,67 +2457,97 @@ exports.SoaSpec = {
1570
2457
  return message;
1571
2458
  },
1572
2459
  fromJSON(object) {
1573
- return applySoaSpecCustom({
1574
- $type: "nebius.dns.v1.SoaSpec",
1575
- negativeTtl: (0, index_js_1.isSet)(object.negativeTtl ?? object.negative_ttl)
1576
- ? index_js_1.Long.fromValue(object.negativeTtl ?? object.negative_ttl)
2460
+ return applyListZonesRequestCustom({
2461
+ $type: "nebius.dns.v1.ListZonesRequest",
2462
+ parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
2463
+ ? String(object.parentId ?? object.parent_id)
2464
+ : "",
2465
+ pageSize: (0, index_js_1.isSet)(object.pageSize ?? object.page_size)
2466
+ ? index_js_1.Long.fromValue(object.pageSize ?? object.page_size)
1577
2467
  : index_js_1.Long.ZERO,
2468
+ pageToken: (0, index_js_1.isSet)(object.pageToken ?? object.page_token)
2469
+ ? String(object.pageToken ?? object.page_token)
2470
+ : "",
1578
2471
  });
1579
2472
  },
1580
2473
  toJSON(message, use = "json") {
1581
2474
  const obj = {};
1582
2475
  const pick = (json, pb) => (use === "json" ? json : pb);
1583
- if (!message.negativeTtl?.isZero?.()) {
1584
- obj[pick("negativeTtl", "negative_ttl")] = (message.negativeTtl || index_js_1.Long.ZERO).toString();
2476
+ if (message.parentId !== "") {
2477
+ obj[pick("parentId", "parent_id")] = message.parentId;
2478
+ }
2479
+ if (!message.pageSize?.isZero?.()) {
2480
+ obj[pick("pageSize", "page_size")] = (message.pageSize || index_js_1.Long.ZERO).toString();
2481
+ }
2482
+ if (message.pageToken !== "") {
2483
+ obj[pick("pageToken", "page_token")] = message.pageToken;
1585
2484
  }
1586
2485
  return obj;
1587
2486
  },
1588
2487
  create(base) {
1589
- return exports.SoaSpec.fromPartial(base ?? {});
2488
+ return exports.ListZonesRequest.fromPartial(base ?? {});
1590
2489
  },
1591
2490
  fromPartial(object) {
1592
- const message = createBaseSoaSpec();
1593
- message.negativeTtl = (object.negativeTtl !== undefined && object.negativeTtl !== null)
1594
- ? index_js_1.Long.fromValue(object.negativeTtl)
2491
+ const message = createBaseListZonesRequest();
2492
+ message.parentId = (object.parentId !== undefined && object.parentId !== null)
2493
+ ? object.parentId
2494
+ : "";
2495
+ message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
2496
+ ? index_js_1.Long.fromValue(object.pageSize)
1595
2497
  : index_js_1.Long.ZERO;
2498
+ message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
2499
+ ? object.pageToken
2500
+ : "";
1596
2501
  return message;
1597
2502
  },
1598
2503
  };
1599
- protobuf_js_1.protoRegistry.registerMessage(exports.SoaSpec);
1600
- function SoaSpecCustomInspect() {
2504
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListZonesRequest);
2505
+ function ListZonesRequestCustomInspect() {
1601
2506
  const parts = [];
1602
- if (!this.negativeTtl?.isZero?.())
1603
- parts.push("negativeTtl" + "=" + (0, util_1.inspect)(this.negativeTtl));
2507
+ if (this.parentId !== "")
2508
+ parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
2509
+ if (!this.pageSize?.isZero?.())
2510
+ parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
2511
+ if (this.pageToken !== "")
2512
+ parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
1604
2513
  return `${this.$type}(${parts.join(", ")})`;
1605
2514
  }
1606
- function SoaSpecCustomJson() {
2515
+ function ListZonesRequestCustomJson() {
1607
2516
  const obj = {
1608
2517
  type: this.$type,
1609
2518
  };
1610
- if (!this.negativeTtl?.isZero?.())
1611
- obj.negativeTtl = (0, logging_js_1.inspectJson)(this.negativeTtl);
2519
+ if (this.parentId !== "")
2520
+ obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
2521
+ if (!this.pageSize?.isZero?.())
2522
+ obj.pageSize = (0, logging_js_1.inspectJson)(this.pageSize);
2523
+ if (this.pageToken !== "")
2524
+ obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
1612
2525
  return obj;
1613
2526
  }
1614
- function applySoaSpecCustom(message) {
1615
- message[logging_js_1.custom] = SoaSpecCustomInspect;
1616
- message[logging_js_1.customJson] = SoaSpecCustomJson;
2527
+ function applyListZonesRequestCustom(message) {
2528
+ message[logging_js_1.custom] = ListZonesRequestCustomInspect;
2529
+ message[logging_js_1.customJson] = ListZonesRequestCustomJson;
1617
2530
  return message;
1618
2531
  }
1619
- function createBaseSoaSpec() {
2532
+ function createBaseListZonesRequest() {
1620
2533
  const message = {
1621
- $type: "nebius.dns.v1.SoaSpec",
1622
- negativeTtl: index_js_1.Long.ZERO,
2534
+ $type: "nebius.dns.v1.ListZonesRequest",
2535
+ parentId: "",
2536
+ pageSize: index_js_1.Long.ZERO,
2537
+ pageToken: "",
1623
2538
  };
1624
- return applySoaSpecCustom(message);
2539
+ return applyListZonesRequestCustom(message);
1625
2540
  }
1626
- exports.ZoneStatus = {
1627
- $type: "nebius.dns.v1.ZoneStatus",
2541
+ exports.ListZonesResponse = {
2542
+ $type: "nebius.dns.v1.ListZonesResponse",
1628
2543
  encode(message, writer = new index_js_1.BinaryWriter()) {
1629
- if (message.recordCount !== undefined && !message.recordCount.isZero?.()) {
1630
- writer.uint32(160).int64(message.recordCount.toString());
2544
+ for (const v of (message.items ?? [])) {
2545
+ const w = writer.uint32(10).fork();
2546
+ exports.Zone.encode(v, w);
2547
+ w.join();
1631
2548
  }
1632
- if (message.reconciling === true) {
1633
- writer.uint32(800).bool(message.reconciling);
2549
+ if (message.nextPageToken !== "") {
2550
+ writer.uint32(18).string(message.nextPageToken);
1634
2551
  }
1635
2552
  if (message[index_js_1.unknownFieldsSymbol]) {
1636
2553
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
@@ -1640,21 +2557,21 @@ exports.ZoneStatus = {
1640
2557
  decode(input, length) {
1641
2558
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1642
2559
  const end = length === undefined ? reader.len : reader.pos + length;
1643
- const message = createBaseZoneStatus();
2560
+ const message = createBaseListZonesResponse();
1644
2561
  let writer = undefined;
1645
2562
  while (reader.pos < end) {
1646
2563
  const tag = reader.uint32();
1647
2564
  switch (tag >>> 3) {
1648
- case 20: {
1649
- if (tag !== 160)
2565
+ case 1: {
2566
+ if (tag !== 10)
1650
2567
  break;
1651
- message.recordCount = index_js_1.Long.fromValue(reader.int64());
2568
+ message.items.push(exports.Zone.decode(reader, reader.uint32()));
1652
2569
  continue;
1653
2570
  }
1654
- case 100: {
1655
- if (tag !== 800)
2571
+ case 2: {
2572
+ if (tag !== 18)
1656
2573
  break;
1657
- message.reconciling = reader.bool();
2574
+ message.nextPageToken = reader.string();
1658
2575
  continue;
1659
2576
  }
1660
2577
  default:
@@ -1676,81 +2593,83 @@ exports.ZoneStatus = {
1676
2593
  return message;
1677
2594
  },
1678
2595
  fromJSON(object) {
1679
- return applyZoneStatusCustom({
1680
- $type: "nebius.dns.v1.ZoneStatus",
1681
- recordCount: (0, index_js_1.isSet)(object.recordCount ?? object.record_count)
1682
- ? index_js_1.Long.fromValue(object.recordCount ?? object.record_count)
1683
- : index_js_1.Long.ZERO,
1684
- reconciling: (0, index_js_1.isSet)(object.reconciling ?? object.reconciling)
1685
- ? Boolean(object.reconciling ?? object.reconciling)
1686
- : false,
2596
+ return applyListZonesResponseCustom({
2597
+ $type: "nebius.dns.v1.ListZonesResponse",
2598
+ items: globalThis.Array.isArray(object?.items ?? object?.items)
2599
+ ? (object.items ?? object.items).map((e) => exports.Zone.fromJSON(e))
2600
+ : [],
2601
+ nextPageToken: (0, index_js_1.isSet)(object.nextPageToken ?? object.next_page_token)
2602
+ ? String(object.nextPageToken ?? object.next_page_token)
2603
+ : "",
1687
2604
  });
1688
2605
  },
1689
2606
  toJSON(message, use = "json") {
1690
2607
  const obj = {};
1691
2608
  const pick = (json, pb) => (use === "json" ? json : pb);
1692
- if (!message.recordCount?.isZero?.()) {
1693
- obj[pick("recordCount", "record_count")] = (message.recordCount || index_js_1.Long.ZERO).toString();
2609
+ if (message.items?.length) {
2610
+ obj[pick("items", "items")] = message.items.map((e) => e ? exports.Zone.toJSON(e, use) : undefined);
1694
2611
  }
1695
- if (message.reconciling === true) {
1696
- obj[pick("reconciling", "reconciling")] = message.reconciling;
2612
+ if (message.nextPageToken !== "") {
2613
+ obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
1697
2614
  }
1698
2615
  return obj;
1699
2616
  },
1700
2617
  create(base) {
1701
- return exports.ZoneStatus.fromPartial(base ?? {});
2618
+ return exports.ListZonesResponse.fromPartial(base ?? {});
1702
2619
  },
1703
2620
  fromPartial(object) {
1704
- const message = createBaseZoneStatus();
1705
- message.recordCount = (object.recordCount !== undefined && object.recordCount !== null)
1706
- ? index_js_1.Long.fromValue(object.recordCount)
1707
- : index_js_1.Long.ZERO;
1708
- message.reconciling = (object.reconciling !== undefined && object.reconciling !== null)
1709
- ? object.reconciling
1710
- : false;
2621
+ const message = createBaseListZonesResponse();
2622
+ message.items = object.items?.map((e) => exports.Zone.fromPartial(e)) || [];
2623
+ message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
2624
+ ? object.nextPageToken
2625
+ : "";
1711
2626
  return message;
1712
2627
  },
1713
2628
  };
1714
- protobuf_js_1.protoRegistry.registerMessage(exports.ZoneStatus);
1715
- function ZoneStatusCustomInspect() {
2629
+ protobuf_js_1.protoRegistry.registerMessage(exports.ListZonesResponse);
2630
+ function ListZonesResponseCustomInspect() {
1716
2631
  const parts = [];
1717
- if (!this.recordCount?.isZero?.())
1718
- parts.push("recordCount" + "=" + (0, util_1.inspect)(this.recordCount));
1719
- if (this.reconciling === true)
1720
- parts.push("reconciling" + "=" + (0, util_1.inspect)(this.reconciling));
2632
+ if ((this.items?.length ?? 0) !== 0)
2633
+ parts.push("items" + "=" + (0, util_1.inspect)(this.items));
2634
+ if (this.nextPageToken !== "")
2635
+ parts.push("nextPageToken" + "=" + (0, util_1.inspect)(this.nextPageToken));
1721
2636
  return `${this.$type}(${parts.join(", ")})`;
1722
2637
  }
1723
- function ZoneStatusCustomJson() {
2638
+ function ListZonesResponseCustomJson() {
1724
2639
  const obj = {
1725
2640
  type: this.$type,
1726
2641
  };
1727
- if (!this.recordCount?.isZero?.())
1728
- obj.recordCount = (0, logging_js_1.inspectJson)(this.recordCount);
1729
- if (this.reconciling === true)
1730
- obj.reconciling = (0, logging_js_1.inspectJson)(this.reconciling);
2642
+ if ((this.items?.length ?? 0) !== 0)
2643
+ obj.items = (0, logging_js_1.inspectJson)(this.items);
2644
+ if (this.nextPageToken !== "")
2645
+ obj.nextPageToken = (0, logging_js_1.inspectJson)(this.nextPageToken);
1731
2646
  return obj;
1732
2647
  }
1733
- function applyZoneStatusCustom(message) {
1734
- message[logging_js_1.custom] = ZoneStatusCustomInspect;
1735
- message[logging_js_1.customJson] = ZoneStatusCustomJson;
2648
+ function applyListZonesResponseCustom(message) {
2649
+ message[logging_js_1.custom] = ListZonesResponseCustomInspect;
2650
+ message[logging_js_1.customJson] = ListZonesResponseCustomJson;
1736
2651
  return message;
1737
2652
  }
1738
- function createBaseZoneStatus() {
2653
+ function createBaseListZonesResponse() {
1739
2654
  const message = {
1740
- $type: "nebius.dns.v1.ZoneStatus",
1741
- recordCount: index_js_1.Long.ZERO,
1742
- reconciling: false,
2655
+ $type: "nebius.dns.v1.ListZonesResponse",
2656
+ items: [],
2657
+ nextPageToken: "",
1743
2658
  };
1744
- return applyZoneStatusCustom(message);
2659
+ return applyListZonesResponseCustom(message);
1745
2660
  }
1746
- exports.GetZoneRequest = {
1747
- $type: "nebius.dns.v1.GetZoneRequest",
2661
+ exports.CreateZoneRequest = {
2662
+ $type: "nebius.dns.v1.CreateZoneRequest",
1748
2663
  encode(message, writer = new index_js_1.BinaryWriter()) {
1749
- if (message.id !== "") {
1750
- writer.uint32(10).string(message.id);
2664
+ if (message.metadata !== undefined) {
2665
+ const w = writer.uint32(10).fork();
2666
+ index_js_2.ResourceMetadata.encode(message.metadata, w);
2667
+ w.join();
1751
2668
  }
1752
- if (message.resourceVersion !== undefined && !message.resourceVersion.isZero?.()) {
1753
- writer.uint32(16).int64(message.resourceVersion.toString());
2669
+ if (message.spec !== undefined) {
2670
+ const w = writer.uint32(18).fork();
2671
+ exports.ZoneSpec.encode(message.spec, w);
2672
+ w.join();
1754
2673
  }
1755
2674
  if (message[index_js_1.unknownFieldsSymbol]) {
1756
2675
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
@@ -1760,7 +2679,7 @@ exports.GetZoneRequest = {
1760
2679
  decode(input, length) {
1761
2680
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1762
2681
  const end = length === undefined ? reader.len : reader.pos + length;
1763
- const message = createBaseGetZoneRequest();
2682
+ const message = createBaseCreateZoneRequest();
1764
2683
  let writer = undefined;
1765
2684
  while (reader.pos < end) {
1766
2685
  const tag = reader.uint32();
@@ -1768,13 +2687,13 @@ exports.GetZoneRequest = {
1768
2687
  case 1: {
1769
2688
  if (tag !== 10)
1770
2689
  break;
1771
- message.id = reader.string();
2690
+ message.metadata = index_js_2.ResourceMetadata.decode(reader, reader.uint32());
1772
2691
  continue;
1773
2692
  }
1774
2693
  case 2: {
1775
- if (tag !== 16)
2694
+ if (tag !== 18)
1776
2695
  break;
1777
- message.resourceVersion = index_js_1.Long.fromValue(reader.int64());
2696
+ message.spec = exports.ZoneSpec.decode(reader, reader.uint32());
1778
2697
  continue;
1779
2698
  }
1780
2699
  default:
@@ -1792,88 +2711,93 @@ exports.GetZoneRequest = {
1792
2711
  }
1793
2712
  if (writer) {
1794
2713
  message[index_js_1.unknownFieldsSymbol] = writer.finish();
1795
- }
1796
- return message;
1797
- },
1798
- fromJSON(object) {
1799
- return applyGetZoneRequestCustom({
1800
- $type: "nebius.dns.v1.GetZoneRequest",
1801
- id: (0, index_js_1.isSet)(object.id ?? object.id)
1802
- ? String(object.id ?? object.id)
1803
- : "",
1804
- resourceVersion: (0, index_js_1.isSet)(object.resourceVersion ?? object.resource_version)
1805
- ? index_js_1.Long.fromValue(object.resourceVersion ?? object.resource_version)
1806
- : index_js_1.Long.ZERO,
2714
+ }
2715
+ return message;
2716
+ },
2717
+ fromJSON(object) {
2718
+ return applyCreateZoneRequestCustom({
2719
+ $type: "nebius.dns.v1.CreateZoneRequest",
2720
+ metadata: (0, index_js_1.isSet)(object.metadata ?? object.metadata)
2721
+ ? index_js_2.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
2722
+ : undefined,
2723
+ spec: (0, index_js_1.isSet)(object.spec ?? object.spec)
2724
+ ? exports.ZoneSpec.fromJSON(object.spec ?? object.spec)
2725
+ : undefined,
1807
2726
  });
1808
2727
  },
1809
2728
  toJSON(message, use = "json") {
1810
2729
  const obj = {};
1811
2730
  const pick = (json, pb) => (use === "json" ? json : pb);
1812
- if (message.id !== "") {
1813
- obj[pick("id", "id")] = message.id;
2731
+ if (message.metadata !== undefined) {
2732
+ obj[pick("metadata", "metadata")] = message.metadata
2733
+ ? index_js_2.ResourceMetadata.toJSON(message.metadata, use)
2734
+ : undefined;
1814
2735
  }
1815
- if (!message.resourceVersion?.isZero?.()) {
1816
- obj[pick("resourceVersion", "resource_version")] = (message.resourceVersion || index_js_1.Long.ZERO).toString();
2736
+ if (message.spec !== undefined) {
2737
+ obj[pick("spec", "spec")] = message.spec
2738
+ ? exports.ZoneSpec.toJSON(message.spec, use)
2739
+ : undefined;
1817
2740
  }
1818
2741
  return obj;
1819
2742
  },
1820
2743
  create(base) {
1821
- return exports.GetZoneRequest.fromPartial(base ?? {});
2744
+ return exports.CreateZoneRequest.fromPartial(base ?? {});
1822
2745
  },
1823
2746
  fromPartial(object) {
1824
- const message = createBaseGetZoneRequest();
1825
- message.id = (object.id !== undefined && object.id !== null)
1826
- ? object.id
1827
- : "";
1828
- message.resourceVersion = (object.resourceVersion !== undefined && object.resourceVersion !== null)
1829
- ? index_js_1.Long.fromValue(object.resourceVersion)
1830
- : index_js_1.Long.ZERO;
2747
+ const message = createBaseCreateZoneRequest();
2748
+ message.metadata = (object.metadata !== undefined && object.metadata !== null)
2749
+ ? index_js_2.ResourceMetadata.fromPartial(object.metadata)
2750
+ : undefined;
2751
+ message.spec = (object.spec !== undefined && object.spec !== null)
2752
+ ? exports.ZoneSpec.fromPartial(object.spec)
2753
+ : undefined;
1831
2754
  return message;
1832
2755
  },
1833
2756
  };
1834
- protobuf_js_1.protoRegistry.registerMessage(exports.GetZoneRequest);
1835
- function GetZoneRequestCustomInspect() {
2757
+ protobuf_js_1.protoRegistry.registerMessage(exports.CreateZoneRequest);
2758
+ function CreateZoneRequestCustomInspect() {
1836
2759
  const parts = [];
1837
- if (this.id !== "")
1838
- parts.push("id" + "=" + (0, util_1.inspect)(this.id));
1839
- if (!this.resourceVersion?.isZero?.())
1840
- parts.push("resourceVersion" + "=" + (0, util_1.inspect)(this.resourceVersion));
2760
+ if (this.metadata !== undefined)
2761
+ parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
2762
+ if (this.spec !== undefined)
2763
+ parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
1841
2764
  return `${this.$type}(${parts.join(", ")})`;
1842
2765
  }
1843
- function GetZoneRequestCustomJson() {
2766
+ function CreateZoneRequestCustomJson() {
1844
2767
  const obj = {
1845
2768
  type: this.$type,
1846
2769
  };
1847
- if (this.id !== "")
1848
- obj.id = (0, logging_js_1.inspectJson)(this.id);
1849
- if (!this.resourceVersion?.isZero?.())
1850
- obj.resourceVersion = (0, logging_js_1.inspectJson)(this.resourceVersion);
2770
+ if (this.metadata !== undefined)
2771
+ obj.metadata = (0, logging_js_1.inspectJson)(this.metadata);
2772
+ if (this.spec !== undefined)
2773
+ obj.spec = (0, logging_js_1.inspectJson)(this.spec);
1851
2774
  return obj;
1852
2775
  }
1853
- function applyGetZoneRequestCustom(message) {
1854
- message[logging_js_1.custom] = GetZoneRequestCustomInspect;
1855
- message[logging_js_1.customJson] = GetZoneRequestCustomJson;
2776
+ function applyCreateZoneRequestCustom(message) {
2777
+ message[logging_js_1.custom] = CreateZoneRequestCustomInspect;
2778
+ message[logging_js_1.customJson] = CreateZoneRequestCustomJson;
1856
2779
  return message;
1857
2780
  }
1858
- function createBaseGetZoneRequest() {
2781
+ function createBaseCreateZoneRequest() {
1859
2782
  const message = {
1860
- $type: "nebius.dns.v1.GetZoneRequest",
1861
- id: "",
1862
- resourceVersion: index_js_1.Long.ZERO,
2783
+ $type: "nebius.dns.v1.CreateZoneRequest",
2784
+ metadata: undefined,
2785
+ spec: undefined,
1863
2786
  };
1864
- return applyGetZoneRequestCustom(message);
2787
+ return applyCreateZoneRequestCustom(message);
1865
2788
  }
1866
- exports.ListZonesRequest = {
1867
- $type: "nebius.dns.v1.ListZonesRequest",
2789
+ exports.UpdateZoneRequest = {
2790
+ $type: "nebius.dns.v1.UpdateZoneRequest",
1868
2791
  encode(message, writer = new index_js_1.BinaryWriter()) {
1869
- if (message.parentId !== "") {
1870
- writer.uint32(10).string(message.parentId);
1871
- }
1872
- if (message.pageSize !== undefined && !message.pageSize.isZero?.()) {
1873
- writer.uint32(16).int64(message.pageSize.toString());
2792
+ if (message.metadata !== undefined) {
2793
+ const w = writer.uint32(10).fork();
2794
+ index_js_2.ResourceMetadata.encode(message.metadata, w);
2795
+ w.join();
1874
2796
  }
1875
- if (message.pageToken !== "") {
1876
- writer.uint32(26).string(message.pageToken);
2797
+ if (message.spec !== undefined) {
2798
+ const w = writer.uint32(18).fork();
2799
+ exports.ZoneSpec.encode(message.spec, w);
2800
+ w.join();
1877
2801
  }
1878
2802
  if (message[index_js_1.unknownFieldsSymbol]) {
1879
2803
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
@@ -1883,7 +2807,7 @@ exports.ListZonesRequest = {
1883
2807
  decode(input, length) {
1884
2808
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
1885
2809
  const end = length === undefined ? reader.len : reader.pos + length;
1886
- const message = createBaseListZonesRequest();
2810
+ const message = createBaseUpdateZoneRequest();
1887
2811
  let writer = undefined;
1888
2812
  while (reader.pos < end) {
1889
2813
  const tag = reader.uint32();
@@ -1891,19 +2815,13 @@ exports.ListZonesRequest = {
1891
2815
  case 1: {
1892
2816
  if (tag !== 10)
1893
2817
  break;
1894
- message.parentId = reader.string();
2818
+ message.metadata = index_js_2.ResourceMetadata.decode(reader, reader.uint32());
1895
2819
  continue;
1896
2820
  }
1897
2821
  case 2: {
1898
- if (tag !== 16)
1899
- break;
1900
- message.pageSize = index_js_1.Long.fromValue(reader.int64());
1901
- continue;
1902
- }
1903
- case 3: {
1904
- if (tag !== 26)
2822
+ if (tag !== 18)
1905
2823
  break;
1906
- message.pageToken = reader.string();
2824
+ message.spec = exports.ZoneSpec.decode(reader, reader.uint32());
1907
2825
  continue;
1908
2826
  }
1909
2827
  default:
@@ -1925,97 +2843,85 @@ exports.ListZonesRequest = {
1925
2843
  return message;
1926
2844
  },
1927
2845
  fromJSON(object) {
1928
- return applyListZonesRequestCustom({
1929
- $type: "nebius.dns.v1.ListZonesRequest",
1930
- parentId: (0, index_js_1.isSet)(object.parentId ?? object.parent_id)
1931
- ? String(object.parentId ?? object.parent_id)
1932
- : "",
1933
- pageSize: (0, index_js_1.isSet)(object.pageSize ?? object.page_size)
1934
- ? index_js_1.Long.fromValue(object.pageSize ?? object.page_size)
1935
- : index_js_1.Long.ZERO,
1936
- pageToken: (0, index_js_1.isSet)(object.pageToken ?? object.page_token)
1937
- ? String(object.pageToken ?? object.page_token)
1938
- : "",
2846
+ return applyUpdateZoneRequestCustom({
2847
+ $type: "nebius.dns.v1.UpdateZoneRequest",
2848
+ metadata: (0, index_js_1.isSet)(object.metadata ?? object.metadata)
2849
+ ? index_js_2.ResourceMetadata.fromJSON(object.metadata ?? object.metadata)
2850
+ : undefined,
2851
+ spec: (0, index_js_1.isSet)(object.spec ?? object.spec)
2852
+ ? exports.ZoneSpec.fromJSON(object.spec ?? object.spec)
2853
+ : undefined,
1939
2854
  });
1940
2855
  },
1941
2856
  toJSON(message, use = "json") {
1942
2857
  const obj = {};
1943
2858
  const pick = (json, pb) => (use === "json" ? json : pb);
1944
- if (message.parentId !== "") {
1945
- obj[pick("parentId", "parent_id")] = message.parentId;
1946
- }
1947
- if (!message.pageSize?.isZero?.()) {
1948
- obj[pick("pageSize", "page_size")] = (message.pageSize || index_js_1.Long.ZERO).toString();
2859
+ if (message.metadata !== undefined) {
2860
+ obj[pick("metadata", "metadata")] = message.metadata
2861
+ ? index_js_2.ResourceMetadata.toJSON(message.metadata, use)
2862
+ : undefined;
1949
2863
  }
1950
- if (message.pageToken !== "") {
1951
- obj[pick("pageToken", "page_token")] = message.pageToken;
2864
+ if (message.spec !== undefined) {
2865
+ obj[pick("spec", "spec")] = message.spec
2866
+ ? exports.ZoneSpec.toJSON(message.spec, use)
2867
+ : undefined;
1952
2868
  }
1953
2869
  return obj;
1954
2870
  },
1955
2871
  create(base) {
1956
- return exports.ListZonesRequest.fromPartial(base ?? {});
2872
+ return exports.UpdateZoneRequest.fromPartial(base ?? {});
1957
2873
  },
1958
2874
  fromPartial(object) {
1959
- const message = createBaseListZonesRequest();
1960
- message.parentId = (object.parentId !== undefined && object.parentId !== null)
1961
- ? object.parentId
1962
- : "";
1963
- message.pageSize = (object.pageSize !== undefined && object.pageSize !== null)
1964
- ? index_js_1.Long.fromValue(object.pageSize)
1965
- : index_js_1.Long.ZERO;
1966
- message.pageToken = (object.pageToken !== undefined && object.pageToken !== null)
1967
- ? object.pageToken
1968
- : "";
2875
+ const message = createBaseUpdateZoneRequest();
2876
+ message.metadata = (object.metadata !== undefined && object.metadata !== null)
2877
+ ? index_js_2.ResourceMetadata.fromPartial(object.metadata)
2878
+ : undefined;
2879
+ message.spec = (object.spec !== undefined && object.spec !== null)
2880
+ ? exports.ZoneSpec.fromPartial(object.spec)
2881
+ : undefined;
1969
2882
  return message;
1970
2883
  },
1971
2884
  };
1972
- protobuf_js_1.protoRegistry.registerMessage(exports.ListZonesRequest);
1973
- function ListZonesRequestCustomInspect() {
2885
+ protobuf_js_1.protoRegistry.registerMessage(exports.UpdateZoneRequest);
2886
+ function UpdateZoneRequestCustomInspect() {
1974
2887
  const parts = [];
1975
- if (this.parentId !== "")
1976
- parts.push("parentId" + "=" + (0, util_1.inspect)(this.parentId));
1977
- if (!this.pageSize?.isZero?.())
1978
- parts.push("pageSize" + "=" + (0, util_1.inspect)(this.pageSize));
1979
- if (this.pageToken !== "")
1980
- parts.push("pageToken" + "=" + (0, util_1.inspect)(this.pageToken));
2888
+ if (this.metadata !== undefined)
2889
+ parts.push("metadata" + "=" + (0, util_1.inspect)(this.metadata));
2890
+ if (this.spec !== undefined)
2891
+ parts.push("spec" + "=" + (0, util_1.inspect)(this.spec));
1981
2892
  return `${this.$type}(${parts.join(", ")})`;
1982
2893
  }
1983
- function ListZonesRequestCustomJson() {
2894
+ function UpdateZoneRequestCustomJson() {
1984
2895
  const obj = {
1985
2896
  type: this.$type,
1986
2897
  };
1987
- if (this.parentId !== "")
1988
- obj.parentId = (0, logging_js_1.inspectJson)(this.parentId);
1989
- if (!this.pageSize?.isZero?.())
1990
- obj.pageSize = (0, logging_js_1.inspectJson)(this.pageSize);
1991
- if (this.pageToken !== "")
1992
- obj.pageToken = (0, logging_js_1.inspectJson)(this.pageToken);
2898
+ if (this.metadata !== undefined)
2899
+ obj.metadata = (0, logging_js_1.inspectJson)(this.metadata);
2900
+ if (this.spec !== undefined)
2901
+ obj.spec = (0, logging_js_1.inspectJson)(this.spec);
1993
2902
  return obj;
1994
2903
  }
1995
- function applyListZonesRequestCustom(message) {
1996
- message[logging_js_1.custom] = ListZonesRequestCustomInspect;
1997
- message[logging_js_1.customJson] = ListZonesRequestCustomJson;
2904
+ function applyUpdateZoneRequestCustom(message) {
2905
+ message[logging_js_1.custom] = UpdateZoneRequestCustomInspect;
2906
+ message[logging_js_1.customJson] = UpdateZoneRequestCustomJson;
1998
2907
  return message;
1999
2908
  }
2000
- function createBaseListZonesRequest() {
2909
+ function createBaseUpdateZoneRequest() {
2001
2910
  const message = {
2002
- $type: "nebius.dns.v1.ListZonesRequest",
2003
- parentId: "",
2004
- pageSize: index_js_1.Long.ZERO,
2005
- pageToken: "",
2911
+ $type: "nebius.dns.v1.UpdateZoneRequest",
2912
+ metadata: undefined,
2913
+ spec: undefined,
2006
2914
  };
2007
- return applyListZonesRequestCustom(message);
2915
+ return applyUpdateZoneRequestCustom(message);
2008
2916
  }
2009
- exports.ListZonesResponse = {
2010
- $type: "nebius.dns.v1.ListZonesResponse",
2917
+ exports.DeleteZoneRequest = {
2918
+ $type: "nebius.dns.v1.DeleteZoneRequest",
2011
2919
  encode(message, writer = new index_js_1.BinaryWriter()) {
2012
- for (const v of (message.items ?? [])) {
2013
- const w = writer.uint32(10).fork();
2014
- exports.Zone.encode(v, w);
2015
- w.join();
2920
+ if (message.id !== "") {
2921
+ writer.uint32(10).string(message.id);
2016
2922
  }
2017
- if (message.nextPageToken !== "") {
2018
- writer.uint32(18).string(message.nextPageToken);
2923
+ if (message.resourceVersion !== undefined && !message.resourceVersion.isZero?.()) {
2924
+ writer.uint32(16).int64(message.resourceVersion.toString());
2019
2925
  }
2020
2926
  if (message[index_js_1.unknownFieldsSymbol]) {
2021
2927
  writer.raw(message[index_js_1.unknownFieldsSymbol]);
@@ -2025,7 +2931,7 @@ exports.ListZonesResponse = {
2025
2931
  decode(input, length) {
2026
2932
  const reader = input instanceof index_js_1.BinaryReader ? input : new index_js_1.BinaryReader(input);
2027
2933
  const end = length === undefined ? reader.len : reader.pos + length;
2028
- const message = createBaseListZonesResponse();
2934
+ const message = createBaseDeleteZoneRequest();
2029
2935
  let writer = undefined;
2030
2936
  while (reader.pos < end) {
2031
2937
  const tag = reader.uint32();
@@ -2033,13 +2939,13 @@ exports.ListZonesResponse = {
2033
2939
  case 1: {
2034
2940
  if (tag !== 10)
2035
2941
  break;
2036
- message.items.push(exports.Zone.decode(reader, reader.uint32()));
2942
+ message.id = reader.string();
2037
2943
  continue;
2038
2944
  }
2039
2945
  case 2: {
2040
- if (tag !== 18)
2946
+ if (tag !== 16)
2041
2947
  break;
2042
- message.nextPageToken = reader.string();
2948
+ message.resourceVersion = index_js_1.Long.fromValue(reader.int64());
2043
2949
  continue;
2044
2950
  }
2045
2951
  default:
@@ -2061,69 +2967,71 @@ exports.ListZonesResponse = {
2061
2967
  return message;
2062
2968
  },
2063
2969
  fromJSON(object) {
2064
- return applyListZonesResponseCustom({
2065
- $type: "nebius.dns.v1.ListZonesResponse",
2066
- items: globalThis.Array.isArray(object?.items ?? object?.items)
2067
- ? (object.items ?? object.items).map((e) => exports.Zone.fromJSON(e))
2068
- : [],
2069
- nextPageToken: (0, index_js_1.isSet)(object.nextPageToken ?? object.next_page_token)
2070
- ? String(object.nextPageToken ?? object.next_page_token)
2970
+ return applyDeleteZoneRequestCustom({
2971
+ $type: "nebius.dns.v1.DeleteZoneRequest",
2972
+ id: (0, index_js_1.isSet)(object.id ?? object.id)
2973
+ ? String(object.id ?? object.id)
2071
2974
  : "",
2975
+ resourceVersion: (0, index_js_1.isSet)(object.resourceVersion ?? object.resource_version)
2976
+ ? index_js_1.Long.fromValue(object.resourceVersion ?? object.resource_version)
2977
+ : index_js_1.Long.ZERO,
2072
2978
  });
2073
2979
  },
2074
2980
  toJSON(message, use = "json") {
2075
2981
  const obj = {};
2076
2982
  const pick = (json, pb) => (use === "json" ? json : pb);
2077
- if (message.items?.length) {
2078
- obj[pick("items", "items")] = message.items.map((e) => e ? exports.Zone.toJSON(e, use) : undefined);
2983
+ if (message.id !== "") {
2984
+ obj[pick("id", "id")] = message.id;
2079
2985
  }
2080
- if (message.nextPageToken !== "") {
2081
- obj[pick("nextPageToken", "next_page_token")] = message.nextPageToken;
2986
+ if (!message.resourceVersion?.isZero?.()) {
2987
+ obj[pick("resourceVersion", "resource_version")] = (message.resourceVersion || index_js_1.Long.ZERO).toString();
2082
2988
  }
2083
2989
  return obj;
2084
2990
  },
2085
2991
  create(base) {
2086
- return exports.ListZonesResponse.fromPartial(base ?? {});
2992
+ return exports.DeleteZoneRequest.fromPartial(base ?? {});
2087
2993
  },
2088
2994
  fromPartial(object) {
2089
- const message = createBaseListZonesResponse();
2090
- message.items = object.items?.map((e) => exports.Zone.fromPartial(e)) || [];
2091
- message.nextPageToken = (object.nextPageToken !== undefined && object.nextPageToken !== null)
2092
- ? object.nextPageToken
2995
+ const message = createBaseDeleteZoneRequest();
2996
+ message.id = (object.id !== undefined && object.id !== null)
2997
+ ? object.id
2093
2998
  : "";
2999
+ message.resourceVersion = (object.resourceVersion !== undefined && object.resourceVersion !== null)
3000
+ ? index_js_1.Long.fromValue(object.resourceVersion)
3001
+ : index_js_1.Long.ZERO;
2094
3002
  return message;
2095
3003
  },
2096
3004
  };
2097
- protobuf_js_1.protoRegistry.registerMessage(exports.ListZonesResponse);
2098
- function ListZonesResponseCustomInspect() {
3005
+ protobuf_js_1.protoRegistry.registerMessage(exports.DeleteZoneRequest);
3006
+ function DeleteZoneRequestCustomInspect() {
2099
3007
  const parts = [];
2100
- if ((this.items?.length ?? 0) !== 0)
2101
- parts.push("items" + "=" + (0, util_1.inspect)(this.items));
2102
- if (this.nextPageToken !== "")
2103
- parts.push("nextPageToken" + "=" + (0, util_1.inspect)(this.nextPageToken));
3008
+ if (this.id !== "")
3009
+ parts.push("id" + "=" + (0, util_1.inspect)(this.id));
3010
+ if (!this.resourceVersion?.isZero?.())
3011
+ parts.push("resourceVersion" + "=" + (0, util_1.inspect)(this.resourceVersion));
2104
3012
  return `${this.$type}(${parts.join(", ")})`;
2105
3013
  }
2106
- function ListZonesResponseCustomJson() {
3014
+ function DeleteZoneRequestCustomJson() {
2107
3015
  const obj = {
2108
3016
  type: this.$type,
2109
3017
  };
2110
- if ((this.items?.length ?? 0) !== 0)
2111
- obj.items = (0, logging_js_1.inspectJson)(this.items);
2112
- if (this.nextPageToken !== "")
2113
- obj.nextPageToken = (0, logging_js_1.inspectJson)(this.nextPageToken);
3018
+ if (this.id !== "")
3019
+ obj.id = (0, logging_js_1.inspectJson)(this.id);
3020
+ if (!this.resourceVersion?.isZero?.())
3021
+ obj.resourceVersion = (0, logging_js_1.inspectJson)(this.resourceVersion);
2114
3022
  return obj;
2115
3023
  }
2116
- function applyListZonesResponseCustom(message) {
2117
- message[logging_js_1.custom] = ListZonesResponseCustomInspect;
2118
- message[logging_js_1.customJson] = ListZonesResponseCustomJson;
3024
+ function applyDeleteZoneRequestCustom(message) {
3025
+ message[logging_js_1.custom] = DeleteZoneRequestCustomInspect;
3026
+ message[logging_js_1.customJson] = DeleteZoneRequestCustomJson;
2119
3027
  return message;
2120
3028
  }
2121
- function createBaseListZonesResponse() {
3029
+ function createBaseDeleteZoneRequest() {
2122
3030
  const message = {
2123
- $type: "nebius.dns.v1.ListZonesResponse",
2124
- items: [],
2125
- nextPageToken: "",
3031
+ $type: "nebius.dns.v1.DeleteZoneRequest",
3032
+ id: "",
3033
+ resourceVersion: index_js_1.Long.ZERO,
2126
3034
  };
2127
- return applyListZonesResponseCustom(message);
3035
+ return applyDeleteZoneRequestCustom(message);
2128
3036
  }
2129
3037
  //# sourceMappingURL=index.js.map