@scaleway/sdk-domain 2.6.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/license.md +3 -0
- package/dist/metadata.gen.d.ts +6 -6
- package/dist/metadata.gen.js +6 -2
- package/dist/v2beta1/api.gen.d.ts +2 -2
- package/dist/v2beta1/api.gen.js +320 -672
- package/dist/v2beta1/content.gen.js +7 -7
- package/dist/v2beta1/marshalling.gen.js +135 -135
- package/dist/v2beta1/metadata.gen.js +1 -1
- package/package.json +15 -14
- package/LICENSE +0 -191
- package/dist/metadata.gen.json +0 -6
- package/dist/metadata2.gen.js +0 -8
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
2
|
//#region src/v2beta1/marshalling.gen.ts
|
|
3
|
-
|
|
3
|
+
const unmarshalContactExtensionFRAssociationInfo = (data) => {
|
|
4
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactExtensionFRAssociationInfo' failed as data isn't a dictionary.`);
|
|
5
5
|
return {
|
|
6
6
|
publicationJo: unmarshalDate(data.publication_jo),
|
|
7
7
|
publicationJoPage: data.publication_jo_page
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
const unmarshalContactExtensionFRCodeAuthAfnicInfo = (data) => {
|
|
11
11
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactExtensionFRCodeAuthAfnicInfo' failed as data isn't a dictionary.`);
|
|
12
12
|
return { codeAuthAfnic: data.code_auth_afnic };
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
const unmarshalContactExtensionFRDunsInfo = (data) => {
|
|
15
15
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactExtensionFRDunsInfo' failed as data isn't a dictionary.`);
|
|
16
16
|
return {
|
|
17
17
|
dunsId: data.duns_id,
|
|
18
18
|
localId: data.local_id
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
const unmarshalContactExtensionFRIndividualInfo = (data) => {
|
|
22
22
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactExtensionFRIndividualInfo' failed as data isn't a dictionary.`);
|
|
23
23
|
return { whoisOptIn: data.whois_opt_in };
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
const unmarshalContactExtensionFRTrademarkInfo = (data) => {
|
|
26
26
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactExtensionFRTrademarkInfo' failed as data isn't a dictionary.`);
|
|
27
27
|
return { trademarkInpi: data.trademark_inpi };
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
const unmarshalContactExtensionEU = (data) => {
|
|
30
30
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactExtensionEU' failed as data isn't a dictionary.`);
|
|
31
31
|
return { europeanCitizenship: data.european_citizenship };
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
const unmarshalContactExtensionFR = (data) => {
|
|
34
34
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactExtensionFR' failed as data isn't a dictionary.`);
|
|
35
35
|
return {
|
|
36
36
|
associationInfo: data.association_info ? unmarshalContactExtensionFRAssociationInfo(data.association_info) : void 0,
|
|
@@ -41,7 +41,7 @@ var unmarshalContactExtensionFR = (data) => {
|
|
|
41
41
|
trademarkInfo: data.trademark_info ? unmarshalContactExtensionFRTrademarkInfo(data.trademark_info) : void 0
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
const unmarshalContactExtensionIT = (data) => {
|
|
45
45
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactExtensionIT' failed as data isn't a dictionary.`);
|
|
46
46
|
return {
|
|
47
47
|
europeanCitizenship: data.european_citizenship,
|
|
@@ -49,21 +49,21 @@ var unmarshalContactExtensionIT = (data) => {
|
|
|
49
49
|
taxCode: data.tax_code
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
|
-
|
|
52
|
+
const unmarshalContactExtensionNL = (data) => {
|
|
53
53
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactExtensionNL' failed as data isn't a dictionary.`);
|
|
54
54
|
return {
|
|
55
55
|
legalForm: data.legal_form,
|
|
56
56
|
legalFormRegistrationNumber: data.legal_form_registration_number
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
const unmarshalContactQuestion = (data) => {
|
|
60
60
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactQuestion' failed as data isn't a dictionary.`);
|
|
61
61
|
return {
|
|
62
62
|
answer: data.answer,
|
|
63
63
|
question: data.question
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
|
|
66
|
+
const unmarshalContact = (data) => {
|
|
67
67
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Contact' failed as data isn't a dictionary.`);
|
|
68
68
|
return {
|
|
69
69
|
addressLine1: data.address_line_1,
|
|
@@ -95,7 +95,7 @@ var unmarshalContact = (data) => {
|
|
|
95
95
|
zip: data.zip
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
const unmarshalDNSZone = (data) => {
|
|
99
99
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DNSZone' failed as data isn't a dictionary.`);
|
|
100
100
|
return {
|
|
101
101
|
domain: data.domain,
|
|
@@ -110,7 +110,7 @@ var unmarshalDNSZone = (data) => {
|
|
|
110
110
|
updatedAt: unmarshalDate(data.updated_at)
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
|
-
|
|
113
|
+
const unmarshalHost = (data) => {
|
|
114
114
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Host' failed as data isn't a dictionary.`);
|
|
115
115
|
return {
|
|
116
116
|
domain: data.domain,
|
|
@@ -119,7 +119,7 @@ var unmarshalHost = (data) => {
|
|
|
119
119
|
status: data.status
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
|
|
122
|
+
const unmarshalSSLCertificate = (data) => {
|
|
123
123
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SSLCertificate' failed as data isn't a dictionary.`);
|
|
124
124
|
return {
|
|
125
125
|
alternativeDnsZones: data.alternative_dns_zones,
|
|
@@ -131,14 +131,14 @@ var unmarshalSSLCertificate = (data) => {
|
|
|
131
131
|
status: data.status
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
|
|
134
|
+
const unmarshalCheckContactsCompatibilityResponseContactCheckResult = (data) => {
|
|
135
135
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckContactsCompatibilityResponseContactCheckResult' failed as data isn't a dictionary.`);
|
|
136
136
|
return {
|
|
137
137
|
compatible: data.compatible,
|
|
138
138
|
errorMessage: data.error_message
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
const unmarshalCheckContactsCompatibilityResponse = (data) => {
|
|
142
142
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckContactsCompatibilityResponse' failed as data isn't a dictionary.`);
|
|
143
143
|
return {
|
|
144
144
|
administrativeCheckResult: data.administrative_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(data.administrative_check_result) : void 0,
|
|
@@ -147,27 +147,27 @@ var unmarshalCheckContactsCompatibilityResponse = (data) => {
|
|
|
147
147
|
technicalCheckResult: data.technical_check_result ? unmarshalCheckContactsCompatibilityResponseContactCheckResult(data.technical_check_result) : void 0
|
|
148
148
|
};
|
|
149
149
|
};
|
|
150
|
-
|
|
150
|
+
const unmarshalClearDNSZoneRecordsResponse = (data) => {
|
|
151
151
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClearDNSZoneRecordsResponse' failed as data isn't a dictionary.`);
|
|
152
152
|
return {};
|
|
153
153
|
};
|
|
154
|
-
|
|
154
|
+
const unmarshalDeleteDNSZoneResponse = (data) => {
|
|
155
155
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DeleteDNSZoneResponse' failed as data isn't a dictionary.`);
|
|
156
156
|
return {};
|
|
157
157
|
};
|
|
158
|
-
|
|
158
|
+
const unmarshalDeleteExternalDomainResponse = (data) => {
|
|
159
159
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DeleteExternalDomainResponse' failed as data isn't a dictionary.`);
|
|
160
160
|
return {};
|
|
161
161
|
};
|
|
162
|
-
|
|
162
|
+
const unmarshalDeleteSSLCertificateResponse = (data) => {
|
|
163
163
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DeleteSSLCertificateResponse' failed as data isn't a dictionary.`);
|
|
164
164
|
return {};
|
|
165
165
|
};
|
|
166
|
-
|
|
166
|
+
const unmarshalDSRecordPublicKey = (data) => {
|
|
167
167
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DSRecordPublicKey' failed as data isn't a dictionary.`);
|
|
168
168
|
return { key: data.key };
|
|
169
169
|
};
|
|
170
|
-
|
|
170
|
+
const unmarshalDSRecordDigest = (data) => {
|
|
171
171
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DSRecordDigest' failed as data isn't a dictionary.`);
|
|
172
172
|
return {
|
|
173
173
|
digest: data.digest,
|
|
@@ -175,7 +175,7 @@ var unmarshalDSRecordDigest = (data) => {
|
|
|
175
175
|
type: data.type
|
|
176
176
|
};
|
|
177
177
|
};
|
|
178
|
-
|
|
178
|
+
const unmarshalDSRecord = (data) => {
|
|
179
179
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DSRecord' failed as data isn't a dictionary.`);
|
|
180
180
|
return {
|
|
181
181
|
algorithm: data.algorithm,
|
|
@@ -184,7 +184,7 @@ var unmarshalDSRecord = (data) => {
|
|
|
184
184
|
publicKey: data.public_key ? unmarshalDSRecordPublicKey(data.public_key) : void 0
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
const unmarshalTldOffer = (data) => {
|
|
188
188
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'TldOffer' failed as data isn't a dictionary.`);
|
|
189
189
|
return {
|
|
190
190
|
action: data.action,
|
|
@@ -192,18 +192,18 @@ var unmarshalTldOffer = (data) => {
|
|
|
192
192
|
price: data.price ? unmarshalMoney(data.price) : void 0
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
|
-
|
|
195
|
+
const unmarshalDomainDNSSEC = (data) => {
|
|
196
196
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainDNSSEC' failed as data isn't a dictionary.`);
|
|
197
197
|
return {
|
|
198
198
|
dsRecords: unmarshalArrayOfObject(data.ds_records, unmarshalDSRecord),
|
|
199
199
|
status: data.status
|
|
200
200
|
};
|
|
201
201
|
};
|
|
202
|
-
|
|
202
|
+
const unmarshalDomainRegistrationStatusExternalDomain = (data) => {
|
|
203
203
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRegistrationStatusExternalDomain' failed as data isn't a dictionary.`);
|
|
204
204
|
return { validationToken: data.validation_token };
|
|
205
205
|
};
|
|
206
|
-
|
|
206
|
+
const unmarshalDomainRegistrationStatusTransfer = (data) => {
|
|
207
207
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRegistrationStatusTransfer' failed as data isn't a dictionary.`);
|
|
208
208
|
return {
|
|
209
209
|
status: data.status,
|
|
@@ -211,7 +211,7 @@ var unmarshalDomainRegistrationStatusTransfer = (data) => {
|
|
|
211
211
|
voteNewOwner: data.vote_new_owner
|
|
212
212
|
};
|
|
213
213
|
};
|
|
214
|
-
|
|
214
|
+
const unmarshalTld = (data) => {
|
|
215
215
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Tld' failed as data isn't a dictionary.`);
|
|
216
216
|
return {
|
|
217
217
|
dnssecSupport: data.dnssec_support,
|
|
@@ -223,7 +223,7 @@ var unmarshalTld = (data) => {
|
|
|
223
223
|
specifications: data.specifications
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
|
-
|
|
226
|
+
const unmarshalDomain = (data) => {
|
|
227
227
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`);
|
|
228
228
|
return {
|
|
229
229
|
administrativeContact: data.administrative_contact ? unmarshalContact(data.administrative_contact) : void 0,
|
|
@@ -248,7 +248,7 @@ var unmarshalDomain = (data) => {
|
|
|
248
248
|
updatedAt: unmarshalDate(data.updated_at)
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
const unmarshalGetDNSZoneTsigKeyResponse = (data) => {
|
|
252
252
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetDNSZoneTsigKeyResponse' failed as data isn't a dictionary.`);
|
|
253
253
|
return {
|
|
254
254
|
algorithm: data.algorithm,
|
|
@@ -256,7 +256,7 @@ var unmarshalGetDNSZoneTsigKeyResponse = (data) => {
|
|
|
256
256
|
name: data.name
|
|
257
257
|
};
|
|
258
258
|
};
|
|
259
|
-
|
|
259
|
+
const unmarshalDomainRecordGeoIPConfigMatch = (data) => {
|
|
260
260
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordGeoIPConfigMatch' failed as data isn't a dictionary.`);
|
|
261
261
|
return {
|
|
262
262
|
continents: data.continents,
|
|
@@ -264,28 +264,28 @@ var unmarshalDomainRecordGeoIPConfigMatch = (data) => {
|
|
|
264
264
|
data: data.data
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
|
-
|
|
267
|
+
const unmarshalDomainRecordViewConfigView = (data) => {
|
|
268
268
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordViewConfigView' failed as data isn't a dictionary.`);
|
|
269
269
|
return {
|
|
270
270
|
data: data.data,
|
|
271
271
|
subnet: data.subnet
|
|
272
272
|
};
|
|
273
273
|
};
|
|
274
|
-
|
|
274
|
+
const unmarshalDomainRecordWeightedConfigWeightedIP = (data) => {
|
|
275
275
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordWeightedConfigWeightedIP' failed as data isn't a dictionary.`);
|
|
276
276
|
return {
|
|
277
277
|
ip: data.ip,
|
|
278
278
|
weight: data.weight
|
|
279
279
|
};
|
|
280
280
|
};
|
|
281
|
-
|
|
281
|
+
const unmarshalDomainRecordGeoIPConfig = (data) => {
|
|
282
282
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordGeoIPConfig' failed as data isn't a dictionary.`);
|
|
283
283
|
return {
|
|
284
284
|
default: data.default,
|
|
285
285
|
matches: unmarshalArrayOfObject(data.matches, unmarshalDomainRecordGeoIPConfigMatch)
|
|
286
286
|
};
|
|
287
287
|
};
|
|
288
|
-
|
|
288
|
+
const unmarshalDomainRecordHTTPServiceConfig = (data) => {
|
|
289
289
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordHTTPServiceConfig' failed as data isn't a dictionary.`);
|
|
290
290
|
return {
|
|
291
291
|
ips: data.ips,
|
|
@@ -295,15 +295,15 @@ var unmarshalDomainRecordHTTPServiceConfig = (data) => {
|
|
|
295
295
|
userAgent: data.user_agent
|
|
296
296
|
};
|
|
297
297
|
};
|
|
298
|
-
|
|
298
|
+
const unmarshalDomainRecordViewConfig = (data) => {
|
|
299
299
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordViewConfig' failed as data isn't a dictionary.`);
|
|
300
300
|
return { views: unmarshalArrayOfObject(data.views, unmarshalDomainRecordViewConfigView) };
|
|
301
301
|
};
|
|
302
|
-
|
|
302
|
+
const unmarshalDomainRecordWeightedConfig = (data) => {
|
|
303
303
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecordWeightedConfig' failed as data isn't a dictionary.`);
|
|
304
304
|
return { weightedIps: unmarshalArrayOfObject(data.weighted_ips, unmarshalDomainRecordWeightedConfigWeightedIP) };
|
|
305
305
|
};
|
|
306
|
-
|
|
306
|
+
const unmarshalDomainRecord = (data) => {
|
|
307
307
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainRecord' failed as data isn't a dictionary.`);
|
|
308
308
|
return {
|
|
309
309
|
comment: data.comment,
|
|
@@ -320,7 +320,7 @@ var unmarshalDomainRecord = (data) => {
|
|
|
320
320
|
weightedConfig: data.weighted_config ? unmarshalDomainRecordWeightedConfig(data.weighted_config) : void 0
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
|
-
|
|
323
|
+
const unmarshalRecordIdentifier = (data) => {
|
|
324
324
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RecordIdentifier' failed as data isn't a dictionary.`);
|
|
325
325
|
return {
|
|
326
326
|
data: data.data,
|
|
@@ -329,22 +329,22 @@ var unmarshalRecordIdentifier = (data) => {
|
|
|
329
329
|
type: data.type
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
|
-
|
|
332
|
+
const unmarshalRecordChangeAdd = (data) => {
|
|
333
333
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RecordChangeAdd' failed as data isn't a dictionary.`);
|
|
334
334
|
return { records: unmarshalArrayOfObject(data.records, unmarshalDomainRecord) };
|
|
335
335
|
};
|
|
336
|
-
|
|
336
|
+
const unmarshalRecordChangeClear = (data) => {
|
|
337
337
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RecordChangeClear' failed as data isn't a dictionary.`);
|
|
338
338
|
return {};
|
|
339
339
|
};
|
|
340
|
-
|
|
340
|
+
const unmarshalRecordChangeDelete = (data) => {
|
|
341
341
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RecordChangeDelete' failed as data isn't a dictionary.`);
|
|
342
342
|
return {
|
|
343
343
|
id: data.id,
|
|
344
344
|
idFields: data.id_fields ? unmarshalRecordIdentifier(data.id_fields) : void 0
|
|
345
345
|
};
|
|
346
346
|
};
|
|
347
|
-
|
|
347
|
+
const unmarshalRecordChangeSet = (data) => {
|
|
348
348
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RecordChangeSet' failed as data isn't a dictionary.`);
|
|
349
349
|
return {
|
|
350
350
|
id: data.id,
|
|
@@ -352,7 +352,7 @@ var unmarshalRecordChangeSet = (data) => {
|
|
|
352
352
|
records: unmarshalArrayOfObject(data.records, unmarshalDomainRecord)
|
|
353
353
|
};
|
|
354
354
|
};
|
|
355
|
-
|
|
355
|
+
const unmarshalRecordChange = (data) => {
|
|
356
356
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RecordChange' failed as data isn't a dictionary.`);
|
|
357
357
|
return {
|
|
358
358
|
add: data.add ? unmarshalRecordChangeAdd(data.add) : void 0,
|
|
@@ -361,23 +361,23 @@ var unmarshalRecordChange = (data) => {
|
|
|
361
361
|
set: data.set ? unmarshalRecordChangeSet(data.set) : void 0
|
|
362
362
|
};
|
|
363
363
|
};
|
|
364
|
-
|
|
364
|
+
const unmarshalGetDNSZoneVersionDiffResponse = (data) => {
|
|
365
365
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetDNSZoneVersionDiffResponse' failed as data isn't a dictionary.`);
|
|
366
366
|
return { changes: unmarshalArrayOfObject(data.changes, unmarshalRecordChange) };
|
|
367
367
|
};
|
|
368
|
-
|
|
368
|
+
const unmarshalGetDomainAuthCodeResponse = (data) => {
|
|
369
369
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GetDomainAuthCodeResponse' failed as data isn't a dictionary.`);
|
|
370
370
|
return { authCode: data.auth_code };
|
|
371
371
|
};
|
|
372
|
-
|
|
372
|
+
const unmarshalImportProviderDNSZoneResponse = (data) => {
|
|
373
373
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ImportProviderDNSZoneResponse' failed as data isn't a dictionary.`);
|
|
374
374
|
return { records: unmarshalArrayOfObject(data.records, unmarshalDomainRecord) };
|
|
375
375
|
};
|
|
376
|
-
|
|
376
|
+
const unmarshalImportRawDNSZoneResponse = (data) => {
|
|
377
377
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ImportRawDNSZoneResponse' failed as data isn't a dictionary.`);
|
|
378
378
|
return { records: unmarshalArrayOfObject(data.records, unmarshalDomainRecord) };
|
|
379
379
|
};
|
|
380
|
-
|
|
380
|
+
const unmarshalContactRolesRoles = (data) => {
|
|
381
381
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactRolesRoles' failed as data isn't a dictionary.`);
|
|
382
382
|
return {
|
|
383
383
|
isAdministrative: data.is_administrative,
|
|
@@ -385,74 +385,74 @@ var unmarshalContactRolesRoles = (data) => {
|
|
|
385
385
|
isTechnical: data.is_technical
|
|
386
386
|
};
|
|
387
387
|
};
|
|
388
|
-
|
|
388
|
+
const unmarshalContactRoles = (data) => {
|
|
389
389
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ContactRoles' failed as data isn't a dictionary.`);
|
|
390
390
|
return {
|
|
391
391
|
contact: data.contact ? unmarshalContact(data.contact) : void 0,
|
|
392
392
|
roles: unmarshalMapOfObject(data.roles, unmarshalContactRolesRoles)
|
|
393
393
|
};
|
|
394
394
|
};
|
|
395
|
-
|
|
395
|
+
const unmarshalListContactsResponse = (data) => {
|
|
396
396
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListContactsResponse' failed as data isn't a dictionary.`);
|
|
397
397
|
return {
|
|
398
398
|
contacts: unmarshalArrayOfObject(data.contacts, unmarshalContactRoles),
|
|
399
399
|
totalCount: data.total_count
|
|
400
400
|
};
|
|
401
401
|
};
|
|
402
|
-
|
|
402
|
+
const unmarshalNameserver = (data) => {
|
|
403
403
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Nameserver' failed as data isn't a dictionary.`);
|
|
404
404
|
return {
|
|
405
405
|
ip: data.ip,
|
|
406
406
|
name: data.name
|
|
407
407
|
};
|
|
408
408
|
};
|
|
409
|
-
|
|
409
|
+
const unmarshalListDNSZoneNameserversResponse = (data) => {
|
|
410
410
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDNSZoneNameserversResponse' failed as data isn't a dictionary.`);
|
|
411
411
|
return { ns: unmarshalArrayOfObject(data.ns, unmarshalNameserver) };
|
|
412
412
|
};
|
|
413
|
-
|
|
413
|
+
const unmarshalListDNSZoneRecordsResponse = (data) => {
|
|
414
414
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDNSZoneRecordsResponse' failed as data isn't a dictionary.`);
|
|
415
415
|
return {
|
|
416
416
|
records: unmarshalArrayOfObject(data.records, unmarshalDomainRecord),
|
|
417
417
|
totalCount: data.total_count
|
|
418
418
|
};
|
|
419
419
|
};
|
|
420
|
-
|
|
420
|
+
const unmarshalListDNSZoneVersionRecordsResponse = (data) => {
|
|
421
421
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDNSZoneVersionRecordsResponse' failed as data isn't a dictionary.`);
|
|
422
422
|
return {
|
|
423
423
|
records: unmarshalArrayOfObject(data.records, unmarshalDomainRecord),
|
|
424
424
|
totalCount: data.total_count
|
|
425
425
|
};
|
|
426
426
|
};
|
|
427
|
-
|
|
427
|
+
const unmarshalDNSZoneVersion = (data) => {
|
|
428
428
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DNSZoneVersion' failed as data isn't a dictionary.`);
|
|
429
429
|
return {
|
|
430
430
|
createdAt: unmarshalDate(data.created_at),
|
|
431
431
|
id: data.id
|
|
432
432
|
};
|
|
433
433
|
};
|
|
434
|
-
|
|
434
|
+
const unmarshalListDNSZoneVersionsResponse = (data) => {
|
|
435
435
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDNSZoneVersionsResponse' failed as data isn't a dictionary.`);
|
|
436
436
|
return {
|
|
437
437
|
totalCount: data.total_count,
|
|
438
438
|
versions: unmarshalArrayOfObject(data.versions, unmarshalDNSZoneVersion)
|
|
439
439
|
};
|
|
440
440
|
};
|
|
441
|
-
|
|
441
|
+
const unmarshalListDNSZonesResponse = (data) => {
|
|
442
442
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDNSZonesResponse' failed as data isn't a dictionary.`);
|
|
443
443
|
return {
|
|
444
444
|
dnsZones: unmarshalArrayOfObject(data.dns_zones, unmarshalDNSZone),
|
|
445
445
|
totalCount: data.total_count
|
|
446
446
|
};
|
|
447
447
|
};
|
|
448
|
-
|
|
448
|
+
const unmarshalListDomainHostsResponse = (data) => {
|
|
449
449
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDomainHostsResponse' failed as data isn't a dictionary.`);
|
|
450
450
|
return {
|
|
451
451
|
hosts: unmarshalArrayOfObject(data.hosts, unmarshalHost),
|
|
452
452
|
totalCount: data.total_count
|
|
453
453
|
};
|
|
454
454
|
};
|
|
455
|
-
|
|
455
|
+
const unmarshalDomainSummary = (data) => {
|
|
456
456
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainSummary' failed as data isn't a dictionary.`);
|
|
457
457
|
return {
|
|
458
458
|
autoRenewStatus: data.auto_renew_status,
|
|
@@ -472,14 +472,14 @@ var unmarshalDomainSummary = (data) => {
|
|
|
472
472
|
updatedAt: unmarshalDate(data.updated_at)
|
|
473
473
|
};
|
|
474
474
|
};
|
|
475
|
-
|
|
475
|
+
const unmarshalListDomainsResponse = (data) => {
|
|
476
476
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`);
|
|
477
477
|
return {
|
|
478
478
|
domains: unmarshalArrayOfObject(data.domains, unmarshalDomainSummary),
|
|
479
479
|
totalCount: data.total_count
|
|
480
480
|
};
|
|
481
481
|
};
|
|
482
|
-
|
|
482
|
+
const unmarshalInboundTransfer = (data) => {
|
|
483
483
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'InboundTransfer' failed as data isn't a dictionary.`);
|
|
484
484
|
return {
|
|
485
485
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -492,14 +492,14 @@ var unmarshalInboundTransfer = (data) => {
|
|
|
492
492
|
taskId: data.task_id
|
|
493
493
|
};
|
|
494
494
|
};
|
|
495
|
-
|
|
495
|
+
const unmarshalListInboundTransfersResponse = (data) => {
|
|
496
496
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListInboundTransfersResponse' failed as data isn't a dictionary.`);
|
|
497
497
|
return {
|
|
498
498
|
inboundTransfers: unmarshalArrayOfObject(data.inbound_transfers, unmarshalInboundTransfer),
|
|
499
499
|
totalCount: data.total_count
|
|
500
500
|
};
|
|
501
501
|
};
|
|
502
|
-
|
|
502
|
+
const unmarshalRenewableDomain = (data) => {
|
|
503
503
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RenewableDomain' failed as data isn't a dictionary.`);
|
|
504
504
|
return {
|
|
505
505
|
domain: data.domain,
|
|
@@ -514,21 +514,21 @@ var unmarshalRenewableDomain = (data) => {
|
|
|
514
514
|
tld: data.tld ? unmarshalTld(data.tld) : void 0
|
|
515
515
|
};
|
|
516
516
|
};
|
|
517
|
-
|
|
517
|
+
const unmarshalListRenewableDomainsResponse = (data) => {
|
|
518
518
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRenewableDomainsResponse' failed as data isn't a dictionary.`);
|
|
519
519
|
return {
|
|
520
520
|
domains: unmarshalArrayOfObject(data.domains, unmarshalRenewableDomain),
|
|
521
521
|
totalCount: data.total_count
|
|
522
522
|
};
|
|
523
523
|
};
|
|
524
|
-
|
|
524
|
+
const unmarshalListSSLCertificatesResponse = (data) => {
|
|
525
525
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSSLCertificatesResponse' failed as data isn't a dictionary.`);
|
|
526
526
|
return {
|
|
527
527
|
certificates: unmarshalArrayOfObject(data.certificates, unmarshalSSLCertificate),
|
|
528
528
|
totalCount: data.total_count
|
|
529
529
|
};
|
|
530
530
|
};
|
|
531
|
-
|
|
531
|
+
const unmarshalTask = (data) => {
|
|
532
532
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Task' failed as data isn't a dictionary.`);
|
|
533
533
|
return {
|
|
534
534
|
contactIdentifier: data.contact_identifier,
|
|
@@ -543,21 +543,21 @@ var unmarshalTask = (data) => {
|
|
|
543
543
|
updatedAt: unmarshalDate(data.updated_at)
|
|
544
544
|
};
|
|
545
545
|
};
|
|
546
|
-
|
|
546
|
+
const unmarshalListTasksResponse = (data) => {
|
|
547
547
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTasksResponse' failed as data isn't a dictionary.`);
|
|
548
548
|
return {
|
|
549
549
|
tasks: unmarshalArrayOfObject(data.tasks, unmarshalTask),
|
|
550
550
|
totalCount: data.total_count
|
|
551
551
|
};
|
|
552
552
|
};
|
|
553
|
-
|
|
553
|
+
const unmarshalListTldsResponse = (data) => {
|
|
554
554
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTldsResponse' failed as data isn't a dictionary.`);
|
|
555
555
|
return {
|
|
556
556
|
tlds: unmarshalArrayOfObject(data.tlds, unmarshalTld),
|
|
557
557
|
totalCount: data.total_count
|
|
558
558
|
};
|
|
559
559
|
};
|
|
560
|
-
|
|
560
|
+
const unmarshalOrderResponse = (data) => {
|
|
561
561
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OrderResponse' failed as data isn't a dictionary.`);
|
|
562
562
|
return {
|
|
563
563
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -567,11 +567,11 @@ var unmarshalOrderResponse = (data) => {
|
|
|
567
567
|
taskId: data.task_id
|
|
568
568
|
};
|
|
569
569
|
};
|
|
570
|
-
|
|
570
|
+
const unmarshalRefreshDNSZoneResponse = (data) => {
|
|
571
571
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RefreshDNSZoneResponse' failed as data isn't a dictionary.`);
|
|
572
572
|
return { dnsZones: unmarshalArrayOfObject(data.dns_zones, unmarshalDNSZone) };
|
|
573
573
|
};
|
|
574
|
-
|
|
574
|
+
const unmarshalRegisterExternalDomainResponse = (data) => {
|
|
575
575
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RegisterExternalDomainResponse' failed as data isn't a dictionary.`);
|
|
576
576
|
return {
|
|
577
577
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -581,15 +581,15 @@ var unmarshalRegisterExternalDomainResponse = (data) => {
|
|
|
581
581
|
validationToken: data.validation_token
|
|
582
582
|
};
|
|
583
583
|
};
|
|
584
|
-
|
|
584
|
+
const unmarshalRestoreDNSZoneVersionResponse = (data) => {
|
|
585
585
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RestoreDNSZoneVersionResponse' failed as data isn't a dictionary.`);
|
|
586
586
|
return {};
|
|
587
587
|
};
|
|
588
|
-
|
|
588
|
+
const unmarshalRetryInboundTransferResponse = (data) => {
|
|
589
589
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RetryInboundTransferResponse' failed as data isn't a dictionary.`);
|
|
590
590
|
return {};
|
|
591
591
|
};
|
|
592
|
-
|
|
592
|
+
const unmarshalAvailableDomain = (data) => {
|
|
593
593
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AvailableDomain' failed as data isn't a dictionary.`);
|
|
594
594
|
return {
|
|
595
595
|
available: data.available,
|
|
@@ -597,58 +597,58 @@ var unmarshalAvailableDomain = (data) => {
|
|
|
597
597
|
tld: data.tld ? unmarshalTld(data.tld) : void 0
|
|
598
598
|
};
|
|
599
599
|
};
|
|
600
|
-
|
|
600
|
+
const unmarshalSearchAvailableDomainsConsoleResponse = (data) => {
|
|
601
601
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SearchAvailableDomainsConsoleResponse' failed as data isn't a dictionary.`);
|
|
602
602
|
return {
|
|
603
603
|
availableDomains: unmarshalArrayOfObject(data.available_domains, unmarshalAvailableDomain),
|
|
604
604
|
exactMatchDomain: data.exact_match_domain ? unmarshalAvailableDomain(data.exact_match_domain) : void 0
|
|
605
605
|
};
|
|
606
606
|
};
|
|
607
|
-
|
|
607
|
+
const unmarshalSearchAvailableDomainsResponse = (data) => {
|
|
608
608
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SearchAvailableDomainsResponse' failed as data isn't a dictionary.`);
|
|
609
609
|
return {
|
|
610
610
|
availableDomains: unmarshalArrayOfObject(data.available_domains, unmarshalAvailableDomain),
|
|
611
611
|
exactMatchDomain: data.exact_match_domain ? unmarshalAvailableDomain(data.exact_match_domain) : void 0
|
|
612
612
|
};
|
|
613
613
|
};
|
|
614
|
-
|
|
614
|
+
const unmarshalUpdateDNSZoneNameserversResponse = (data) => {
|
|
615
615
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'UpdateDNSZoneNameserversResponse' failed as data isn't a dictionary.`);
|
|
616
616
|
return { ns: unmarshalArrayOfObject(data.ns, unmarshalNameserver) };
|
|
617
617
|
};
|
|
618
|
-
|
|
618
|
+
const unmarshalUpdateDNSZoneRecordsResponse = (data) => {
|
|
619
619
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'UpdateDNSZoneRecordsResponse' failed as data isn't a dictionary.`);
|
|
620
620
|
return { records: unmarshalArrayOfObject(data.records, unmarshalDomainRecord) };
|
|
621
621
|
};
|
|
622
|
-
|
|
622
|
+
const marshalCloneDNSZoneRequest = (request, defaults) => ({
|
|
623
623
|
dest_dns_zone: request.destDnsZone,
|
|
624
624
|
overwrite: request.overwrite,
|
|
625
625
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
626
626
|
});
|
|
627
|
-
|
|
627
|
+
const marshalCreateDNSZoneRequest = (request, defaults) => ({
|
|
628
628
|
domain: request.domain,
|
|
629
629
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
630
630
|
subdomain: request.subdomain
|
|
631
631
|
});
|
|
632
|
-
|
|
632
|
+
const marshalCreateSSLCertificateRequest = (request, defaults) => ({
|
|
633
633
|
alternative_dns_zones: request.alternativeDnsZones,
|
|
634
634
|
dns_zone: request.dnsZone
|
|
635
635
|
});
|
|
636
|
-
|
|
637
|
-
|
|
636
|
+
const marshalImportProviderDNSZoneRequestOnlineV1 = (request, defaults) => ({ token: request.token });
|
|
637
|
+
const marshalImportProviderDNSZoneRequest = (request, defaults) => ({ ...resolveOneOf([{
|
|
638
638
|
param: "online_v1",
|
|
639
639
|
value: request.onlineV1 !== void 0 ? marshalImportProviderDNSZoneRequestOnlineV1(request.onlineV1, defaults) : void 0
|
|
640
640
|
}]) });
|
|
641
|
-
|
|
641
|
+
const marshalImportRawDNSZoneRequestTsigKey = (request, defaults) => ({
|
|
642
642
|
algorithm: request.algorithm,
|
|
643
643
|
key: request.key,
|
|
644
644
|
name: request.name
|
|
645
645
|
});
|
|
646
|
-
|
|
646
|
+
const marshalImportRawDNSZoneRequestAXFRSource = (request, defaults) => ({
|
|
647
647
|
name_server: request.nameServer,
|
|
648
648
|
tsig_key: request.tsigKey !== void 0 ? marshalImportRawDNSZoneRequestTsigKey(request.tsigKey, defaults) : void 0
|
|
649
649
|
});
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
const marshalImportRawDNSZoneRequestBindSource = (request, defaults) => ({ content: request.content });
|
|
651
|
+
const marshalImportRawDNSZoneRequest = (request, defaults) => ({
|
|
652
652
|
content: request.content,
|
|
653
653
|
format: request.format,
|
|
654
654
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
@@ -660,23 +660,23 @@ var marshalImportRawDNSZoneRequest = (request, defaults) => ({
|
|
|
660
660
|
value: request.axfrSource !== void 0 ? marshalImportRawDNSZoneRequestAXFRSource(request.axfrSource, defaults) : void 0
|
|
661
661
|
}])
|
|
662
662
|
});
|
|
663
|
-
|
|
663
|
+
const marshalRefreshDNSZoneRequest = (request, defaults) => ({
|
|
664
664
|
recreate_dns_zone: request.recreateDnsZone,
|
|
665
665
|
recreate_sub_dns_zone: request.recreateSubDnsZone
|
|
666
666
|
});
|
|
667
|
-
|
|
667
|
+
const marshalContactExtensionFRAssociationInfo = (request, defaults) => ({
|
|
668
668
|
publication_jo: request.publicationJo,
|
|
669
669
|
publication_jo_page: request.publicationJoPage
|
|
670
670
|
});
|
|
671
|
-
|
|
672
|
-
|
|
671
|
+
const marshalContactExtensionFRCodeAuthAfnicInfo = (request, defaults) => ({ code_auth_afnic: request.codeAuthAfnic });
|
|
672
|
+
const marshalContactExtensionFRDunsInfo = (request, defaults) => ({
|
|
673
673
|
duns_id: request.dunsId,
|
|
674
674
|
local_id: request.localId
|
|
675
675
|
});
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
676
|
+
const marshalContactExtensionFRIndividualInfo = (request, defaults) => ({ whois_opt_in: request.whoisOptIn });
|
|
677
|
+
const marshalContactExtensionFRTrademarkInfo = (request, defaults) => ({ trademark_inpi: request.trademarkInpi });
|
|
678
|
+
const marshalContactExtensionEU = (request, defaults) => ({ european_citizenship: request.europeanCitizenship });
|
|
679
|
+
const marshalContactExtensionFR = (request, defaults) => ({
|
|
680
680
|
mode: request.mode,
|
|
681
681
|
...resolveOneOf([
|
|
682
682
|
{
|
|
@@ -701,20 +701,20 @@ var marshalContactExtensionFR = (request, defaults) => ({
|
|
|
701
701
|
}
|
|
702
702
|
])
|
|
703
703
|
});
|
|
704
|
-
|
|
704
|
+
const marshalContactExtensionIT = (request, defaults) => ({
|
|
705
705
|
european_citizenship: request.europeanCitizenship,
|
|
706
706
|
pin: request.pin,
|
|
707
707
|
tax_code: request.taxCode
|
|
708
708
|
});
|
|
709
|
-
|
|
709
|
+
const marshalContactExtensionNL = (request, defaults) => ({
|
|
710
710
|
legal_form: request.legalForm,
|
|
711
711
|
legal_form_registration_number: request.legalFormRegistrationNumber
|
|
712
712
|
});
|
|
713
|
-
|
|
713
|
+
const marshalContactQuestion = (request, defaults) => ({
|
|
714
714
|
answer: request.answer,
|
|
715
715
|
question: request.question
|
|
716
716
|
});
|
|
717
|
-
|
|
717
|
+
const marshalNewContact = (request, defaults) => ({
|
|
718
718
|
address_line_1: request.addressLine1,
|
|
719
719
|
address_line_2: request.addressLine2,
|
|
720
720
|
city: request.city,
|
|
@@ -740,7 +740,7 @@ var marshalNewContact = (request, defaults) => ({
|
|
|
740
740
|
whois_opt_in: request.whoisOptIn,
|
|
741
741
|
zip: request.zip
|
|
742
742
|
});
|
|
743
|
-
|
|
743
|
+
const marshalRegistrarApiBuyDomainsRequest = (request, defaults) => ({
|
|
744
744
|
domains: request.domains,
|
|
745
745
|
duration_in_years: request.durationInYears,
|
|
746
746
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
@@ -766,7 +766,7 @@ var marshalRegistrarApiBuyDomainsRequest = (request, defaults) => ({
|
|
|
766
766
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact, defaults) : void 0
|
|
767
767
|
}])
|
|
768
768
|
});
|
|
769
|
-
|
|
769
|
+
const marshalRegistrarApiCheckContactsCompatibilityRequest = (request, defaults) => ({
|
|
770
770
|
domains: request.domains,
|
|
771
771
|
tlds: request.tlds,
|
|
772
772
|
...resolveOneOf([{
|
|
@@ -791,17 +791,17 @@ var marshalRegistrarApiCheckContactsCompatibilityRequest = (request, defaults) =
|
|
|
791
791
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact, defaults) : void 0
|
|
792
792
|
}])
|
|
793
793
|
});
|
|
794
|
-
|
|
794
|
+
const marshalRegistrarApiCreateDomainHostRequest = (request, defaults) => ({
|
|
795
795
|
ips: request.ips,
|
|
796
796
|
name: request.name
|
|
797
797
|
});
|
|
798
|
-
|
|
799
|
-
|
|
798
|
+
const marshalDSRecordPublicKey = (request, defaults) => ({ key: request.key });
|
|
799
|
+
const marshalDSRecordDigest = (request, defaults) => ({
|
|
800
800
|
digest: request.digest,
|
|
801
801
|
public_key: request.publicKey !== void 0 ? marshalDSRecordPublicKey(request.publicKey, defaults) : void 0,
|
|
802
802
|
type: request.type
|
|
803
803
|
});
|
|
804
|
-
|
|
804
|
+
const marshalDSRecord = (request, defaults) => ({
|
|
805
805
|
algorithm: request.algorithm,
|
|
806
806
|
key_id: request.keyId,
|
|
807
807
|
...resolveOneOf([{
|
|
@@ -812,22 +812,22 @@ var marshalDSRecord = (request, defaults) => ({
|
|
|
812
812
|
value: request.publicKey !== void 0 ? marshalDSRecordPublicKey(request.publicKey, defaults) : void 0
|
|
813
813
|
}])
|
|
814
814
|
});
|
|
815
|
-
|
|
816
|
-
|
|
815
|
+
const marshalRegistrarApiEnableDomainDNSSECRequest = (request, defaults) => ({ ds_record: request.dsRecord !== void 0 ? marshalDSRecord(request.dsRecord, defaults) : void 0 });
|
|
816
|
+
const marshalRegistrarApiRegisterExternalDomainRequest = (request, defaults) => ({
|
|
817
817
|
domain: request.domain,
|
|
818
818
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
819
819
|
});
|
|
820
|
-
|
|
820
|
+
const marshalRegistrarApiRenewDomainsRequest = (request, defaults) => ({
|
|
821
821
|
domains: request.domains,
|
|
822
822
|
duration_in_years: request.durationInYears,
|
|
823
823
|
force_late_renewal: request.forceLateRenewal
|
|
824
824
|
});
|
|
825
|
-
|
|
825
|
+
const marshalRegistrarApiRetryInboundTransferRequest = (request, defaults) => ({
|
|
826
826
|
auth_code: request.authCode,
|
|
827
827
|
domain: request.domain,
|
|
828
828
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
829
829
|
});
|
|
830
|
-
|
|
830
|
+
const marshalRegistrarApiTradeDomainRequest = (request, defaults) => ({
|
|
831
831
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
832
832
|
...resolveOneOf([{
|
|
833
833
|
param: "new_owner_contact_id",
|
|
@@ -837,11 +837,11 @@ var marshalRegistrarApiTradeDomainRequest = (request, defaults) => ({
|
|
|
837
837
|
value: request.newOwnerContact !== void 0 ? marshalNewContact(request.newOwnerContact, defaults) : void 0
|
|
838
838
|
}])
|
|
839
839
|
});
|
|
840
|
-
|
|
840
|
+
const marshalTransferInDomainRequestTransferRequest = (request, defaults) => ({
|
|
841
841
|
auth_code: request.authCode,
|
|
842
842
|
domain: request.domain
|
|
843
843
|
});
|
|
844
|
-
|
|
844
|
+
const marshalRegistrarApiTransferInDomainRequest = (request, defaults) => ({
|
|
845
845
|
domains: request.domains.map((elt) => marshalTransferInDomainRequestTransferRequest(elt, defaults)),
|
|
846
846
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
847
847
|
...resolveOneOf([{
|
|
@@ -866,11 +866,11 @@ var marshalRegistrarApiTransferInDomainRequest = (request, defaults) => ({
|
|
|
866
866
|
value: request.technicalContact !== void 0 ? marshalNewContact(request.technicalContact, defaults) : void 0
|
|
867
867
|
}])
|
|
868
868
|
});
|
|
869
|
-
|
|
869
|
+
const marshalUpdateContactRequestQuestion = (request, defaults) => ({
|
|
870
870
|
answer: request.answer,
|
|
871
871
|
question: request.question
|
|
872
872
|
});
|
|
873
|
-
|
|
873
|
+
const marshalRegistrarApiUpdateContactRequest = (request, defaults) => ({
|
|
874
874
|
address_line_1: request.addressLine1,
|
|
875
875
|
address_line_2: request.addressLine2,
|
|
876
876
|
city: request.city,
|
|
@@ -892,8 +892,8 @@ var marshalRegistrarApiUpdateContactRequest = (request, defaults) => ({
|
|
|
892
892
|
whois_opt_in: request.whoisOptIn,
|
|
893
893
|
zip: request.zip
|
|
894
894
|
});
|
|
895
|
-
|
|
896
|
-
|
|
895
|
+
const marshalRegistrarApiUpdateDomainHostRequest = (request, defaults) => ({ ips: request.ips });
|
|
896
|
+
const marshalRegistrarApiUpdateDomainRequest = (request, defaults) => ({
|
|
897
897
|
...resolveOneOf([{
|
|
898
898
|
param: "technical_contact_id",
|
|
899
899
|
value: request.technicalContactId
|
|
@@ -916,38 +916,38 @@ var marshalRegistrarApiUpdateDomainRequest = (request, defaults) => ({
|
|
|
916
916
|
value: request.administrativeContact !== void 0 ? marshalNewContact(request.administrativeContact, defaults) : void 0
|
|
917
917
|
}])
|
|
918
918
|
});
|
|
919
|
-
|
|
919
|
+
const marshalNameserver = (request, defaults) => ({
|
|
920
920
|
ip: request.ip,
|
|
921
921
|
name: request.name
|
|
922
922
|
});
|
|
923
|
-
|
|
924
|
-
|
|
923
|
+
const marshalUpdateDNSZoneNameserversRequest = (request, defaults) => ({ ns: request.ns.map((elt) => marshalNameserver(elt, defaults)) });
|
|
924
|
+
const marshalDomainRecordGeoIPConfigMatch = (request, defaults) => ({
|
|
925
925
|
continents: request.continents,
|
|
926
926
|
countries: request.countries,
|
|
927
927
|
data: request.data
|
|
928
928
|
});
|
|
929
|
-
|
|
929
|
+
const marshalDomainRecordViewConfigView = (request, defaults) => ({
|
|
930
930
|
data: request.data,
|
|
931
931
|
subnet: request.subnet
|
|
932
932
|
});
|
|
933
|
-
|
|
933
|
+
const marshalDomainRecordWeightedConfigWeightedIP = (request, defaults) => ({
|
|
934
934
|
ip: request.ip,
|
|
935
935
|
weight: request.weight
|
|
936
936
|
});
|
|
937
|
-
|
|
937
|
+
const marshalDomainRecordGeoIPConfig = (request, defaults) => ({
|
|
938
938
|
default: request.default,
|
|
939
939
|
matches: request.matches.map((elt) => marshalDomainRecordGeoIPConfigMatch(elt, defaults))
|
|
940
940
|
});
|
|
941
|
-
|
|
941
|
+
const marshalDomainRecordHTTPServiceConfig = (request, defaults) => ({
|
|
942
942
|
ips: request.ips,
|
|
943
943
|
must_contain: request.mustContain,
|
|
944
944
|
strategy: request.strategy,
|
|
945
945
|
url: request.url,
|
|
946
946
|
user_agent: request.userAgent
|
|
947
947
|
});
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
948
|
+
const marshalDomainRecordViewConfig = (request, defaults) => ({ views: request.views.map((elt) => marshalDomainRecordViewConfigView(elt, defaults)) });
|
|
949
|
+
const marshalDomainRecordWeightedConfig = (request, defaults) => ({ weighted_ips: request.weightedIps.map((elt) => marshalDomainRecordWeightedConfigWeightedIP(elt, defaults)) });
|
|
950
|
+
const marshalDomainRecord = (request, defaults) => ({
|
|
951
951
|
comment: request.comment,
|
|
952
952
|
data: request.data,
|
|
953
953
|
id: request.id,
|
|
@@ -975,22 +975,22 @@ var marshalDomainRecord = (request, defaults) => ({
|
|
|
975
975
|
}
|
|
976
976
|
])
|
|
977
977
|
});
|
|
978
|
-
|
|
978
|
+
const marshalRecordIdentifier = (request, defaults) => ({
|
|
979
979
|
data: request.data,
|
|
980
980
|
name: request.name,
|
|
981
981
|
ttl: request.ttl,
|
|
982
982
|
type: request.type
|
|
983
983
|
});
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
984
|
+
const marshalRecordChangeAdd = (request, defaults) => ({ records: request.records.map((elt) => marshalDomainRecord(elt, defaults)) });
|
|
985
|
+
const marshalRecordChangeClear = (request, defaults) => ({});
|
|
986
|
+
const marshalRecordChangeDelete = (request, defaults) => ({ ...resolveOneOf([{
|
|
987
987
|
param: "id",
|
|
988
988
|
value: request.id
|
|
989
989
|
}, {
|
|
990
990
|
param: "id_fields",
|
|
991
991
|
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields, defaults) : void 0
|
|
992
992
|
}]) });
|
|
993
|
-
|
|
993
|
+
const marshalRecordChangeSet = (request, defaults) => ({
|
|
994
994
|
records: request.records.map((elt) => marshalDomainRecord(elt, defaults)),
|
|
995
995
|
...resolveOneOf([{
|
|
996
996
|
param: "id",
|
|
@@ -1000,7 +1000,7 @@ var marshalRecordChangeSet = (request, defaults) => ({
|
|
|
1000
1000
|
value: request.idFields !== void 0 ? marshalRecordIdentifier(request.idFields, defaults) : void 0
|
|
1001
1001
|
}])
|
|
1002
1002
|
});
|
|
1003
|
-
|
|
1003
|
+
const marshalRecordChange = (request, defaults) => ({ ...resolveOneOf([
|
|
1004
1004
|
{
|
|
1005
1005
|
param: "add",
|
|
1006
1006
|
value: request.add !== void 0 ? marshalRecordChangeAdd(request.add, defaults) : void 0
|
|
@@ -1018,13 +1018,13 @@ var marshalRecordChange = (request, defaults) => ({ ...resolveOneOf([
|
|
|
1018
1018
|
value: request.clear !== void 0 ? marshalRecordChangeClear(request.clear, defaults) : void 0
|
|
1019
1019
|
}
|
|
1020
1020
|
]) });
|
|
1021
|
-
|
|
1021
|
+
const marshalUpdateDNSZoneRecordsRequest = (request, defaults) => ({
|
|
1022
1022
|
changes: request.changes.map((elt) => marshalRecordChange(elt, defaults)),
|
|
1023
1023
|
disallow_new_zone_creation: request.disallowNewZoneCreation,
|
|
1024
1024
|
return_all_records: request.returnAllRecords,
|
|
1025
1025
|
serial: request.serial
|
|
1026
1026
|
});
|
|
1027
|
-
|
|
1027
|
+
const marshalUpdateDNSZoneRequest = (request, defaults) => ({
|
|
1028
1028
|
new_dns_zone: request.newDnsZone,
|
|
1029
1029
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
1030
1030
|
});
|