@aws-sdk/client-codeartifact 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +442 -828
- package/dist-es/protocols/Aws_restJson1.js +361 -747
- package/package.json +6 -6
|
@@ -10,7 +10,7 @@ const se_AssociateExternalConnectionCommand = async (input, context) => {
|
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {};
|
|
12
12
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/external-connection";
|
|
13
|
-
const query = map({
|
|
13
|
+
const query = (0, smithy_client_1.map)({
|
|
14
14
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
15
15
|
"domain-owner": [, input.domainOwner],
|
|
16
16
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -35,7 +35,7 @@ const se_CopyPackageVersionsCommand = async (input, context) => {
|
|
|
35
35
|
"content-type": "application/json",
|
|
36
36
|
};
|
|
37
37
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/copy";
|
|
38
|
-
const query = map({
|
|
38
|
+
const query = (0, smithy_client_1.map)({
|
|
39
39
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
40
40
|
"domain-owner": [, input.domainOwner],
|
|
41
41
|
"source-repository": [, (0, smithy_client_1.expectNonNull)(input.sourceRepository, `sourceRepository`)],
|
|
@@ -45,14 +45,12 @@ const se_CopyPackageVersionsCommand = async (input, context) => {
|
|
|
45
45
|
package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
|
|
46
46
|
});
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify({
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
...(input.versions != null && { versions: se_PackageVersionList(input.versions, context) }),
|
|
55
|
-
});
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
49
|
+
allowOverwrite: [],
|
|
50
|
+
includeFromUpstream: [],
|
|
51
|
+
versionRevisions: (_) => (0, smithy_client_1._json)(_),
|
|
52
|
+
versions: (_) => (0, smithy_client_1._json)(_),
|
|
53
|
+
}));
|
|
56
54
|
return new protocol_http_1.HttpRequest({
|
|
57
55
|
protocol,
|
|
58
56
|
hostname,
|
|
@@ -71,14 +69,14 @@ const se_CreateDomainCommand = async (input, context) => {
|
|
|
71
69
|
"content-type": "application/json",
|
|
72
70
|
};
|
|
73
71
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain";
|
|
74
|
-
const query = map({
|
|
72
|
+
const query = (0, smithy_client_1.map)({
|
|
75
73
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
76
74
|
});
|
|
77
75
|
let body;
|
|
78
|
-
body = JSON.stringify({
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
});
|
|
76
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
77
|
+
encryptionKey: [],
|
|
78
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
79
|
+
}));
|
|
82
80
|
return new protocol_http_1.HttpRequest({
|
|
83
81
|
protocol,
|
|
84
82
|
hostname,
|
|
@@ -97,17 +95,17 @@ const se_CreateRepositoryCommand = async (input, context) => {
|
|
|
97
95
|
"content-type": "application/json",
|
|
98
96
|
};
|
|
99
97
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
|
|
100
|
-
const query = map({
|
|
98
|
+
const query = (0, smithy_client_1.map)({
|
|
101
99
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
102
100
|
"domain-owner": [, input.domainOwner],
|
|
103
101
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
104
102
|
});
|
|
105
103
|
let body;
|
|
106
|
-
body = JSON.stringify({
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
});
|
|
104
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
105
|
+
description: [],
|
|
106
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
107
|
+
upstreams: (_) => (0, smithy_client_1._json)(_),
|
|
108
|
+
}));
|
|
111
109
|
return new protocol_http_1.HttpRequest({
|
|
112
110
|
protocol,
|
|
113
111
|
hostname,
|
|
@@ -124,7 +122,7 @@ const se_DeleteDomainCommand = async (input, context) => {
|
|
|
124
122
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
125
123
|
const headers = {};
|
|
126
124
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain";
|
|
127
|
-
const query = map({
|
|
125
|
+
const query = (0, smithy_client_1.map)({
|
|
128
126
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
129
127
|
"domain-owner": [, input.domainOwner],
|
|
130
128
|
});
|
|
@@ -145,7 +143,7 @@ const se_DeleteDomainPermissionsPolicyCommand = async (input, context) => {
|
|
|
145
143
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
146
144
|
const headers = {};
|
|
147
145
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
|
|
148
|
-
const query = map({
|
|
146
|
+
const query = (0, smithy_client_1.map)({
|
|
149
147
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
150
148
|
"domain-owner": [, input.domainOwner],
|
|
151
149
|
"policy-revision": [, input.policyRevision],
|
|
@@ -167,7 +165,7 @@ const se_DeletePackageCommand = async (input, context) => {
|
|
|
167
165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
168
166
|
const headers = {};
|
|
169
167
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
|
|
170
|
-
const query = map({
|
|
168
|
+
const query = (0, smithy_client_1.map)({
|
|
171
169
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
172
170
|
"domain-owner": [, input.domainOwner],
|
|
173
171
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -194,7 +192,7 @@ const se_DeletePackageVersionsCommand = async (input, context) => {
|
|
|
194
192
|
"content-type": "application/json",
|
|
195
193
|
};
|
|
196
194
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/delete";
|
|
197
|
-
const query = map({
|
|
195
|
+
const query = (0, smithy_client_1.map)({
|
|
198
196
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
199
197
|
"domain-owner": [, input.domainOwner],
|
|
200
198
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -203,10 +201,10 @@ const se_DeletePackageVersionsCommand = async (input, context) => {
|
|
|
203
201
|
package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
|
|
204
202
|
});
|
|
205
203
|
let body;
|
|
206
|
-
body = JSON.stringify({
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
});
|
|
204
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
205
|
+
expectedStatus: [],
|
|
206
|
+
versions: (_) => (0, smithy_client_1._json)(_),
|
|
207
|
+
}));
|
|
210
208
|
return new protocol_http_1.HttpRequest({
|
|
211
209
|
protocol,
|
|
212
210
|
hostname,
|
|
@@ -223,7 +221,7 @@ const se_DeleteRepositoryCommand = async (input, context) => {
|
|
|
223
221
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
224
222
|
const headers = {};
|
|
225
223
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
|
|
226
|
-
const query = map({
|
|
224
|
+
const query = (0, smithy_client_1.map)({
|
|
227
225
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
228
226
|
"domain-owner": [, input.domainOwner],
|
|
229
227
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -245,7 +243,7 @@ const se_DeleteRepositoryPermissionsPolicyCommand = async (input, context) => {
|
|
|
245
243
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
246
244
|
const headers = {};
|
|
247
245
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policies";
|
|
248
|
-
const query = map({
|
|
246
|
+
const query = (0, smithy_client_1.map)({
|
|
249
247
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
250
248
|
"domain-owner": [, input.domainOwner],
|
|
251
249
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -268,7 +266,7 @@ const se_DescribeDomainCommand = async (input, context) => {
|
|
|
268
266
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
269
267
|
const headers = {};
|
|
270
268
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain";
|
|
271
|
-
const query = map({
|
|
269
|
+
const query = (0, smithy_client_1.map)({
|
|
272
270
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
273
271
|
"domain-owner": [, input.domainOwner],
|
|
274
272
|
});
|
|
@@ -289,7 +287,7 @@ const se_DescribePackageCommand = async (input, context) => {
|
|
|
289
287
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
290
288
|
const headers = {};
|
|
291
289
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
|
|
292
|
-
const query = map({
|
|
290
|
+
const query = (0, smithy_client_1.map)({
|
|
293
291
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
294
292
|
"domain-owner": [, input.domainOwner],
|
|
295
293
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -314,7 +312,7 @@ const se_DescribePackageVersionCommand = async (input, context) => {
|
|
|
314
312
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
315
313
|
const headers = {};
|
|
316
314
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version";
|
|
317
|
-
const query = map({
|
|
315
|
+
const query = (0, smithy_client_1.map)({
|
|
318
316
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
319
317
|
"domain-owner": [, input.domainOwner],
|
|
320
318
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -340,7 +338,7 @@ const se_DescribeRepositoryCommand = async (input, context) => {
|
|
|
340
338
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
339
|
const headers = {};
|
|
342
340
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
|
|
343
|
-
const query = map({
|
|
341
|
+
const query = (0, smithy_client_1.map)({
|
|
344
342
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
345
343
|
"domain-owner": [, input.domainOwner],
|
|
346
344
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -362,7 +360,7 @@ const se_DisassociateExternalConnectionCommand = async (input, context) => {
|
|
|
362
360
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
363
361
|
const headers = {};
|
|
364
362
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/external-connection";
|
|
365
|
-
const query = map({
|
|
363
|
+
const query = (0, smithy_client_1.map)({
|
|
366
364
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
367
365
|
"domain-owner": [, input.domainOwner],
|
|
368
366
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -387,7 +385,7 @@ const se_DisposePackageVersionsCommand = async (input, context) => {
|
|
|
387
385
|
"content-type": "application/json",
|
|
388
386
|
};
|
|
389
387
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/dispose";
|
|
390
|
-
const query = map({
|
|
388
|
+
const query = (0, smithy_client_1.map)({
|
|
391
389
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
392
390
|
"domain-owner": [, input.domainOwner],
|
|
393
391
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -396,13 +394,11 @@ const se_DisposePackageVersionsCommand = async (input, context) => {
|
|
|
396
394
|
package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
|
|
397
395
|
});
|
|
398
396
|
let body;
|
|
399
|
-
body = JSON.stringify({
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
...(input.versions != null && { versions: se_PackageVersionList(input.versions, context) }),
|
|
405
|
-
});
|
|
397
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
398
|
+
expectedStatus: [],
|
|
399
|
+
versionRevisions: (_) => (0, smithy_client_1._json)(_),
|
|
400
|
+
versions: (_) => (0, smithy_client_1._json)(_),
|
|
401
|
+
}));
|
|
406
402
|
return new protocol_http_1.HttpRequest({
|
|
407
403
|
protocol,
|
|
408
404
|
hostname,
|
|
@@ -419,7 +415,7 @@ const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
|
419
415
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
420
416
|
const headers = {};
|
|
421
417
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/authorization-token";
|
|
422
|
-
const query = map({
|
|
418
|
+
const query = (0, smithy_client_1.map)({
|
|
423
419
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
424
420
|
"domain-owner": [, input.domainOwner],
|
|
425
421
|
duration: [() => input.durationSeconds !== void 0, () => input.durationSeconds.toString()],
|
|
@@ -441,7 +437,7 @@ const se_GetDomainPermissionsPolicyCommand = async (input, context) => {
|
|
|
441
437
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
438
|
const headers = {};
|
|
443
439
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
|
|
444
|
-
const query = map({
|
|
440
|
+
const query = (0, smithy_client_1.map)({
|
|
445
441
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
446
442
|
"domain-owner": [, input.domainOwner],
|
|
447
443
|
});
|
|
@@ -462,7 +458,7 @@ const se_GetPackageVersionAssetCommand = async (input, context) => {
|
|
|
462
458
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
463
459
|
const headers = {};
|
|
464
460
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/asset";
|
|
465
|
-
const query = map({
|
|
461
|
+
const query = (0, smithy_client_1.map)({
|
|
466
462
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
467
463
|
"domain-owner": [, input.domainOwner],
|
|
468
464
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -490,7 +486,7 @@ const se_GetPackageVersionReadmeCommand = async (input, context) => {
|
|
|
490
486
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
491
487
|
const headers = {};
|
|
492
488
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/readme";
|
|
493
|
-
const query = map({
|
|
489
|
+
const query = (0, smithy_client_1.map)({
|
|
494
490
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
495
491
|
"domain-owner": [, input.domainOwner],
|
|
496
492
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -516,7 +512,7 @@ const se_GetRepositoryEndpointCommand = async (input, context) => {
|
|
|
516
512
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
517
513
|
const headers = {};
|
|
518
514
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/endpoint";
|
|
519
|
-
const query = map({
|
|
515
|
+
const query = (0, smithy_client_1.map)({
|
|
520
516
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
521
517
|
"domain-owner": [, input.domainOwner],
|
|
522
518
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -539,7 +535,7 @@ const se_GetRepositoryPermissionsPolicyCommand = async (input, context) => {
|
|
|
539
535
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
540
536
|
const headers = {};
|
|
541
537
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policy";
|
|
542
|
-
const query = map({
|
|
538
|
+
const query = (0, smithy_client_1.map)({
|
|
543
539
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
544
540
|
"domain-owner": [, input.domainOwner],
|
|
545
541
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -564,10 +560,10 @@ const se_ListDomainsCommand = async (input, context) => {
|
|
|
564
560
|
};
|
|
565
561
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domains";
|
|
566
562
|
let body;
|
|
567
|
-
body = JSON.stringify({
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
});
|
|
563
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
564
|
+
maxResults: [],
|
|
565
|
+
nextToken: [],
|
|
566
|
+
}));
|
|
571
567
|
return new protocol_http_1.HttpRequest({
|
|
572
568
|
protocol,
|
|
573
569
|
hostname,
|
|
@@ -583,7 +579,7 @@ const se_ListPackagesCommand = async (input, context) => {
|
|
|
583
579
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
584
580
|
const headers = {};
|
|
585
581
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/packages";
|
|
586
|
-
const query = map({
|
|
582
|
+
const query = (0, smithy_client_1.map)({
|
|
587
583
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
588
584
|
"domain-owner": [, input.domainOwner],
|
|
589
585
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -612,7 +608,7 @@ const se_ListPackageVersionAssetsCommand = async (input, context) => {
|
|
|
612
608
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
613
609
|
const headers = {};
|
|
614
610
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/assets";
|
|
615
|
-
const query = map({
|
|
611
|
+
const query = (0, smithy_client_1.map)({
|
|
616
612
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
617
613
|
"domain-owner": [, input.domainOwner],
|
|
618
614
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -640,7 +636,7 @@ const se_ListPackageVersionDependenciesCommand = async (input, context) => {
|
|
|
640
636
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
641
637
|
const headers = {};
|
|
642
638
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/dependencies";
|
|
643
|
-
const query = map({
|
|
639
|
+
const query = (0, smithy_client_1.map)({
|
|
644
640
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
645
641
|
"domain-owner": [, input.domainOwner],
|
|
646
642
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -667,7 +663,7 @@ const se_ListPackageVersionsCommand = async (input, context) => {
|
|
|
667
663
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
668
664
|
const headers = {};
|
|
669
665
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions";
|
|
670
|
-
const query = map({
|
|
666
|
+
const query = (0, smithy_client_1.map)({
|
|
671
667
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
672
668
|
"domain-owner": [, input.domainOwner],
|
|
673
669
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -697,7 +693,7 @@ const se_ListRepositoriesCommand = async (input, context) => {
|
|
|
697
693
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
698
694
|
const headers = {};
|
|
699
695
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repositories";
|
|
700
|
-
const query = map({
|
|
696
|
+
const query = (0, smithy_client_1.map)({
|
|
701
697
|
"repository-prefix": [, input.repositoryPrefix],
|
|
702
698
|
"max-results": [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
703
699
|
"next-token": [, input.nextToken],
|
|
@@ -719,7 +715,7 @@ const se_ListRepositoriesInDomainCommand = async (input, context) => {
|
|
|
719
715
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
720
716
|
const headers = {};
|
|
721
717
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/repositories";
|
|
722
|
-
const query = map({
|
|
718
|
+
const query = (0, smithy_client_1.map)({
|
|
723
719
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
724
720
|
"domain-owner": [, input.domainOwner],
|
|
725
721
|
"administrator-account": [, input.administratorAccount],
|
|
@@ -744,7 +740,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
744
740
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
745
741
|
const headers = {};
|
|
746
742
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags";
|
|
747
|
-
const query = map({
|
|
743
|
+
const query = (0, smithy_client_1.map)({
|
|
748
744
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
749
745
|
});
|
|
750
746
|
let body;
|
|
@@ -762,12 +758,12 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
762
758
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
763
759
|
const se_PublishPackageVersionCommand = async (input, context) => {
|
|
764
760
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
765
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
761
|
+
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
766
762
|
"content-type": "application/octet-stream",
|
|
767
763
|
"x-amz-content-sha256": input.assetSHA256,
|
|
768
764
|
});
|
|
769
765
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/publish";
|
|
770
|
-
const query = map({
|
|
766
|
+
const query = (0, smithy_client_1.map)({
|
|
771
767
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
772
768
|
"domain-owner": [, input.domainOwner],
|
|
773
769
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -801,12 +797,12 @@ const se_PutDomainPermissionsPolicyCommand = async (input, context) => {
|
|
|
801
797
|
};
|
|
802
798
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domain/permissions/policy";
|
|
803
799
|
let body;
|
|
804
|
-
body = JSON.stringify({
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
});
|
|
800
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
801
|
+
domain: [],
|
|
802
|
+
domainOwner: [],
|
|
803
|
+
policyDocument: [],
|
|
804
|
+
policyRevision: [],
|
|
805
|
+
}));
|
|
810
806
|
return new protocol_http_1.HttpRequest({
|
|
811
807
|
protocol,
|
|
812
808
|
hostname,
|
|
@@ -824,7 +820,7 @@ const se_PutPackageOriginConfigurationCommand = async (input, context) => {
|
|
|
824
820
|
"content-type": "application/json",
|
|
825
821
|
};
|
|
826
822
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
|
|
827
|
-
const query = map({
|
|
823
|
+
const query = (0, smithy_client_1.map)({
|
|
828
824
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
829
825
|
"domain-owner": [, input.domainOwner],
|
|
830
826
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -833,9 +829,9 @@ const se_PutPackageOriginConfigurationCommand = async (input, context) => {
|
|
|
833
829
|
package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
|
|
834
830
|
});
|
|
835
831
|
let body;
|
|
836
|
-
body = JSON.stringify({
|
|
837
|
-
|
|
838
|
-
});
|
|
832
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
833
|
+
restrictions: (_) => (0, smithy_client_1._json)(_),
|
|
834
|
+
}));
|
|
839
835
|
return new protocol_http_1.HttpRequest({
|
|
840
836
|
protocol,
|
|
841
837
|
hostname,
|
|
@@ -854,16 +850,16 @@ const se_PutRepositoryPermissionsPolicyCommand = async (input, context) => {
|
|
|
854
850
|
"content-type": "application/json",
|
|
855
851
|
};
|
|
856
852
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository/permissions/policy";
|
|
857
|
-
const query = map({
|
|
853
|
+
const query = (0, smithy_client_1.map)({
|
|
858
854
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
859
855
|
"domain-owner": [, input.domainOwner],
|
|
860
856
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
861
857
|
});
|
|
862
858
|
let body;
|
|
863
|
-
body = JSON.stringify({
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
});
|
|
859
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
860
|
+
policyDocument: [],
|
|
861
|
+
policyRevision: [],
|
|
862
|
+
}));
|
|
867
863
|
return new protocol_http_1.HttpRequest({
|
|
868
864
|
protocol,
|
|
869
865
|
hostname,
|
|
@@ -882,13 +878,13 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
882
878
|
"content-type": "application/json",
|
|
883
879
|
};
|
|
884
880
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tag";
|
|
885
|
-
const query = map({
|
|
881
|
+
const query = (0, smithy_client_1.map)({
|
|
886
882
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
887
883
|
});
|
|
888
884
|
let body;
|
|
889
|
-
body = JSON.stringify({
|
|
890
|
-
|
|
891
|
-
});
|
|
885
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
886
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
887
|
+
}));
|
|
892
888
|
return new protocol_http_1.HttpRequest({
|
|
893
889
|
protocol,
|
|
894
890
|
hostname,
|
|
@@ -907,13 +903,13 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
907
903
|
"content-type": "application/json",
|
|
908
904
|
};
|
|
909
905
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/untag";
|
|
910
|
-
const query = map({
|
|
906
|
+
const query = (0, smithy_client_1.map)({
|
|
911
907
|
resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
|
|
912
908
|
});
|
|
913
909
|
let body;
|
|
914
|
-
body = JSON.stringify({
|
|
915
|
-
|
|
916
|
-
});
|
|
910
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
911
|
+
tagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
912
|
+
}));
|
|
917
913
|
return new protocol_http_1.HttpRequest({
|
|
918
914
|
protocol,
|
|
919
915
|
hostname,
|
|
@@ -932,7 +928,7 @@ const se_UpdatePackageVersionsStatusCommand = async (input, context) => {
|
|
|
932
928
|
"content-type": "application/json",
|
|
933
929
|
};
|
|
934
930
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/versions/update_status";
|
|
935
|
-
const query = map({
|
|
931
|
+
const query = (0, smithy_client_1.map)({
|
|
936
932
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
937
933
|
"domain-owner": [, input.domainOwner],
|
|
938
934
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
@@ -941,14 +937,12 @@ const se_UpdatePackageVersionsStatusCommand = async (input, context) => {
|
|
|
941
937
|
package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
|
|
942
938
|
});
|
|
943
939
|
let body;
|
|
944
|
-
body = JSON.stringify({
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
...(input.versions != null && { versions: se_PackageVersionList(input.versions, context) }),
|
|
951
|
-
});
|
|
940
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
941
|
+
expectedStatus: [],
|
|
942
|
+
targetStatus: [],
|
|
943
|
+
versionRevisions: (_) => (0, smithy_client_1._json)(_),
|
|
944
|
+
versions: (_) => (0, smithy_client_1._json)(_),
|
|
945
|
+
}));
|
|
952
946
|
return new protocol_http_1.HttpRequest({
|
|
953
947
|
protocol,
|
|
954
948
|
hostname,
|
|
@@ -967,16 +961,16 @@ const se_UpdateRepositoryCommand = async (input, context) => {
|
|
|
967
961
|
"content-type": "application/json",
|
|
968
962
|
};
|
|
969
963
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/repository";
|
|
970
|
-
const query = map({
|
|
964
|
+
const query = (0, smithy_client_1.map)({
|
|
971
965
|
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
972
966
|
"domain-owner": [, input.domainOwner],
|
|
973
967
|
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
974
968
|
});
|
|
975
969
|
let body;
|
|
976
|
-
body = JSON.stringify({
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
});
|
|
970
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
971
|
+
description: [],
|
|
972
|
+
upstreams: (_) => (0, smithy_client_1._json)(_),
|
|
973
|
+
}));
|
|
980
974
|
return new protocol_http_1.HttpRequest({
|
|
981
975
|
protocol,
|
|
982
976
|
hostname,
|
|
@@ -993,13 +987,14 @@ const de_AssociateExternalConnectionCommand = async (output, context) => {
|
|
|
993
987
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
994
988
|
return de_AssociateExternalConnectionCommandError(output, context);
|
|
995
989
|
}
|
|
996
|
-
const contents = map({
|
|
990
|
+
const contents = (0, smithy_client_1.map)({
|
|
997
991
|
$metadata: deserializeMetadata(output),
|
|
998
992
|
});
|
|
999
993
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
}
|
|
994
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
995
|
+
repository: (_) => de_RepositoryDescription(_, context),
|
|
996
|
+
});
|
|
997
|
+
Object.assign(contents, doc);
|
|
1003
998
|
return contents;
|
|
1004
999
|
};
|
|
1005
1000
|
exports.de_AssociateExternalConnectionCommand = de_AssociateExternalConnectionCommand;
|
|
@@ -1033,10 +1028,9 @@ const de_AssociateExternalConnectionCommandError = async (output, context) => {
|
|
|
1033
1028
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1034
1029
|
default:
|
|
1035
1030
|
const parsedBody = parsedOutput.body;
|
|
1036
|
-
|
|
1031
|
+
return throwDefaultError({
|
|
1037
1032
|
output,
|
|
1038
1033
|
parsedBody,
|
|
1039
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1040
1034
|
errorCode,
|
|
1041
1035
|
});
|
|
1042
1036
|
}
|
|
@@ -1045,16 +1039,15 @@ const de_CopyPackageVersionsCommand = async (output, context) => {
|
|
|
1045
1039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1046
1040
|
return de_CopyPackageVersionsCommandError(output, context);
|
|
1047
1041
|
}
|
|
1048
|
-
const contents = map({
|
|
1042
|
+
const contents = (0, smithy_client_1.map)({
|
|
1049
1043
|
$metadata: deserializeMetadata(output),
|
|
1050
1044
|
});
|
|
1051
1045
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
}
|
|
1046
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1047
|
+
failedVersions: smithy_client_1._json,
|
|
1048
|
+
successfulVersions: smithy_client_1._json,
|
|
1049
|
+
});
|
|
1050
|
+
Object.assign(contents, doc);
|
|
1058
1051
|
return contents;
|
|
1059
1052
|
};
|
|
1060
1053
|
exports.de_CopyPackageVersionsCommand = de_CopyPackageVersionsCommand;
|
|
@@ -1088,10 +1081,9 @@ const de_CopyPackageVersionsCommandError = async (output, context) => {
|
|
|
1088
1081
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1089
1082
|
default:
|
|
1090
1083
|
const parsedBody = parsedOutput.body;
|
|
1091
|
-
|
|
1084
|
+
return throwDefaultError({
|
|
1092
1085
|
output,
|
|
1093
1086
|
parsedBody,
|
|
1094
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1095
1087
|
errorCode,
|
|
1096
1088
|
});
|
|
1097
1089
|
}
|
|
@@ -1100,13 +1092,14 @@ const de_CreateDomainCommand = async (output, context) => {
|
|
|
1100
1092
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1101
1093
|
return de_CreateDomainCommandError(output, context);
|
|
1102
1094
|
}
|
|
1103
|
-
const contents = map({
|
|
1095
|
+
const contents = (0, smithy_client_1.map)({
|
|
1104
1096
|
$metadata: deserializeMetadata(output),
|
|
1105
1097
|
});
|
|
1106
1098
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
}
|
|
1099
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1100
|
+
domain: (_) => de_DomainDescription(_, context),
|
|
1101
|
+
});
|
|
1102
|
+
Object.assign(contents, doc);
|
|
1110
1103
|
return contents;
|
|
1111
1104
|
};
|
|
1112
1105
|
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
@@ -1140,10 +1133,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
1140
1133
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1141
1134
|
default:
|
|
1142
1135
|
const parsedBody = parsedOutput.body;
|
|
1143
|
-
|
|
1136
|
+
return throwDefaultError({
|
|
1144
1137
|
output,
|
|
1145
1138
|
parsedBody,
|
|
1146
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1147
1139
|
errorCode,
|
|
1148
1140
|
});
|
|
1149
1141
|
}
|
|
@@ -1152,13 +1144,14 @@ const de_CreateRepositoryCommand = async (output, context) => {
|
|
|
1152
1144
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1153
1145
|
return de_CreateRepositoryCommandError(output, context);
|
|
1154
1146
|
}
|
|
1155
|
-
const contents = map({
|
|
1147
|
+
const contents = (0, smithy_client_1.map)({
|
|
1156
1148
|
$metadata: deserializeMetadata(output),
|
|
1157
1149
|
});
|
|
1158
1150
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
}
|
|
1151
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1152
|
+
repository: (_) => de_RepositoryDescription(_, context),
|
|
1153
|
+
});
|
|
1154
|
+
Object.assign(contents, doc);
|
|
1162
1155
|
return contents;
|
|
1163
1156
|
};
|
|
1164
1157
|
exports.de_CreateRepositoryCommand = de_CreateRepositoryCommand;
|
|
@@ -1192,10 +1185,9 @@ const de_CreateRepositoryCommandError = async (output, context) => {
|
|
|
1192
1185
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1193
1186
|
default:
|
|
1194
1187
|
const parsedBody = parsedOutput.body;
|
|
1195
|
-
|
|
1188
|
+
return throwDefaultError({
|
|
1196
1189
|
output,
|
|
1197
1190
|
parsedBody,
|
|
1198
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1199
1191
|
errorCode,
|
|
1200
1192
|
});
|
|
1201
1193
|
}
|
|
@@ -1204,13 +1196,14 @@ const de_DeleteDomainCommand = async (output, context) => {
|
|
|
1204
1196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
1197
|
return de_DeleteDomainCommandError(output, context);
|
|
1206
1198
|
}
|
|
1207
|
-
const contents = map({
|
|
1199
|
+
const contents = (0, smithy_client_1.map)({
|
|
1208
1200
|
$metadata: deserializeMetadata(output),
|
|
1209
1201
|
});
|
|
1210
1202
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
}
|
|
1203
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1204
|
+
domain: (_) => de_DomainDescription(_, context),
|
|
1205
|
+
});
|
|
1206
|
+
Object.assign(contents, doc);
|
|
1214
1207
|
return contents;
|
|
1215
1208
|
};
|
|
1216
1209
|
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
@@ -1238,10 +1231,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
1238
1231
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1239
1232
|
default:
|
|
1240
1233
|
const parsedBody = parsedOutput.body;
|
|
1241
|
-
|
|
1234
|
+
return throwDefaultError({
|
|
1242
1235
|
output,
|
|
1243
1236
|
parsedBody,
|
|
1244
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1245
1237
|
errorCode,
|
|
1246
1238
|
});
|
|
1247
1239
|
}
|
|
@@ -1250,13 +1242,14 @@ const de_DeleteDomainPermissionsPolicyCommand = async (output, context) => {
|
|
|
1250
1242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1251
1243
|
return de_DeleteDomainPermissionsPolicyCommandError(output, context);
|
|
1252
1244
|
}
|
|
1253
|
-
const contents = map({
|
|
1245
|
+
const contents = (0, smithy_client_1.map)({
|
|
1254
1246
|
$metadata: deserializeMetadata(output),
|
|
1255
1247
|
});
|
|
1256
1248
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
}
|
|
1249
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1250
|
+
policy: smithy_client_1._json,
|
|
1251
|
+
});
|
|
1252
|
+
Object.assign(contents, doc);
|
|
1260
1253
|
return contents;
|
|
1261
1254
|
};
|
|
1262
1255
|
exports.de_DeleteDomainPermissionsPolicyCommand = de_DeleteDomainPermissionsPolicyCommand;
|
|
@@ -1287,10 +1280,9 @@ const de_DeleteDomainPermissionsPolicyCommandError = async (output, context) =>
|
|
|
1287
1280
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1288
1281
|
default:
|
|
1289
1282
|
const parsedBody = parsedOutput.body;
|
|
1290
|
-
|
|
1283
|
+
return throwDefaultError({
|
|
1291
1284
|
output,
|
|
1292
1285
|
parsedBody,
|
|
1293
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1294
1286
|
errorCode,
|
|
1295
1287
|
});
|
|
1296
1288
|
}
|
|
@@ -1299,13 +1291,14 @@ const de_DeletePackageCommand = async (output, context) => {
|
|
|
1299
1291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1300
1292
|
return de_DeletePackageCommandError(output, context);
|
|
1301
1293
|
}
|
|
1302
|
-
const contents = map({
|
|
1294
|
+
const contents = (0, smithy_client_1.map)({
|
|
1303
1295
|
$metadata: deserializeMetadata(output),
|
|
1304
1296
|
});
|
|
1305
1297
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
}
|
|
1298
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1299
|
+
deletedPackage: smithy_client_1._json,
|
|
1300
|
+
});
|
|
1301
|
+
Object.assign(contents, doc);
|
|
1309
1302
|
return contents;
|
|
1310
1303
|
};
|
|
1311
1304
|
exports.de_DeletePackageCommand = de_DeletePackageCommand;
|
|
@@ -1336,10 +1329,9 @@ const de_DeletePackageCommandError = async (output, context) => {
|
|
|
1336
1329
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1337
1330
|
default:
|
|
1338
1331
|
const parsedBody = parsedOutput.body;
|
|
1339
|
-
|
|
1332
|
+
return throwDefaultError({
|
|
1340
1333
|
output,
|
|
1341
1334
|
parsedBody,
|
|
1342
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1343
1335
|
errorCode,
|
|
1344
1336
|
});
|
|
1345
1337
|
}
|
|
@@ -1348,16 +1340,15 @@ const de_DeletePackageVersionsCommand = async (output, context) => {
|
|
|
1348
1340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1349
1341
|
return de_DeletePackageVersionsCommandError(output, context);
|
|
1350
1342
|
}
|
|
1351
|
-
const contents = map({
|
|
1343
|
+
const contents = (0, smithy_client_1.map)({
|
|
1352
1344
|
$metadata: deserializeMetadata(output),
|
|
1353
1345
|
});
|
|
1354
1346
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
}
|
|
1347
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1348
|
+
failedVersions: smithy_client_1._json,
|
|
1349
|
+
successfulVersions: smithy_client_1._json,
|
|
1350
|
+
});
|
|
1351
|
+
Object.assign(contents, doc);
|
|
1361
1352
|
return contents;
|
|
1362
1353
|
};
|
|
1363
1354
|
exports.de_DeletePackageVersionsCommand = de_DeletePackageVersionsCommand;
|
|
@@ -1388,10 +1379,9 @@ const de_DeletePackageVersionsCommandError = async (output, context) => {
|
|
|
1388
1379
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
1380
|
default:
|
|
1390
1381
|
const parsedBody = parsedOutput.body;
|
|
1391
|
-
|
|
1382
|
+
return throwDefaultError({
|
|
1392
1383
|
output,
|
|
1393
1384
|
parsedBody,
|
|
1394
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1395
1385
|
errorCode,
|
|
1396
1386
|
});
|
|
1397
1387
|
}
|
|
@@ -1400,13 +1390,14 @@ const de_DeleteRepositoryCommand = async (output, context) => {
|
|
|
1400
1390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1401
1391
|
return de_DeleteRepositoryCommandError(output, context);
|
|
1402
1392
|
}
|
|
1403
|
-
const contents = map({
|
|
1393
|
+
const contents = (0, smithy_client_1.map)({
|
|
1404
1394
|
$metadata: deserializeMetadata(output),
|
|
1405
1395
|
});
|
|
1406
1396
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
}
|
|
1397
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1398
|
+
repository: (_) => de_RepositoryDescription(_, context),
|
|
1399
|
+
});
|
|
1400
|
+
Object.assign(contents, doc);
|
|
1410
1401
|
return contents;
|
|
1411
1402
|
};
|
|
1412
1403
|
exports.de_DeleteRepositoryCommand = de_DeleteRepositoryCommand;
|
|
@@ -1437,10 +1428,9 @@ const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
|
1437
1428
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1438
1429
|
default:
|
|
1439
1430
|
const parsedBody = parsedOutput.body;
|
|
1440
|
-
|
|
1431
|
+
return throwDefaultError({
|
|
1441
1432
|
output,
|
|
1442
1433
|
parsedBody,
|
|
1443
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1444
1434
|
errorCode,
|
|
1445
1435
|
});
|
|
1446
1436
|
}
|
|
@@ -1449,13 +1439,14 @@ const de_DeleteRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
|
1449
1439
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
1440
|
return de_DeleteRepositoryPermissionsPolicyCommandError(output, context);
|
|
1451
1441
|
}
|
|
1452
|
-
const contents = map({
|
|
1442
|
+
const contents = (0, smithy_client_1.map)({
|
|
1453
1443
|
$metadata: deserializeMetadata(output),
|
|
1454
1444
|
});
|
|
1455
1445
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
}
|
|
1446
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1447
|
+
policy: smithy_client_1._json,
|
|
1448
|
+
});
|
|
1449
|
+
Object.assign(contents, doc);
|
|
1459
1450
|
return contents;
|
|
1460
1451
|
};
|
|
1461
1452
|
exports.de_DeleteRepositoryPermissionsPolicyCommand = de_DeleteRepositoryPermissionsPolicyCommand;
|
|
@@ -1486,10 +1477,9 @@ const de_DeleteRepositoryPermissionsPolicyCommandError = async (output, context)
|
|
|
1486
1477
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1487
1478
|
default:
|
|
1488
1479
|
const parsedBody = parsedOutput.body;
|
|
1489
|
-
|
|
1480
|
+
return throwDefaultError({
|
|
1490
1481
|
output,
|
|
1491
1482
|
parsedBody,
|
|
1492
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1493
1483
|
errorCode,
|
|
1494
1484
|
});
|
|
1495
1485
|
}
|
|
@@ -1498,13 +1488,14 @@ const de_DescribeDomainCommand = async (output, context) => {
|
|
|
1498
1488
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
1489
|
return de_DescribeDomainCommandError(output, context);
|
|
1500
1490
|
}
|
|
1501
|
-
const contents = map({
|
|
1491
|
+
const contents = (0, smithy_client_1.map)({
|
|
1502
1492
|
$metadata: deserializeMetadata(output),
|
|
1503
1493
|
});
|
|
1504
1494
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
}
|
|
1495
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1496
|
+
domain: (_) => de_DomainDescription(_, context),
|
|
1497
|
+
});
|
|
1498
|
+
Object.assign(contents, doc);
|
|
1508
1499
|
return contents;
|
|
1509
1500
|
};
|
|
1510
1501
|
exports.de_DescribeDomainCommand = de_DescribeDomainCommand;
|
|
@@ -1532,10 +1523,9 @@ const de_DescribeDomainCommandError = async (output, context) => {
|
|
|
1532
1523
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1533
1524
|
default:
|
|
1534
1525
|
const parsedBody = parsedOutput.body;
|
|
1535
|
-
|
|
1526
|
+
return throwDefaultError({
|
|
1536
1527
|
output,
|
|
1537
1528
|
parsedBody,
|
|
1538
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1539
1529
|
errorCode,
|
|
1540
1530
|
});
|
|
1541
1531
|
}
|
|
@@ -1544,13 +1534,14 @@ const de_DescribePackageCommand = async (output, context) => {
|
|
|
1544
1534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1545
1535
|
return de_DescribePackageCommandError(output, context);
|
|
1546
1536
|
}
|
|
1547
|
-
const contents = map({
|
|
1537
|
+
const contents = (0, smithy_client_1.map)({
|
|
1548
1538
|
$metadata: deserializeMetadata(output),
|
|
1549
1539
|
});
|
|
1550
1540
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
}
|
|
1541
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1542
|
+
package: smithy_client_1._json,
|
|
1543
|
+
});
|
|
1544
|
+
Object.assign(contents, doc);
|
|
1554
1545
|
return contents;
|
|
1555
1546
|
};
|
|
1556
1547
|
exports.de_DescribePackageCommand = de_DescribePackageCommand;
|
|
@@ -1578,10 +1569,9 @@ const de_DescribePackageCommandError = async (output, context) => {
|
|
|
1578
1569
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1579
1570
|
default:
|
|
1580
1571
|
const parsedBody = parsedOutput.body;
|
|
1581
|
-
|
|
1572
|
+
return throwDefaultError({
|
|
1582
1573
|
output,
|
|
1583
1574
|
parsedBody,
|
|
1584
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1585
1575
|
errorCode,
|
|
1586
1576
|
});
|
|
1587
1577
|
}
|
|
@@ -1590,13 +1580,14 @@ const de_DescribePackageVersionCommand = async (output, context) => {
|
|
|
1590
1580
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1591
1581
|
return de_DescribePackageVersionCommandError(output, context);
|
|
1592
1582
|
}
|
|
1593
|
-
const contents = map({
|
|
1583
|
+
const contents = (0, smithy_client_1.map)({
|
|
1594
1584
|
$metadata: deserializeMetadata(output),
|
|
1595
1585
|
});
|
|
1596
1586
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
}
|
|
1587
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1588
|
+
packageVersion: (_) => de_PackageVersionDescription(_, context),
|
|
1589
|
+
});
|
|
1590
|
+
Object.assign(contents, doc);
|
|
1600
1591
|
return contents;
|
|
1601
1592
|
};
|
|
1602
1593
|
exports.de_DescribePackageVersionCommand = de_DescribePackageVersionCommand;
|
|
@@ -1627,10 +1618,9 @@ const de_DescribePackageVersionCommandError = async (output, context) => {
|
|
|
1627
1618
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1628
1619
|
default:
|
|
1629
1620
|
const parsedBody = parsedOutput.body;
|
|
1630
|
-
|
|
1621
|
+
return throwDefaultError({
|
|
1631
1622
|
output,
|
|
1632
1623
|
parsedBody,
|
|
1633
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1634
1624
|
errorCode,
|
|
1635
1625
|
});
|
|
1636
1626
|
}
|
|
@@ -1639,13 +1629,14 @@ const de_DescribeRepositoryCommand = async (output, context) => {
|
|
|
1639
1629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1640
1630
|
return de_DescribeRepositoryCommandError(output, context);
|
|
1641
1631
|
}
|
|
1642
|
-
const contents = map({
|
|
1632
|
+
const contents = (0, smithy_client_1.map)({
|
|
1643
1633
|
$metadata: deserializeMetadata(output),
|
|
1644
1634
|
});
|
|
1645
1635
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
}
|
|
1636
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1637
|
+
repository: (_) => de_RepositoryDescription(_, context),
|
|
1638
|
+
});
|
|
1639
|
+
Object.assign(contents, doc);
|
|
1649
1640
|
return contents;
|
|
1650
1641
|
};
|
|
1651
1642
|
exports.de_DescribeRepositoryCommand = de_DescribeRepositoryCommand;
|
|
@@ -1673,10 +1664,9 @@ const de_DescribeRepositoryCommandError = async (output, context) => {
|
|
|
1673
1664
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1674
1665
|
default:
|
|
1675
1666
|
const parsedBody = parsedOutput.body;
|
|
1676
|
-
|
|
1667
|
+
return throwDefaultError({
|
|
1677
1668
|
output,
|
|
1678
1669
|
parsedBody,
|
|
1679
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1680
1670
|
errorCode,
|
|
1681
1671
|
});
|
|
1682
1672
|
}
|
|
@@ -1685,13 +1675,14 @@ const de_DisassociateExternalConnectionCommand = async (output, context) => {
|
|
|
1685
1675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1686
1676
|
return de_DisassociateExternalConnectionCommandError(output, context);
|
|
1687
1677
|
}
|
|
1688
|
-
const contents = map({
|
|
1678
|
+
const contents = (0, smithy_client_1.map)({
|
|
1689
1679
|
$metadata: deserializeMetadata(output),
|
|
1690
1680
|
});
|
|
1691
1681
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
}
|
|
1682
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1683
|
+
repository: (_) => de_RepositoryDescription(_, context),
|
|
1684
|
+
});
|
|
1685
|
+
Object.assign(contents, doc);
|
|
1695
1686
|
return contents;
|
|
1696
1687
|
};
|
|
1697
1688
|
exports.de_DisassociateExternalConnectionCommand = de_DisassociateExternalConnectionCommand;
|
|
@@ -1725,10 +1716,9 @@ const de_DisassociateExternalConnectionCommandError = async (output, context) =>
|
|
|
1725
1716
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1726
1717
|
default:
|
|
1727
1718
|
const parsedBody = parsedOutput.body;
|
|
1728
|
-
|
|
1719
|
+
return throwDefaultError({
|
|
1729
1720
|
output,
|
|
1730
1721
|
parsedBody,
|
|
1731
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1732
1722
|
errorCode,
|
|
1733
1723
|
});
|
|
1734
1724
|
}
|
|
@@ -1737,16 +1727,15 @@ const de_DisposePackageVersionsCommand = async (output, context) => {
|
|
|
1737
1727
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1738
1728
|
return de_DisposePackageVersionsCommandError(output, context);
|
|
1739
1729
|
}
|
|
1740
|
-
const contents = map({
|
|
1730
|
+
const contents = (0, smithy_client_1.map)({
|
|
1741
1731
|
$metadata: deserializeMetadata(output),
|
|
1742
1732
|
});
|
|
1743
1733
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
}
|
|
1734
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1735
|
+
failedVersions: smithy_client_1._json,
|
|
1736
|
+
successfulVersions: smithy_client_1._json,
|
|
1737
|
+
});
|
|
1738
|
+
Object.assign(contents, doc);
|
|
1750
1739
|
return contents;
|
|
1751
1740
|
};
|
|
1752
1741
|
exports.de_DisposePackageVersionsCommand = de_DisposePackageVersionsCommand;
|
|
@@ -1777,10 +1766,9 @@ const de_DisposePackageVersionsCommandError = async (output, context) => {
|
|
|
1777
1766
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1778
1767
|
default:
|
|
1779
1768
|
const parsedBody = parsedOutput.body;
|
|
1780
|
-
|
|
1769
|
+
return throwDefaultError({
|
|
1781
1770
|
output,
|
|
1782
1771
|
parsedBody,
|
|
1783
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1784
1772
|
errorCode,
|
|
1785
1773
|
});
|
|
1786
1774
|
}
|
|
@@ -1789,16 +1777,15 @@ const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
|
1789
1777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1790
1778
|
return de_GetAuthorizationTokenCommandError(output, context);
|
|
1791
1779
|
}
|
|
1792
|
-
const contents = map({
|
|
1780
|
+
const contents = (0, smithy_client_1.map)({
|
|
1793
1781
|
$metadata: deserializeMetadata(output),
|
|
1794
1782
|
});
|
|
1795
1783
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
}
|
|
1784
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1785
|
+
authorizationToken: smithy_client_1.expectString,
|
|
1786
|
+
expiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1787
|
+
});
|
|
1788
|
+
Object.assign(contents, doc);
|
|
1802
1789
|
return contents;
|
|
1803
1790
|
};
|
|
1804
1791
|
exports.de_GetAuthorizationTokenCommand = de_GetAuthorizationTokenCommand;
|
|
@@ -1826,10 +1813,9 @@ const de_GetAuthorizationTokenCommandError = async (output, context) => {
|
|
|
1826
1813
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1827
1814
|
default:
|
|
1828
1815
|
const parsedBody = parsedOutput.body;
|
|
1829
|
-
|
|
1816
|
+
return throwDefaultError({
|
|
1830
1817
|
output,
|
|
1831
1818
|
parsedBody,
|
|
1832
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1833
1819
|
errorCode,
|
|
1834
1820
|
});
|
|
1835
1821
|
}
|
|
@@ -1838,13 +1824,14 @@ const de_GetDomainPermissionsPolicyCommand = async (output, context) => {
|
|
|
1838
1824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1839
1825
|
return de_GetDomainPermissionsPolicyCommandError(output, context);
|
|
1840
1826
|
}
|
|
1841
|
-
const contents = map({
|
|
1827
|
+
const contents = (0, smithy_client_1.map)({
|
|
1842
1828
|
$metadata: deserializeMetadata(output),
|
|
1843
1829
|
});
|
|
1844
1830
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
}
|
|
1831
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1832
|
+
policy: smithy_client_1._json,
|
|
1833
|
+
});
|
|
1834
|
+
Object.assign(contents, doc);
|
|
1848
1835
|
return contents;
|
|
1849
1836
|
};
|
|
1850
1837
|
exports.de_GetDomainPermissionsPolicyCommand = de_GetDomainPermissionsPolicyCommand;
|
|
@@ -1872,10 +1859,9 @@ const de_GetDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
|
1872
1859
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1873
1860
|
default:
|
|
1874
1861
|
const parsedBody = parsedOutput.body;
|
|
1875
|
-
|
|
1862
|
+
return throwDefaultError({
|
|
1876
1863
|
output,
|
|
1877
1864
|
parsedBody,
|
|
1878
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1879
1865
|
errorCode,
|
|
1880
1866
|
});
|
|
1881
1867
|
}
|
|
@@ -1884,7 +1870,7 @@ const de_GetPackageVersionAssetCommand = async (output, context) => {
|
|
|
1884
1870
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1885
1871
|
return de_GetPackageVersionAssetCommandError(output, context);
|
|
1886
1872
|
}
|
|
1887
|
-
const contents = map({
|
|
1873
|
+
const contents = (0, smithy_client_1.map)({
|
|
1888
1874
|
$metadata: deserializeMetadata(output),
|
|
1889
1875
|
assetName: [, output.headers["x-assetname"]],
|
|
1890
1876
|
packageVersion: [, output.headers["x-packageversion"]],
|
|
@@ -1923,10 +1909,9 @@ const de_GetPackageVersionAssetCommandError = async (output, context) => {
|
|
|
1923
1909
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1924
1910
|
default:
|
|
1925
1911
|
const parsedBody = parsedOutput.body;
|
|
1926
|
-
|
|
1912
|
+
return throwDefaultError({
|
|
1927
1913
|
output,
|
|
1928
1914
|
parsedBody,
|
|
1929
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1930
1915
|
errorCode,
|
|
1931
1916
|
});
|
|
1932
1917
|
}
|
|
@@ -1935,28 +1920,19 @@ const de_GetPackageVersionReadmeCommand = async (output, context) => {
|
|
|
1935
1920
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1936
1921
|
return de_GetPackageVersionReadmeCommandError(output, context);
|
|
1937
1922
|
}
|
|
1938
|
-
const contents = map({
|
|
1923
|
+
const contents = (0, smithy_client_1.map)({
|
|
1939
1924
|
$metadata: deserializeMetadata(output),
|
|
1940
1925
|
});
|
|
1941
1926
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
if (data.readme != null) {
|
|
1952
|
-
contents.readme = (0, smithy_client_1.expectString)(data.readme);
|
|
1953
|
-
}
|
|
1954
|
-
if (data.version != null) {
|
|
1955
|
-
contents.version = (0, smithy_client_1.expectString)(data.version);
|
|
1956
|
-
}
|
|
1957
|
-
if (data.versionRevision != null) {
|
|
1958
|
-
contents.versionRevision = (0, smithy_client_1.expectString)(data.versionRevision);
|
|
1959
|
-
}
|
|
1927
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1928
|
+
format: smithy_client_1.expectString,
|
|
1929
|
+
namespace: smithy_client_1.expectString,
|
|
1930
|
+
package: smithy_client_1.expectString,
|
|
1931
|
+
readme: smithy_client_1.expectString,
|
|
1932
|
+
version: smithy_client_1.expectString,
|
|
1933
|
+
versionRevision: smithy_client_1.expectString,
|
|
1934
|
+
});
|
|
1935
|
+
Object.assign(contents, doc);
|
|
1960
1936
|
return contents;
|
|
1961
1937
|
};
|
|
1962
1938
|
exports.de_GetPackageVersionReadmeCommand = de_GetPackageVersionReadmeCommand;
|
|
@@ -1984,10 +1960,9 @@ const de_GetPackageVersionReadmeCommandError = async (output, context) => {
|
|
|
1984
1960
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1985
1961
|
default:
|
|
1986
1962
|
const parsedBody = parsedOutput.body;
|
|
1987
|
-
|
|
1963
|
+
return throwDefaultError({
|
|
1988
1964
|
output,
|
|
1989
1965
|
parsedBody,
|
|
1990
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1991
1966
|
errorCode,
|
|
1992
1967
|
});
|
|
1993
1968
|
}
|
|
@@ -1996,13 +1971,14 @@ const de_GetRepositoryEndpointCommand = async (output, context) => {
|
|
|
1996
1971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1997
1972
|
return de_GetRepositoryEndpointCommandError(output, context);
|
|
1998
1973
|
}
|
|
1999
|
-
const contents = map({
|
|
1974
|
+
const contents = (0, smithy_client_1.map)({
|
|
2000
1975
|
$metadata: deserializeMetadata(output),
|
|
2001
1976
|
});
|
|
2002
1977
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
}
|
|
1978
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1979
|
+
repositoryEndpoint: smithy_client_1.expectString,
|
|
1980
|
+
});
|
|
1981
|
+
Object.assign(contents, doc);
|
|
2006
1982
|
return contents;
|
|
2007
1983
|
};
|
|
2008
1984
|
exports.de_GetRepositoryEndpointCommand = de_GetRepositoryEndpointCommand;
|
|
@@ -2030,10 +2006,9 @@ const de_GetRepositoryEndpointCommandError = async (output, context) => {
|
|
|
2030
2006
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2031
2007
|
default:
|
|
2032
2008
|
const parsedBody = parsedOutput.body;
|
|
2033
|
-
|
|
2009
|
+
return throwDefaultError({
|
|
2034
2010
|
output,
|
|
2035
2011
|
parsedBody,
|
|
2036
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2037
2012
|
errorCode,
|
|
2038
2013
|
});
|
|
2039
2014
|
}
|
|
@@ -2042,13 +2017,14 @@ const de_GetRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
|
2042
2017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2043
2018
|
return de_GetRepositoryPermissionsPolicyCommandError(output, context);
|
|
2044
2019
|
}
|
|
2045
|
-
const contents = map({
|
|
2020
|
+
const contents = (0, smithy_client_1.map)({
|
|
2046
2021
|
$metadata: deserializeMetadata(output),
|
|
2047
2022
|
});
|
|
2048
2023
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
}
|
|
2024
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2025
|
+
policy: smithy_client_1._json,
|
|
2026
|
+
});
|
|
2027
|
+
Object.assign(contents, doc);
|
|
2052
2028
|
return contents;
|
|
2053
2029
|
};
|
|
2054
2030
|
exports.de_GetRepositoryPermissionsPolicyCommand = de_GetRepositoryPermissionsPolicyCommand;
|
|
@@ -2076,10 +2052,9 @@ const de_GetRepositoryPermissionsPolicyCommandError = async (output, context) =>
|
|
|
2076
2052
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2077
2053
|
default:
|
|
2078
2054
|
const parsedBody = parsedOutput.body;
|
|
2079
|
-
|
|
2055
|
+
return throwDefaultError({
|
|
2080
2056
|
output,
|
|
2081
2057
|
parsedBody,
|
|
2082
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2083
2058
|
errorCode,
|
|
2084
2059
|
});
|
|
2085
2060
|
}
|
|
@@ -2088,16 +2063,15 @@ const de_ListDomainsCommand = async (output, context) => {
|
|
|
2088
2063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2089
2064
|
return de_ListDomainsCommandError(output, context);
|
|
2090
2065
|
}
|
|
2091
|
-
const contents = map({
|
|
2066
|
+
const contents = (0, smithy_client_1.map)({
|
|
2092
2067
|
$metadata: deserializeMetadata(output),
|
|
2093
2068
|
});
|
|
2094
2069
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
}
|
|
2070
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2071
|
+
domains: (_) => de_DomainSummaryList(_, context),
|
|
2072
|
+
nextToken: smithy_client_1.expectString,
|
|
2073
|
+
});
|
|
2074
|
+
Object.assign(contents, doc);
|
|
2101
2075
|
return contents;
|
|
2102
2076
|
};
|
|
2103
2077
|
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
@@ -2122,10 +2096,9 @@ const de_ListDomainsCommandError = async (output, context) => {
|
|
|
2122
2096
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2123
2097
|
default:
|
|
2124
2098
|
const parsedBody = parsedOutput.body;
|
|
2125
|
-
|
|
2099
|
+
return throwDefaultError({
|
|
2126
2100
|
output,
|
|
2127
2101
|
parsedBody,
|
|
2128
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2129
2102
|
errorCode,
|
|
2130
2103
|
});
|
|
2131
2104
|
}
|
|
@@ -2134,16 +2107,15 @@ const de_ListPackagesCommand = async (output, context) => {
|
|
|
2134
2107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2135
2108
|
return de_ListPackagesCommandError(output, context);
|
|
2136
2109
|
}
|
|
2137
|
-
const contents = map({
|
|
2110
|
+
const contents = (0, smithy_client_1.map)({
|
|
2138
2111
|
$metadata: deserializeMetadata(output),
|
|
2139
2112
|
});
|
|
2140
2113
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
}
|
|
2114
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2115
|
+
nextToken: smithy_client_1.expectString,
|
|
2116
|
+
packages: smithy_client_1._json,
|
|
2117
|
+
});
|
|
2118
|
+
Object.assign(contents, doc);
|
|
2147
2119
|
return contents;
|
|
2148
2120
|
};
|
|
2149
2121
|
exports.de_ListPackagesCommand = de_ListPackagesCommand;
|
|
@@ -2171,10 +2143,9 @@ const de_ListPackagesCommandError = async (output, context) => {
|
|
|
2171
2143
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2172
2144
|
default:
|
|
2173
2145
|
const parsedBody = parsedOutput.body;
|
|
2174
|
-
|
|
2146
|
+
return throwDefaultError({
|
|
2175
2147
|
output,
|
|
2176
2148
|
parsedBody,
|
|
2177
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2178
2149
|
errorCode,
|
|
2179
2150
|
});
|
|
2180
2151
|
}
|
|
@@ -2183,31 +2154,20 @@ const de_ListPackageVersionAssetsCommand = async (output, context) => {
|
|
|
2183
2154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2184
2155
|
return de_ListPackageVersionAssetsCommandError(output, context);
|
|
2185
2156
|
}
|
|
2186
|
-
const contents = map({
|
|
2157
|
+
const contents = (0, smithy_client_1.map)({
|
|
2187
2158
|
$metadata: deserializeMetadata(output),
|
|
2188
2159
|
});
|
|
2189
2160
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
|
-
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2201
|
-
}
|
|
2202
|
-
if (data.package != null) {
|
|
2203
|
-
contents.package = (0, smithy_client_1.expectString)(data.package);
|
|
2204
|
-
}
|
|
2205
|
-
if (data.version != null) {
|
|
2206
|
-
contents.version = (0, smithy_client_1.expectString)(data.version);
|
|
2207
|
-
}
|
|
2208
|
-
if (data.versionRevision != null) {
|
|
2209
|
-
contents.versionRevision = (0, smithy_client_1.expectString)(data.versionRevision);
|
|
2210
|
-
}
|
|
2161
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2162
|
+
assets: smithy_client_1._json,
|
|
2163
|
+
format: smithy_client_1.expectString,
|
|
2164
|
+
namespace: smithy_client_1.expectString,
|
|
2165
|
+
nextToken: smithy_client_1.expectString,
|
|
2166
|
+
package: smithy_client_1.expectString,
|
|
2167
|
+
version: smithy_client_1.expectString,
|
|
2168
|
+
versionRevision: smithy_client_1.expectString,
|
|
2169
|
+
});
|
|
2170
|
+
Object.assign(contents, doc);
|
|
2211
2171
|
return contents;
|
|
2212
2172
|
};
|
|
2213
2173
|
exports.de_ListPackageVersionAssetsCommand = de_ListPackageVersionAssetsCommand;
|
|
@@ -2235,10 +2195,9 @@ const de_ListPackageVersionAssetsCommandError = async (output, context) => {
|
|
|
2235
2195
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2236
2196
|
default:
|
|
2237
2197
|
const parsedBody = parsedOutput.body;
|
|
2238
|
-
|
|
2198
|
+
return throwDefaultError({
|
|
2239
2199
|
output,
|
|
2240
2200
|
parsedBody,
|
|
2241
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2242
2201
|
errorCode,
|
|
2243
2202
|
});
|
|
2244
2203
|
}
|
|
@@ -2247,31 +2206,20 @@ const de_ListPackageVersionDependenciesCommand = async (output, context) => {
|
|
|
2247
2206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2248
2207
|
return de_ListPackageVersionDependenciesCommandError(output, context);
|
|
2249
2208
|
}
|
|
2250
|
-
const contents = map({
|
|
2209
|
+
const contents = (0, smithy_client_1.map)({
|
|
2251
2210
|
$metadata: deserializeMetadata(output),
|
|
2252
2211
|
});
|
|
2253
2212
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
|
-
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2265
|
-
}
|
|
2266
|
-
if (data.package != null) {
|
|
2267
|
-
contents.package = (0, smithy_client_1.expectString)(data.package);
|
|
2268
|
-
}
|
|
2269
|
-
if (data.version != null) {
|
|
2270
|
-
contents.version = (0, smithy_client_1.expectString)(data.version);
|
|
2271
|
-
}
|
|
2272
|
-
if (data.versionRevision != null) {
|
|
2273
|
-
contents.versionRevision = (0, smithy_client_1.expectString)(data.versionRevision);
|
|
2274
|
-
}
|
|
2213
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2214
|
+
dependencies: smithy_client_1._json,
|
|
2215
|
+
format: smithy_client_1.expectString,
|
|
2216
|
+
namespace: smithy_client_1.expectString,
|
|
2217
|
+
nextToken: smithy_client_1.expectString,
|
|
2218
|
+
package: smithy_client_1.expectString,
|
|
2219
|
+
version: smithy_client_1.expectString,
|
|
2220
|
+
versionRevision: smithy_client_1.expectString,
|
|
2221
|
+
});
|
|
2222
|
+
Object.assign(contents, doc);
|
|
2275
2223
|
return contents;
|
|
2276
2224
|
};
|
|
2277
2225
|
exports.de_ListPackageVersionDependenciesCommand = de_ListPackageVersionDependenciesCommand;
|
|
@@ -2299,10 +2247,9 @@ const de_ListPackageVersionDependenciesCommandError = async (output, context) =>
|
|
|
2299
2247
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2300
2248
|
default:
|
|
2301
2249
|
const parsedBody = parsedOutput.body;
|
|
2302
|
-
|
|
2250
|
+
return throwDefaultError({
|
|
2303
2251
|
output,
|
|
2304
2252
|
parsedBody,
|
|
2305
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2306
2253
|
errorCode,
|
|
2307
2254
|
});
|
|
2308
2255
|
}
|
|
@@ -2311,28 +2258,19 @@ const de_ListPackageVersionsCommand = async (output, context) => {
|
|
|
2311
2258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2312
2259
|
return de_ListPackageVersionsCommandError(output, context);
|
|
2313
2260
|
}
|
|
2314
|
-
const contents = map({
|
|
2261
|
+
const contents = (0, smithy_client_1.map)({
|
|
2315
2262
|
$metadata: deserializeMetadata(output),
|
|
2316
2263
|
});
|
|
2317
2264
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
if (data.nextToken != null) {
|
|
2328
|
-
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2329
|
-
}
|
|
2330
|
-
if (data.package != null) {
|
|
2331
|
-
contents.package = (0, smithy_client_1.expectString)(data.package);
|
|
2332
|
-
}
|
|
2333
|
-
if (data.versions != null) {
|
|
2334
|
-
contents.versions = de_PackageVersionSummaryList(data.versions, context);
|
|
2335
|
-
}
|
|
2265
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2266
|
+
defaultDisplayVersion: smithy_client_1.expectString,
|
|
2267
|
+
format: smithy_client_1.expectString,
|
|
2268
|
+
namespace: smithy_client_1.expectString,
|
|
2269
|
+
nextToken: smithy_client_1.expectString,
|
|
2270
|
+
package: smithy_client_1.expectString,
|
|
2271
|
+
versions: smithy_client_1._json,
|
|
2272
|
+
});
|
|
2273
|
+
Object.assign(contents, doc);
|
|
2336
2274
|
return contents;
|
|
2337
2275
|
};
|
|
2338
2276
|
exports.de_ListPackageVersionsCommand = de_ListPackageVersionsCommand;
|
|
@@ -2360,10 +2298,9 @@ const de_ListPackageVersionsCommandError = async (output, context) => {
|
|
|
2360
2298
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2361
2299
|
default:
|
|
2362
2300
|
const parsedBody = parsedOutput.body;
|
|
2363
|
-
|
|
2301
|
+
return throwDefaultError({
|
|
2364
2302
|
output,
|
|
2365
2303
|
parsedBody,
|
|
2366
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2367
2304
|
errorCode,
|
|
2368
2305
|
});
|
|
2369
2306
|
}
|
|
@@ -2372,16 +2309,15 @@ const de_ListRepositoriesCommand = async (output, context) => {
|
|
|
2372
2309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2373
2310
|
return de_ListRepositoriesCommandError(output, context);
|
|
2374
2311
|
}
|
|
2375
|
-
const contents = map({
|
|
2312
|
+
const contents = (0, smithy_client_1.map)({
|
|
2376
2313
|
$metadata: deserializeMetadata(output),
|
|
2377
2314
|
});
|
|
2378
2315
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
}
|
|
2316
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2317
|
+
nextToken: smithy_client_1.expectString,
|
|
2318
|
+
repositories: (_) => de_RepositorySummaryList(_, context),
|
|
2319
|
+
});
|
|
2320
|
+
Object.assign(contents, doc);
|
|
2385
2321
|
return contents;
|
|
2386
2322
|
};
|
|
2387
2323
|
exports.de_ListRepositoriesCommand = de_ListRepositoriesCommand;
|
|
@@ -2406,10 +2342,9 @@ const de_ListRepositoriesCommandError = async (output, context) => {
|
|
|
2406
2342
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2407
2343
|
default:
|
|
2408
2344
|
const parsedBody = parsedOutput.body;
|
|
2409
|
-
|
|
2345
|
+
return throwDefaultError({
|
|
2410
2346
|
output,
|
|
2411
2347
|
parsedBody,
|
|
2412
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2413
2348
|
errorCode,
|
|
2414
2349
|
});
|
|
2415
2350
|
}
|
|
@@ -2418,16 +2353,15 @@ const de_ListRepositoriesInDomainCommand = async (output, context) => {
|
|
|
2418
2353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2419
2354
|
return de_ListRepositoriesInDomainCommandError(output, context);
|
|
2420
2355
|
}
|
|
2421
|
-
const contents = map({
|
|
2356
|
+
const contents = (0, smithy_client_1.map)({
|
|
2422
2357
|
$metadata: deserializeMetadata(output),
|
|
2423
2358
|
});
|
|
2424
2359
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
}
|
|
2360
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2361
|
+
nextToken: smithy_client_1.expectString,
|
|
2362
|
+
repositories: (_) => de_RepositorySummaryList(_, context),
|
|
2363
|
+
});
|
|
2364
|
+
Object.assign(contents, doc);
|
|
2431
2365
|
return contents;
|
|
2432
2366
|
};
|
|
2433
2367
|
exports.de_ListRepositoriesInDomainCommand = de_ListRepositoriesInDomainCommand;
|
|
@@ -2455,10 +2389,9 @@ const de_ListRepositoriesInDomainCommandError = async (output, context) => {
|
|
|
2455
2389
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2456
2390
|
default:
|
|
2457
2391
|
const parsedBody = parsedOutput.body;
|
|
2458
|
-
|
|
2392
|
+
return throwDefaultError({
|
|
2459
2393
|
output,
|
|
2460
2394
|
parsedBody,
|
|
2461
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2462
2395
|
errorCode,
|
|
2463
2396
|
});
|
|
2464
2397
|
}
|
|
@@ -2467,13 +2400,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2467
2400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2468
2401
|
return de_ListTagsForResourceCommandError(output, context);
|
|
2469
2402
|
}
|
|
2470
|
-
const contents = map({
|
|
2403
|
+
const contents = (0, smithy_client_1.map)({
|
|
2471
2404
|
$metadata: deserializeMetadata(output),
|
|
2472
2405
|
});
|
|
2473
2406
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
}
|
|
2407
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2408
|
+
tags: smithy_client_1._json,
|
|
2409
|
+
});
|
|
2410
|
+
Object.assign(contents, doc);
|
|
2477
2411
|
return contents;
|
|
2478
2412
|
};
|
|
2479
2413
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -2498,10 +2432,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2498
2432
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2499
2433
|
default:
|
|
2500
2434
|
const parsedBody = parsedOutput.body;
|
|
2501
|
-
|
|
2435
|
+
return throwDefaultError({
|
|
2502
2436
|
output,
|
|
2503
2437
|
parsedBody,
|
|
2504
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2505
2438
|
errorCode,
|
|
2506
2439
|
});
|
|
2507
2440
|
}
|
|
@@ -2510,31 +2443,20 @@ const de_PublishPackageVersionCommand = async (output, context) => {
|
|
|
2510
2443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2511
2444
|
return de_PublishPackageVersionCommandError(output, context);
|
|
2512
2445
|
}
|
|
2513
|
-
const contents = map({
|
|
2446
|
+
const contents = (0, smithy_client_1.map)({
|
|
2514
2447
|
$metadata: deserializeMetadata(output),
|
|
2515
2448
|
});
|
|
2516
2449
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
contents.package = (0, smithy_client_1.expectString)(data.package);
|
|
2528
|
-
}
|
|
2529
|
-
if (data.status != null) {
|
|
2530
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
2531
|
-
}
|
|
2532
|
-
if (data.version != null) {
|
|
2533
|
-
contents.version = (0, smithy_client_1.expectString)(data.version);
|
|
2534
|
-
}
|
|
2535
|
-
if (data.versionRevision != null) {
|
|
2536
|
-
contents.versionRevision = (0, smithy_client_1.expectString)(data.versionRevision);
|
|
2537
|
-
}
|
|
2450
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2451
|
+
asset: smithy_client_1._json,
|
|
2452
|
+
format: smithy_client_1.expectString,
|
|
2453
|
+
namespace: smithy_client_1.expectString,
|
|
2454
|
+
package: smithy_client_1.expectString,
|
|
2455
|
+
status: smithy_client_1.expectString,
|
|
2456
|
+
version: smithy_client_1.expectString,
|
|
2457
|
+
versionRevision: smithy_client_1.expectString,
|
|
2458
|
+
});
|
|
2459
|
+
Object.assign(contents, doc);
|
|
2538
2460
|
return contents;
|
|
2539
2461
|
};
|
|
2540
2462
|
exports.de_PublishPackageVersionCommand = de_PublishPackageVersionCommand;
|
|
@@ -2568,10 +2490,9 @@ const de_PublishPackageVersionCommandError = async (output, context) => {
|
|
|
2568
2490
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2569
2491
|
default:
|
|
2570
2492
|
const parsedBody = parsedOutput.body;
|
|
2571
|
-
|
|
2493
|
+
return throwDefaultError({
|
|
2572
2494
|
output,
|
|
2573
2495
|
parsedBody,
|
|
2574
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2575
2496
|
errorCode,
|
|
2576
2497
|
});
|
|
2577
2498
|
}
|
|
@@ -2580,13 +2501,14 @@ const de_PutDomainPermissionsPolicyCommand = async (output, context) => {
|
|
|
2580
2501
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2581
2502
|
return de_PutDomainPermissionsPolicyCommandError(output, context);
|
|
2582
2503
|
}
|
|
2583
|
-
const contents = map({
|
|
2504
|
+
const contents = (0, smithy_client_1.map)({
|
|
2584
2505
|
$metadata: deserializeMetadata(output),
|
|
2585
2506
|
});
|
|
2586
2507
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
}
|
|
2508
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2509
|
+
policy: smithy_client_1._json,
|
|
2510
|
+
});
|
|
2511
|
+
Object.assign(contents, doc);
|
|
2590
2512
|
return contents;
|
|
2591
2513
|
};
|
|
2592
2514
|
exports.de_PutDomainPermissionsPolicyCommand = de_PutDomainPermissionsPolicyCommand;
|
|
@@ -2620,10 +2542,9 @@ const de_PutDomainPermissionsPolicyCommandError = async (output, context) => {
|
|
|
2620
2542
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2621
2543
|
default:
|
|
2622
2544
|
const parsedBody = parsedOutput.body;
|
|
2623
|
-
|
|
2545
|
+
return throwDefaultError({
|
|
2624
2546
|
output,
|
|
2625
2547
|
parsedBody,
|
|
2626
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2627
2548
|
errorCode,
|
|
2628
2549
|
});
|
|
2629
2550
|
}
|
|
@@ -2632,13 +2553,14 @@ const de_PutPackageOriginConfigurationCommand = async (output, context) => {
|
|
|
2632
2553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2633
2554
|
return de_PutPackageOriginConfigurationCommandError(output, context);
|
|
2634
2555
|
}
|
|
2635
|
-
const contents = map({
|
|
2556
|
+
const contents = (0, smithy_client_1.map)({
|
|
2636
2557
|
$metadata: deserializeMetadata(output),
|
|
2637
2558
|
});
|
|
2638
2559
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
}
|
|
2560
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2561
|
+
originConfiguration: smithy_client_1._json,
|
|
2562
|
+
});
|
|
2563
|
+
Object.assign(contents, doc);
|
|
2642
2564
|
return contents;
|
|
2643
2565
|
};
|
|
2644
2566
|
exports.de_PutPackageOriginConfigurationCommand = de_PutPackageOriginConfigurationCommand;
|
|
@@ -2666,10 +2588,9 @@ const de_PutPackageOriginConfigurationCommandError = async (output, context) =>
|
|
|
2666
2588
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2667
2589
|
default:
|
|
2668
2590
|
const parsedBody = parsedOutput.body;
|
|
2669
|
-
|
|
2591
|
+
return throwDefaultError({
|
|
2670
2592
|
output,
|
|
2671
2593
|
parsedBody,
|
|
2672
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2673
2594
|
errorCode,
|
|
2674
2595
|
});
|
|
2675
2596
|
}
|
|
@@ -2678,13 +2599,14 @@ const de_PutRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
|
2678
2599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2679
2600
|
return de_PutRepositoryPermissionsPolicyCommandError(output, context);
|
|
2680
2601
|
}
|
|
2681
|
-
const contents = map({
|
|
2602
|
+
const contents = (0, smithy_client_1.map)({
|
|
2682
2603
|
$metadata: deserializeMetadata(output),
|
|
2683
2604
|
});
|
|
2684
2605
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
}
|
|
2606
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2607
|
+
policy: smithy_client_1._json,
|
|
2608
|
+
});
|
|
2609
|
+
Object.assign(contents, doc);
|
|
2688
2610
|
return contents;
|
|
2689
2611
|
};
|
|
2690
2612
|
exports.de_PutRepositoryPermissionsPolicyCommand = de_PutRepositoryPermissionsPolicyCommand;
|
|
@@ -2718,10 +2640,9 @@ const de_PutRepositoryPermissionsPolicyCommandError = async (output, context) =>
|
|
|
2718
2640
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2719
2641
|
default:
|
|
2720
2642
|
const parsedBody = parsedOutput.body;
|
|
2721
|
-
|
|
2643
|
+
return throwDefaultError({
|
|
2722
2644
|
output,
|
|
2723
2645
|
parsedBody,
|
|
2724
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2725
2646
|
errorCode,
|
|
2726
2647
|
});
|
|
2727
2648
|
}
|
|
@@ -2730,7 +2651,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2730
2651
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2731
2652
|
return de_TagResourceCommandError(output, context);
|
|
2732
2653
|
}
|
|
2733
|
-
const contents = map({
|
|
2654
|
+
const contents = (0, smithy_client_1.map)({
|
|
2734
2655
|
$metadata: deserializeMetadata(output),
|
|
2735
2656
|
});
|
|
2736
2657
|
await collectBody(output.body, context);
|
|
@@ -2761,10 +2682,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2761
2682
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2762
2683
|
default:
|
|
2763
2684
|
const parsedBody = parsedOutput.body;
|
|
2764
|
-
|
|
2685
|
+
return throwDefaultError({
|
|
2765
2686
|
output,
|
|
2766
2687
|
parsedBody,
|
|
2767
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2768
2688
|
errorCode,
|
|
2769
2689
|
});
|
|
2770
2690
|
}
|
|
@@ -2773,7 +2693,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2773
2693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2774
2694
|
return de_UntagResourceCommandError(output, context);
|
|
2775
2695
|
}
|
|
2776
|
-
const contents = map({
|
|
2696
|
+
const contents = (0, smithy_client_1.map)({
|
|
2777
2697
|
$metadata: deserializeMetadata(output),
|
|
2778
2698
|
});
|
|
2779
2699
|
await collectBody(output.body, context);
|
|
@@ -2801,10 +2721,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2801
2721
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2802
2722
|
default:
|
|
2803
2723
|
const parsedBody = parsedOutput.body;
|
|
2804
|
-
|
|
2724
|
+
return throwDefaultError({
|
|
2805
2725
|
output,
|
|
2806
2726
|
parsedBody,
|
|
2807
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2808
2727
|
errorCode,
|
|
2809
2728
|
});
|
|
2810
2729
|
}
|
|
@@ -2813,16 +2732,15 @@ const de_UpdatePackageVersionsStatusCommand = async (output, context) => {
|
|
|
2813
2732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2814
2733
|
return de_UpdatePackageVersionsStatusCommandError(output, context);
|
|
2815
2734
|
}
|
|
2816
|
-
const contents = map({
|
|
2735
|
+
const contents = (0, smithy_client_1.map)({
|
|
2817
2736
|
$metadata: deserializeMetadata(output),
|
|
2818
2737
|
});
|
|
2819
2738
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
}
|
|
2739
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2740
|
+
failedVersions: smithy_client_1._json,
|
|
2741
|
+
successfulVersions: smithy_client_1._json,
|
|
2742
|
+
});
|
|
2743
|
+
Object.assign(contents, doc);
|
|
2826
2744
|
return contents;
|
|
2827
2745
|
};
|
|
2828
2746
|
exports.de_UpdatePackageVersionsStatusCommand = de_UpdatePackageVersionsStatusCommand;
|
|
@@ -2853,10 +2771,9 @@ const de_UpdatePackageVersionsStatusCommandError = async (output, context) => {
|
|
|
2853
2771
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2854
2772
|
default:
|
|
2855
2773
|
const parsedBody = parsedOutput.body;
|
|
2856
|
-
|
|
2774
|
+
return throwDefaultError({
|
|
2857
2775
|
output,
|
|
2858
2776
|
parsedBody,
|
|
2859
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2860
2777
|
errorCode,
|
|
2861
2778
|
});
|
|
2862
2779
|
}
|
|
@@ -2865,13 +2782,14 @@ const de_UpdateRepositoryCommand = async (output, context) => {
|
|
|
2865
2782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2866
2783
|
return de_UpdateRepositoryCommandError(output, context);
|
|
2867
2784
|
}
|
|
2868
|
-
const contents = map({
|
|
2785
|
+
const contents = (0, smithy_client_1.map)({
|
|
2869
2786
|
$metadata: deserializeMetadata(output),
|
|
2870
2787
|
});
|
|
2871
2788
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
}
|
|
2789
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2790
|
+
repository: (_) => de_RepositoryDescription(_, context),
|
|
2791
|
+
});
|
|
2792
|
+
Object.assign(contents, doc);
|
|
2875
2793
|
return contents;
|
|
2876
2794
|
};
|
|
2877
2795
|
exports.de_UpdateRepositoryCommand = de_UpdateRepositoryCommand;
|
|
@@ -2905,21 +2823,21 @@ const de_UpdateRepositoryCommandError = async (output, context) => {
|
|
|
2905
2823
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2906
2824
|
default:
|
|
2907
2825
|
const parsedBody = parsedOutput.body;
|
|
2908
|
-
|
|
2826
|
+
return throwDefaultError({
|
|
2909
2827
|
output,
|
|
2910
2828
|
parsedBody,
|
|
2911
|
-
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
2912
2829
|
errorCode,
|
|
2913
2830
|
});
|
|
2914
2831
|
}
|
|
2915
2832
|
};
|
|
2916
|
-
const
|
|
2833
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(CodeartifactServiceException_1.CodeartifactServiceException);
|
|
2917
2834
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2918
|
-
const contents = map({});
|
|
2835
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2919
2836
|
const data = parsedOutput.body;
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
}
|
|
2837
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2838
|
+
message: smithy_client_1.expectString,
|
|
2839
|
+
});
|
|
2840
|
+
Object.assign(contents, doc);
|
|
2923
2841
|
const exception = new models_0_1.AccessDeniedException({
|
|
2924
2842
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2925
2843
|
...contents,
|
|
@@ -2927,17 +2845,14 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2927
2845
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2928
2846
|
};
|
|
2929
2847
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2930
|
-
const contents = map({});
|
|
2848
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2931
2849
|
const data = parsedOutput.body;
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
if (data.resourceType != null) {
|
|
2939
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2940
|
-
}
|
|
2850
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2851
|
+
message: smithy_client_1.expectString,
|
|
2852
|
+
resourceId: smithy_client_1.expectString,
|
|
2853
|
+
resourceType: smithy_client_1.expectString,
|
|
2854
|
+
});
|
|
2855
|
+
Object.assign(contents, doc);
|
|
2941
2856
|
const exception = new models_0_1.ConflictException({
|
|
2942
2857
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2943
2858
|
...contents,
|
|
@@ -2945,11 +2860,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2945
2860
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2946
2861
|
};
|
|
2947
2862
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2948
|
-
const contents = map({});
|
|
2863
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2949
2864
|
const data = parsedOutput.body;
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
}
|
|
2865
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2866
|
+
message: smithy_client_1.expectString,
|
|
2867
|
+
});
|
|
2868
|
+
Object.assign(contents, doc);
|
|
2953
2869
|
const exception = new models_0_1.InternalServerException({
|
|
2954
2870
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2955
2871
|
...contents,
|
|
@@ -2957,17 +2873,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2957
2873
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2958
2874
|
};
|
|
2959
2875
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2960
|
-
const contents = map({});
|
|
2876
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2961
2877
|
const data = parsedOutput.body;
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
if (data.resourceType != null) {
|
|
2969
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2970
|
-
}
|
|
2878
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2879
|
+
message: smithy_client_1.expectString,
|
|
2880
|
+
resourceId: smithy_client_1.expectString,
|
|
2881
|
+
resourceType: smithy_client_1.expectString,
|
|
2882
|
+
});
|
|
2883
|
+
Object.assign(contents, doc);
|
|
2971
2884
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2972
2885
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2973
2886
|
...contents,
|
|
@@ -2975,17 +2888,14 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2975
2888
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2976
2889
|
};
|
|
2977
2890
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2978
|
-
const contents = map({});
|
|
2891
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2979
2892
|
const data = parsedOutput.body;
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
if (data.resourceType != null) {
|
|
2987
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2988
|
-
}
|
|
2893
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2894
|
+
message: smithy_client_1.expectString,
|
|
2895
|
+
resourceId: smithy_client_1.expectString,
|
|
2896
|
+
resourceType: smithy_client_1.expectString,
|
|
2897
|
+
});
|
|
2898
|
+
Object.assign(contents, doc);
|
|
2989
2899
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2990
2900
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2991
2901
|
...contents,
|
|
@@ -2993,16 +2903,17 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2993
2903
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2994
2904
|
};
|
|
2995
2905
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2996
|
-
const contents = map({
|
|
2906
|
+
const contents = (0, smithy_client_1.map)({
|
|
2997
2907
|
retryAfterSeconds: [
|
|
2998
2908
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2999
2909
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
3000
2910
|
],
|
|
3001
2911
|
});
|
|
3002
2912
|
const data = parsedOutput.body;
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
}
|
|
2913
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2914
|
+
message: smithy_client_1.expectString,
|
|
2915
|
+
});
|
|
2916
|
+
Object.assign(contents, doc);
|
|
3006
2917
|
const exception = new models_0_1.ThrottlingException({
|
|
3007
2918
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3008
2919
|
...contents,
|
|
@@ -3010,396 +2921,99 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
3010
2921
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3011
2922
|
};
|
|
3012
2923
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3013
|
-
const contents = map({});
|
|
2924
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3014
2925
|
const data = parsedOutput.body;
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
}
|
|
2926
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2927
|
+
message: smithy_client_1.expectString,
|
|
2928
|
+
reason: smithy_client_1.expectString,
|
|
2929
|
+
});
|
|
2930
|
+
Object.assign(contents, doc);
|
|
3021
2931
|
const exception = new models_0_1.ValidationException({
|
|
3022
2932
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3023
2933
|
...contents,
|
|
3024
2934
|
});
|
|
3025
2935
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3026
2936
|
};
|
|
3027
|
-
const se_PackageOriginRestrictions = (input, context) => {
|
|
3028
|
-
return {
|
|
3029
|
-
...(input.publish != null && { publish: input.publish }),
|
|
3030
|
-
...(input.upstream != null && { upstream: input.upstream }),
|
|
3031
|
-
};
|
|
3032
|
-
};
|
|
3033
|
-
const se_PackageVersionList = (input, context) => {
|
|
3034
|
-
return input
|
|
3035
|
-
.filter((e) => e != null)
|
|
3036
|
-
.map((entry) => {
|
|
3037
|
-
return entry;
|
|
3038
|
-
});
|
|
3039
|
-
};
|
|
3040
|
-
const se_PackageVersionRevisionMap = (input, context) => {
|
|
3041
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3042
|
-
if (value === null) {
|
|
3043
|
-
return acc;
|
|
3044
|
-
}
|
|
3045
|
-
acc[key] = value;
|
|
3046
|
-
return acc;
|
|
3047
|
-
}, {});
|
|
3048
|
-
};
|
|
3049
|
-
const se_Tag = (input, context) => {
|
|
3050
|
-
return {
|
|
3051
|
-
...(input.key != null && { key: input.key }),
|
|
3052
|
-
...(input.value != null && { value: input.value }),
|
|
3053
|
-
};
|
|
3054
|
-
};
|
|
3055
|
-
const se_TagKeyList = (input, context) => {
|
|
3056
|
-
return input
|
|
3057
|
-
.filter((e) => e != null)
|
|
3058
|
-
.map((entry) => {
|
|
3059
|
-
return entry;
|
|
3060
|
-
});
|
|
3061
|
-
};
|
|
3062
|
-
const se_TagList = (input, context) => {
|
|
3063
|
-
return input
|
|
3064
|
-
.filter((e) => e != null)
|
|
3065
|
-
.map((entry) => {
|
|
3066
|
-
return se_Tag(entry, context);
|
|
3067
|
-
});
|
|
3068
|
-
};
|
|
3069
|
-
const se_UpstreamRepository = (input, context) => {
|
|
3070
|
-
return {
|
|
3071
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
3072
|
-
};
|
|
3073
|
-
};
|
|
3074
|
-
const se_UpstreamRepositoryList = (input, context) => {
|
|
3075
|
-
return input
|
|
3076
|
-
.filter((e) => e != null)
|
|
3077
|
-
.map((entry) => {
|
|
3078
|
-
return se_UpstreamRepository(entry, context);
|
|
3079
|
-
});
|
|
3080
|
-
};
|
|
3081
|
-
const de_AssetHashes = (output, context) => {
|
|
3082
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3083
|
-
if (value === null) {
|
|
3084
|
-
return acc;
|
|
3085
|
-
}
|
|
3086
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
3087
|
-
return acc;
|
|
3088
|
-
}, {});
|
|
3089
|
-
};
|
|
3090
|
-
const de_AssetSummary = (output, context) => {
|
|
3091
|
-
return {
|
|
3092
|
-
hashes: output.hashes != null ? de_AssetHashes(output.hashes, context) : undefined,
|
|
3093
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3094
|
-
size: (0, smithy_client_1.expectLong)(output.size),
|
|
3095
|
-
};
|
|
3096
|
-
};
|
|
3097
|
-
const de_AssetSummaryList = (output, context) => {
|
|
3098
|
-
const retVal = (output || [])
|
|
3099
|
-
.filter((e) => e != null)
|
|
3100
|
-
.map((entry) => {
|
|
3101
|
-
if (entry === null) {
|
|
3102
|
-
return null;
|
|
3103
|
-
}
|
|
3104
|
-
return de_AssetSummary(entry, context);
|
|
3105
|
-
});
|
|
3106
|
-
return retVal;
|
|
3107
|
-
};
|
|
3108
2937
|
const de_DomainDescription = (output, context) => {
|
|
3109
|
-
return {
|
|
3110
|
-
arn:
|
|
3111
|
-
assetSizeBytes:
|
|
3112
|
-
createdTime:
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3121
|
-
};
|
|
3122
|
-
};
|
|
3123
|
-
const de_DomainEntryPoint = (output, context) => {
|
|
3124
|
-
return {
|
|
3125
|
-
externalConnectionName: (0, smithy_client_1.expectString)(output.externalConnectionName),
|
|
3126
|
-
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
3127
|
-
};
|
|
2938
|
+
return (0, smithy_client_1.take)(output, {
|
|
2939
|
+
arn: smithy_client_1.expectString,
|
|
2940
|
+
assetSizeBytes: smithy_client_1.expectLong,
|
|
2941
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2942
|
+
encryptionKey: smithy_client_1.expectString,
|
|
2943
|
+
name: smithy_client_1.expectString,
|
|
2944
|
+
owner: smithy_client_1.expectString,
|
|
2945
|
+
repositoryCount: smithy_client_1.expectInt32,
|
|
2946
|
+
s3BucketArn: smithy_client_1.expectString,
|
|
2947
|
+
status: smithy_client_1.expectString,
|
|
2948
|
+
});
|
|
3128
2949
|
};
|
|
3129
2950
|
const de_DomainSummary = (output, context) => {
|
|
3130
|
-
return {
|
|
3131
|
-
arn:
|
|
3132
|
-
createdTime:
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3139
|
-
};
|
|
2951
|
+
return (0, smithy_client_1.take)(output, {
|
|
2952
|
+
arn: smithy_client_1.expectString,
|
|
2953
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2954
|
+
encryptionKey: smithy_client_1.expectString,
|
|
2955
|
+
name: smithy_client_1.expectString,
|
|
2956
|
+
owner: smithy_client_1.expectString,
|
|
2957
|
+
status: smithy_client_1.expectString,
|
|
2958
|
+
});
|
|
3140
2959
|
};
|
|
3141
2960
|
const de_DomainSummaryList = (output, context) => {
|
|
3142
2961
|
const retVal = (output || [])
|
|
3143
2962
|
.filter((e) => e != null)
|
|
3144
2963
|
.map((entry) => {
|
|
3145
|
-
if (entry === null) {
|
|
3146
|
-
return null;
|
|
3147
|
-
}
|
|
3148
2964
|
return de_DomainSummary(entry, context);
|
|
3149
2965
|
});
|
|
3150
2966
|
return retVal;
|
|
3151
2967
|
};
|
|
3152
|
-
const de_LicenseInfo = (output, context) => {
|
|
3153
|
-
return {
|
|
3154
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3155
|
-
url: (0, smithy_client_1.expectString)(output.url),
|
|
3156
|
-
};
|
|
3157
|
-
};
|
|
3158
|
-
const de_LicenseInfoList = (output, context) => {
|
|
3159
|
-
const retVal = (output || [])
|
|
3160
|
-
.filter((e) => e != null)
|
|
3161
|
-
.map((entry) => {
|
|
3162
|
-
if (entry === null) {
|
|
3163
|
-
return null;
|
|
3164
|
-
}
|
|
3165
|
-
return de_LicenseInfo(entry, context);
|
|
3166
|
-
});
|
|
3167
|
-
return retVal;
|
|
3168
|
-
};
|
|
3169
|
-
const de_PackageDependency = (output, context) => {
|
|
3170
|
-
return {
|
|
3171
|
-
dependencyType: (0, smithy_client_1.expectString)(output.dependencyType),
|
|
3172
|
-
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
3173
|
-
package: (0, smithy_client_1.expectString)(output.package),
|
|
3174
|
-
versionRequirement: (0, smithy_client_1.expectString)(output.versionRequirement),
|
|
3175
|
-
};
|
|
3176
|
-
};
|
|
3177
|
-
const de_PackageDependencyList = (output, context) => {
|
|
3178
|
-
const retVal = (output || [])
|
|
3179
|
-
.filter((e) => e != null)
|
|
3180
|
-
.map((entry) => {
|
|
3181
|
-
if (entry === null) {
|
|
3182
|
-
return null;
|
|
3183
|
-
}
|
|
3184
|
-
return de_PackageDependency(entry, context);
|
|
3185
|
-
});
|
|
3186
|
-
return retVal;
|
|
3187
|
-
};
|
|
3188
|
-
const de_PackageDescription = (output, context) => {
|
|
3189
|
-
return {
|
|
3190
|
-
format: (0, smithy_client_1.expectString)(output.format),
|
|
3191
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3192
|
-
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
3193
|
-
originConfiguration: output.originConfiguration != null
|
|
3194
|
-
? de_PackageOriginConfiguration(output.originConfiguration, context)
|
|
3195
|
-
: undefined,
|
|
3196
|
-
};
|
|
3197
|
-
};
|
|
3198
|
-
const de_PackageOriginConfiguration = (output, context) => {
|
|
3199
|
-
return {
|
|
3200
|
-
restrictions: output.restrictions != null ? de_PackageOriginRestrictions(output.restrictions, context) : undefined,
|
|
3201
|
-
};
|
|
3202
|
-
};
|
|
3203
|
-
const de_PackageOriginRestrictions = (output, context) => {
|
|
3204
|
-
return {
|
|
3205
|
-
publish: (0, smithy_client_1.expectString)(output.publish),
|
|
3206
|
-
upstream: (0, smithy_client_1.expectString)(output.upstream),
|
|
3207
|
-
};
|
|
3208
|
-
};
|
|
3209
|
-
const de_PackageSummary = (output, context) => {
|
|
3210
|
-
return {
|
|
3211
|
-
format: (0, smithy_client_1.expectString)(output.format),
|
|
3212
|
-
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
3213
|
-
originConfiguration: output.originConfiguration != null
|
|
3214
|
-
? de_PackageOriginConfiguration(output.originConfiguration, context)
|
|
3215
|
-
: undefined,
|
|
3216
|
-
package: (0, smithy_client_1.expectString)(output.package),
|
|
3217
|
-
};
|
|
3218
|
-
};
|
|
3219
|
-
const de_PackageSummaryList = (output, context) => {
|
|
3220
|
-
const retVal = (output || [])
|
|
3221
|
-
.filter((e) => e != null)
|
|
3222
|
-
.map((entry) => {
|
|
3223
|
-
if (entry === null) {
|
|
3224
|
-
return null;
|
|
3225
|
-
}
|
|
3226
|
-
return de_PackageSummary(entry, context);
|
|
3227
|
-
});
|
|
3228
|
-
return retVal;
|
|
3229
|
-
};
|
|
3230
2968
|
const de_PackageVersionDescription = (output, context) => {
|
|
3231
|
-
return {
|
|
3232
|
-
displayName:
|
|
3233
|
-
format:
|
|
3234
|
-
homePage:
|
|
3235
|
-
licenses:
|
|
3236
|
-
namespace:
|
|
3237
|
-
origin:
|
|
3238
|
-
packageName:
|
|
3239
|
-
publishedTime:
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
summary: (0, smithy_client_1.expectString)(output.summary),
|
|
3246
|
-
version: (0, smithy_client_1.expectString)(output.version),
|
|
3247
|
-
};
|
|
3248
|
-
};
|
|
3249
|
-
const de_PackageVersionError = (output, context) => {
|
|
3250
|
-
return {
|
|
3251
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
3252
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
3253
|
-
};
|
|
3254
|
-
};
|
|
3255
|
-
const de_PackageVersionErrorMap = (output, context) => {
|
|
3256
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3257
|
-
if (value === null) {
|
|
3258
|
-
return acc;
|
|
3259
|
-
}
|
|
3260
|
-
acc[key] = de_PackageVersionError(value, context);
|
|
3261
|
-
return acc;
|
|
3262
|
-
}, {});
|
|
3263
|
-
};
|
|
3264
|
-
const de_PackageVersionOrigin = (output, context) => {
|
|
3265
|
-
return {
|
|
3266
|
-
domainEntryPoint: output.domainEntryPoint != null ? de_DomainEntryPoint(output.domainEntryPoint, context) : undefined,
|
|
3267
|
-
originType: (0, smithy_client_1.expectString)(output.originType),
|
|
3268
|
-
};
|
|
3269
|
-
};
|
|
3270
|
-
const de_PackageVersionSummary = (output, context) => {
|
|
3271
|
-
return {
|
|
3272
|
-
origin: output.origin != null ? de_PackageVersionOrigin(output.origin, context) : undefined,
|
|
3273
|
-
revision: (0, smithy_client_1.expectString)(output.revision),
|
|
3274
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3275
|
-
version: (0, smithy_client_1.expectString)(output.version),
|
|
3276
|
-
};
|
|
3277
|
-
};
|
|
3278
|
-
const de_PackageVersionSummaryList = (output, context) => {
|
|
3279
|
-
const retVal = (output || [])
|
|
3280
|
-
.filter((e) => e != null)
|
|
3281
|
-
.map((entry) => {
|
|
3282
|
-
if (entry === null) {
|
|
3283
|
-
return null;
|
|
3284
|
-
}
|
|
3285
|
-
return de_PackageVersionSummary(entry, context);
|
|
2969
|
+
return (0, smithy_client_1.take)(output, {
|
|
2970
|
+
displayName: smithy_client_1.expectString,
|
|
2971
|
+
format: smithy_client_1.expectString,
|
|
2972
|
+
homePage: smithy_client_1.expectString,
|
|
2973
|
+
licenses: smithy_client_1._json,
|
|
2974
|
+
namespace: smithy_client_1.expectString,
|
|
2975
|
+
origin: smithy_client_1._json,
|
|
2976
|
+
packageName: smithy_client_1.expectString,
|
|
2977
|
+
publishedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2978
|
+
revision: smithy_client_1.expectString,
|
|
2979
|
+
sourceCodeRepository: smithy_client_1.expectString,
|
|
2980
|
+
status: smithy_client_1.expectString,
|
|
2981
|
+
summary: smithy_client_1.expectString,
|
|
2982
|
+
version: smithy_client_1.expectString,
|
|
3286
2983
|
});
|
|
3287
|
-
return retVal;
|
|
3288
2984
|
};
|
|
3289
2985
|
const de_RepositoryDescription = (output, context) => {
|
|
3290
|
-
return {
|
|
3291
|
-
administratorAccount:
|
|
3292
|
-
arn:
|
|
3293
|
-
createdTime:
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
? de_RepositoryExternalConnectionInfoList(output.externalConnections, context)
|
|
3301
|
-
: undefined,
|
|
3302
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3303
|
-
upstreams: output.upstreams != null ? de_UpstreamRepositoryInfoList(output.upstreams, context) : undefined,
|
|
3304
|
-
};
|
|
3305
|
-
};
|
|
3306
|
-
const de_RepositoryExternalConnectionInfo = (output, context) => {
|
|
3307
|
-
return {
|
|
3308
|
-
externalConnectionName: (0, smithy_client_1.expectString)(output.externalConnectionName),
|
|
3309
|
-
packageFormat: (0, smithy_client_1.expectString)(output.packageFormat),
|
|
3310
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3311
|
-
};
|
|
3312
|
-
};
|
|
3313
|
-
const de_RepositoryExternalConnectionInfoList = (output, context) => {
|
|
3314
|
-
const retVal = (output || [])
|
|
3315
|
-
.filter((e) => e != null)
|
|
3316
|
-
.map((entry) => {
|
|
3317
|
-
if (entry === null) {
|
|
3318
|
-
return null;
|
|
3319
|
-
}
|
|
3320
|
-
return de_RepositoryExternalConnectionInfo(entry, context);
|
|
2986
|
+
return (0, smithy_client_1.take)(output, {
|
|
2987
|
+
administratorAccount: smithy_client_1.expectString,
|
|
2988
|
+
arn: smithy_client_1.expectString,
|
|
2989
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2990
|
+
description: smithy_client_1.expectString,
|
|
2991
|
+
domainName: smithy_client_1.expectString,
|
|
2992
|
+
domainOwner: smithy_client_1.expectString,
|
|
2993
|
+
externalConnections: smithy_client_1._json,
|
|
2994
|
+
name: smithy_client_1.expectString,
|
|
2995
|
+
upstreams: smithy_client_1._json,
|
|
3321
2996
|
});
|
|
3322
|
-
return retVal;
|
|
3323
2997
|
};
|
|
3324
2998
|
const de_RepositorySummary = (output, context) => {
|
|
3325
|
-
return {
|
|
3326
|
-
administratorAccount:
|
|
3327
|
-
arn:
|
|
3328
|
-
createdTime:
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
3335
|
-
};
|
|
2999
|
+
return (0, smithy_client_1.take)(output, {
|
|
3000
|
+
administratorAccount: smithy_client_1.expectString,
|
|
3001
|
+
arn: smithy_client_1.expectString,
|
|
3002
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3003
|
+
description: smithy_client_1.expectString,
|
|
3004
|
+
domainName: smithy_client_1.expectString,
|
|
3005
|
+
domainOwner: smithy_client_1.expectString,
|
|
3006
|
+
name: smithy_client_1.expectString,
|
|
3007
|
+
});
|
|
3336
3008
|
};
|
|
3337
3009
|
const de_RepositorySummaryList = (output, context) => {
|
|
3338
3010
|
const retVal = (output || [])
|
|
3339
3011
|
.filter((e) => e != null)
|
|
3340
3012
|
.map((entry) => {
|
|
3341
|
-
if (entry === null) {
|
|
3342
|
-
return null;
|
|
3343
|
-
}
|
|
3344
3013
|
return de_RepositorySummary(entry, context);
|
|
3345
3014
|
});
|
|
3346
3015
|
return retVal;
|
|
3347
3016
|
};
|
|
3348
|
-
const de_ResourcePolicy = (output, context) => {
|
|
3349
|
-
return {
|
|
3350
|
-
document: (0, smithy_client_1.expectString)(output.document),
|
|
3351
|
-
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
3352
|
-
revision: (0, smithy_client_1.expectString)(output.revision),
|
|
3353
|
-
};
|
|
3354
|
-
};
|
|
3355
|
-
const de_SuccessfulPackageVersionInfo = (output, context) => {
|
|
3356
|
-
return {
|
|
3357
|
-
revision: (0, smithy_client_1.expectString)(output.revision),
|
|
3358
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3359
|
-
};
|
|
3360
|
-
};
|
|
3361
|
-
const de_SuccessfulPackageVersionInfoMap = (output, context) => {
|
|
3362
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3363
|
-
if (value === null) {
|
|
3364
|
-
return acc;
|
|
3365
|
-
}
|
|
3366
|
-
acc[key] = de_SuccessfulPackageVersionInfo(value, context);
|
|
3367
|
-
return acc;
|
|
3368
|
-
}, {});
|
|
3369
|
-
};
|
|
3370
|
-
const de_Tag = (output, context) => {
|
|
3371
|
-
return {
|
|
3372
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
3373
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
3374
|
-
};
|
|
3375
|
-
};
|
|
3376
|
-
const de_TagList = (output, context) => {
|
|
3377
|
-
const retVal = (output || [])
|
|
3378
|
-
.filter((e) => e != null)
|
|
3379
|
-
.map((entry) => {
|
|
3380
|
-
if (entry === null) {
|
|
3381
|
-
return null;
|
|
3382
|
-
}
|
|
3383
|
-
return de_Tag(entry, context);
|
|
3384
|
-
});
|
|
3385
|
-
return retVal;
|
|
3386
|
-
};
|
|
3387
|
-
const de_UpstreamRepositoryInfo = (output, context) => {
|
|
3388
|
-
return {
|
|
3389
|
-
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
3390
|
-
};
|
|
3391
|
-
};
|
|
3392
|
-
const de_UpstreamRepositoryInfoList = (output, context) => {
|
|
3393
|
-
const retVal = (output || [])
|
|
3394
|
-
.filter((e) => e != null)
|
|
3395
|
-
.map((entry) => {
|
|
3396
|
-
if (entry === null) {
|
|
3397
|
-
return null;
|
|
3398
|
-
}
|
|
3399
|
-
return de_UpstreamRepositoryInfo(entry, context);
|
|
3400
|
-
});
|
|
3401
|
-
return retVal;
|
|
3402
|
-
};
|
|
3403
3017
|
const deserializeMetadata = (output) => ({
|
|
3404
3018
|
httpStatusCode: output.statusCode,
|
|
3405
3019
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|