@aws-sdk/client-ecr-public 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_json1_1.js +185 -829
- package/dist-es/protocols/Aws_json1_1.js +186 -830
- package/package.json +6 -6
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ECRPUBLICServiceException as __BaseException } from "../models/ECRPUBLICServiceException";
|
|
4
4
|
import { EmptyUploadException, ImageAlreadyExistsException, ImageDigestDoesNotMatchException, ImageNotFoundException, ImageTagAlreadyExistsException, InvalidLayerException, InvalidLayerPartException, InvalidParameterException, InvalidTagParameterException, LayerAlreadyExistsException, LayerPartTooSmallException, LayersNotFoundException, LimitExceededException, ReferencedImagesNotFoundException, RegistryNotFoundException, RepositoryAlreadyExistsException, RepositoryCatalogDataNotFoundException, RepositoryNotEmptyException, RepositoryNotFoundException, RepositoryPolicyNotFoundException, ServerException, TooManyTagsException, UnsupportedCommandException, UploadNotFoundException, } from "../models/models_0";
|
|
5
5
|
export const se_BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("BatchCheckLayerAvailability");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_BatchDeleteImageCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("BatchDeleteImage");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_CompleteLayerUploadCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("CompleteLayerUpload");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_CreateRepositoryCommand = async (input, context) => {
|
|
@@ -29,85 +29,85 @@ export const se_CreateRepositoryCommand = async (input, context) => {
|
|
|
29
29
|
export const se_DeleteRepositoryCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DeleteRepository");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_DeleteRepositoryPolicyCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("DeleteRepositoryPolicy");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DescribeImagesCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("DescribeImages");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_DescribeImageTagsCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("DescribeImageTags");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_DescribeRegistriesCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("DescribeRegistries");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_DescribeRepositoriesCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DescribeRepositories");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_GetAuthorizationTokenCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("GetAuthorizationToken");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_GetRegistryCatalogDataCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("GetRegistryCatalogData");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_GetRepositoryCatalogDataCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("GetRepositoryCatalogData");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_GetRepositoryPolicyCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("GetRepositoryPolicy");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_InitiateLayerUploadCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("InitiateLayerUpload");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("ListTagsForResource");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_PutImageCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("PutImage");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const se_PutRegistryCatalogDataCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("PutRegistryCatalogData");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
export const se_PutRepositoryCatalogDataCommand = async (input, context) => {
|
|
@@ -119,19 +119,19 @@ export const se_PutRepositoryCatalogDataCommand = async (input, context) => {
|
|
|
119
119
|
export const se_SetRepositoryPolicyCommand = async (input, context) => {
|
|
120
120
|
const headers = sharedHeaders("SetRepositoryPolicy");
|
|
121
121
|
let body;
|
|
122
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
123
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
124
|
};
|
|
125
125
|
export const se_TagResourceCommand = async (input, context) => {
|
|
126
126
|
const headers = sharedHeaders("TagResource");
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
131
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
132
132
|
const headers = sharedHeaders("UntagResource");
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
137
|
export const se_UploadLayerPartCommand = async (input, context) => {
|
|
@@ -146,12 +146,12 @@ export const de_BatchCheckLayerAvailabilityCommand = async (output, context) =>
|
|
|
146
146
|
}
|
|
147
147
|
const data = await parseBody(output.body, context);
|
|
148
148
|
let contents = {};
|
|
149
|
-
contents =
|
|
149
|
+
contents = _json(data);
|
|
150
150
|
const response = {
|
|
151
151
|
$metadata: deserializeMetadata(output),
|
|
152
152
|
...contents,
|
|
153
153
|
};
|
|
154
|
-
return
|
|
154
|
+
return response;
|
|
155
155
|
};
|
|
156
156
|
const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
|
|
157
157
|
const parsedOutput = {
|
|
@@ -177,10 +177,9 @@ const de_BatchCheckLayerAvailabilityCommandError = async (output, context) => {
|
|
|
177
177
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
178
178
|
default:
|
|
179
179
|
const parsedBody = parsedOutput.body;
|
|
180
|
-
throwDefaultError({
|
|
180
|
+
return throwDefaultError({
|
|
181
181
|
output,
|
|
182
182
|
parsedBody,
|
|
183
|
-
exceptionCtor: __BaseException,
|
|
184
183
|
errorCode,
|
|
185
184
|
});
|
|
186
185
|
}
|
|
@@ -191,12 +190,12 @@ export const de_BatchDeleteImageCommand = async (output, context) => {
|
|
|
191
190
|
}
|
|
192
191
|
const data = await parseBody(output.body, context);
|
|
193
192
|
let contents = {};
|
|
194
|
-
contents =
|
|
193
|
+
contents = _json(data);
|
|
195
194
|
const response = {
|
|
196
195
|
$metadata: deserializeMetadata(output),
|
|
197
196
|
...contents,
|
|
198
197
|
};
|
|
199
|
-
return
|
|
198
|
+
return response;
|
|
200
199
|
};
|
|
201
200
|
const de_BatchDeleteImageCommandError = async (output, context) => {
|
|
202
201
|
const parsedOutput = {
|
|
@@ -219,10 +218,9 @@ const de_BatchDeleteImageCommandError = async (output, context) => {
|
|
|
219
218
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
220
219
|
default:
|
|
221
220
|
const parsedBody = parsedOutput.body;
|
|
222
|
-
throwDefaultError({
|
|
221
|
+
return throwDefaultError({
|
|
223
222
|
output,
|
|
224
223
|
parsedBody,
|
|
225
|
-
exceptionCtor: __BaseException,
|
|
226
224
|
errorCode,
|
|
227
225
|
});
|
|
228
226
|
}
|
|
@@ -233,12 +231,12 @@ export const de_CompleteLayerUploadCommand = async (output, context) => {
|
|
|
233
231
|
}
|
|
234
232
|
const data = await parseBody(output.body, context);
|
|
235
233
|
let contents = {};
|
|
236
|
-
contents =
|
|
234
|
+
contents = _json(data);
|
|
237
235
|
const response = {
|
|
238
236
|
$metadata: deserializeMetadata(output),
|
|
239
237
|
...contents,
|
|
240
238
|
};
|
|
241
|
-
return
|
|
239
|
+
return response;
|
|
242
240
|
};
|
|
243
241
|
const de_CompleteLayerUploadCommandError = async (output, context) => {
|
|
244
242
|
const parsedOutput = {
|
|
@@ -279,10 +277,9 @@ const de_CompleteLayerUploadCommandError = async (output, context) => {
|
|
|
279
277
|
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
280
278
|
default:
|
|
281
279
|
const parsedBody = parsedOutput.body;
|
|
282
|
-
throwDefaultError({
|
|
280
|
+
return throwDefaultError({
|
|
283
281
|
output,
|
|
284
282
|
parsedBody,
|
|
285
|
-
exceptionCtor: __BaseException,
|
|
286
283
|
errorCode,
|
|
287
284
|
});
|
|
288
285
|
}
|
|
@@ -298,7 +295,7 @@ export const de_CreateRepositoryCommand = async (output, context) => {
|
|
|
298
295
|
$metadata: deserializeMetadata(output),
|
|
299
296
|
...contents,
|
|
300
297
|
};
|
|
301
|
-
return
|
|
298
|
+
return response;
|
|
302
299
|
};
|
|
303
300
|
const de_CreateRepositoryCommandError = async (output, context) => {
|
|
304
301
|
const parsedOutput = {
|
|
@@ -330,10 +327,9 @@ const de_CreateRepositoryCommandError = async (output, context) => {
|
|
|
330
327
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
331
328
|
default:
|
|
332
329
|
const parsedBody = parsedOutput.body;
|
|
333
|
-
throwDefaultError({
|
|
330
|
+
return throwDefaultError({
|
|
334
331
|
output,
|
|
335
332
|
parsedBody,
|
|
336
|
-
exceptionCtor: __BaseException,
|
|
337
333
|
errorCode,
|
|
338
334
|
});
|
|
339
335
|
}
|
|
@@ -349,7 +345,7 @@ export const de_DeleteRepositoryCommand = async (output, context) => {
|
|
|
349
345
|
$metadata: deserializeMetadata(output),
|
|
350
346
|
...contents,
|
|
351
347
|
};
|
|
352
|
-
return
|
|
348
|
+
return response;
|
|
353
349
|
};
|
|
354
350
|
const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
355
351
|
const parsedOutput = {
|
|
@@ -375,10 +371,9 @@ const de_DeleteRepositoryCommandError = async (output, context) => {
|
|
|
375
371
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
376
372
|
default:
|
|
377
373
|
const parsedBody = parsedOutput.body;
|
|
378
|
-
throwDefaultError({
|
|
374
|
+
return throwDefaultError({
|
|
379
375
|
output,
|
|
380
376
|
parsedBody,
|
|
381
|
-
exceptionCtor: __BaseException,
|
|
382
377
|
errorCode,
|
|
383
378
|
});
|
|
384
379
|
}
|
|
@@ -389,12 +384,12 @@ export const de_DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
|
389
384
|
}
|
|
390
385
|
const data = await parseBody(output.body, context);
|
|
391
386
|
let contents = {};
|
|
392
|
-
contents =
|
|
387
|
+
contents = _json(data);
|
|
393
388
|
const response = {
|
|
394
389
|
$metadata: deserializeMetadata(output),
|
|
395
390
|
...contents,
|
|
396
391
|
};
|
|
397
|
-
return
|
|
392
|
+
return response;
|
|
398
393
|
};
|
|
399
394
|
const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
|
|
400
395
|
const parsedOutput = {
|
|
@@ -420,10 +415,9 @@ const de_DeleteRepositoryPolicyCommandError = async (output, context) => {
|
|
|
420
415
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
421
416
|
default:
|
|
422
417
|
const parsedBody = parsedOutput.body;
|
|
423
|
-
throwDefaultError({
|
|
418
|
+
return throwDefaultError({
|
|
424
419
|
output,
|
|
425
420
|
parsedBody,
|
|
426
|
-
exceptionCtor: __BaseException,
|
|
427
421
|
errorCode,
|
|
428
422
|
});
|
|
429
423
|
}
|
|
@@ -439,7 +433,7 @@ export const de_DescribeImagesCommand = async (output, context) => {
|
|
|
439
433
|
$metadata: deserializeMetadata(output),
|
|
440
434
|
...contents,
|
|
441
435
|
};
|
|
442
|
-
return
|
|
436
|
+
return response;
|
|
443
437
|
};
|
|
444
438
|
const de_DescribeImagesCommandError = async (output, context) => {
|
|
445
439
|
const parsedOutput = {
|
|
@@ -465,10 +459,9 @@ const de_DescribeImagesCommandError = async (output, context) => {
|
|
|
465
459
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
466
460
|
default:
|
|
467
461
|
const parsedBody = parsedOutput.body;
|
|
468
|
-
throwDefaultError({
|
|
462
|
+
return throwDefaultError({
|
|
469
463
|
output,
|
|
470
464
|
parsedBody,
|
|
471
|
-
exceptionCtor: __BaseException,
|
|
472
465
|
errorCode,
|
|
473
466
|
});
|
|
474
467
|
}
|
|
@@ -484,7 +477,7 @@ export const de_DescribeImageTagsCommand = async (output, context) => {
|
|
|
484
477
|
$metadata: deserializeMetadata(output),
|
|
485
478
|
...contents,
|
|
486
479
|
};
|
|
487
|
-
return
|
|
480
|
+
return response;
|
|
488
481
|
};
|
|
489
482
|
const de_DescribeImageTagsCommandError = async (output, context) => {
|
|
490
483
|
const parsedOutput = {
|
|
@@ -507,10 +500,9 @@ const de_DescribeImageTagsCommandError = async (output, context) => {
|
|
|
507
500
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
508
501
|
default:
|
|
509
502
|
const parsedBody = parsedOutput.body;
|
|
510
|
-
throwDefaultError({
|
|
503
|
+
return throwDefaultError({
|
|
511
504
|
output,
|
|
512
505
|
parsedBody,
|
|
513
|
-
exceptionCtor: __BaseException,
|
|
514
506
|
errorCode,
|
|
515
507
|
});
|
|
516
508
|
}
|
|
@@ -521,12 +513,12 @@ export const de_DescribeRegistriesCommand = async (output, context) => {
|
|
|
521
513
|
}
|
|
522
514
|
const data = await parseBody(output.body, context);
|
|
523
515
|
let contents = {};
|
|
524
|
-
contents =
|
|
516
|
+
contents = _json(data);
|
|
525
517
|
const response = {
|
|
526
518
|
$metadata: deserializeMetadata(output),
|
|
527
519
|
...contents,
|
|
528
520
|
};
|
|
529
|
-
return
|
|
521
|
+
return response;
|
|
530
522
|
};
|
|
531
523
|
const de_DescribeRegistriesCommandError = async (output, context) => {
|
|
532
524
|
const parsedOutput = {
|
|
@@ -546,10 +538,9 @@ const de_DescribeRegistriesCommandError = async (output, context) => {
|
|
|
546
538
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
547
539
|
default:
|
|
548
540
|
const parsedBody = parsedOutput.body;
|
|
549
|
-
throwDefaultError({
|
|
541
|
+
return throwDefaultError({
|
|
550
542
|
output,
|
|
551
543
|
parsedBody,
|
|
552
|
-
exceptionCtor: __BaseException,
|
|
553
544
|
errorCode,
|
|
554
545
|
});
|
|
555
546
|
}
|
|
@@ -565,7 +556,7 @@ export const de_DescribeRepositoriesCommand = async (output, context) => {
|
|
|
565
556
|
$metadata: deserializeMetadata(output),
|
|
566
557
|
...contents,
|
|
567
558
|
};
|
|
568
|
-
return
|
|
559
|
+
return response;
|
|
569
560
|
};
|
|
570
561
|
const de_DescribeRepositoriesCommandError = async (output, context) => {
|
|
571
562
|
const parsedOutput = {
|
|
@@ -588,10 +579,9 @@ const de_DescribeRepositoriesCommandError = async (output, context) => {
|
|
|
588
579
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
589
580
|
default:
|
|
590
581
|
const parsedBody = parsedOutput.body;
|
|
591
|
-
throwDefaultError({
|
|
582
|
+
return throwDefaultError({
|
|
592
583
|
output,
|
|
593
584
|
parsedBody,
|
|
594
|
-
exceptionCtor: __BaseException,
|
|
595
585
|
errorCode,
|
|
596
586
|
});
|
|
597
587
|
}
|
|
@@ -607,7 +597,7 @@ export const de_GetAuthorizationTokenCommand = async (output, context) => {
|
|
|
607
597
|
$metadata: deserializeMetadata(output),
|
|
608
598
|
...contents,
|
|
609
599
|
};
|
|
610
|
-
return
|
|
600
|
+
return response;
|
|
611
601
|
};
|
|
612
602
|
const de_GetAuthorizationTokenCommandError = async (output, context) => {
|
|
613
603
|
const parsedOutput = {
|
|
@@ -627,10 +617,9 @@ const de_GetAuthorizationTokenCommandError = async (output, context) => {
|
|
|
627
617
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
628
618
|
default:
|
|
629
619
|
const parsedBody = parsedOutput.body;
|
|
630
|
-
throwDefaultError({
|
|
620
|
+
return throwDefaultError({
|
|
631
621
|
output,
|
|
632
622
|
parsedBody,
|
|
633
|
-
exceptionCtor: __BaseException,
|
|
634
623
|
errorCode,
|
|
635
624
|
});
|
|
636
625
|
}
|
|
@@ -641,12 +630,12 @@ export const de_GetRegistryCatalogDataCommand = async (output, context) => {
|
|
|
641
630
|
}
|
|
642
631
|
const data = await parseBody(output.body, context);
|
|
643
632
|
let contents = {};
|
|
644
|
-
contents =
|
|
633
|
+
contents = _json(data);
|
|
645
634
|
const response = {
|
|
646
635
|
$metadata: deserializeMetadata(output),
|
|
647
636
|
...contents,
|
|
648
637
|
};
|
|
649
|
-
return
|
|
638
|
+
return response;
|
|
650
639
|
};
|
|
651
640
|
const de_GetRegistryCatalogDataCommandError = async (output, context) => {
|
|
652
641
|
const parsedOutput = {
|
|
@@ -663,10 +652,9 @@ const de_GetRegistryCatalogDataCommandError = async (output, context) => {
|
|
|
663
652
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
664
653
|
default:
|
|
665
654
|
const parsedBody = parsedOutput.body;
|
|
666
|
-
throwDefaultError({
|
|
655
|
+
return throwDefaultError({
|
|
667
656
|
output,
|
|
668
657
|
parsedBody,
|
|
669
|
-
exceptionCtor: __BaseException,
|
|
670
658
|
errorCode,
|
|
671
659
|
});
|
|
672
660
|
}
|
|
@@ -677,12 +665,12 @@ export const de_GetRepositoryCatalogDataCommand = async (output, context) => {
|
|
|
677
665
|
}
|
|
678
666
|
const data = await parseBody(output.body, context);
|
|
679
667
|
let contents = {};
|
|
680
|
-
contents =
|
|
668
|
+
contents = _json(data);
|
|
681
669
|
const response = {
|
|
682
670
|
$metadata: deserializeMetadata(output),
|
|
683
671
|
...contents,
|
|
684
672
|
};
|
|
685
|
-
return
|
|
673
|
+
return response;
|
|
686
674
|
};
|
|
687
675
|
const de_GetRepositoryCatalogDataCommandError = async (output, context) => {
|
|
688
676
|
const parsedOutput = {
|
|
@@ -708,10 +696,9 @@ const de_GetRepositoryCatalogDataCommandError = async (output, context) => {
|
|
|
708
696
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
709
697
|
default:
|
|
710
698
|
const parsedBody = parsedOutput.body;
|
|
711
|
-
throwDefaultError({
|
|
699
|
+
return throwDefaultError({
|
|
712
700
|
output,
|
|
713
701
|
parsedBody,
|
|
714
|
-
exceptionCtor: __BaseException,
|
|
715
702
|
errorCode,
|
|
716
703
|
});
|
|
717
704
|
}
|
|
@@ -722,12 +709,12 @@ export const de_GetRepositoryPolicyCommand = async (output, context) => {
|
|
|
722
709
|
}
|
|
723
710
|
const data = await parseBody(output.body, context);
|
|
724
711
|
let contents = {};
|
|
725
|
-
contents =
|
|
712
|
+
contents = _json(data);
|
|
726
713
|
const response = {
|
|
727
714
|
$metadata: deserializeMetadata(output),
|
|
728
715
|
...contents,
|
|
729
716
|
};
|
|
730
|
-
return
|
|
717
|
+
return response;
|
|
731
718
|
};
|
|
732
719
|
const de_GetRepositoryPolicyCommandError = async (output, context) => {
|
|
733
720
|
const parsedOutput = {
|
|
@@ -753,10 +740,9 @@ const de_GetRepositoryPolicyCommandError = async (output, context) => {
|
|
|
753
740
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
754
741
|
default:
|
|
755
742
|
const parsedBody = parsedOutput.body;
|
|
756
|
-
throwDefaultError({
|
|
743
|
+
return throwDefaultError({
|
|
757
744
|
output,
|
|
758
745
|
parsedBody,
|
|
759
|
-
exceptionCtor: __BaseException,
|
|
760
746
|
errorCode,
|
|
761
747
|
});
|
|
762
748
|
}
|
|
@@ -767,12 +753,12 @@ export const de_InitiateLayerUploadCommand = async (output, context) => {
|
|
|
767
753
|
}
|
|
768
754
|
const data = await parseBody(output.body, context);
|
|
769
755
|
let contents = {};
|
|
770
|
-
contents =
|
|
756
|
+
contents = _json(data);
|
|
771
757
|
const response = {
|
|
772
758
|
$metadata: deserializeMetadata(output),
|
|
773
759
|
...contents,
|
|
774
760
|
};
|
|
775
|
-
return
|
|
761
|
+
return response;
|
|
776
762
|
};
|
|
777
763
|
const de_InitiateLayerUploadCommandError = async (output, context) => {
|
|
778
764
|
const parsedOutput = {
|
|
@@ -798,10 +784,9 @@ const de_InitiateLayerUploadCommandError = async (output, context) => {
|
|
|
798
784
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
799
785
|
default:
|
|
800
786
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
throwDefaultError({
|
|
787
|
+
return throwDefaultError({
|
|
802
788
|
output,
|
|
803
789
|
parsedBody,
|
|
804
|
-
exceptionCtor: __BaseException,
|
|
805
790
|
errorCode,
|
|
806
791
|
});
|
|
807
792
|
}
|
|
@@ -812,12 +797,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
812
797
|
}
|
|
813
798
|
const data = await parseBody(output.body, context);
|
|
814
799
|
let contents = {};
|
|
815
|
-
contents =
|
|
800
|
+
contents = _json(data);
|
|
816
801
|
const response = {
|
|
817
802
|
$metadata: deserializeMetadata(output),
|
|
818
803
|
...contents,
|
|
819
804
|
};
|
|
820
|
-
return
|
|
805
|
+
return response;
|
|
821
806
|
};
|
|
822
807
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
823
808
|
const parsedOutput = {
|
|
@@ -840,10 +825,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
840
825
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
841
826
|
default:
|
|
842
827
|
const parsedBody = parsedOutput.body;
|
|
843
|
-
throwDefaultError({
|
|
828
|
+
return throwDefaultError({
|
|
844
829
|
output,
|
|
845
830
|
parsedBody,
|
|
846
|
-
exceptionCtor: __BaseException,
|
|
847
831
|
errorCode,
|
|
848
832
|
});
|
|
849
833
|
}
|
|
@@ -854,12 +838,12 @@ export const de_PutImageCommand = async (output, context) => {
|
|
|
854
838
|
}
|
|
855
839
|
const data = await parseBody(output.body, context);
|
|
856
840
|
let contents = {};
|
|
857
|
-
contents =
|
|
841
|
+
contents = _json(data);
|
|
858
842
|
const response = {
|
|
859
843
|
$metadata: deserializeMetadata(output),
|
|
860
844
|
...contents,
|
|
861
845
|
};
|
|
862
|
-
return
|
|
846
|
+
return response;
|
|
863
847
|
};
|
|
864
848
|
const de_PutImageCommandError = async (output, context) => {
|
|
865
849
|
const parsedOutput = {
|
|
@@ -903,10 +887,9 @@ const de_PutImageCommandError = async (output, context) => {
|
|
|
903
887
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
904
888
|
default:
|
|
905
889
|
const parsedBody = parsedOutput.body;
|
|
906
|
-
throwDefaultError({
|
|
890
|
+
return throwDefaultError({
|
|
907
891
|
output,
|
|
908
892
|
parsedBody,
|
|
909
|
-
exceptionCtor: __BaseException,
|
|
910
893
|
errorCode,
|
|
911
894
|
});
|
|
912
895
|
}
|
|
@@ -917,12 +900,12 @@ export const de_PutRegistryCatalogDataCommand = async (output, context) => {
|
|
|
917
900
|
}
|
|
918
901
|
const data = await parseBody(output.body, context);
|
|
919
902
|
let contents = {};
|
|
920
|
-
contents =
|
|
903
|
+
contents = _json(data);
|
|
921
904
|
const response = {
|
|
922
905
|
$metadata: deserializeMetadata(output),
|
|
923
906
|
...contents,
|
|
924
907
|
};
|
|
925
|
-
return
|
|
908
|
+
return response;
|
|
926
909
|
};
|
|
927
910
|
const de_PutRegistryCatalogDataCommandError = async (output, context) => {
|
|
928
911
|
const parsedOutput = {
|
|
@@ -942,10 +925,9 @@ const de_PutRegistryCatalogDataCommandError = async (output, context) => {
|
|
|
942
925
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
943
926
|
default:
|
|
944
927
|
const parsedBody = parsedOutput.body;
|
|
945
|
-
throwDefaultError({
|
|
928
|
+
return throwDefaultError({
|
|
946
929
|
output,
|
|
947
930
|
parsedBody,
|
|
948
|
-
exceptionCtor: __BaseException,
|
|
949
931
|
errorCode,
|
|
950
932
|
});
|
|
951
933
|
}
|
|
@@ -956,12 +938,12 @@ export const de_PutRepositoryCatalogDataCommand = async (output, context) => {
|
|
|
956
938
|
}
|
|
957
939
|
const data = await parseBody(output.body, context);
|
|
958
940
|
let contents = {};
|
|
959
|
-
contents =
|
|
941
|
+
contents = _json(data);
|
|
960
942
|
const response = {
|
|
961
943
|
$metadata: deserializeMetadata(output),
|
|
962
944
|
...contents,
|
|
963
945
|
};
|
|
964
|
-
return
|
|
946
|
+
return response;
|
|
965
947
|
};
|
|
966
948
|
const de_PutRepositoryCatalogDataCommandError = async (output, context) => {
|
|
967
949
|
const parsedOutput = {
|
|
@@ -984,10 +966,9 @@ const de_PutRepositoryCatalogDataCommandError = async (output, context) => {
|
|
|
984
966
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
985
967
|
default:
|
|
986
968
|
const parsedBody = parsedOutput.body;
|
|
987
|
-
throwDefaultError({
|
|
969
|
+
return throwDefaultError({
|
|
988
970
|
output,
|
|
989
971
|
parsedBody,
|
|
990
|
-
exceptionCtor: __BaseException,
|
|
991
972
|
errorCode,
|
|
992
973
|
});
|
|
993
974
|
}
|
|
@@ -998,12 +979,12 @@ export const de_SetRepositoryPolicyCommand = async (output, context) => {
|
|
|
998
979
|
}
|
|
999
980
|
const data = await parseBody(output.body, context);
|
|
1000
981
|
let contents = {};
|
|
1001
|
-
contents =
|
|
982
|
+
contents = _json(data);
|
|
1002
983
|
const response = {
|
|
1003
984
|
$metadata: deserializeMetadata(output),
|
|
1004
985
|
...contents,
|
|
1005
986
|
};
|
|
1006
|
-
return
|
|
987
|
+
return response;
|
|
1007
988
|
};
|
|
1008
989
|
const de_SetRepositoryPolicyCommandError = async (output, context) => {
|
|
1009
990
|
const parsedOutput = {
|
|
@@ -1026,10 +1007,9 @@ const de_SetRepositoryPolicyCommandError = async (output, context) => {
|
|
|
1026
1007
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1027
1008
|
default:
|
|
1028
1009
|
const parsedBody = parsedOutput.body;
|
|
1029
|
-
throwDefaultError({
|
|
1010
|
+
return throwDefaultError({
|
|
1030
1011
|
output,
|
|
1031
1012
|
parsedBody,
|
|
1032
|
-
exceptionCtor: __BaseException,
|
|
1033
1013
|
errorCode,
|
|
1034
1014
|
});
|
|
1035
1015
|
}
|
|
@@ -1040,12 +1020,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1040
1020
|
}
|
|
1041
1021
|
const data = await parseBody(output.body, context);
|
|
1042
1022
|
let contents = {};
|
|
1043
|
-
contents =
|
|
1023
|
+
contents = _json(data);
|
|
1044
1024
|
const response = {
|
|
1045
1025
|
$metadata: deserializeMetadata(output),
|
|
1046
1026
|
...contents,
|
|
1047
1027
|
};
|
|
1048
|
-
return
|
|
1028
|
+
return response;
|
|
1049
1029
|
};
|
|
1050
1030
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1051
1031
|
const parsedOutput = {
|
|
@@ -1074,10 +1054,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1074
1054
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1075
1055
|
default:
|
|
1076
1056
|
const parsedBody = parsedOutput.body;
|
|
1077
|
-
throwDefaultError({
|
|
1057
|
+
return throwDefaultError({
|
|
1078
1058
|
output,
|
|
1079
1059
|
parsedBody,
|
|
1080
|
-
exceptionCtor: __BaseException,
|
|
1081
1060
|
errorCode,
|
|
1082
1061
|
});
|
|
1083
1062
|
}
|
|
@@ -1088,12 +1067,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1088
1067
|
}
|
|
1089
1068
|
const data = await parseBody(output.body, context);
|
|
1090
1069
|
let contents = {};
|
|
1091
|
-
contents =
|
|
1070
|
+
contents = _json(data);
|
|
1092
1071
|
const response = {
|
|
1093
1072
|
$metadata: deserializeMetadata(output),
|
|
1094
1073
|
...contents,
|
|
1095
1074
|
};
|
|
1096
|
-
return
|
|
1075
|
+
return response;
|
|
1097
1076
|
};
|
|
1098
1077
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1099
1078
|
const parsedOutput = {
|
|
@@ -1122,10 +1101,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1122
1101
|
throw await de_UnsupportedCommandExceptionRes(parsedOutput, context);
|
|
1123
1102
|
default:
|
|
1124
1103
|
const parsedBody = parsedOutput.body;
|
|
1125
|
-
throwDefaultError({
|
|
1104
|
+
return throwDefaultError({
|
|
1126
1105
|
output,
|
|
1127
1106
|
parsedBody,
|
|
1128
|
-
exceptionCtor: __BaseException,
|
|
1129
1107
|
errorCode,
|
|
1130
1108
|
});
|
|
1131
1109
|
}
|
|
@@ -1136,12 +1114,12 @@ export const de_UploadLayerPartCommand = async (output, context) => {
|
|
|
1136
1114
|
}
|
|
1137
1115
|
const data = await parseBody(output.body, context);
|
|
1138
1116
|
let contents = {};
|
|
1139
|
-
contents =
|
|
1117
|
+
contents = _json(data);
|
|
1140
1118
|
const response = {
|
|
1141
1119
|
$metadata: deserializeMetadata(output),
|
|
1142
1120
|
...contents,
|
|
1143
1121
|
};
|
|
1144
|
-
return
|
|
1122
|
+
return response;
|
|
1145
1123
|
};
|
|
1146
1124
|
const de_UploadLayerPartCommandError = async (output, context) => {
|
|
1147
1125
|
const parsedOutput = {
|
|
@@ -1176,17 +1154,16 @@ const de_UploadLayerPartCommandError = async (output, context) => {
|
|
|
1176
1154
|
throw await de_UploadNotFoundExceptionRes(parsedOutput, context);
|
|
1177
1155
|
default:
|
|
1178
1156
|
const parsedBody = parsedOutput.body;
|
|
1179
|
-
throwDefaultError({
|
|
1157
|
+
return throwDefaultError({
|
|
1180
1158
|
output,
|
|
1181
1159
|
parsedBody,
|
|
1182
|
-
exceptionCtor: __BaseException,
|
|
1183
1160
|
errorCode,
|
|
1184
1161
|
});
|
|
1185
1162
|
}
|
|
1186
1163
|
};
|
|
1187
1164
|
const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
|
|
1188
1165
|
const body = parsedOutput.body;
|
|
1189
|
-
const deserialized =
|
|
1166
|
+
const deserialized = _json(body);
|
|
1190
1167
|
const exception = new EmptyUploadException({
|
|
1191
1168
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1192
1169
|
...deserialized,
|
|
@@ -1195,7 +1172,7 @@ const de_EmptyUploadExceptionRes = async (parsedOutput, context) => {
|
|
|
1195
1172
|
};
|
|
1196
1173
|
const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1197
1174
|
const body = parsedOutput.body;
|
|
1198
|
-
const deserialized =
|
|
1175
|
+
const deserialized = _json(body);
|
|
1199
1176
|
const exception = new ImageAlreadyExistsException({
|
|
1200
1177
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1201
1178
|
...deserialized,
|
|
@@ -1204,7 +1181,7 @@ const de_ImageAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1204
1181
|
};
|
|
1205
1182
|
const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) => {
|
|
1206
1183
|
const body = parsedOutput.body;
|
|
1207
|
-
const deserialized =
|
|
1184
|
+
const deserialized = _json(body);
|
|
1208
1185
|
const exception = new ImageDigestDoesNotMatchException({
|
|
1209
1186
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1210
1187
|
...deserialized,
|
|
@@ -1213,7 +1190,7 @@ const de_ImageDigestDoesNotMatchExceptionRes = async (parsedOutput, context) =>
|
|
|
1213
1190
|
};
|
|
1214
1191
|
const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1215
1192
|
const body = parsedOutput.body;
|
|
1216
|
-
const deserialized =
|
|
1193
|
+
const deserialized = _json(body);
|
|
1217
1194
|
const exception = new ImageNotFoundException({
|
|
1218
1195
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1219
1196
|
...deserialized,
|
|
@@ -1222,7 +1199,7 @@ const de_ImageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1222
1199
|
};
|
|
1223
1200
|
const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1224
1201
|
const body = parsedOutput.body;
|
|
1225
|
-
const deserialized =
|
|
1202
|
+
const deserialized = _json(body);
|
|
1226
1203
|
const exception = new ImageTagAlreadyExistsException({
|
|
1227
1204
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1228
1205
|
...deserialized,
|
|
@@ -1231,7 +1208,7 @@ const de_ImageTagAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1231
1208
|
};
|
|
1232
1209
|
const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
|
|
1233
1210
|
const body = parsedOutput.body;
|
|
1234
|
-
const deserialized =
|
|
1211
|
+
const deserialized = _json(body);
|
|
1235
1212
|
const exception = new InvalidLayerException({
|
|
1236
1213
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1237
1214
|
...deserialized,
|
|
@@ -1240,7 +1217,7 @@ const de_InvalidLayerExceptionRes = async (parsedOutput, context) => {
|
|
|
1240
1217
|
};
|
|
1241
1218
|
const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
|
|
1242
1219
|
const body = parsedOutput.body;
|
|
1243
|
-
const deserialized =
|
|
1220
|
+
const deserialized = _json(body);
|
|
1244
1221
|
const exception = new InvalidLayerPartException({
|
|
1245
1222
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1246
1223
|
...deserialized,
|
|
@@ -1249,7 +1226,7 @@ const de_InvalidLayerPartExceptionRes = async (parsedOutput, context) => {
|
|
|
1249
1226
|
};
|
|
1250
1227
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1251
1228
|
const body = parsedOutput.body;
|
|
1252
|
-
const deserialized =
|
|
1229
|
+
const deserialized = _json(body);
|
|
1253
1230
|
const exception = new InvalidParameterException({
|
|
1254
1231
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1255
1232
|
...deserialized,
|
|
@@ -1258,7 +1235,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1258
1235
|
};
|
|
1259
1236
|
const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
|
|
1260
1237
|
const body = parsedOutput.body;
|
|
1261
|
-
const deserialized =
|
|
1238
|
+
const deserialized = _json(body);
|
|
1262
1239
|
const exception = new InvalidTagParameterException({
|
|
1263
1240
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1264
1241
|
...deserialized,
|
|
@@ -1267,7 +1244,7 @@ const de_InvalidTagParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1267
1244
|
};
|
|
1268
1245
|
const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1269
1246
|
const body = parsedOutput.body;
|
|
1270
|
-
const deserialized =
|
|
1247
|
+
const deserialized = _json(body);
|
|
1271
1248
|
const exception = new LayerAlreadyExistsException({
|
|
1272
1249
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1273
1250
|
...deserialized,
|
|
@@ -1276,7 +1253,7 @@ const de_LayerAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1276
1253
|
};
|
|
1277
1254
|
const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
|
|
1278
1255
|
const body = parsedOutput.body;
|
|
1279
|
-
const deserialized =
|
|
1256
|
+
const deserialized = _json(body);
|
|
1280
1257
|
const exception = new LayerPartTooSmallException({
|
|
1281
1258
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1282
1259
|
...deserialized,
|
|
@@ -1285,7 +1262,7 @@ const de_LayerPartTooSmallExceptionRes = async (parsedOutput, context) => {
|
|
|
1285
1262
|
};
|
|
1286
1263
|
const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1287
1264
|
const body = parsedOutput.body;
|
|
1288
|
-
const deserialized =
|
|
1265
|
+
const deserialized = _json(body);
|
|
1289
1266
|
const exception = new LayersNotFoundException({
|
|
1290
1267
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1291
1268
|
...deserialized,
|
|
@@ -1294,7 +1271,7 @@ const de_LayersNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1294
1271
|
};
|
|
1295
1272
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1296
1273
|
const body = parsedOutput.body;
|
|
1297
|
-
const deserialized =
|
|
1274
|
+
const deserialized = _json(body);
|
|
1298
1275
|
const exception = new LimitExceededException({
|
|
1299
1276
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1300
1277
|
...deserialized,
|
|
@@ -1303,7 +1280,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1303
1280
|
};
|
|
1304
1281
|
const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1305
1282
|
const body = parsedOutput.body;
|
|
1306
|
-
const deserialized =
|
|
1283
|
+
const deserialized = _json(body);
|
|
1307
1284
|
const exception = new ReferencedImagesNotFoundException({
|
|
1308
1285
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1309
1286
|
...deserialized,
|
|
@@ -1312,7 +1289,7 @@ const de_ReferencedImagesNotFoundExceptionRes = async (parsedOutput, context) =>
|
|
|
1312
1289
|
};
|
|
1313
1290
|
const de_RegistryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1314
1291
|
const body = parsedOutput.body;
|
|
1315
|
-
const deserialized =
|
|
1292
|
+
const deserialized = _json(body);
|
|
1316
1293
|
const exception = new RegistryNotFoundException({
|
|
1317
1294
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1318
1295
|
...deserialized,
|
|
@@ -1321,7 +1298,7 @@ const de_RegistryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1321
1298
|
};
|
|
1322
1299
|
const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1323
1300
|
const body = parsedOutput.body;
|
|
1324
|
-
const deserialized =
|
|
1301
|
+
const deserialized = _json(body);
|
|
1325
1302
|
const exception = new RepositoryAlreadyExistsException({
|
|
1326
1303
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1327
1304
|
...deserialized,
|
|
@@ -1330,7 +1307,7 @@ const de_RepositoryAlreadyExistsExceptionRes = async (parsedOutput, context) =>
|
|
|
1330
1307
|
};
|
|
1331
1308
|
const de_RepositoryCatalogDataNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1332
1309
|
const body = parsedOutput.body;
|
|
1333
|
-
const deserialized =
|
|
1310
|
+
const deserialized = _json(body);
|
|
1334
1311
|
const exception = new RepositoryCatalogDataNotFoundException({
|
|
1335
1312
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1336
1313
|
...deserialized,
|
|
@@ -1339,7 +1316,7 @@ const de_RepositoryCatalogDataNotFoundExceptionRes = async (parsedOutput, contex
|
|
|
1339
1316
|
};
|
|
1340
1317
|
const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
1341
1318
|
const body = parsedOutput.body;
|
|
1342
|
-
const deserialized =
|
|
1319
|
+
const deserialized = _json(body);
|
|
1343
1320
|
const exception = new RepositoryNotEmptyException({
|
|
1344
1321
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1345
1322
|
...deserialized,
|
|
@@ -1348,7 +1325,7 @@ const de_RepositoryNotEmptyExceptionRes = async (parsedOutput, context) => {
|
|
|
1348
1325
|
};
|
|
1349
1326
|
const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1350
1327
|
const body = parsedOutput.body;
|
|
1351
|
-
const deserialized =
|
|
1328
|
+
const deserialized = _json(body);
|
|
1352
1329
|
const exception = new RepositoryNotFoundException({
|
|
1353
1330
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1354
1331
|
...deserialized,
|
|
@@ -1357,7 +1334,7 @@ const de_RepositoryNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1357
1334
|
};
|
|
1358
1335
|
const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1359
1336
|
const body = parsedOutput.body;
|
|
1360
|
-
const deserialized =
|
|
1337
|
+
const deserialized = _json(body);
|
|
1361
1338
|
const exception = new RepositoryPolicyNotFoundException({
|
|
1362
1339
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1363
1340
|
...deserialized,
|
|
@@ -1366,7 +1343,7 @@ const de_RepositoryPolicyNotFoundExceptionRes = async (parsedOutput, context) =>
|
|
|
1366
1343
|
};
|
|
1367
1344
|
const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
1368
1345
|
const body = parsedOutput.body;
|
|
1369
|
-
const deserialized =
|
|
1346
|
+
const deserialized = _json(body);
|
|
1370
1347
|
const exception = new ServerException({
|
|
1371
1348
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1372
1349
|
...deserialized,
|
|
@@ -1375,7 +1352,7 @@ const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1375
1352
|
};
|
|
1376
1353
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1377
1354
|
const body = parsedOutput.body;
|
|
1378
|
-
const deserialized =
|
|
1355
|
+
const deserialized = _json(body);
|
|
1379
1356
|
const exception = new TooManyTagsException({
|
|
1380
1357
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1381
1358
|
...deserialized,
|
|
@@ -1384,7 +1361,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1384
1361
|
};
|
|
1385
1362
|
const de_UnsupportedCommandExceptionRes = async (parsedOutput, context) => {
|
|
1386
1363
|
const body = parsedOutput.body;
|
|
1387
|
-
const deserialized =
|
|
1364
|
+
const deserialized = _json(body);
|
|
1388
1365
|
const exception = new UnsupportedCommandException({
|
|
1389
1366
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1390
1367
|
...deserialized,
|
|
@@ -1393,770 +1370,148 @@ const de_UnsupportedCommandExceptionRes = async (parsedOutput, context) => {
|
|
|
1393
1370
|
};
|
|
1394
1371
|
const de_UploadNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1395
1372
|
const body = parsedOutput.body;
|
|
1396
|
-
const deserialized =
|
|
1373
|
+
const deserialized = _json(body);
|
|
1397
1374
|
const exception = new UploadNotFoundException({
|
|
1398
1375
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1399
1376
|
...deserialized,
|
|
1400
1377
|
});
|
|
1401
1378
|
return __decorateServiceException(exception, body);
|
|
1402
1379
|
};
|
|
1403
|
-
const se_ArchitectureList = (input, context) => {
|
|
1404
|
-
return input
|
|
1405
|
-
.filter((e) => e != null)
|
|
1406
|
-
.map((entry) => {
|
|
1407
|
-
return entry;
|
|
1408
|
-
});
|
|
1409
|
-
};
|
|
1410
|
-
const se_BatchCheckLayerAvailabilityRequest = (input, context) => {
|
|
1411
|
-
return {
|
|
1412
|
-
...(input.layerDigests != null && {
|
|
1413
|
-
layerDigests: se_BatchedOperationLayerDigestList(input.layerDigests, context),
|
|
1414
|
-
}),
|
|
1415
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1416
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1417
|
-
};
|
|
1418
|
-
};
|
|
1419
|
-
const se_BatchDeleteImageRequest = (input, context) => {
|
|
1420
|
-
return {
|
|
1421
|
-
...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
|
|
1422
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1423
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1424
|
-
};
|
|
1425
|
-
};
|
|
1426
|
-
const se_BatchedOperationLayerDigestList = (input, context) => {
|
|
1427
|
-
return input
|
|
1428
|
-
.filter((e) => e != null)
|
|
1429
|
-
.map((entry) => {
|
|
1430
|
-
return entry;
|
|
1431
|
-
});
|
|
1432
|
-
};
|
|
1433
|
-
const se_CompleteLayerUploadRequest = (input, context) => {
|
|
1434
|
-
return {
|
|
1435
|
-
...(input.layerDigests != null && { layerDigests: se_LayerDigestList(input.layerDigests, context) }),
|
|
1436
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1437
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1438
|
-
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
1439
|
-
};
|
|
1440
|
-
};
|
|
1441
1380
|
const se_CreateRepositoryRequest = (input, context) => {
|
|
1442
|
-
return {
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
};
|
|
1447
|
-
};
|
|
1448
|
-
const se_DeleteRepositoryPolicyRequest = (input, context) => {
|
|
1449
|
-
return {
|
|
1450
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1451
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1454
|
-
const se_DeleteRepositoryRequest = (input, context) => {
|
|
1455
|
-
return {
|
|
1456
|
-
...(input.force != null && { force: input.force }),
|
|
1457
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1458
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1459
|
-
};
|
|
1460
|
-
};
|
|
1461
|
-
const se_DescribeImagesRequest = (input, context) => {
|
|
1462
|
-
return {
|
|
1463
|
-
...(input.imageIds != null && { imageIds: se_ImageIdentifierList(input.imageIds, context) }),
|
|
1464
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1465
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1466
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1467
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1468
|
-
};
|
|
1469
|
-
};
|
|
1470
|
-
const se_DescribeImageTagsRequest = (input, context) => {
|
|
1471
|
-
return {
|
|
1472
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1473
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1474
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1475
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1476
|
-
};
|
|
1477
|
-
};
|
|
1478
|
-
const se_DescribeRegistriesRequest = (input, context) => {
|
|
1479
|
-
return {
|
|
1480
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1481
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1482
|
-
};
|
|
1483
|
-
};
|
|
1484
|
-
const se_DescribeRepositoriesRequest = (input, context) => {
|
|
1485
|
-
return {
|
|
1486
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1487
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1488
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1489
|
-
...(input.repositoryNames != null && { repositoryNames: se_RepositoryNameList(input.repositoryNames, context) }),
|
|
1490
|
-
};
|
|
1491
|
-
};
|
|
1492
|
-
const se_GetAuthorizationTokenRequest = (input, context) => {
|
|
1493
|
-
return {};
|
|
1494
|
-
};
|
|
1495
|
-
const se_GetRegistryCatalogDataRequest = (input, context) => {
|
|
1496
|
-
return {};
|
|
1497
|
-
};
|
|
1498
|
-
const se_GetRepositoryCatalogDataRequest = (input, context) => {
|
|
1499
|
-
return {
|
|
1500
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1501
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1502
|
-
};
|
|
1503
|
-
};
|
|
1504
|
-
const se_GetRepositoryPolicyRequest = (input, context) => {
|
|
1505
|
-
return {
|
|
1506
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1507
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1508
|
-
};
|
|
1509
|
-
};
|
|
1510
|
-
const se_ImageIdentifier = (input, context) => {
|
|
1511
|
-
return {
|
|
1512
|
-
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
1513
|
-
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
1514
|
-
};
|
|
1515
|
-
};
|
|
1516
|
-
const se_ImageIdentifierList = (input, context) => {
|
|
1517
|
-
return input
|
|
1518
|
-
.filter((e) => e != null)
|
|
1519
|
-
.map((entry) => {
|
|
1520
|
-
return se_ImageIdentifier(entry, context);
|
|
1381
|
+
return take(input, {
|
|
1382
|
+
catalogData: (_) => se_RepositoryCatalogDataInput(_, context),
|
|
1383
|
+
repositoryName: [],
|
|
1384
|
+
tags: _json,
|
|
1521
1385
|
});
|
|
1522
1386
|
};
|
|
1523
|
-
const se_InitiateLayerUploadRequest = (input, context) => {
|
|
1524
|
-
return {
|
|
1525
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1526
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1527
|
-
};
|
|
1528
|
-
};
|
|
1529
|
-
const se_LayerDigestList = (input, context) => {
|
|
1530
|
-
return input
|
|
1531
|
-
.filter((e) => e != null)
|
|
1532
|
-
.map((entry) => {
|
|
1533
|
-
return entry;
|
|
1534
|
-
});
|
|
1535
|
-
};
|
|
1536
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1537
|
-
return {
|
|
1538
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1539
|
-
};
|
|
1540
|
-
};
|
|
1541
|
-
const se_OperatingSystemList = (input, context) => {
|
|
1542
|
-
return input
|
|
1543
|
-
.filter((e) => e != null)
|
|
1544
|
-
.map((entry) => {
|
|
1545
|
-
return entry;
|
|
1546
|
-
});
|
|
1547
|
-
};
|
|
1548
|
-
const se_PutImageRequest = (input, context) => {
|
|
1549
|
-
return {
|
|
1550
|
-
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
1551
|
-
...(input.imageManifest != null && { imageManifest: input.imageManifest }),
|
|
1552
|
-
...(input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType }),
|
|
1553
|
-
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
1554
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1555
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1556
|
-
};
|
|
1557
|
-
};
|
|
1558
|
-
const se_PutRegistryCatalogDataRequest = (input, context) => {
|
|
1559
|
-
return {
|
|
1560
|
-
...(input.displayName != null && { displayName: input.displayName }),
|
|
1561
|
-
};
|
|
1562
|
-
};
|
|
1563
1387
|
const se_PutRepositoryCatalogDataRequest = (input, context) => {
|
|
1564
|
-
return {
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
};
|
|
1569
|
-
};
|
|
1570
|
-
const se_RepositoryCatalogDataInput = (input, context) => {
|
|
1571
|
-
return {
|
|
1572
|
-
...(input.aboutText != null && { aboutText: input.aboutText }),
|
|
1573
|
-
...(input.architectures != null && { architectures: se_ArchitectureList(input.architectures, context) }),
|
|
1574
|
-
...(input.description != null && { description: input.description }),
|
|
1575
|
-
...(input.logoImageBlob != null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) }),
|
|
1576
|
-
...(input.operatingSystems != null && {
|
|
1577
|
-
operatingSystems: se_OperatingSystemList(input.operatingSystems, context),
|
|
1578
|
-
}),
|
|
1579
|
-
...(input.usageText != null && { usageText: input.usageText }),
|
|
1580
|
-
};
|
|
1581
|
-
};
|
|
1582
|
-
const se_RepositoryNameList = (input, context) => {
|
|
1583
|
-
return input
|
|
1584
|
-
.filter((e) => e != null)
|
|
1585
|
-
.map((entry) => {
|
|
1586
|
-
return entry;
|
|
1388
|
+
return take(input, {
|
|
1389
|
+
catalogData: (_) => se_RepositoryCatalogDataInput(_, context),
|
|
1390
|
+
registryId: [],
|
|
1391
|
+
repositoryName: [],
|
|
1587
1392
|
});
|
|
1588
1393
|
};
|
|
1589
|
-
const
|
|
1590
|
-
return {
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
const se_Tag = (input, context) => {
|
|
1598
|
-
return {
|
|
1599
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1600
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1601
|
-
};
|
|
1602
|
-
};
|
|
1603
|
-
const se_TagKeyList = (input, context) => {
|
|
1604
|
-
return input
|
|
1605
|
-
.filter((e) => e != null)
|
|
1606
|
-
.map((entry) => {
|
|
1607
|
-
return entry;
|
|
1608
|
-
});
|
|
1609
|
-
};
|
|
1610
|
-
const se_TagList = (input, context) => {
|
|
1611
|
-
return input
|
|
1612
|
-
.filter((e) => e != null)
|
|
1613
|
-
.map((entry) => {
|
|
1614
|
-
return se_Tag(entry, context);
|
|
1394
|
+
const se_RepositoryCatalogDataInput = (input, context) => {
|
|
1395
|
+
return take(input, {
|
|
1396
|
+
aboutText: [],
|
|
1397
|
+
architectures: _json,
|
|
1398
|
+
description: [],
|
|
1399
|
+
logoImageBlob: context.base64Encoder,
|
|
1400
|
+
operatingSystems: _json,
|
|
1401
|
+
usageText: [],
|
|
1615
1402
|
});
|
|
1616
1403
|
};
|
|
1617
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1618
|
-
return {
|
|
1619
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1620
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1621
|
-
};
|
|
1622
|
-
};
|
|
1623
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1624
|
-
return {
|
|
1625
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1626
|
-
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
1627
|
-
};
|
|
1628
|
-
};
|
|
1629
1404
|
const se_UploadLayerPartRequest = (input, context) => {
|
|
1630
|
-
return {
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
};
|
|
1638
|
-
};
|
|
1639
|
-
const de_ArchitectureList = (output, context) => {
|
|
1640
|
-
const retVal = (output || [])
|
|
1641
|
-
.filter((e) => e != null)
|
|
1642
|
-
.map((entry) => {
|
|
1643
|
-
if (entry === null) {
|
|
1644
|
-
return null;
|
|
1645
|
-
}
|
|
1646
|
-
return __expectString(entry);
|
|
1405
|
+
return take(input, {
|
|
1406
|
+
layerPartBlob: context.base64Encoder,
|
|
1407
|
+
partFirstByte: [],
|
|
1408
|
+
partLastByte: [],
|
|
1409
|
+
registryId: [],
|
|
1410
|
+
repositoryName: [],
|
|
1411
|
+
uploadId: [],
|
|
1647
1412
|
});
|
|
1648
|
-
return retVal;
|
|
1649
1413
|
};
|
|
1650
1414
|
const de_AuthorizationData = (output, context) => {
|
|
1651
|
-
return {
|
|
1652
|
-
authorizationToken: __expectString
|
|
1653
|
-
expiresAt:
|
|
1654
|
-
};
|
|
1655
|
-
};
|
|
1656
|
-
const de_BatchCheckLayerAvailabilityResponse = (output, context) => {
|
|
1657
|
-
return {
|
|
1658
|
-
failures: output.failures != null ? de_LayerFailureList(output.failures, context) : undefined,
|
|
1659
|
-
layers: output.layers != null ? de_LayerList(output.layers, context) : undefined,
|
|
1660
|
-
};
|
|
1661
|
-
};
|
|
1662
|
-
const de_BatchDeleteImageResponse = (output, context) => {
|
|
1663
|
-
return {
|
|
1664
|
-
failures: output.failures != null ? de_ImageFailureList(output.failures, context) : undefined,
|
|
1665
|
-
imageIds: output.imageIds != null ? de_ImageIdentifierList(output.imageIds, context) : undefined,
|
|
1666
|
-
};
|
|
1667
|
-
};
|
|
1668
|
-
const de_CompleteLayerUploadResponse = (output, context) => {
|
|
1669
|
-
return {
|
|
1670
|
-
layerDigest: __expectString(output.layerDigest),
|
|
1671
|
-
registryId: __expectString(output.registryId),
|
|
1672
|
-
repositoryName: __expectString(output.repositoryName),
|
|
1673
|
-
uploadId: __expectString(output.uploadId),
|
|
1674
|
-
};
|
|
1415
|
+
return take(output, {
|
|
1416
|
+
authorizationToken: __expectString,
|
|
1417
|
+
expiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1418
|
+
});
|
|
1675
1419
|
};
|
|
1676
1420
|
const de_CreateRepositoryResponse = (output, context) => {
|
|
1677
|
-
return {
|
|
1678
|
-
catalogData:
|
|
1679
|
-
repository:
|
|
1680
|
-
};
|
|
1681
|
-
};
|
|
1682
|
-
const de_DeleteRepositoryPolicyResponse = (output, context) => {
|
|
1683
|
-
return {
|
|
1684
|
-
policyText: __expectString(output.policyText),
|
|
1685
|
-
registryId: __expectString(output.registryId),
|
|
1686
|
-
repositoryName: __expectString(output.repositoryName),
|
|
1687
|
-
};
|
|
1421
|
+
return take(output, {
|
|
1422
|
+
catalogData: _json,
|
|
1423
|
+
repository: (_) => de_Repository(_, context),
|
|
1424
|
+
});
|
|
1688
1425
|
};
|
|
1689
1426
|
const de_DeleteRepositoryResponse = (output, context) => {
|
|
1690
|
-
return {
|
|
1691
|
-
repository:
|
|
1692
|
-
};
|
|
1427
|
+
return take(output, {
|
|
1428
|
+
repository: (_) => de_Repository(_, context),
|
|
1429
|
+
});
|
|
1693
1430
|
};
|
|
1694
1431
|
const de_DescribeImagesResponse = (output, context) => {
|
|
1695
|
-
return {
|
|
1696
|
-
imageDetails:
|
|
1697
|
-
nextToken: __expectString
|
|
1698
|
-
};
|
|
1432
|
+
return take(output, {
|
|
1433
|
+
imageDetails: (_) => de_ImageDetailList(_, context),
|
|
1434
|
+
nextToken: __expectString,
|
|
1435
|
+
});
|
|
1699
1436
|
};
|
|
1700
1437
|
const de_DescribeImageTagsResponse = (output, context) => {
|
|
1701
|
-
return {
|
|
1702
|
-
imageTagDetails:
|
|
1703
|
-
nextToken: __expectString
|
|
1704
|
-
};
|
|
1705
|
-
};
|
|
1706
|
-
const de_DescribeRegistriesResponse = (output, context) => {
|
|
1707
|
-
return {
|
|
1708
|
-
nextToken: __expectString(output.nextToken),
|
|
1709
|
-
registries: output.registries != null ? de_RegistryList(output.registries, context) : undefined,
|
|
1710
|
-
};
|
|
1438
|
+
return take(output, {
|
|
1439
|
+
imageTagDetails: (_) => de_ImageTagDetailList(_, context),
|
|
1440
|
+
nextToken: __expectString,
|
|
1441
|
+
});
|
|
1711
1442
|
};
|
|
1712
1443
|
const de_DescribeRepositoriesResponse = (output, context) => {
|
|
1713
|
-
return {
|
|
1714
|
-
nextToken: __expectString
|
|
1715
|
-
repositories:
|
|
1716
|
-
};
|
|
1717
|
-
};
|
|
1718
|
-
const de_EmptyUploadException = (output, context) => {
|
|
1719
|
-
return {
|
|
1720
|
-
message: __expectString(output.message),
|
|
1721
|
-
};
|
|
1444
|
+
return take(output, {
|
|
1445
|
+
nextToken: __expectString,
|
|
1446
|
+
repositories: (_) => de_RepositoryList(_, context),
|
|
1447
|
+
});
|
|
1722
1448
|
};
|
|
1723
1449
|
const de_GetAuthorizationTokenResponse = (output, context) => {
|
|
1724
|
-
return {
|
|
1725
|
-
authorizationData:
|
|
1726
|
-
};
|
|
1727
|
-
};
|
|
1728
|
-
const de_GetRegistryCatalogDataResponse = (output, context) => {
|
|
1729
|
-
return {
|
|
1730
|
-
registryCatalogData: output.registryCatalogData != null ? de_RegistryCatalogData(output.registryCatalogData, context) : undefined,
|
|
1731
|
-
};
|
|
1732
|
-
};
|
|
1733
|
-
const de_GetRepositoryCatalogDataResponse = (output, context) => {
|
|
1734
|
-
return {
|
|
1735
|
-
catalogData: output.catalogData != null ? de_RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
1736
|
-
};
|
|
1737
|
-
};
|
|
1738
|
-
const de_GetRepositoryPolicyResponse = (output, context) => {
|
|
1739
|
-
return {
|
|
1740
|
-
policyText: __expectString(output.policyText),
|
|
1741
|
-
registryId: __expectString(output.registryId),
|
|
1742
|
-
repositoryName: __expectString(output.repositoryName),
|
|
1743
|
-
};
|
|
1744
|
-
};
|
|
1745
|
-
const de_Image = (output, context) => {
|
|
1746
|
-
return {
|
|
1747
|
-
imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
|
|
1748
|
-
imageManifest: __expectString(output.imageManifest),
|
|
1749
|
-
imageManifestMediaType: __expectString(output.imageManifestMediaType),
|
|
1750
|
-
registryId: __expectString(output.registryId),
|
|
1751
|
-
repositoryName: __expectString(output.repositoryName),
|
|
1752
|
-
};
|
|
1753
|
-
};
|
|
1754
|
-
const de_ImageAlreadyExistsException = (output, context) => {
|
|
1755
|
-
return {
|
|
1756
|
-
message: __expectString(output.message),
|
|
1757
|
-
};
|
|
1450
|
+
return take(output, {
|
|
1451
|
+
authorizationData: (_) => de_AuthorizationData(_, context),
|
|
1452
|
+
});
|
|
1758
1453
|
};
|
|
1759
1454
|
const de_ImageDetail = (output, context) => {
|
|
1760
|
-
return {
|
|
1761
|
-
artifactMediaType: __expectString
|
|
1762
|
-
imageDigest: __expectString
|
|
1763
|
-
imageManifestMediaType: __expectString
|
|
1764
|
-
imagePushedAt:
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
repositoryName: __expectString(output.repositoryName),
|
|
1771
|
-
};
|
|
1455
|
+
return take(output, {
|
|
1456
|
+
artifactMediaType: __expectString,
|
|
1457
|
+
imageDigest: __expectString,
|
|
1458
|
+
imageManifestMediaType: __expectString,
|
|
1459
|
+
imagePushedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1460
|
+
imageSizeInBytes: __expectLong,
|
|
1461
|
+
imageTags: _json,
|
|
1462
|
+
registryId: __expectString,
|
|
1463
|
+
repositoryName: __expectString,
|
|
1464
|
+
});
|
|
1772
1465
|
};
|
|
1773
1466
|
const de_ImageDetailList = (output, context) => {
|
|
1774
1467
|
const retVal = (output || [])
|
|
1775
1468
|
.filter((e) => e != null)
|
|
1776
1469
|
.map((entry) => {
|
|
1777
|
-
if (entry === null) {
|
|
1778
|
-
return null;
|
|
1779
|
-
}
|
|
1780
1470
|
return de_ImageDetail(entry, context);
|
|
1781
1471
|
});
|
|
1782
1472
|
return retVal;
|
|
1783
1473
|
};
|
|
1784
|
-
const de_ImageDigestDoesNotMatchException = (output, context) => {
|
|
1785
|
-
return {
|
|
1786
|
-
message: __expectString(output.message),
|
|
1787
|
-
};
|
|
1788
|
-
};
|
|
1789
|
-
const de_ImageFailure = (output, context) => {
|
|
1790
|
-
return {
|
|
1791
|
-
failureCode: __expectString(output.failureCode),
|
|
1792
|
-
failureReason: __expectString(output.failureReason),
|
|
1793
|
-
imageId: output.imageId != null ? de_ImageIdentifier(output.imageId, context) : undefined,
|
|
1794
|
-
};
|
|
1795
|
-
};
|
|
1796
|
-
const de_ImageFailureList = (output, context) => {
|
|
1797
|
-
const retVal = (output || [])
|
|
1798
|
-
.filter((e) => e != null)
|
|
1799
|
-
.map((entry) => {
|
|
1800
|
-
if (entry === null) {
|
|
1801
|
-
return null;
|
|
1802
|
-
}
|
|
1803
|
-
return de_ImageFailure(entry, context);
|
|
1804
|
-
});
|
|
1805
|
-
return retVal;
|
|
1806
|
-
};
|
|
1807
|
-
const de_ImageIdentifier = (output, context) => {
|
|
1808
|
-
return {
|
|
1809
|
-
imageDigest: __expectString(output.imageDigest),
|
|
1810
|
-
imageTag: __expectString(output.imageTag),
|
|
1811
|
-
};
|
|
1812
|
-
};
|
|
1813
|
-
const de_ImageIdentifierList = (output, context) => {
|
|
1814
|
-
const retVal = (output || [])
|
|
1815
|
-
.filter((e) => e != null)
|
|
1816
|
-
.map((entry) => {
|
|
1817
|
-
if (entry === null) {
|
|
1818
|
-
return null;
|
|
1819
|
-
}
|
|
1820
|
-
return de_ImageIdentifier(entry, context);
|
|
1821
|
-
});
|
|
1822
|
-
return retVal;
|
|
1823
|
-
};
|
|
1824
|
-
const de_ImageNotFoundException = (output, context) => {
|
|
1825
|
-
return {
|
|
1826
|
-
message: __expectString(output.message),
|
|
1827
|
-
};
|
|
1828
|
-
};
|
|
1829
|
-
const de_ImageTagAlreadyExistsException = (output, context) => {
|
|
1830
|
-
return {
|
|
1831
|
-
message: __expectString(output.message),
|
|
1832
|
-
};
|
|
1833
|
-
};
|
|
1834
1474
|
const de_ImageTagDetail = (output, context) => {
|
|
1835
|
-
return {
|
|
1836
|
-
createdAt:
|
|
1837
|
-
imageDetail:
|
|
1838
|
-
imageTag: __expectString
|
|
1839
|
-
};
|
|
1475
|
+
return take(output, {
|
|
1476
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1477
|
+
imageDetail: (_) => de_ReferencedImageDetail(_, context),
|
|
1478
|
+
imageTag: __expectString,
|
|
1479
|
+
});
|
|
1840
1480
|
};
|
|
1841
1481
|
const de_ImageTagDetailList = (output, context) => {
|
|
1842
1482
|
const retVal = (output || [])
|
|
1843
1483
|
.filter((e) => e != null)
|
|
1844
1484
|
.map((entry) => {
|
|
1845
|
-
if (entry === null) {
|
|
1846
|
-
return null;
|
|
1847
|
-
}
|
|
1848
1485
|
return de_ImageTagDetail(entry, context);
|
|
1849
1486
|
});
|
|
1850
1487
|
return retVal;
|
|
1851
1488
|
};
|
|
1852
|
-
const de_ImageTagList = (output, context) => {
|
|
1853
|
-
const retVal = (output || [])
|
|
1854
|
-
.filter((e) => e != null)
|
|
1855
|
-
.map((entry) => {
|
|
1856
|
-
if (entry === null) {
|
|
1857
|
-
return null;
|
|
1858
|
-
}
|
|
1859
|
-
return __expectString(entry);
|
|
1860
|
-
});
|
|
1861
|
-
return retVal;
|
|
1862
|
-
};
|
|
1863
|
-
const de_InitiateLayerUploadResponse = (output, context) => {
|
|
1864
|
-
return {
|
|
1865
|
-
partSize: __expectLong(output.partSize),
|
|
1866
|
-
uploadId: __expectString(output.uploadId),
|
|
1867
|
-
};
|
|
1868
|
-
};
|
|
1869
|
-
const de_InvalidLayerException = (output, context) => {
|
|
1870
|
-
return {
|
|
1871
|
-
message: __expectString(output.message),
|
|
1872
|
-
};
|
|
1873
|
-
};
|
|
1874
|
-
const de_InvalidLayerPartException = (output, context) => {
|
|
1875
|
-
return {
|
|
1876
|
-
lastValidByteReceived: __expectLong(output.lastValidByteReceived),
|
|
1877
|
-
message: __expectString(output.message),
|
|
1878
|
-
registryId: __expectString(output.registryId),
|
|
1879
|
-
repositoryName: __expectString(output.repositoryName),
|
|
1880
|
-
uploadId: __expectString(output.uploadId),
|
|
1881
|
-
};
|
|
1882
|
-
};
|
|
1883
|
-
const de_InvalidParameterException = (output, context) => {
|
|
1884
|
-
return {
|
|
1885
|
-
message: __expectString(output.message),
|
|
1886
|
-
};
|
|
1887
|
-
};
|
|
1888
|
-
const de_InvalidTagParameterException = (output, context) => {
|
|
1889
|
-
return {
|
|
1890
|
-
message: __expectString(output.message),
|
|
1891
|
-
};
|
|
1892
|
-
};
|
|
1893
|
-
const de_Layer = (output, context) => {
|
|
1894
|
-
return {
|
|
1895
|
-
layerAvailability: __expectString(output.layerAvailability),
|
|
1896
|
-
layerDigest: __expectString(output.layerDigest),
|
|
1897
|
-
layerSize: __expectLong(output.layerSize),
|
|
1898
|
-
mediaType: __expectString(output.mediaType),
|
|
1899
|
-
};
|
|
1900
|
-
};
|
|
1901
|
-
const de_LayerAlreadyExistsException = (output, context) => {
|
|
1902
|
-
return {
|
|
1903
|
-
message: __expectString(output.message),
|
|
1904
|
-
};
|
|
1905
|
-
};
|
|
1906
|
-
const de_LayerFailure = (output, context) => {
|
|
1907
|
-
return {
|
|
1908
|
-
failureCode: __expectString(output.failureCode),
|
|
1909
|
-
failureReason: __expectString(output.failureReason),
|
|
1910
|
-
layerDigest: __expectString(output.layerDigest),
|
|
1911
|
-
};
|
|
1912
|
-
};
|
|
1913
|
-
const de_LayerFailureList = (output, context) => {
|
|
1914
|
-
const retVal = (output || [])
|
|
1915
|
-
.filter((e) => e != null)
|
|
1916
|
-
.map((entry) => {
|
|
1917
|
-
if (entry === null) {
|
|
1918
|
-
return null;
|
|
1919
|
-
}
|
|
1920
|
-
return de_LayerFailure(entry, context);
|
|
1921
|
-
});
|
|
1922
|
-
return retVal;
|
|
1923
|
-
};
|
|
1924
|
-
const de_LayerList = (output, context) => {
|
|
1925
|
-
const retVal = (output || [])
|
|
1926
|
-
.filter((e) => e != null)
|
|
1927
|
-
.map((entry) => {
|
|
1928
|
-
if (entry === null) {
|
|
1929
|
-
return null;
|
|
1930
|
-
}
|
|
1931
|
-
return de_Layer(entry, context);
|
|
1932
|
-
});
|
|
1933
|
-
return retVal;
|
|
1934
|
-
};
|
|
1935
|
-
const de_LayerPartTooSmallException = (output, context) => {
|
|
1936
|
-
return {
|
|
1937
|
-
message: __expectString(output.message),
|
|
1938
|
-
};
|
|
1939
|
-
};
|
|
1940
|
-
const de_LayersNotFoundException = (output, context) => {
|
|
1941
|
-
return {
|
|
1942
|
-
message: __expectString(output.message),
|
|
1943
|
-
};
|
|
1944
|
-
};
|
|
1945
|
-
const de_LimitExceededException = (output, context) => {
|
|
1946
|
-
return {
|
|
1947
|
-
message: __expectString(output.message),
|
|
1948
|
-
};
|
|
1949
|
-
};
|
|
1950
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1951
|
-
return {
|
|
1952
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
1953
|
-
};
|
|
1954
|
-
};
|
|
1955
|
-
const de_OperatingSystemList = (output, context) => {
|
|
1956
|
-
const retVal = (output || [])
|
|
1957
|
-
.filter((e) => e != null)
|
|
1958
|
-
.map((entry) => {
|
|
1959
|
-
if (entry === null) {
|
|
1960
|
-
return null;
|
|
1961
|
-
}
|
|
1962
|
-
return __expectString(entry);
|
|
1963
|
-
});
|
|
1964
|
-
return retVal;
|
|
1965
|
-
};
|
|
1966
|
-
const de_PutImageResponse = (output, context) => {
|
|
1967
|
-
return {
|
|
1968
|
-
image: output.image != null ? de_Image(output.image, context) : undefined,
|
|
1969
|
-
};
|
|
1970
|
-
};
|
|
1971
|
-
const de_PutRegistryCatalogDataResponse = (output, context) => {
|
|
1972
|
-
return {
|
|
1973
|
-
registryCatalogData: output.registryCatalogData != null ? de_RegistryCatalogData(output.registryCatalogData, context) : undefined,
|
|
1974
|
-
};
|
|
1975
|
-
};
|
|
1976
|
-
const de_PutRepositoryCatalogDataResponse = (output, context) => {
|
|
1977
|
-
return {
|
|
1978
|
-
catalogData: output.catalogData != null ? de_RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
1979
|
-
};
|
|
1980
|
-
};
|
|
1981
1489
|
const de_ReferencedImageDetail = (output, context) => {
|
|
1982
|
-
return {
|
|
1983
|
-
artifactMediaType: __expectString
|
|
1984
|
-
imageDigest: __expectString
|
|
1985
|
-
imageManifestMediaType: __expectString
|
|
1986
|
-
imagePushedAt:
|
|
1987
|
-
|
|
1988
|
-
: undefined,
|
|
1989
|
-
imageSizeInBytes: __expectLong(output.imageSizeInBytes),
|
|
1990
|
-
};
|
|
1991
|
-
};
|
|
1992
|
-
const de_ReferencedImagesNotFoundException = (output, context) => {
|
|
1993
|
-
return {
|
|
1994
|
-
message: __expectString(output.message),
|
|
1995
|
-
};
|
|
1996
|
-
};
|
|
1997
|
-
const de_Registry = (output, context) => {
|
|
1998
|
-
return {
|
|
1999
|
-
aliases: output.aliases != null ? de_RegistryAliasList(output.aliases, context) : undefined,
|
|
2000
|
-
registryArn: __expectString(output.registryArn),
|
|
2001
|
-
registryId: __expectString(output.registryId),
|
|
2002
|
-
registryUri: __expectString(output.registryUri),
|
|
2003
|
-
verified: __expectBoolean(output.verified),
|
|
2004
|
-
};
|
|
2005
|
-
};
|
|
2006
|
-
const de_RegistryAlias = (output, context) => {
|
|
2007
|
-
return {
|
|
2008
|
-
defaultRegistryAlias: __expectBoolean(output.defaultRegistryAlias),
|
|
2009
|
-
name: __expectString(output.name),
|
|
2010
|
-
primaryRegistryAlias: __expectBoolean(output.primaryRegistryAlias),
|
|
2011
|
-
status: __expectString(output.status),
|
|
2012
|
-
};
|
|
2013
|
-
};
|
|
2014
|
-
const de_RegistryAliasList = (output, context) => {
|
|
2015
|
-
const retVal = (output || [])
|
|
2016
|
-
.filter((e) => e != null)
|
|
2017
|
-
.map((entry) => {
|
|
2018
|
-
if (entry === null) {
|
|
2019
|
-
return null;
|
|
2020
|
-
}
|
|
2021
|
-
return de_RegistryAlias(entry, context);
|
|
1490
|
+
return take(output, {
|
|
1491
|
+
artifactMediaType: __expectString,
|
|
1492
|
+
imageDigest: __expectString,
|
|
1493
|
+
imageManifestMediaType: __expectString,
|
|
1494
|
+
imagePushedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1495
|
+
imageSizeInBytes: __expectLong,
|
|
2022
1496
|
});
|
|
2023
|
-
return retVal;
|
|
2024
|
-
};
|
|
2025
|
-
const de_RegistryCatalogData = (output, context) => {
|
|
2026
|
-
return {
|
|
2027
|
-
displayName: __expectString(output.displayName),
|
|
2028
|
-
};
|
|
2029
|
-
};
|
|
2030
|
-
const de_RegistryList = (output, context) => {
|
|
2031
|
-
const retVal = (output || [])
|
|
2032
|
-
.filter((e) => e != null)
|
|
2033
|
-
.map((entry) => {
|
|
2034
|
-
if (entry === null) {
|
|
2035
|
-
return null;
|
|
2036
|
-
}
|
|
2037
|
-
return de_Registry(entry, context);
|
|
2038
|
-
});
|
|
2039
|
-
return retVal;
|
|
2040
|
-
};
|
|
2041
|
-
const de_RegistryNotFoundException = (output, context) => {
|
|
2042
|
-
return {
|
|
2043
|
-
message: __expectString(output.message),
|
|
2044
|
-
};
|
|
2045
1497
|
};
|
|
2046
1498
|
const de_Repository = (output, context) => {
|
|
2047
|
-
return {
|
|
2048
|
-
createdAt:
|
|
2049
|
-
registryId: __expectString
|
|
2050
|
-
repositoryArn: __expectString
|
|
2051
|
-
repositoryName: __expectString
|
|
2052
|
-
repositoryUri: __expectString
|
|
2053
|
-
};
|
|
2054
|
-
};
|
|
2055
|
-
const de_RepositoryAlreadyExistsException = (output, context) => {
|
|
2056
|
-
return {
|
|
2057
|
-
message: __expectString(output.message),
|
|
2058
|
-
};
|
|
2059
|
-
};
|
|
2060
|
-
const de_RepositoryCatalogData = (output, context) => {
|
|
2061
|
-
return {
|
|
2062
|
-
aboutText: __expectString(output.aboutText),
|
|
2063
|
-
architectures: output.architectures != null ? de_ArchitectureList(output.architectures, context) : undefined,
|
|
2064
|
-
description: __expectString(output.description),
|
|
2065
|
-
logoUrl: __expectString(output.logoUrl),
|
|
2066
|
-
marketplaceCertified: __expectBoolean(output.marketplaceCertified),
|
|
2067
|
-
operatingSystems: output.operatingSystems != null ? de_OperatingSystemList(output.operatingSystems, context) : undefined,
|
|
2068
|
-
usageText: __expectString(output.usageText),
|
|
2069
|
-
};
|
|
2070
|
-
};
|
|
2071
|
-
const de_RepositoryCatalogDataNotFoundException = (output, context) => {
|
|
2072
|
-
return {
|
|
2073
|
-
message: __expectString(output.message),
|
|
2074
|
-
};
|
|
1499
|
+
return take(output, {
|
|
1500
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1501
|
+
registryId: __expectString,
|
|
1502
|
+
repositoryArn: __expectString,
|
|
1503
|
+
repositoryName: __expectString,
|
|
1504
|
+
repositoryUri: __expectString,
|
|
1505
|
+
});
|
|
2075
1506
|
};
|
|
2076
1507
|
const de_RepositoryList = (output, context) => {
|
|
2077
1508
|
const retVal = (output || [])
|
|
2078
1509
|
.filter((e) => e != null)
|
|
2079
1510
|
.map((entry) => {
|
|
2080
|
-
if (entry === null) {
|
|
2081
|
-
return null;
|
|
2082
|
-
}
|
|
2083
1511
|
return de_Repository(entry, context);
|
|
2084
1512
|
});
|
|
2085
1513
|
return retVal;
|
|
2086
1514
|
};
|
|
2087
|
-
const de_RepositoryNotEmptyException = (output, context) => {
|
|
2088
|
-
return {
|
|
2089
|
-
message: __expectString(output.message),
|
|
2090
|
-
};
|
|
2091
|
-
};
|
|
2092
|
-
const de_RepositoryNotFoundException = (output, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
message: __expectString(output.message),
|
|
2095
|
-
};
|
|
2096
|
-
};
|
|
2097
|
-
const de_RepositoryPolicyNotFoundException = (output, context) => {
|
|
2098
|
-
return {
|
|
2099
|
-
message: __expectString(output.message),
|
|
2100
|
-
};
|
|
2101
|
-
};
|
|
2102
|
-
const de_ServerException = (output, context) => {
|
|
2103
|
-
return {
|
|
2104
|
-
message: __expectString(output.message),
|
|
2105
|
-
};
|
|
2106
|
-
};
|
|
2107
|
-
const de_SetRepositoryPolicyResponse = (output, context) => {
|
|
2108
|
-
return {
|
|
2109
|
-
policyText: __expectString(output.policyText),
|
|
2110
|
-
registryId: __expectString(output.registryId),
|
|
2111
|
-
repositoryName: __expectString(output.repositoryName),
|
|
2112
|
-
};
|
|
2113
|
-
};
|
|
2114
|
-
const de_Tag = (output, context) => {
|
|
2115
|
-
return {
|
|
2116
|
-
Key: __expectString(output.Key),
|
|
2117
|
-
Value: __expectString(output.Value),
|
|
2118
|
-
};
|
|
2119
|
-
};
|
|
2120
|
-
const de_TagList = (output, context) => {
|
|
2121
|
-
const retVal = (output || [])
|
|
2122
|
-
.filter((e) => e != null)
|
|
2123
|
-
.map((entry) => {
|
|
2124
|
-
if (entry === null) {
|
|
2125
|
-
return null;
|
|
2126
|
-
}
|
|
2127
|
-
return de_Tag(entry, context);
|
|
2128
|
-
});
|
|
2129
|
-
return retVal;
|
|
2130
|
-
};
|
|
2131
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2132
|
-
return {};
|
|
2133
|
-
};
|
|
2134
|
-
const de_TooManyTagsException = (output, context) => {
|
|
2135
|
-
return {
|
|
2136
|
-
message: __expectString(output.message),
|
|
2137
|
-
};
|
|
2138
|
-
};
|
|
2139
|
-
const de_UnsupportedCommandException = (output, context) => {
|
|
2140
|
-
return {
|
|
2141
|
-
message: __expectString(output.message),
|
|
2142
|
-
};
|
|
2143
|
-
};
|
|
2144
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2145
|
-
return {};
|
|
2146
|
-
};
|
|
2147
|
-
const de_UploadLayerPartResponse = (output, context) => {
|
|
2148
|
-
return {
|
|
2149
|
-
lastByteReceived: __expectLong(output.lastByteReceived),
|
|
2150
|
-
registryId: __expectString(output.registryId),
|
|
2151
|
-
repositoryName: __expectString(output.repositoryName),
|
|
2152
|
-
uploadId: __expectString(output.uploadId),
|
|
2153
|
-
};
|
|
2154
|
-
};
|
|
2155
|
-
const de_UploadNotFoundException = (output, context) => {
|
|
2156
|
-
return {
|
|
2157
|
-
message: __expectString(output.message),
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
1515
|
const deserializeMetadata = (output) => ({
|
|
2161
1516
|
httpStatusCode: output.statusCode,
|
|
2162
1517
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2170,6 +1525,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2170
1525
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2171
1526
|
};
|
|
2172
1527
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1528
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2173
1529
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2174
1530
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2175
1531
|
const contents = {
|