@aws-sdk/client-ecr-public 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/ECRPUBLIC.js +101 -94
- package/dist-es/ECRPUBLICClient.js +28 -22
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +28 -21
- package/dist-es/commands/BatchDeleteImageCommand.js +28 -21
- package/dist-es/commands/CompleteLayerUploadCommand.js +28 -21
- package/dist-es/commands/CreateRepositoryCommand.js +28 -21
- package/dist-es/commands/DeleteRepositoryCommand.js +28 -21
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js +28 -21
- package/dist-es/commands/DescribeImageTagsCommand.js +28 -21
- package/dist-es/commands/DescribeImagesCommand.js +28 -21
- package/dist-es/commands/DescribeRegistriesCommand.js +28 -21
- package/dist-es/commands/DescribeRepositoriesCommand.js +28 -21
- package/dist-es/commands/GetAuthorizationTokenCommand.js +28 -21
- package/dist-es/commands/GetRegistryCatalogDataCommand.js +28 -21
- package/dist-es/commands/GetRepositoryCatalogDataCommand.js +28 -21
- package/dist-es/commands/GetRepositoryPolicyCommand.js +28 -21
- package/dist-es/commands/InitiateLayerUploadCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PutImageCommand.js +28 -21
- package/dist-es/commands/PutRegistryCatalogDataCommand.js +28 -21
- package/dist-es/commands/PutRepositoryCatalogDataCommand.js +28 -21
- package/dist-es/commands/SetRepositoryPolicyCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UploadLayerPartCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ECRPUBLICServiceException.js +10 -5
- package/dist-es/models/models_0.js +320 -443
- package/dist-es/pagination/DescribeImageTagsPaginator.js +68 -25
- package/dist-es/pagination/DescribeImagesPaginator.js +68 -25
- package/dist-es/pagination/DescribeRegistriesPaginator.js +68 -25
- package/dist-es/pagination/DescribeRepositoriesPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +2211 -1747
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,1664 +1,2105 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ECRPUBLICServiceException as __BaseException } from "../models/ECRPUBLICServiceException";
|
|
4
5
|
import { EmptyUploadException, ImageAlreadyExistsException, ImageDigestDoesNotMatchException, ImageNotFoundException, ImageTagAlreadyExistsException, InvalidLayerException, InvalidLayerPartException, InvalidParameterException, InvalidTagParameterException, LayerAlreadyExistsException, LayerPartTooSmallException, LayersNotFoundException, LimitExceededException, ReferencedImagesNotFoundException, RegistryNotFoundException, RepositoryAlreadyExistsException, RepositoryNotEmptyException, RepositoryNotFoundException, RepositoryPolicyNotFoundException, ServerException, TooManyTagsException, UnsupportedCommandException, UploadNotFoundException, } from "../models/models_0";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
export
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
};
|
|
203
|
-
export
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
throw
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
throw
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
output,
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
output,
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
errorCode,
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
output,
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
throw
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
};
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
return
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
};
|
|
1412
|
-
|
|
6
|
+
export var serializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "SpencerFrontendService.BatchCheckLayerAvailability",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_1BatchDeleteImageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "SpencerFrontendService.BatchDeleteImage",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_1CompleteLayerUploadCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
|
+
var headers, body;
|
|
30
|
+
return __generator(this, function (_a) {
|
|
31
|
+
headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.1",
|
|
33
|
+
"x-amz-target": "SpencerFrontendService.CompleteLayerUpload",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
|
+
});
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_1CreateRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "SpencerFrontendService.CreateRepository",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_1DeleteRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.1",
|
|
55
|
+
"x-amz-target": "SpencerFrontendService.DeleteRepository",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_1DeleteRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.1",
|
|
66
|
+
"x-amz-target": "SpencerFrontendService.DeleteRepositoryPolicy",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
72
|
+
export var serializeAws_json1_1DescribeImagesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
+
var headers, body;
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
headers = {
|
|
76
|
+
"content-type": "application/x-amz-json-1.1",
|
|
77
|
+
"x-amz-target": "SpencerFrontendService.DescribeImages",
|
|
78
|
+
};
|
|
79
|
+
body = JSON.stringify(serializeAws_json1_1DescribeImagesRequest(input, context));
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
|
+
});
|
|
82
|
+
}); };
|
|
83
|
+
export var serializeAws_json1_1DescribeImageTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var headers, body;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/x-amz-json-1.1",
|
|
88
|
+
"x-amz-target": "SpencerFrontendService.DescribeImageTags",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_1DescribeImageTagsRequest(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
|
+
});
|
|
93
|
+
}); };
|
|
94
|
+
export var serializeAws_json1_1DescribeRegistriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "SpencerFrontendService.DescribeRegistries",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1DescribeRegistriesRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
105
|
+
export var serializeAws_json1_1DescribeRepositoriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var headers, body;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
headers = {
|
|
109
|
+
"content-type": "application/x-amz-json-1.1",
|
|
110
|
+
"x-amz-target": "SpencerFrontendService.DescribeRepositories",
|
|
111
|
+
};
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(input, context));
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
|
+
});
|
|
115
|
+
}); };
|
|
116
|
+
export var serializeAws_json1_1GetAuthorizationTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
+
var headers, body;
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "SpencerFrontendService.GetAuthorizationToken",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
127
|
+
export var serializeAws_json1_1GetRegistryCatalogDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "SpencerFrontendService.GetRegistryCatalogData",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1GetRegistryCatalogDataRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
138
|
+
export var serializeAws_json1_1GetRepositoryCatalogDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "SpencerFrontendService.GetRepositoryCatalogData",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1GetRepositoryCatalogDataRequest(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
export var serializeAws_json1_1GetRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var headers, body;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.1",
|
|
154
|
+
"x-amz-target": "SpencerFrontendService.GetRepositoryPolicy",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
160
|
+
export var serializeAws_json1_1InitiateLayerUploadCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
161
|
+
var headers, body;
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
headers = {
|
|
164
|
+
"content-type": "application/x-amz-json-1.1",
|
|
165
|
+
"x-amz-target": "SpencerFrontendService.InitiateLayerUpload",
|
|
166
|
+
};
|
|
167
|
+
body = JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(input, context));
|
|
168
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
|
+
});
|
|
170
|
+
}); };
|
|
171
|
+
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
+
var headers, body;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
headers = {
|
|
175
|
+
"content-type": "application/x-amz-json-1.1",
|
|
176
|
+
"x-amz-target": "SpencerFrontendService.ListTagsForResource",
|
|
177
|
+
};
|
|
178
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
179
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
180
|
+
});
|
|
181
|
+
}); };
|
|
182
|
+
export var serializeAws_json1_1PutImageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
|
+
var headers, body;
|
|
184
|
+
return __generator(this, function (_a) {
|
|
185
|
+
headers = {
|
|
186
|
+
"content-type": "application/x-amz-json-1.1",
|
|
187
|
+
"x-amz-target": "SpencerFrontendService.PutImage",
|
|
188
|
+
};
|
|
189
|
+
body = JSON.stringify(serializeAws_json1_1PutImageRequest(input, context));
|
|
190
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
191
|
+
});
|
|
192
|
+
}); };
|
|
193
|
+
export var serializeAws_json1_1PutRegistryCatalogDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
+
var headers, body;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.1",
|
|
198
|
+
"x-amz-target": "SpencerFrontendService.PutRegistryCatalogData",
|
|
199
|
+
};
|
|
200
|
+
body = JSON.stringify(serializeAws_json1_1PutRegistryCatalogDataRequest(input, context));
|
|
201
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
202
|
+
});
|
|
203
|
+
}); };
|
|
204
|
+
export var serializeAws_json1_1PutRepositoryCatalogDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
|
+
var headers, body;
|
|
206
|
+
return __generator(this, function (_a) {
|
|
207
|
+
headers = {
|
|
208
|
+
"content-type": "application/x-amz-json-1.1",
|
|
209
|
+
"x-amz-target": "SpencerFrontendService.PutRepositoryCatalogData",
|
|
210
|
+
};
|
|
211
|
+
body = JSON.stringify(serializeAws_json1_1PutRepositoryCatalogDataRequest(input, context));
|
|
212
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
213
|
+
});
|
|
214
|
+
}); };
|
|
215
|
+
export var serializeAws_json1_1SetRepositoryPolicyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
216
|
+
var headers, body;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
headers = {
|
|
219
|
+
"content-type": "application/x-amz-json-1.1",
|
|
220
|
+
"x-amz-target": "SpencerFrontendService.SetRepositoryPolicy",
|
|
221
|
+
};
|
|
222
|
+
body = JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(input, context));
|
|
223
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
224
|
+
});
|
|
225
|
+
}); };
|
|
226
|
+
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
227
|
+
var headers, body;
|
|
228
|
+
return __generator(this, function (_a) {
|
|
229
|
+
headers = {
|
|
230
|
+
"content-type": "application/x-amz-json-1.1",
|
|
231
|
+
"x-amz-target": "SpencerFrontendService.TagResource",
|
|
232
|
+
};
|
|
233
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
234
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
235
|
+
});
|
|
236
|
+
}); };
|
|
237
|
+
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
238
|
+
var headers, body;
|
|
239
|
+
return __generator(this, function (_a) {
|
|
240
|
+
headers = {
|
|
241
|
+
"content-type": "application/x-amz-json-1.1",
|
|
242
|
+
"x-amz-target": "SpencerFrontendService.UntagResource",
|
|
243
|
+
};
|
|
244
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
245
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
246
|
+
});
|
|
247
|
+
}); };
|
|
248
|
+
export var serializeAws_json1_1UploadLayerPartCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
249
|
+
var headers, body;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
headers = {
|
|
252
|
+
"content-type": "application/x-amz-json-1.1",
|
|
253
|
+
"x-amz-target": "SpencerFrontendService.UploadLayerPart",
|
|
254
|
+
};
|
|
255
|
+
body = JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(input, context));
|
|
256
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
257
|
+
});
|
|
258
|
+
}); };
|
|
259
|
+
export var deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
+
var data, contents, response;
|
|
261
|
+
return __generator(this, function (_a) {
|
|
262
|
+
switch (_a.label) {
|
|
263
|
+
case 0:
|
|
264
|
+
if (output.statusCode >= 300) {
|
|
265
|
+
return [2, deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(output, context)];
|
|
266
|
+
}
|
|
267
|
+
return [4, parseBody(output.body, context)];
|
|
268
|
+
case 1:
|
|
269
|
+
data = _a.sent();
|
|
270
|
+
contents = {};
|
|
271
|
+
contents = deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(data, context);
|
|
272
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
273
|
+
return [2, Promise.resolve(response)];
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
}); };
|
|
277
|
+
var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
278
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
279
|
+
var _c;
|
|
280
|
+
return __generator(this, function (_d) {
|
|
281
|
+
switch (_d.label) {
|
|
282
|
+
case 0:
|
|
283
|
+
_a = [__assign({}, output)];
|
|
284
|
+
_c = {};
|
|
285
|
+
return [4, parseErrorBody(output.body, context)];
|
|
286
|
+
case 1:
|
|
287
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
288
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
289
|
+
_b = errorCode;
|
|
290
|
+
switch (_b) {
|
|
291
|
+
case "InvalidParameterException": return [3, 2];
|
|
292
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
293
|
+
case "RegistryNotFoundException": return [3, 4];
|
|
294
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 4];
|
|
295
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
296
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
297
|
+
case "ServerException": return [3, 8];
|
|
298
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
299
|
+
}
|
|
300
|
+
return [3, 10];
|
|
301
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
302
|
+
case 3: throw _d.sent();
|
|
303
|
+
case 4: return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
304
|
+
case 5: throw _d.sent();
|
|
305
|
+
case 6: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
306
|
+
case 7: throw _d.sent();
|
|
307
|
+
case 8: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
308
|
+
case 9: throw _d.sent();
|
|
309
|
+
case 10:
|
|
310
|
+
parsedBody = parsedOutput.body;
|
|
311
|
+
throwDefaultError({
|
|
312
|
+
output: output,
|
|
313
|
+
parsedBody: parsedBody,
|
|
314
|
+
exceptionCtor: __BaseException,
|
|
315
|
+
errorCode: errorCode,
|
|
316
|
+
});
|
|
317
|
+
_d.label = 11;
|
|
318
|
+
case 11: return [2];
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
}); };
|
|
322
|
+
export var deserializeAws_json1_1BatchDeleteImageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
323
|
+
var data, contents, response;
|
|
324
|
+
return __generator(this, function (_a) {
|
|
325
|
+
switch (_a.label) {
|
|
326
|
+
case 0:
|
|
327
|
+
if (output.statusCode >= 300) {
|
|
328
|
+
return [2, deserializeAws_json1_1BatchDeleteImageCommandError(output, context)];
|
|
329
|
+
}
|
|
330
|
+
return [4, parseBody(output.body, context)];
|
|
331
|
+
case 1:
|
|
332
|
+
data = _a.sent();
|
|
333
|
+
contents = {};
|
|
334
|
+
contents = deserializeAws_json1_1BatchDeleteImageResponse(data, context);
|
|
335
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
336
|
+
return [2, Promise.resolve(response)];
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
}); };
|
|
340
|
+
var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
341
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
342
|
+
var _c;
|
|
343
|
+
return __generator(this, function (_d) {
|
|
344
|
+
switch (_d.label) {
|
|
345
|
+
case 0:
|
|
346
|
+
_a = [__assign({}, output)];
|
|
347
|
+
_c = {};
|
|
348
|
+
return [4, parseErrorBody(output.body, context)];
|
|
349
|
+
case 1:
|
|
350
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
351
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
352
|
+
_b = errorCode;
|
|
353
|
+
switch (_b) {
|
|
354
|
+
case "InvalidParameterException": return [3, 2];
|
|
355
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
356
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
357
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
358
|
+
case "ServerException": return [3, 6];
|
|
359
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
360
|
+
}
|
|
361
|
+
return [3, 8];
|
|
362
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
363
|
+
case 3: throw _d.sent();
|
|
364
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
365
|
+
case 5: throw _d.sent();
|
|
366
|
+
case 6: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
367
|
+
case 7: throw _d.sent();
|
|
368
|
+
case 8:
|
|
369
|
+
parsedBody = parsedOutput.body;
|
|
370
|
+
throwDefaultError({
|
|
371
|
+
output: output,
|
|
372
|
+
parsedBody: parsedBody,
|
|
373
|
+
exceptionCtor: __BaseException,
|
|
374
|
+
errorCode: errorCode,
|
|
375
|
+
});
|
|
376
|
+
_d.label = 9;
|
|
377
|
+
case 9: return [2];
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
}); };
|
|
381
|
+
export var deserializeAws_json1_1CompleteLayerUploadCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
382
|
+
var data, contents, response;
|
|
383
|
+
return __generator(this, function (_a) {
|
|
384
|
+
switch (_a.label) {
|
|
385
|
+
case 0:
|
|
386
|
+
if (output.statusCode >= 300) {
|
|
387
|
+
return [2, deserializeAws_json1_1CompleteLayerUploadCommandError(output, context)];
|
|
388
|
+
}
|
|
389
|
+
return [4, parseBody(output.body, context)];
|
|
390
|
+
case 1:
|
|
391
|
+
data = _a.sent();
|
|
392
|
+
contents = {};
|
|
393
|
+
contents = deserializeAws_json1_1CompleteLayerUploadResponse(data, context);
|
|
394
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
395
|
+
return [2, Promise.resolve(response)];
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}); };
|
|
399
|
+
var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
400
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
401
|
+
var _c;
|
|
402
|
+
return __generator(this, function (_d) {
|
|
403
|
+
switch (_d.label) {
|
|
404
|
+
case 0:
|
|
405
|
+
_a = [__assign({}, output)];
|
|
406
|
+
_c = {};
|
|
407
|
+
return [4, parseErrorBody(output.body, context)];
|
|
408
|
+
case 1:
|
|
409
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
410
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
|
+
_b = errorCode;
|
|
412
|
+
switch (_b) {
|
|
413
|
+
case "EmptyUploadException": return [3, 2];
|
|
414
|
+
case "com.amazonaws.ecrpublic#EmptyUploadException": return [3, 2];
|
|
415
|
+
case "InvalidLayerException": return [3, 4];
|
|
416
|
+
case "com.amazonaws.ecrpublic#InvalidLayerException": return [3, 4];
|
|
417
|
+
case "InvalidParameterException": return [3, 6];
|
|
418
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 6];
|
|
419
|
+
case "LayerAlreadyExistsException": return [3, 8];
|
|
420
|
+
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException": return [3, 8];
|
|
421
|
+
case "LayerPartTooSmallException": return [3, 10];
|
|
422
|
+
case "com.amazonaws.ecrpublic#LayerPartTooSmallException": return [3, 10];
|
|
423
|
+
case "RegistryNotFoundException": return [3, 12];
|
|
424
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 12];
|
|
425
|
+
case "RepositoryNotFoundException": return [3, 14];
|
|
426
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 14];
|
|
427
|
+
case "ServerException": return [3, 16];
|
|
428
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 16];
|
|
429
|
+
case "UnsupportedCommandException": return [3, 18];
|
|
430
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 18];
|
|
431
|
+
case "UploadNotFoundException": return [3, 20];
|
|
432
|
+
case "com.amazonaws.ecrpublic#UploadNotFoundException": return [3, 20];
|
|
433
|
+
}
|
|
434
|
+
return [3, 22];
|
|
435
|
+
case 2: return [4, deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context)];
|
|
436
|
+
case 3: throw _d.sent();
|
|
437
|
+
case 4: return [4, deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context)];
|
|
438
|
+
case 5: throw _d.sent();
|
|
439
|
+
case 6: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
440
|
+
case 7: throw _d.sent();
|
|
441
|
+
case 8: return [4, deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
442
|
+
case 9: throw _d.sent();
|
|
443
|
+
case 10: return [4, deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context)];
|
|
444
|
+
case 11: throw _d.sent();
|
|
445
|
+
case 12: return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
446
|
+
case 13: throw _d.sent();
|
|
447
|
+
case 14: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
448
|
+
case 15: throw _d.sent();
|
|
449
|
+
case 16: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
450
|
+
case 17: throw _d.sent();
|
|
451
|
+
case 18: return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
452
|
+
case 19: throw _d.sent();
|
|
453
|
+
case 20: return [4, deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)];
|
|
454
|
+
case 21: throw _d.sent();
|
|
455
|
+
case 22:
|
|
456
|
+
parsedBody = parsedOutput.body;
|
|
457
|
+
throwDefaultError({
|
|
458
|
+
output: output,
|
|
459
|
+
parsedBody: parsedBody,
|
|
460
|
+
exceptionCtor: __BaseException,
|
|
461
|
+
errorCode: errorCode,
|
|
462
|
+
});
|
|
463
|
+
_d.label = 23;
|
|
464
|
+
case 23: return [2];
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
}); };
|
|
468
|
+
export var deserializeAws_json1_1CreateRepositoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
469
|
+
var data, contents, response;
|
|
470
|
+
return __generator(this, function (_a) {
|
|
471
|
+
switch (_a.label) {
|
|
472
|
+
case 0:
|
|
473
|
+
if (output.statusCode >= 300) {
|
|
474
|
+
return [2, deserializeAws_json1_1CreateRepositoryCommandError(output, context)];
|
|
475
|
+
}
|
|
476
|
+
return [4, parseBody(output.body, context)];
|
|
477
|
+
case 1:
|
|
478
|
+
data = _a.sent();
|
|
479
|
+
contents = {};
|
|
480
|
+
contents = deserializeAws_json1_1CreateRepositoryResponse(data, context);
|
|
481
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
482
|
+
return [2, Promise.resolve(response)];
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
}); };
|
|
486
|
+
var deserializeAws_json1_1CreateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
487
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
488
|
+
var _c;
|
|
489
|
+
return __generator(this, function (_d) {
|
|
490
|
+
switch (_d.label) {
|
|
491
|
+
case 0:
|
|
492
|
+
_a = [__assign({}, output)];
|
|
493
|
+
_c = {};
|
|
494
|
+
return [4, parseErrorBody(output.body, context)];
|
|
495
|
+
case 1:
|
|
496
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
497
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
+
_b = errorCode;
|
|
499
|
+
switch (_b) {
|
|
500
|
+
case "InvalidParameterException": return [3, 2];
|
|
501
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
502
|
+
case "InvalidTagParameterException": return [3, 4];
|
|
503
|
+
case "com.amazonaws.ecrpublic#InvalidTagParameterException": return [3, 4];
|
|
504
|
+
case "LimitExceededException": return [3, 6];
|
|
505
|
+
case "com.amazonaws.ecrpublic#LimitExceededException": return [3, 6];
|
|
506
|
+
case "RepositoryAlreadyExistsException": return [3, 8];
|
|
507
|
+
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException": return [3, 8];
|
|
508
|
+
case "ServerException": return [3, 10];
|
|
509
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 10];
|
|
510
|
+
case "TooManyTagsException": return [3, 12];
|
|
511
|
+
case "com.amazonaws.ecrpublic#TooManyTagsException": return [3, 12];
|
|
512
|
+
}
|
|
513
|
+
return [3, 14];
|
|
514
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
515
|
+
case 3: throw _d.sent();
|
|
516
|
+
case 4: return [4, deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)];
|
|
517
|
+
case 5: throw _d.sent();
|
|
518
|
+
case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
519
|
+
case 7: throw _d.sent();
|
|
520
|
+
case 8: return [4, deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
521
|
+
case 9: throw _d.sent();
|
|
522
|
+
case 10: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
523
|
+
case 11: throw _d.sent();
|
|
524
|
+
case 12: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
525
|
+
case 13: throw _d.sent();
|
|
526
|
+
case 14:
|
|
527
|
+
parsedBody = parsedOutput.body;
|
|
528
|
+
throwDefaultError({
|
|
529
|
+
output: output,
|
|
530
|
+
parsedBody: parsedBody,
|
|
531
|
+
exceptionCtor: __BaseException,
|
|
532
|
+
errorCode: errorCode,
|
|
533
|
+
});
|
|
534
|
+
_d.label = 15;
|
|
535
|
+
case 15: return [2];
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
}); };
|
|
539
|
+
export var deserializeAws_json1_1DeleteRepositoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
540
|
+
var data, contents, response;
|
|
541
|
+
return __generator(this, function (_a) {
|
|
542
|
+
switch (_a.label) {
|
|
543
|
+
case 0:
|
|
544
|
+
if (output.statusCode >= 300) {
|
|
545
|
+
return [2, deserializeAws_json1_1DeleteRepositoryCommandError(output, context)];
|
|
546
|
+
}
|
|
547
|
+
return [4, parseBody(output.body, context)];
|
|
548
|
+
case 1:
|
|
549
|
+
data = _a.sent();
|
|
550
|
+
contents = {};
|
|
551
|
+
contents = deserializeAws_json1_1DeleteRepositoryResponse(data, context);
|
|
552
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
553
|
+
return [2, Promise.resolve(response)];
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
}); };
|
|
557
|
+
var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
558
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
559
|
+
var _c;
|
|
560
|
+
return __generator(this, function (_d) {
|
|
561
|
+
switch (_d.label) {
|
|
562
|
+
case 0:
|
|
563
|
+
_a = [__assign({}, output)];
|
|
564
|
+
_c = {};
|
|
565
|
+
return [4, parseErrorBody(output.body, context)];
|
|
566
|
+
case 1:
|
|
567
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
568
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
|
+
_b = errorCode;
|
|
570
|
+
switch (_b) {
|
|
571
|
+
case "InvalidParameterException": return [3, 2];
|
|
572
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
573
|
+
case "RepositoryNotEmptyException": return [3, 4];
|
|
574
|
+
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException": return [3, 4];
|
|
575
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
576
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
577
|
+
case "ServerException": return [3, 8];
|
|
578
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
579
|
+
}
|
|
580
|
+
return [3, 10];
|
|
581
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
582
|
+
case 3: throw _d.sent();
|
|
583
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context)];
|
|
584
|
+
case 5: throw _d.sent();
|
|
585
|
+
case 6: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
586
|
+
case 7: throw _d.sent();
|
|
587
|
+
case 8: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
588
|
+
case 9: throw _d.sent();
|
|
589
|
+
case 10:
|
|
590
|
+
parsedBody = parsedOutput.body;
|
|
591
|
+
throwDefaultError({
|
|
592
|
+
output: output,
|
|
593
|
+
parsedBody: parsedBody,
|
|
594
|
+
exceptionCtor: __BaseException,
|
|
595
|
+
errorCode: errorCode,
|
|
596
|
+
});
|
|
597
|
+
_d.label = 11;
|
|
598
|
+
case 11: return [2];
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
}); };
|
|
602
|
+
export var deserializeAws_json1_1DeleteRepositoryPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
603
|
+
var data, contents, response;
|
|
604
|
+
return __generator(this, function (_a) {
|
|
605
|
+
switch (_a.label) {
|
|
606
|
+
case 0:
|
|
607
|
+
if (output.statusCode >= 300) {
|
|
608
|
+
return [2, deserializeAws_json1_1DeleteRepositoryPolicyCommandError(output, context)];
|
|
609
|
+
}
|
|
610
|
+
return [4, parseBody(output.body, context)];
|
|
611
|
+
case 1:
|
|
612
|
+
data = _a.sent();
|
|
613
|
+
contents = {};
|
|
614
|
+
contents = deserializeAws_json1_1DeleteRepositoryPolicyResponse(data, context);
|
|
615
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
616
|
+
return [2, Promise.resolve(response)];
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
}); };
|
|
620
|
+
var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
621
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
622
|
+
var _c;
|
|
623
|
+
return __generator(this, function (_d) {
|
|
624
|
+
switch (_d.label) {
|
|
625
|
+
case 0:
|
|
626
|
+
_a = [__assign({}, output)];
|
|
627
|
+
_c = {};
|
|
628
|
+
return [4, parseErrorBody(output.body, context)];
|
|
629
|
+
case 1:
|
|
630
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
631
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
632
|
+
_b = errorCode;
|
|
633
|
+
switch (_b) {
|
|
634
|
+
case "InvalidParameterException": return [3, 2];
|
|
635
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
636
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
637
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
638
|
+
case "RepositoryPolicyNotFoundException": return [3, 6];
|
|
639
|
+
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException": return [3, 6];
|
|
640
|
+
case "ServerException": return [3, 8];
|
|
641
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
642
|
+
}
|
|
643
|
+
return [3, 10];
|
|
644
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
645
|
+
case 3: throw _d.sent();
|
|
646
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
647
|
+
case 5: throw _d.sent();
|
|
648
|
+
case 6: return [4, deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
649
|
+
case 7: throw _d.sent();
|
|
650
|
+
case 8: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
651
|
+
case 9: throw _d.sent();
|
|
652
|
+
case 10:
|
|
653
|
+
parsedBody = parsedOutput.body;
|
|
654
|
+
throwDefaultError({
|
|
655
|
+
output: output,
|
|
656
|
+
parsedBody: parsedBody,
|
|
657
|
+
exceptionCtor: __BaseException,
|
|
658
|
+
errorCode: errorCode,
|
|
659
|
+
});
|
|
660
|
+
_d.label = 11;
|
|
661
|
+
case 11: return [2];
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
}); };
|
|
665
|
+
export var deserializeAws_json1_1DescribeImagesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
666
|
+
var data, contents, response;
|
|
667
|
+
return __generator(this, function (_a) {
|
|
668
|
+
switch (_a.label) {
|
|
669
|
+
case 0:
|
|
670
|
+
if (output.statusCode >= 300) {
|
|
671
|
+
return [2, deserializeAws_json1_1DescribeImagesCommandError(output, context)];
|
|
672
|
+
}
|
|
673
|
+
return [4, parseBody(output.body, context)];
|
|
674
|
+
case 1:
|
|
675
|
+
data = _a.sent();
|
|
676
|
+
contents = {};
|
|
677
|
+
contents = deserializeAws_json1_1DescribeImagesResponse(data, context);
|
|
678
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
679
|
+
return [2, Promise.resolve(response)];
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
}); };
|
|
683
|
+
var deserializeAws_json1_1DescribeImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
684
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
685
|
+
var _c;
|
|
686
|
+
return __generator(this, function (_d) {
|
|
687
|
+
switch (_d.label) {
|
|
688
|
+
case 0:
|
|
689
|
+
_a = [__assign({}, output)];
|
|
690
|
+
_c = {};
|
|
691
|
+
return [4, parseErrorBody(output.body, context)];
|
|
692
|
+
case 1:
|
|
693
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
694
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
695
|
+
_b = errorCode;
|
|
696
|
+
switch (_b) {
|
|
697
|
+
case "ImageNotFoundException": return [3, 2];
|
|
698
|
+
case "com.amazonaws.ecrpublic#ImageNotFoundException": return [3, 2];
|
|
699
|
+
case "InvalidParameterException": return [3, 4];
|
|
700
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 4];
|
|
701
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
702
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
703
|
+
case "ServerException": return [3, 8];
|
|
704
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
705
|
+
}
|
|
706
|
+
return [3, 10];
|
|
707
|
+
case 2: return [4, deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)];
|
|
708
|
+
case 3: throw _d.sent();
|
|
709
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
710
|
+
case 5: throw _d.sent();
|
|
711
|
+
case 6: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
712
|
+
case 7: throw _d.sent();
|
|
713
|
+
case 8: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
714
|
+
case 9: throw _d.sent();
|
|
715
|
+
case 10:
|
|
716
|
+
parsedBody = parsedOutput.body;
|
|
717
|
+
throwDefaultError({
|
|
718
|
+
output: output,
|
|
719
|
+
parsedBody: parsedBody,
|
|
720
|
+
exceptionCtor: __BaseException,
|
|
721
|
+
errorCode: errorCode,
|
|
722
|
+
});
|
|
723
|
+
_d.label = 11;
|
|
724
|
+
case 11: return [2];
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
}); };
|
|
728
|
+
export var deserializeAws_json1_1DescribeImageTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
729
|
+
var data, contents, response;
|
|
730
|
+
return __generator(this, function (_a) {
|
|
731
|
+
switch (_a.label) {
|
|
732
|
+
case 0:
|
|
733
|
+
if (output.statusCode >= 300) {
|
|
734
|
+
return [2, deserializeAws_json1_1DescribeImageTagsCommandError(output, context)];
|
|
735
|
+
}
|
|
736
|
+
return [4, parseBody(output.body, context)];
|
|
737
|
+
case 1:
|
|
738
|
+
data = _a.sent();
|
|
739
|
+
contents = {};
|
|
740
|
+
contents = deserializeAws_json1_1DescribeImageTagsResponse(data, context);
|
|
741
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
742
|
+
return [2, Promise.resolve(response)];
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
}); };
|
|
746
|
+
var deserializeAws_json1_1DescribeImageTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
747
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
748
|
+
var _c;
|
|
749
|
+
return __generator(this, function (_d) {
|
|
750
|
+
switch (_d.label) {
|
|
751
|
+
case 0:
|
|
752
|
+
_a = [__assign({}, output)];
|
|
753
|
+
_c = {};
|
|
754
|
+
return [4, parseErrorBody(output.body, context)];
|
|
755
|
+
case 1:
|
|
756
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
757
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
758
|
+
_b = errorCode;
|
|
759
|
+
switch (_b) {
|
|
760
|
+
case "InvalidParameterException": return [3, 2];
|
|
761
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
762
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
763
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
764
|
+
case "ServerException": return [3, 6];
|
|
765
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
766
|
+
}
|
|
767
|
+
return [3, 8];
|
|
768
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
769
|
+
case 3: throw _d.sent();
|
|
770
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
771
|
+
case 5: throw _d.sent();
|
|
772
|
+
case 6: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
773
|
+
case 7: throw _d.sent();
|
|
774
|
+
case 8:
|
|
775
|
+
parsedBody = parsedOutput.body;
|
|
776
|
+
throwDefaultError({
|
|
777
|
+
output: output,
|
|
778
|
+
parsedBody: parsedBody,
|
|
779
|
+
exceptionCtor: __BaseException,
|
|
780
|
+
errorCode: errorCode,
|
|
781
|
+
});
|
|
782
|
+
_d.label = 9;
|
|
783
|
+
case 9: return [2];
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
}); };
|
|
787
|
+
export var deserializeAws_json1_1DescribeRegistriesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
788
|
+
var data, contents, response;
|
|
789
|
+
return __generator(this, function (_a) {
|
|
790
|
+
switch (_a.label) {
|
|
791
|
+
case 0:
|
|
792
|
+
if (output.statusCode >= 300) {
|
|
793
|
+
return [2, deserializeAws_json1_1DescribeRegistriesCommandError(output, context)];
|
|
794
|
+
}
|
|
795
|
+
return [4, parseBody(output.body, context)];
|
|
796
|
+
case 1:
|
|
797
|
+
data = _a.sent();
|
|
798
|
+
contents = {};
|
|
799
|
+
contents = deserializeAws_json1_1DescribeRegistriesResponse(data, context);
|
|
800
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
801
|
+
return [2, Promise.resolve(response)];
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
}); };
|
|
805
|
+
var deserializeAws_json1_1DescribeRegistriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
806
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
807
|
+
var _c;
|
|
808
|
+
return __generator(this, function (_d) {
|
|
809
|
+
switch (_d.label) {
|
|
810
|
+
case 0:
|
|
811
|
+
_a = [__assign({}, output)];
|
|
812
|
+
_c = {};
|
|
813
|
+
return [4, parseErrorBody(output.body, context)];
|
|
814
|
+
case 1:
|
|
815
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
816
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
|
+
_b = errorCode;
|
|
818
|
+
switch (_b) {
|
|
819
|
+
case "InvalidParameterException": return [3, 2];
|
|
820
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
821
|
+
case "ServerException": return [3, 4];
|
|
822
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 4];
|
|
823
|
+
case "UnsupportedCommandException": return [3, 6];
|
|
824
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 6];
|
|
825
|
+
}
|
|
826
|
+
return [3, 8];
|
|
827
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
828
|
+
case 3: throw _d.sent();
|
|
829
|
+
case 4: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
830
|
+
case 5: throw _d.sent();
|
|
831
|
+
case 6: return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
832
|
+
case 7: throw _d.sent();
|
|
833
|
+
case 8:
|
|
834
|
+
parsedBody = parsedOutput.body;
|
|
835
|
+
throwDefaultError({
|
|
836
|
+
output: output,
|
|
837
|
+
parsedBody: parsedBody,
|
|
838
|
+
exceptionCtor: __BaseException,
|
|
839
|
+
errorCode: errorCode,
|
|
840
|
+
});
|
|
841
|
+
_d.label = 9;
|
|
842
|
+
case 9: return [2];
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
}); };
|
|
846
|
+
export var deserializeAws_json1_1DescribeRepositoriesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
847
|
+
var data, contents, response;
|
|
848
|
+
return __generator(this, function (_a) {
|
|
849
|
+
switch (_a.label) {
|
|
850
|
+
case 0:
|
|
851
|
+
if (output.statusCode >= 300) {
|
|
852
|
+
return [2, deserializeAws_json1_1DescribeRepositoriesCommandError(output, context)];
|
|
853
|
+
}
|
|
854
|
+
return [4, parseBody(output.body, context)];
|
|
855
|
+
case 1:
|
|
856
|
+
data = _a.sent();
|
|
857
|
+
contents = {};
|
|
858
|
+
contents = deserializeAws_json1_1DescribeRepositoriesResponse(data, context);
|
|
859
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
860
|
+
return [2, Promise.resolve(response)];
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
}); };
|
|
864
|
+
var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
865
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
866
|
+
var _c;
|
|
867
|
+
return __generator(this, function (_d) {
|
|
868
|
+
switch (_d.label) {
|
|
869
|
+
case 0:
|
|
870
|
+
_a = [__assign({}, output)];
|
|
871
|
+
_c = {};
|
|
872
|
+
return [4, parseErrorBody(output.body, context)];
|
|
873
|
+
case 1:
|
|
874
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
875
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
876
|
+
_b = errorCode;
|
|
877
|
+
switch (_b) {
|
|
878
|
+
case "InvalidParameterException": return [3, 2];
|
|
879
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
880
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
881
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
882
|
+
case "ServerException": return [3, 6];
|
|
883
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
884
|
+
}
|
|
885
|
+
return [3, 8];
|
|
886
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
887
|
+
case 3: throw _d.sent();
|
|
888
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
889
|
+
case 5: throw _d.sent();
|
|
890
|
+
case 6: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
891
|
+
case 7: throw _d.sent();
|
|
892
|
+
case 8:
|
|
893
|
+
parsedBody = parsedOutput.body;
|
|
894
|
+
throwDefaultError({
|
|
895
|
+
output: output,
|
|
896
|
+
parsedBody: parsedBody,
|
|
897
|
+
exceptionCtor: __BaseException,
|
|
898
|
+
errorCode: errorCode,
|
|
899
|
+
});
|
|
900
|
+
_d.label = 9;
|
|
901
|
+
case 9: return [2];
|
|
902
|
+
}
|
|
903
|
+
});
|
|
904
|
+
}); };
|
|
905
|
+
export var deserializeAws_json1_1GetAuthorizationTokenCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
906
|
+
var data, contents, response;
|
|
907
|
+
return __generator(this, function (_a) {
|
|
908
|
+
switch (_a.label) {
|
|
909
|
+
case 0:
|
|
910
|
+
if (output.statusCode >= 300) {
|
|
911
|
+
return [2, deserializeAws_json1_1GetAuthorizationTokenCommandError(output, context)];
|
|
912
|
+
}
|
|
913
|
+
return [4, parseBody(output.body, context)];
|
|
914
|
+
case 1:
|
|
915
|
+
data = _a.sent();
|
|
916
|
+
contents = {};
|
|
917
|
+
contents = deserializeAws_json1_1GetAuthorizationTokenResponse(data, context);
|
|
918
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
919
|
+
return [2, Promise.resolve(response)];
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
}); };
|
|
923
|
+
var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
924
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
925
|
+
var _c;
|
|
926
|
+
return __generator(this, function (_d) {
|
|
927
|
+
switch (_d.label) {
|
|
928
|
+
case 0:
|
|
929
|
+
_a = [__assign({}, output)];
|
|
930
|
+
_c = {};
|
|
931
|
+
return [4, parseErrorBody(output.body, context)];
|
|
932
|
+
case 1:
|
|
933
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
934
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
935
|
+
_b = errorCode;
|
|
936
|
+
switch (_b) {
|
|
937
|
+
case "InvalidParameterException": return [3, 2];
|
|
938
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
939
|
+
case "ServerException": return [3, 4];
|
|
940
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 4];
|
|
941
|
+
}
|
|
942
|
+
return [3, 6];
|
|
943
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
944
|
+
case 3: throw _d.sent();
|
|
945
|
+
case 4: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
946
|
+
case 5: throw _d.sent();
|
|
947
|
+
case 6:
|
|
948
|
+
parsedBody = parsedOutput.body;
|
|
949
|
+
throwDefaultError({
|
|
950
|
+
output: output,
|
|
951
|
+
parsedBody: parsedBody,
|
|
952
|
+
exceptionCtor: __BaseException,
|
|
953
|
+
errorCode: errorCode,
|
|
954
|
+
});
|
|
955
|
+
_d.label = 7;
|
|
956
|
+
case 7: return [2];
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
}); };
|
|
960
|
+
export var deserializeAws_json1_1GetRegistryCatalogDataCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
961
|
+
var data, contents, response;
|
|
962
|
+
return __generator(this, function (_a) {
|
|
963
|
+
switch (_a.label) {
|
|
964
|
+
case 0:
|
|
965
|
+
if (output.statusCode >= 300) {
|
|
966
|
+
return [2, deserializeAws_json1_1GetRegistryCatalogDataCommandError(output, context)];
|
|
967
|
+
}
|
|
968
|
+
return [4, parseBody(output.body, context)];
|
|
969
|
+
case 1:
|
|
970
|
+
data = _a.sent();
|
|
971
|
+
contents = {};
|
|
972
|
+
contents = deserializeAws_json1_1GetRegistryCatalogDataResponse(data, context);
|
|
973
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
974
|
+
return [2, Promise.resolve(response)];
|
|
975
|
+
}
|
|
976
|
+
});
|
|
977
|
+
}); };
|
|
978
|
+
var deserializeAws_json1_1GetRegistryCatalogDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
979
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
980
|
+
var _c;
|
|
981
|
+
return __generator(this, function (_d) {
|
|
982
|
+
switch (_d.label) {
|
|
983
|
+
case 0:
|
|
984
|
+
_a = [__assign({}, output)];
|
|
985
|
+
_c = {};
|
|
986
|
+
return [4, parseErrorBody(output.body, context)];
|
|
987
|
+
case 1:
|
|
988
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
989
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
|
+
_b = errorCode;
|
|
991
|
+
switch (_b) {
|
|
992
|
+
case "ServerException": return [3, 2];
|
|
993
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 2];
|
|
994
|
+
case "UnsupportedCommandException": return [3, 4];
|
|
995
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 4];
|
|
996
|
+
}
|
|
997
|
+
return [3, 6];
|
|
998
|
+
case 2: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
999
|
+
case 3: throw _d.sent();
|
|
1000
|
+
case 4: return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1001
|
+
case 5: throw _d.sent();
|
|
1002
|
+
case 6:
|
|
1003
|
+
parsedBody = parsedOutput.body;
|
|
1004
|
+
throwDefaultError({
|
|
1005
|
+
output: output,
|
|
1006
|
+
parsedBody: parsedBody,
|
|
1007
|
+
exceptionCtor: __BaseException,
|
|
1008
|
+
errorCode: errorCode,
|
|
1009
|
+
});
|
|
1010
|
+
_d.label = 7;
|
|
1011
|
+
case 7: return [2];
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
}); };
|
|
1015
|
+
export var deserializeAws_json1_1GetRepositoryCatalogDataCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1016
|
+
var data, contents, response;
|
|
1017
|
+
return __generator(this, function (_a) {
|
|
1018
|
+
switch (_a.label) {
|
|
1019
|
+
case 0:
|
|
1020
|
+
if (output.statusCode >= 300) {
|
|
1021
|
+
return [2, deserializeAws_json1_1GetRepositoryCatalogDataCommandError(output, context)];
|
|
1022
|
+
}
|
|
1023
|
+
return [4, parseBody(output.body, context)];
|
|
1024
|
+
case 1:
|
|
1025
|
+
data = _a.sent();
|
|
1026
|
+
contents = {};
|
|
1027
|
+
contents = deserializeAws_json1_1GetRepositoryCatalogDataResponse(data, context);
|
|
1028
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1029
|
+
return [2, Promise.resolve(response)];
|
|
1030
|
+
}
|
|
1031
|
+
});
|
|
1032
|
+
}); };
|
|
1033
|
+
var deserializeAws_json1_1GetRepositoryCatalogDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1034
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1035
|
+
var _c;
|
|
1036
|
+
return __generator(this, function (_d) {
|
|
1037
|
+
switch (_d.label) {
|
|
1038
|
+
case 0:
|
|
1039
|
+
_a = [__assign({}, output)];
|
|
1040
|
+
_c = {};
|
|
1041
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1042
|
+
case 1:
|
|
1043
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1044
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1045
|
+
_b = errorCode;
|
|
1046
|
+
switch (_b) {
|
|
1047
|
+
case "InvalidParameterException": return [3, 2];
|
|
1048
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1049
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1050
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1051
|
+
case "ServerException": return [3, 6];
|
|
1052
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
1053
|
+
}
|
|
1054
|
+
return [3, 8];
|
|
1055
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1056
|
+
case 3: throw _d.sent();
|
|
1057
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1058
|
+
case 5: throw _d.sent();
|
|
1059
|
+
case 6: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1060
|
+
case 7: throw _d.sent();
|
|
1061
|
+
case 8:
|
|
1062
|
+
parsedBody = parsedOutput.body;
|
|
1063
|
+
throwDefaultError({
|
|
1064
|
+
output: output,
|
|
1065
|
+
parsedBody: parsedBody,
|
|
1066
|
+
exceptionCtor: __BaseException,
|
|
1067
|
+
errorCode: errorCode,
|
|
1068
|
+
});
|
|
1069
|
+
_d.label = 9;
|
|
1070
|
+
case 9: return [2];
|
|
1071
|
+
}
|
|
1072
|
+
});
|
|
1073
|
+
}); };
|
|
1074
|
+
export var deserializeAws_json1_1GetRepositoryPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1075
|
+
var data, contents, response;
|
|
1076
|
+
return __generator(this, function (_a) {
|
|
1077
|
+
switch (_a.label) {
|
|
1078
|
+
case 0:
|
|
1079
|
+
if (output.statusCode >= 300) {
|
|
1080
|
+
return [2, deserializeAws_json1_1GetRepositoryPolicyCommandError(output, context)];
|
|
1081
|
+
}
|
|
1082
|
+
return [4, parseBody(output.body, context)];
|
|
1083
|
+
case 1:
|
|
1084
|
+
data = _a.sent();
|
|
1085
|
+
contents = {};
|
|
1086
|
+
contents = deserializeAws_json1_1GetRepositoryPolicyResponse(data, context);
|
|
1087
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1088
|
+
return [2, Promise.resolve(response)];
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
}); };
|
|
1092
|
+
var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1093
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1094
|
+
var _c;
|
|
1095
|
+
return __generator(this, function (_d) {
|
|
1096
|
+
switch (_d.label) {
|
|
1097
|
+
case 0:
|
|
1098
|
+
_a = [__assign({}, output)];
|
|
1099
|
+
_c = {};
|
|
1100
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1101
|
+
case 1:
|
|
1102
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1103
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
+
_b = errorCode;
|
|
1105
|
+
switch (_b) {
|
|
1106
|
+
case "InvalidParameterException": return [3, 2];
|
|
1107
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1108
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1109
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1110
|
+
case "RepositoryPolicyNotFoundException": return [3, 6];
|
|
1111
|
+
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException": return [3, 6];
|
|
1112
|
+
case "ServerException": return [3, 8];
|
|
1113
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
1114
|
+
}
|
|
1115
|
+
return [3, 10];
|
|
1116
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1117
|
+
case 3: throw _d.sent();
|
|
1118
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1119
|
+
case 5: throw _d.sent();
|
|
1120
|
+
case 6: return [4, deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)];
|
|
1121
|
+
case 7: throw _d.sent();
|
|
1122
|
+
case 8: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1123
|
+
case 9: throw _d.sent();
|
|
1124
|
+
case 10:
|
|
1125
|
+
parsedBody = parsedOutput.body;
|
|
1126
|
+
throwDefaultError({
|
|
1127
|
+
output: output,
|
|
1128
|
+
parsedBody: parsedBody,
|
|
1129
|
+
exceptionCtor: __BaseException,
|
|
1130
|
+
errorCode: errorCode,
|
|
1131
|
+
});
|
|
1132
|
+
_d.label = 11;
|
|
1133
|
+
case 11: return [2];
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
}); };
|
|
1137
|
+
export var deserializeAws_json1_1InitiateLayerUploadCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1138
|
+
var data, contents, response;
|
|
1139
|
+
return __generator(this, function (_a) {
|
|
1140
|
+
switch (_a.label) {
|
|
1141
|
+
case 0:
|
|
1142
|
+
if (output.statusCode >= 300) {
|
|
1143
|
+
return [2, deserializeAws_json1_1InitiateLayerUploadCommandError(output, context)];
|
|
1144
|
+
}
|
|
1145
|
+
return [4, parseBody(output.body, context)];
|
|
1146
|
+
case 1:
|
|
1147
|
+
data = _a.sent();
|
|
1148
|
+
contents = {};
|
|
1149
|
+
contents = deserializeAws_json1_1InitiateLayerUploadResponse(data, context);
|
|
1150
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1151
|
+
return [2, Promise.resolve(response)];
|
|
1152
|
+
}
|
|
1153
|
+
});
|
|
1154
|
+
}); };
|
|
1155
|
+
var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1156
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1157
|
+
var _c;
|
|
1158
|
+
return __generator(this, function (_d) {
|
|
1159
|
+
switch (_d.label) {
|
|
1160
|
+
case 0:
|
|
1161
|
+
_a = [__assign({}, output)];
|
|
1162
|
+
_c = {};
|
|
1163
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1164
|
+
case 1:
|
|
1165
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1166
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1167
|
+
_b = errorCode;
|
|
1168
|
+
switch (_b) {
|
|
1169
|
+
case "InvalidParameterException": return [3, 2];
|
|
1170
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1171
|
+
case "RegistryNotFoundException": return [3, 4];
|
|
1172
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 4];
|
|
1173
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1174
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
1175
|
+
case "ServerException": return [3, 8];
|
|
1176
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
1177
|
+
case "UnsupportedCommandException": return [3, 10];
|
|
1178
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 10];
|
|
1179
|
+
}
|
|
1180
|
+
return [3, 12];
|
|
1181
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1182
|
+
case 3: throw _d.sent();
|
|
1183
|
+
case 4: return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1184
|
+
case 5: throw _d.sent();
|
|
1185
|
+
case 6: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1186
|
+
case 7: throw _d.sent();
|
|
1187
|
+
case 8: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1188
|
+
case 9: throw _d.sent();
|
|
1189
|
+
case 10: return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1190
|
+
case 11: throw _d.sent();
|
|
1191
|
+
case 12:
|
|
1192
|
+
parsedBody = parsedOutput.body;
|
|
1193
|
+
throwDefaultError({
|
|
1194
|
+
output: output,
|
|
1195
|
+
parsedBody: parsedBody,
|
|
1196
|
+
exceptionCtor: __BaseException,
|
|
1197
|
+
errorCode: errorCode,
|
|
1198
|
+
});
|
|
1199
|
+
_d.label = 13;
|
|
1200
|
+
case 13: return [2];
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1203
|
+
}); };
|
|
1204
|
+
export var deserializeAws_json1_1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1205
|
+
var data, contents, response;
|
|
1206
|
+
return __generator(this, function (_a) {
|
|
1207
|
+
switch (_a.label) {
|
|
1208
|
+
case 0:
|
|
1209
|
+
if (output.statusCode >= 300) {
|
|
1210
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1211
|
+
}
|
|
1212
|
+
return [4, parseBody(output.body, context)];
|
|
1213
|
+
case 1:
|
|
1214
|
+
data = _a.sent();
|
|
1215
|
+
contents = {};
|
|
1216
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1217
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1218
|
+
return [2, Promise.resolve(response)];
|
|
1219
|
+
}
|
|
1220
|
+
});
|
|
1221
|
+
}); };
|
|
1222
|
+
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1223
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1224
|
+
var _c;
|
|
1225
|
+
return __generator(this, function (_d) {
|
|
1226
|
+
switch (_d.label) {
|
|
1227
|
+
case 0:
|
|
1228
|
+
_a = [__assign({}, output)];
|
|
1229
|
+
_c = {};
|
|
1230
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1231
|
+
case 1:
|
|
1232
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1233
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
|
+
_b = errorCode;
|
|
1235
|
+
switch (_b) {
|
|
1236
|
+
case "InvalidParameterException": return [3, 2];
|
|
1237
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1238
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1239
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1240
|
+
case "ServerException": return [3, 6];
|
|
1241
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
1242
|
+
}
|
|
1243
|
+
return [3, 8];
|
|
1244
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1245
|
+
case 3: throw _d.sent();
|
|
1246
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1247
|
+
case 5: throw _d.sent();
|
|
1248
|
+
case 6: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1249
|
+
case 7: throw _d.sent();
|
|
1250
|
+
case 8:
|
|
1251
|
+
parsedBody = parsedOutput.body;
|
|
1252
|
+
throwDefaultError({
|
|
1253
|
+
output: output,
|
|
1254
|
+
parsedBody: parsedBody,
|
|
1255
|
+
exceptionCtor: __BaseException,
|
|
1256
|
+
errorCode: errorCode,
|
|
1257
|
+
});
|
|
1258
|
+
_d.label = 9;
|
|
1259
|
+
case 9: return [2];
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
}); };
|
|
1263
|
+
export var deserializeAws_json1_1PutImageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1264
|
+
var data, contents, response;
|
|
1265
|
+
return __generator(this, function (_a) {
|
|
1266
|
+
switch (_a.label) {
|
|
1267
|
+
case 0:
|
|
1268
|
+
if (output.statusCode >= 300) {
|
|
1269
|
+
return [2, deserializeAws_json1_1PutImageCommandError(output, context)];
|
|
1270
|
+
}
|
|
1271
|
+
return [4, parseBody(output.body, context)];
|
|
1272
|
+
case 1:
|
|
1273
|
+
data = _a.sent();
|
|
1274
|
+
contents = {};
|
|
1275
|
+
contents = deserializeAws_json1_1PutImageResponse(data, context);
|
|
1276
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1277
|
+
return [2, Promise.resolve(response)];
|
|
1278
|
+
}
|
|
1279
|
+
});
|
|
1280
|
+
}); };
|
|
1281
|
+
var deserializeAws_json1_1PutImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1282
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1283
|
+
var _c;
|
|
1284
|
+
return __generator(this, function (_d) {
|
|
1285
|
+
switch (_d.label) {
|
|
1286
|
+
case 0:
|
|
1287
|
+
_a = [__assign({}, output)];
|
|
1288
|
+
_c = {};
|
|
1289
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1290
|
+
case 1:
|
|
1291
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1292
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
|
+
_b = errorCode;
|
|
1294
|
+
switch (_b) {
|
|
1295
|
+
case "ImageAlreadyExistsException": return [3, 2];
|
|
1296
|
+
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException": return [3, 2];
|
|
1297
|
+
case "ImageDigestDoesNotMatchException": return [3, 4];
|
|
1298
|
+
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException": return [3, 4];
|
|
1299
|
+
case "ImageTagAlreadyExistsException": return [3, 6];
|
|
1300
|
+
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException": return [3, 6];
|
|
1301
|
+
case "InvalidParameterException": return [3, 8];
|
|
1302
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 8];
|
|
1303
|
+
case "LayersNotFoundException": return [3, 10];
|
|
1304
|
+
case "com.amazonaws.ecrpublic#LayersNotFoundException": return [3, 10];
|
|
1305
|
+
case "LimitExceededException": return [3, 12];
|
|
1306
|
+
case "com.amazonaws.ecrpublic#LimitExceededException": return [3, 12];
|
|
1307
|
+
case "ReferencedImagesNotFoundException": return [3, 14];
|
|
1308
|
+
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException": return [3, 14];
|
|
1309
|
+
case "RegistryNotFoundException": return [3, 16];
|
|
1310
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 16];
|
|
1311
|
+
case "RepositoryNotFoundException": return [3, 18];
|
|
1312
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 18];
|
|
1313
|
+
case "ServerException": return [3, 20];
|
|
1314
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 20];
|
|
1315
|
+
case "UnsupportedCommandException": return [3, 22];
|
|
1316
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 22];
|
|
1317
|
+
}
|
|
1318
|
+
return [3, 24];
|
|
1319
|
+
case 2: return [4, deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1320
|
+
case 3: throw _d.sent();
|
|
1321
|
+
case 4: return [4, deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context)];
|
|
1322
|
+
case 5: throw _d.sent();
|
|
1323
|
+
case 6: return [4, deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1324
|
+
case 7: throw _d.sent();
|
|
1325
|
+
case 8: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1326
|
+
case 9: throw _d.sent();
|
|
1327
|
+
case 10: return [4, deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)];
|
|
1328
|
+
case 11: throw _d.sent();
|
|
1329
|
+
case 12: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1330
|
+
case 13: throw _d.sent();
|
|
1331
|
+
case 14: return [4, deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context)];
|
|
1332
|
+
case 15: throw _d.sent();
|
|
1333
|
+
case 16: return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1334
|
+
case 17: throw _d.sent();
|
|
1335
|
+
case 18: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1336
|
+
case 19: throw _d.sent();
|
|
1337
|
+
case 20: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1338
|
+
case 21: throw _d.sent();
|
|
1339
|
+
case 22: return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1340
|
+
case 23: throw _d.sent();
|
|
1341
|
+
case 24:
|
|
1342
|
+
parsedBody = parsedOutput.body;
|
|
1343
|
+
throwDefaultError({
|
|
1344
|
+
output: output,
|
|
1345
|
+
parsedBody: parsedBody,
|
|
1346
|
+
exceptionCtor: __BaseException,
|
|
1347
|
+
errorCode: errorCode,
|
|
1348
|
+
});
|
|
1349
|
+
_d.label = 25;
|
|
1350
|
+
case 25: return [2];
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
}); };
|
|
1354
|
+
export var deserializeAws_json1_1PutRegistryCatalogDataCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1355
|
+
var data, contents, response;
|
|
1356
|
+
return __generator(this, function (_a) {
|
|
1357
|
+
switch (_a.label) {
|
|
1358
|
+
case 0:
|
|
1359
|
+
if (output.statusCode >= 300) {
|
|
1360
|
+
return [2, deserializeAws_json1_1PutRegistryCatalogDataCommandError(output, context)];
|
|
1361
|
+
}
|
|
1362
|
+
return [4, parseBody(output.body, context)];
|
|
1363
|
+
case 1:
|
|
1364
|
+
data = _a.sent();
|
|
1365
|
+
contents = {};
|
|
1366
|
+
contents = deserializeAws_json1_1PutRegistryCatalogDataResponse(data, context);
|
|
1367
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1368
|
+
return [2, Promise.resolve(response)];
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1371
|
+
}); };
|
|
1372
|
+
var deserializeAws_json1_1PutRegistryCatalogDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1373
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1374
|
+
var _c;
|
|
1375
|
+
return __generator(this, function (_d) {
|
|
1376
|
+
switch (_d.label) {
|
|
1377
|
+
case 0:
|
|
1378
|
+
_a = [__assign({}, output)];
|
|
1379
|
+
_c = {};
|
|
1380
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1381
|
+
case 1:
|
|
1382
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1383
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1384
|
+
_b = errorCode;
|
|
1385
|
+
switch (_b) {
|
|
1386
|
+
case "InvalidParameterException": return [3, 2];
|
|
1387
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1388
|
+
case "ServerException": return [3, 4];
|
|
1389
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 4];
|
|
1390
|
+
case "UnsupportedCommandException": return [3, 6];
|
|
1391
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 6];
|
|
1392
|
+
}
|
|
1393
|
+
return [3, 8];
|
|
1394
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1395
|
+
case 3: throw _d.sent();
|
|
1396
|
+
case 4: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1397
|
+
case 5: throw _d.sent();
|
|
1398
|
+
case 6: return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1399
|
+
case 7: throw _d.sent();
|
|
1400
|
+
case 8:
|
|
1401
|
+
parsedBody = parsedOutput.body;
|
|
1402
|
+
throwDefaultError({
|
|
1403
|
+
output: output,
|
|
1404
|
+
parsedBody: parsedBody,
|
|
1405
|
+
exceptionCtor: __BaseException,
|
|
1406
|
+
errorCode: errorCode,
|
|
1407
|
+
});
|
|
1408
|
+
_d.label = 9;
|
|
1409
|
+
case 9: return [2];
|
|
1410
|
+
}
|
|
1411
|
+
});
|
|
1412
|
+
}); };
|
|
1413
|
+
export var deserializeAws_json1_1PutRepositoryCatalogDataCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1414
|
+
var data, contents, response;
|
|
1415
|
+
return __generator(this, function (_a) {
|
|
1416
|
+
switch (_a.label) {
|
|
1417
|
+
case 0:
|
|
1418
|
+
if (output.statusCode >= 300) {
|
|
1419
|
+
return [2, deserializeAws_json1_1PutRepositoryCatalogDataCommandError(output, context)];
|
|
1420
|
+
}
|
|
1421
|
+
return [4, parseBody(output.body, context)];
|
|
1422
|
+
case 1:
|
|
1423
|
+
data = _a.sent();
|
|
1424
|
+
contents = {};
|
|
1425
|
+
contents = deserializeAws_json1_1PutRepositoryCatalogDataResponse(data, context);
|
|
1426
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1427
|
+
return [2, Promise.resolve(response)];
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
}); };
|
|
1431
|
+
var deserializeAws_json1_1PutRepositoryCatalogDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1432
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1433
|
+
var _c;
|
|
1434
|
+
return __generator(this, function (_d) {
|
|
1435
|
+
switch (_d.label) {
|
|
1436
|
+
case 0:
|
|
1437
|
+
_a = [__assign({}, output)];
|
|
1438
|
+
_c = {};
|
|
1439
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1440
|
+
case 1:
|
|
1441
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1442
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
+
_b = errorCode;
|
|
1444
|
+
switch (_b) {
|
|
1445
|
+
case "InvalidParameterException": return [3, 2];
|
|
1446
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1447
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1448
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1449
|
+
case "ServerException": return [3, 6];
|
|
1450
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
1451
|
+
}
|
|
1452
|
+
return [3, 8];
|
|
1453
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1454
|
+
case 3: throw _d.sent();
|
|
1455
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1456
|
+
case 5: throw _d.sent();
|
|
1457
|
+
case 6: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1458
|
+
case 7: throw _d.sent();
|
|
1459
|
+
case 8:
|
|
1460
|
+
parsedBody = parsedOutput.body;
|
|
1461
|
+
throwDefaultError({
|
|
1462
|
+
output: output,
|
|
1463
|
+
parsedBody: parsedBody,
|
|
1464
|
+
exceptionCtor: __BaseException,
|
|
1465
|
+
errorCode: errorCode,
|
|
1466
|
+
});
|
|
1467
|
+
_d.label = 9;
|
|
1468
|
+
case 9: return [2];
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
}); };
|
|
1472
|
+
export var deserializeAws_json1_1SetRepositoryPolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1473
|
+
var data, contents, response;
|
|
1474
|
+
return __generator(this, function (_a) {
|
|
1475
|
+
switch (_a.label) {
|
|
1476
|
+
case 0:
|
|
1477
|
+
if (output.statusCode >= 300) {
|
|
1478
|
+
return [2, deserializeAws_json1_1SetRepositoryPolicyCommandError(output, context)];
|
|
1479
|
+
}
|
|
1480
|
+
return [4, parseBody(output.body, context)];
|
|
1481
|
+
case 1:
|
|
1482
|
+
data = _a.sent();
|
|
1483
|
+
contents = {};
|
|
1484
|
+
contents = deserializeAws_json1_1SetRepositoryPolicyResponse(data, context);
|
|
1485
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1486
|
+
return [2, Promise.resolve(response)];
|
|
1487
|
+
}
|
|
1488
|
+
});
|
|
1489
|
+
}); };
|
|
1490
|
+
var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1491
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1492
|
+
var _c;
|
|
1493
|
+
return __generator(this, function (_d) {
|
|
1494
|
+
switch (_d.label) {
|
|
1495
|
+
case 0:
|
|
1496
|
+
_a = [__assign({}, output)];
|
|
1497
|
+
_c = {};
|
|
1498
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1499
|
+
case 1:
|
|
1500
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1501
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
+
_b = errorCode;
|
|
1503
|
+
switch (_b) {
|
|
1504
|
+
case "InvalidParameterException": return [3, 2];
|
|
1505
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1506
|
+
case "RepositoryNotFoundException": return [3, 4];
|
|
1507
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 4];
|
|
1508
|
+
case "ServerException": return [3, 6];
|
|
1509
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 6];
|
|
1510
|
+
}
|
|
1511
|
+
return [3, 8];
|
|
1512
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1513
|
+
case 3: throw _d.sent();
|
|
1514
|
+
case 4: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1515
|
+
case 5: throw _d.sent();
|
|
1516
|
+
case 6: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1517
|
+
case 7: throw _d.sent();
|
|
1518
|
+
case 8:
|
|
1519
|
+
parsedBody = parsedOutput.body;
|
|
1520
|
+
throwDefaultError({
|
|
1521
|
+
output: output,
|
|
1522
|
+
parsedBody: parsedBody,
|
|
1523
|
+
exceptionCtor: __BaseException,
|
|
1524
|
+
errorCode: errorCode,
|
|
1525
|
+
});
|
|
1526
|
+
_d.label = 9;
|
|
1527
|
+
case 9: return [2];
|
|
1528
|
+
}
|
|
1529
|
+
});
|
|
1530
|
+
}); };
|
|
1531
|
+
export var deserializeAws_json1_1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1532
|
+
var data, contents, response;
|
|
1533
|
+
return __generator(this, function (_a) {
|
|
1534
|
+
switch (_a.label) {
|
|
1535
|
+
case 0:
|
|
1536
|
+
if (output.statusCode >= 300) {
|
|
1537
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
1538
|
+
}
|
|
1539
|
+
return [4, parseBody(output.body, context)];
|
|
1540
|
+
case 1:
|
|
1541
|
+
data = _a.sent();
|
|
1542
|
+
contents = {};
|
|
1543
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1544
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1545
|
+
return [2, Promise.resolve(response)];
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1548
|
+
}); };
|
|
1549
|
+
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1550
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1551
|
+
var _c;
|
|
1552
|
+
return __generator(this, function (_d) {
|
|
1553
|
+
switch (_d.label) {
|
|
1554
|
+
case 0:
|
|
1555
|
+
_a = [__assign({}, output)];
|
|
1556
|
+
_c = {};
|
|
1557
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1558
|
+
case 1:
|
|
1559
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1560
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1561
|
+
_b = errorCode;
|
|
1562
|
+
switch (_b) {
|
|
1563
|
+
case "InvalidParameterException": return [3, 2];
|
|
1564
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1565
|
+
case "InvalidTagParameterException": return [3, 4];
|
|
1566
|
+
case "com.amazonaws.ecrpublic#InvalidTagParameterException": return [3, 4];
|
|
1567
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1568
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
1569
|
+
case "ServerException": return [3, 8];
|
|
1570
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
1571
|
+
case "TooManyTagsException": return [3, 10];
|
|
1572
|
+
case "com.amazonaws.ecrpublic#TooManyTagsException": return [3, 10];
|
|
1573
|
+
}
|
|
1574
|
+
return [3, 12];
|
|
1575
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1576
|
+
case 3: throw _d.sent();
|
|
1577
|
+
case 4: return [4, deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)];
|
|
1578
|
+
case 5: throw _d.sent();
|
|
1579
|
+
case 6: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1580
|
+
case 7: throw _d.sent();
|
|
1581
|
+
case 8: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1582
|
+
case 9: throw _d.sent();
|
|
1583
|
+
case 10: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1584
|
+
case 11: throw _d.sent();
|
|
1585
|
+
case 12:
|
|
1586
|
+
parsedBody = parsedOutput.body;
|
|
1587
|
+
throwDefaultError({
|
|
1588
|
+
output: output,
|
|
1589
|
+
parsedBody: parsedBody,
|
|
1590
|
+
exceptionCtor: __BaseException,
|
|
1591
|
+
errorCode: errorCode,
|
|
1592
|
+
});
|
|
1593
|
+
_d.label = 13;
|
|
1594
|
+
case 13: return [2];
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
}); };
|
|
1598
|
+
export var deserializeAws_json1_1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1599
|
+
var data, contents, response;
|
|
1600
|
+
return __generator(this, function (_a) {
|
|
1601
|
+
switch (_a.label) {
|
|
1602
|
+
case 0:
|
|
1603
|
+
if (output.statusCode >= 300) {
|
|
1604
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
1605
|
+
}
|
|
1606
|
+
return [4, parseBody(output.body, context)];
|
|
1607
|
+
case 1:
|
|
1608
|
+
data = _a.sent();
|
|
1609
|
+
contents = {};
|
|
1610
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1611
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1612
|
+
return [2, Promise.resolve(response)];
|
|
1613
|
+
}
|
|
1614
|
+
});
|
|
1615
|
+
}); };
|
|
1616
|
+
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1617
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1618
|
+
var _c;
|
|
1619
|
+
return __generator(this, function (_d) {
|
|
1620
|
+
switch (_d.label) {
|
|
1621
|
+
case 0:
|
|
1622
|
+
_a = [__assign({}, output)];
|
|
1623
|
+
_c = {};
|
|
1624
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1625
|
+
case 1:
|
|
1626
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1627
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
+
_b = errorCode;
|
|
1629
|
+
switch (_b) {
|
|
1630
|
+
case "InvalidParameterException": return [3, 2];
|
|
1631
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 2];
|
|
1632
|
+
case "InvalidTagParameterException": return [3, 4];
|
|
1633
|
+
case "com.amazonaws.ecrpublic#InvalidTagParameterException": return [3, 4];
|
|
1634
|
+
case "RepositoryNotFoundException": return [3, 6];
|
|
1635
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 6];
|
|
1636
|
+
case "ServerException": return [3, 8];
|
|
1637
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 8];
|
|
1638
|
+
case "TooManyTagsException": return [3, 10];
|
|
1639
|
+
case "com.amazonaws.ecrpublic#TooManyTagsException": return [3, 10];
|
|
1640
|
+
}
|
|
1641
|
+
return [3, 12];
|
|
1642
|
+
case 2: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1643
|
+
case 3: throw _d.sent();
|
|
1644
|
+
case 4: return [4, deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)];
|
|
1645
|
+
case 5: throw _d.sent();
|
|
1646
|
+
case 6: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1647
|
+
case 7: throw _d.sent();
|
|
1648
|
+
case 8: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1649
|
+
case 9: throw _d.sent();
|
|
1650
|
+
case 10: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1651
|
+
case 11: throw _d.sent();
|
|
1652
|
+
case 12:
|
|
1653
|
+
parsedBody = parsedOutput.body;
|
|
1654
|
+
throwDefaultError({
|
|
1655
|
+
output: output,
|
|
1656
|
+
parsedBody: parsedBody,
|
|
1657
|
+
exceptionCtor: __BaseException,
|
|
1658
|
+
errorCode: errorCode,
|
|
1659
|
+
});
|
|
1660
|
+
_d.label = 13;
|
|
1661
|
+
case 13: return [2];
|
|
1662
|
+
}
|
|
1663
|
+
});
|
|
1664
|
+
}); };
|
|
1665
|
+
export var deserializeAws_json1_1UploadLayerPartCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1666
|
+
var data, contents, response;
|
|
1667
|
+
return __generator(this, function (_a) {
|
|
1668
|
+
switch (_a.label) {
|
|
1669
|
+
case 0:
|
|
1670
|
+
if (output.statusCode >= 300) {
|
|
1671
|
+
return [2, deserializeAws_json1_1UploadLayerPartCommandError(output, context)];
|
|
1672
|
+
}
|
|
1673
|
+
return [4, parseBody(output.body, context)];
|
|
1674
|
+
case 1:
|
|
1675
|
+
data = _a.sent();
|
|
1676
|
+
contents = {};
|
|
1677
|
+
contents = deserializeAws_json1_1UploadLayerPartResponse(data, context);
|
|
1678
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1679
|
+
return [2, Promise.resolve(response)];
|
|
1680
|
+
}
|
|
1681
|
+
});
|
|
1682
|
+
}); };
|
|
1683
|
+
var deserializeAws_json1_1UploadLayerPartCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1684
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1685
|
+
var _c;
|
|
1686
|
+
return __generator(this, function (_d) {
|
|
1687
|
+
switch (_d.label) {
|
|
1688
|
+
case 0:
|
|
1689
|
+
_a = [__assign({}, output)];
|
|
1690
|
+
_c = {};
|
|
1691
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1692
|
+
case 1:
|
|
1693
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1694
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
|
+
_b = errorCode;
|
|
1696
|
+
switch (_b) {
|
|
1697
|
+
case "InvalidLayerPartException": return [3, 2];
|
|
1698
|
+
case "com.amazonaws.ecrpublic#InvalidLayerPartException": return [3, 2];
|
|
1699
|
+
case "InvalidParameterException": return [3, 4];
|
|
1700
|
+
case "com.amazonaws.ecrpublic#InvalidParameterException": return [3, 4];
|
|
1701
|
+
case "LimitExceededException": return [3, 6];
|
|
1702
|
+
case "com.amazonaws.ecrpublic#LimitExceededException": return [3, 6];
|
|
1703
|
+
case "RegistryNotFoundException": return [3, 8];
|
|
1704
|
+
case "com.amazonaws.ecrpublic#RegistryNotFoundException": return [3, 8];
|
|
1705
|
+
case "RepositoryNotFoundException": return [3, 10];
|
|
1706
|
+
case "com.amazonaws.ecrpublic#RepositoryNotFoundException": return [3, 10];
|
|
1707
|
+
case "ServerException": return [3, 12];
|
|
1708
|
+
case "com.amazonaws.ecrpublic#ServerException": return [3, 12];
|
|
1709
|
+
case "UnsupportedCommandException": return [3, 14];
|
|
1710
|
+
case "com.amazonaws.ecrpublic#UnsupportedCommandException": return [3, 14];
|
|
1711
|
+
case "UploadNotFoundException": return [3, 16];
|
|
1712
|
+
case "com.amazonaws.ecrpublic#UploadNotFoundException": return [3, 16];
|
|
1713
|
+
}
|
|
1714
|
+
return [3, 18];
|
|
1715
|
+
case 2: return [4, deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context)];
|
|
1716
|
+
case 3: throw _d.sent();
|
|
1717
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1718
|
+
case 5: throw _d.sent();
|
|
1719
|
+
case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1720
|
+
case 7: throw _d.sent();
|
|
1721
|
+
case 8: return [4, deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1722
|
+
case 9: throw _d.sent();
|
|
1723
|
+
case 10: return [4, deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)];
|
|
1724
|
+
case 11: throw _d.sent();
|
|
1725
|
+
case 12: return [4, deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)];
|
|
1726
|
+
case 13: throw _d.sent();
|
|
1727
|
+
case 14: return [4, deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)];
|
|
1728
|
+
case 15: throw _d.sent();
|
|
1729
|
+
case 16: return [4, deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)];
|
|
1730
|
+
case 17: throw _d.sent();
|
|
1731
|
+
case 18:
|
|
1732
|
+
parsedBody = parsedOutput.body;
|
|
1733
|
+
throwDefaultError({
|
|
1734
|
+
output: output,
|
|
1735
|
+
parsedBody: parsedBody,
|
|
1736
|
+
exceptionCtor: __BaseException,
|
|
1737
|
+
errorCode: errorCode,
|
|
1738
|
+
});
|
|
1739
|
+
_d.label = 19;
|
|
1740
|
+
case 19: return [2];
|
|
1741
|
+
}
|
|
1742
|
+
});
|
|
1743
|
+
}); };
|
|
1744
|
+
var deserializeAws_json1_1EmptyUploadExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1745
|
+
var body, deserialized, exception;
|
|
1746
|
+
return __generator(this, function (_a) {
|
|
1747
|
+
body = parsedOutput.body;
|
|
1748
|
+
deserialized = deserializeAws_json1_1EmptyUploadException(body, context);
|
|
1749
|
+
exception = new EmptyUploadException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1750
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1751
|
+
});
|
|
1752
|
+
}); };
|
|
1753
|
+
var deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1754
|
+
var body, deserialized, exception;
|
|
1755
|
+
return __generator(this, function (_a) {
|
|
1756
|
+
body = parsedOutput.body;
|
|
1757
|
+
deserialized = deserializeAws_json1_1ImageAlreadyExistsException(body, context);
|
|
1758
|
+
exception = new ImageAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1759
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1760
|
+
});
|
|
1761
|
+
}); };
|
|
1762
|
+
var deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1763
|
+
var body, deserialized, exception;
|
|
1764
|
+
return __generator(this, function (_a) {
|
|
1765
|
+
body = parsedOutput.body;
|
|
1766
|
+
deserialized = deserializeAws_json1_1ImageDigestDoesNotMatchException(body, context);
|
|
1767
|
+
exception = new ImageDigestDoesNotMatchException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1768
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1769
|
+
});
|
|
1770
|
+
}); };
|
|
1771
|
+
var deserializeAws_json1_1ImageNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1772
|
+
var body, deserialized, exception;
|
|
1773
|
+
return __generator(this, function (_a) {
|
|
1774
|
+
body = parsedOutput.body;
|
|
1775
|
+
deserialized = deserializeAws_json1_1ImageNotFoundException(body, context);
|
|
1776
|
+
exception = new ImageNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1777
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1778
|
+
});
|
|
1779
|
+
}); };
|
|
1780
|
+
var deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1781
|
+
var body, deserialized, exception;
|
|
1782
|
+
return __generator(this, function (_a) {
|
|
1783
|
+
body = parsedOutput.body;
|
|
1784
|
+
deserialized = deserializeAws_json1_1ImageTagAlreadyExistsException(body, context);
|
|
1785
|
+
exception = new ImageTagAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1786
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1787
|
+
});
|
|
1788
|
+
}); };
|
|
1789
|
+
var deserializeAws_json1_1InvalidLayerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1790
|
+
var body, deserialized, exception;
|
|
1791
|
+
return __generator(this, function (_a) {
|
|
1792
|
+
body = parsedOutput.body;
|
|
1793
|
+
deserialized = deserializeAws_json1_1InvalidLayerException(body, context);
|
|
1794
|
+
exception = new InvalidLayerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1795
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1796
|
+
});
|
|
1797
|
+
}); };
|
|
1798
|
+
var deserializeAws_json1_1InvalidLayerPartExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1799
|
+
var body, deserialized, exception;
|
|
1800
|
+
return __generator(this, function (_a) {
|
|
1801
|
+
body = parsedOutput.body;
|
|
1802
|
+
deserialized = deserializeAws_json1_1InvalidLayerPartException(body, context);
|
|
1803
|
+
exception = new InvalidLayerPartException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1804
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1805
|
+
});
|
|
1806
|
+
}); };
|
|
1807
|
+
var deserializeAws_json1_1InvalidParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1808
|
+
var body, deserialized, exception;
|
|
1809
|
+
return __generator(this, function (_a) {
|
|
1810
|
+
body = parsedOutput.body;
|
|
1811
|
+
deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
1812
|
+
exception = new InvalidParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1813
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1814
|
+
});
|
|
1815
|
+
}); };
|
|
1816
|
+
var deserializeAws_json1_1InvalidTagParameterExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1817
|
+
var body, deserialized, exception;
|
|
1818
|
+
return __generator(this, function (_a) {
|
|
1819
|
+
body = parsedOutput.body;
|
|
1820
|
+
deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context);
|
|
1821
|
+
exception = new InvalidTagParameterException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1822
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1823
|
+
});
|
|
1824
|
+
}); };
|
|
1825
|
+
var deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1826
|
+
var body, deserialized, exception;
|
|
1827
|
+
return __generator(this, function (_a) {
|
|
1828
|
+
body = parsedOutput.body;
|
|
1829
|
+
deserialized = deserializeAws_json1_1LayerAlreadyExistsException(body, context);
|
|
1830
|
+
exception = new LayerAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1831
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1832
|
+
});
|
|
1833
|
+
}); };
|
|
1834
|
+
var deserializeAws_json1_1LayerPartTooSmallExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1835
|
+
var body, deserialized, exception;
|
|
1836
|
+
return __generator(this, function (_a) {
|
|
1837
|
+
body = parsedOutput.body;
|
|
1838
|
+
deserialized = deserializeAws_json1_1LayerPartTooSmallException(body, context);
|
|
1839
|
+
exception = new LayerPartTooSmallException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1840
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1841
|
+
});
|
|
1842
|
+
}); };
|
|
1843
|
+
var deserializeAws_json1_1LayersNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1844
|
+
var body, deserialized, exception;
|
|
1845
|
+
return __generator(this, function (_a) {
|
|
1846
|
+
body = parsedOutput.body;
|
|
1847
|
+
deserialized = deserializeAws_json1_1LayersNotFoundException(body, context);
|
|
1848
|
+
exception = new LayersNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1849
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1850
|
+
});
|
|
1851
|
+
}); };
|
|
1852
|
+
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1853
|
+
var body, deserialized, exception;
|
|
1854
|
+
return __generator(this, function (_a) {
|
|
1855
|
+
body = parsedOutput.body;
|
|
1856
|
+
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1857
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1858
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1859
|
+
});
|
|
1860
|
+
}); };
|
|
1861
|
+
var deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1862
|
+
var body, deserialized, exception;
|
|
1863
|
+
return __generator(this, function (_a) {
|
|
1864
|
+
body = parsedOutput.body;
|
|
1865
|
+
deserialized = deserializeAws_json1_1ReferencedImagesNotFoundException(body, context);
|
|
1866
|
+
exception = new ReferencedImagesNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1867
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1868
|
+
});
|
|
1869
|
+
}); };
|
|
1870
|
+
var deserializeAws_json1_1RegistryNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1871
|
+
var body, deserialized, exception;
|
|
1872
|
+
return __generator(this, function (_a) {
|
|
1873
|
+
body = parsedOutput.body;
|
|
1874
|
+
deserialized = deserializeAws_json1_1RegistryNotFoundException(body, context);
|
|
1875
|
+
exception = new RegistryNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1876
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1877
|
+
});
|
|
1878
|
+
}); };
|
|
1879
|
+
var deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1880
|
+
var body, deserialized, exception;
|
|
1881
|
+
return __generator(this, function (_a) {
|
|
1882
|
+
body = parsedOutput.body;
|
|
1883
|
+
deserialized = deserializeAws_json1_1RepositoryAlreadyExistsException(body, context);
|
|
1884
|
+
exception = new RepositoryAlreadyExistsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1885
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1886
|
+
});
|
|
1887
|
+
}); };
|
|
1888
|
+
var deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1889
|
+
var body, deserialized, exception;
|
|
1890
|
+
return __generator(this, function (_a) {
|
|
1891
|
+
body = parsedOutput.body;
|
|
1892
|
+
deserialized = deserializeAws_json1_1RepositoryNotEmptyException(body, context);
|
|
1893
|
+
exception = new RepositoryNotEmptyException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1894
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1895
|
+
});
|
|
1896
|
+
}); };
|
|
1897
|
+
var deserializeAws_json1_1RepositoryNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1898
|
+
var body, deserialized, exception;
|
|
1899
|
+
return __generator(this, function (_a) {
|
|
1900
|
+
body = parsedOutput.body;
|
|
1901
|
+
deserialized = deserializeAws_json1_1RepositoryNotFoundException(body, context);
|
|
1902
|
+
exception = new RepositoryNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1903
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1904
|
+
});
|
|
1905
|
+
}); };
|
|
1906
|
+
var deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1907
|
+
var body, deserialized, exception;
|
|
1908
|
+
return __generator(this, function (_a) {
|
|
1909
|
+
body = parsedOutput.body;
|
|
1910
|
+
deserialized = deserializeAws_json1_1RepositoryPolicyNotFoundException(body, context);
|
|
1911
|
+
exception = new RepositoryPolicyNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1912
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1913
|
+
});
|
|
1914
|
+
}); };
|
|
1915
|
+
var deserializeAws_json1_1ServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1916
|
+
var body, deserialized, exception;
|
|
1917
|
+
return __generator(this, function (_a) {
|
|
1918
|
+
body = parsedOutput.body;
|
|
1919
|
+
deserialized = deserializeAws_json1_1ServerException(body, context);
|
|
1920
|
+
exception = new ServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1921
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1922
|
+
});
|
|
1923
|
+
}); };
|
|
1924
|
+
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1925
|
+
var body, deserialized, exception;
|
|
1926
|
+
return __generator(this, function (_a) {
|
|
1927
|
+
body = parsedOutput.body;
|
|
1928
|
+
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
1929
|
+
exception = new TooManyTagsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1930
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1931
|
+
});
|
|
1932
|
+
}); };
|
|
1933
|
+
var deserializeAws_json1_1UnsupportedCommandExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1934
|
+
var body, deserialized, exception;
|
|
1935
|
+
return __generator(this, function (_a) {
|
|
1936
|
+
body = parsedOutput.body;
|
|
1937
|
+
deserialized = deserializeAws_json1_1UnsupportedCommandException(body, context);
|
|
1938
|
+
exception = new UnsupportedCommandException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1939
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1940
|
+
});
|
|
1941
|
+
}); };
|
|
1942
|
+
var deserializeAws_json1_1UploadNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1943
|
+
var body, deserialized, exception;
|
|
1944
|
+
return __generator(this, function (_a) {
|
|
1945
|
+
body = parsedOutput.body;
|
|
1946
|
+
deserialized = deserializeAws_json1_1UploadNotFoundException(body, context);
|
|
1947
|
+
exception = new UploadNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1948
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1949
|
+
});
|
|
1950
|
+
}); };
|
|
1951
|
+
var serializeAws_json1_1ArchitectureList = function (input, context) {
|
|
1413
1952
|
return input
|
|
1414
|
-
.filter((e)
|
|
1415
|
-
.map((entry)
|
|
1953
|
+
.filter(function (e) { return e != null; })
|
|
1954
|
+
.map(function (entry) {
|
|
1416
1955
|
return entry;
|
|
1417
1956
|
});
|
|
1418
1957
|
};
|
|
1419
|
-
|
|
1420
|
-
return {
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
}),
|
|
1424
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1425
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1426
|
-
};
|
|
1958
|
+
var serializeAws_json1_1BatchCheckLayerAvailabilityRequest = function (input, context) {
|
|
1959
|
+
return __assign(__assign(__assign({}, (input.layerDigests != null && {
|
|
1960
|
+
layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context),
|
|
1961
|
+
})), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1427
1962
|
};
|
|
1428
|
-
|
|
1429
|
-
return {
|
|
1430
|
-
...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
1431
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1432
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1433
|
-
};
|
|
1963
|
+
var serializeAws_json1_1BatchDeleteImageRequest = function (input, context) {
|
|
1964
|
+
return __assign(__assign(__assign({}, (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1434
1965
|
};
|
|
1435
|
-
|
|
1966
|
+
var serializeAws_json1_1BatchedOperationLayerDigestList = function (input, context) {
|
|
1436
1967
|
return input
|
|
1437
|
-
.filter((e)
|
|
1438
|
-
.map((entry)
|
|
1968
|
+
.filter(function (e) { return e != null; })
|
|
1969
|
+
.map(function (entry) {
|
|
1439
1970
|
return entry;
|
|
1440
1971
|
});
|
|
1441
1972
|
};
|
|
1442
|
-
|
|
1443
|
-
return {
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
}),
|
|
1447
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1448
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1449
|
-
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
1450
|
-
};
|
|
1973
|
+
var serializeAws_json1_1CompleteLayerUploadRequest = function (input, context) {
|
|
1974
|
+
return __assign(__assign(__assign(__assign({}, (input.layerDigests != null && {
|
|
1975
|
+
layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
|
|
1976
|
+
})), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.uploadId != null && { uploadId: input.uploadId }));
|
|
1451
1977
|
};
|
|
1452
|
-
|
|
1453
|
-
return {
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
}),
|
|
1457
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1458
|
-
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
1459
|
-
};
|
|
1978
|
+
var serializeAws_json1_1CreateRepositoryRequest = function (input, context) {
|
|
1979
|
+
return __assign(__assign(__assign({}, (input.catalogData != null && {
|
|
1980
|
+
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
1981
|
+
})), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
1460
1982
|
};
|
|
1461
|
-
|
|
1462
|
-
return {
|
|
1463
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1464
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1465
|
-
};
|
|
1983
|
+
var serializeAws_json1_1DeleteRepositoryPolicyRequest = function (input, context) {
|
|
1984
|
+
return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1466
1985
|
};
|
|
1467
|
-
|
|
1468
|
-
return {
|
|
1469
|
-
...(input.force != null && { force: input.force }),
|
|
1470
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1471
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1472
|
-
};
|
|
1986
|
+
var serializeAws_json1_1DeleteRepositoryRequest = function (input, context) {
|
|
1987
|
+
return __assign(__assign(__assign({}, (input.force != null && { force: input.force })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1473
1988
|
};
|
|
1474
|
-
|
|
1475
|
-
return {
|
|
1476
|
-
...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
1477
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1478
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1479
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1480
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1481
|
-
};
|
|
1989
|
+
var serializeAws_json1_1DescribeImagesRequest = function (input, context) {
|
|
1990
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1482
1991
|
};
|
|
1483
|
-
|
|
1484
|
-
return {
|
|
1485
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1486
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1487
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1488
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1489
|
-
};
|
|
1992
|
+
var serializeAws_json1_1DescribeImageTagsRequest = function (input, context) {
|
|
1993
|
+
return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1490
1994
|
};
|
|
1491
|
-
|
|
1492
|
-
return {
|
|
1493
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1494
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1495
|
-
};
|
|
1995
|
+
var serializeAws_json1_1DescribeRegistriesRequest = function (input, context) {
|
|
1996
|
+
return __assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
1496
1997
|
};
|
|
1497
|
-
|
|
1498
|
-
return {
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1502
|
-
...(input.repositoryNames != null && {
|
|
1503
|
-
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
1504
|
-
}),
|
|
1505
|
-
};
|
|
1998
|
+
var serializeAws_json1_1DescribeRepositoriesRequest = function (input, context) {
|
|
1999
|
+
return __assign(__assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryNames != null && {
|
|
2000
|
+
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
2001
|
+
}));
|
|
1506
2002
|
};
|
|
1507
|
-
|
|
2003
|
+
var serializeAws_json1_1GetAuthorizationTokenRequest = function (input, context) {
|
|
1508
2004
|
return {};
|
|
1509
2005
|
};
|
|
1510
|
-
|
|
2006
|
+
var serializeAws_json1_1GetRegistryCatalogDataRequest = function (input, context) {
|
|
1511
2007
|
return {};
|
|
1512
2008
|
};
|
|
1513
|
-
|
|
1514
|
-
return {
|
|
1515
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1516
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1517
|
-
};
|
|
2009
|
+
var serializeAws_json1_1GetRepositoryCatalogDataRequest = function (input, context) {
|
|
2010
|
+
return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1518
2011
|
};
|
|
1519
|
-
|
|
1520
|
-
return {
|
|
1521
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1522
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1523
|
-
};
|
|
2012
|
+
var serializeAws_json1_1GetRepositoryPolicyRequest = function (input, context) {
|
|
2013
|
+
return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1524
2014
|
};
|
|
1525
|
-
|
|
1526
|
-
return {
|
|
1527
|
-
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
1528
|
-
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
1529
|
-
};
|
|
2015
|
+
var serializeAws_json1_1ImageIdentifier = function (input, context) {
|
|
2016
|
+
return __assign(__assign({}, (input.imageDigest != null && { imageDigest: input.imageDigest })), (input.imageTag != null && { imageTag: input.imageTag }));
|
|
1530
2017
|
};
|
|
1531
|
-
|
|
2018
|
+
var serializeAws_json1_1ImageIdentifierList = function (input, context) {
|
|
1532
2019
|
return input
|
|
1533
|
-
.filter((e)
|
|
1534
|
-
.map((entry)
|
|
2020
|
+
.filter(function (e) { return e != null; })
|
|
2021
|
+
.map(function (entry) {
|
|
1535
2022
|
return serializeAws_json1_1ImageIdentifier(entry, context);
|
|
1536
2023
|
});
|
|
1537
2024
|
};
|
|
1538
|
-
|
|
1539
|
-
return {
|
|
1540
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1541
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1542
|
-
};
|
|
2025
|
+
var serializeAws_json1_1InitiateLayerUploadRequest = function (input, context) {
|
|
2026
|
+
return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1543
2027
|
};
|
|
1544
|
-
|
|
2028
|
+
var serializeAws_json1_1LayerDigestList = function (input, context) {
|
|
1545
2029
|
return input
|
|
1546
|
-
.filter((e)
|
|
1547
|
-
.map((entry)
|
|
2030
|
+
.filter(function (e) { return e != null; })
|
|
2031
|
+
.map(function (entry) {
|
|
1548
2032
|
return entry;
|
|
1549
2033
|
});
|
|
1550
2034
|
};
|
|
1551
|
-
|
|
1552
|
-
return {
|
|
1553
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1554
|
-
};
|
|
2035
|
+
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
2036
|
+
return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
|
|
1555
2037
|
};
|
|
1556
|
-
|
|
2038
|
+
var serializeAws_json1_1OperatingSystemList = function (input, context) {
|
|
1557
2039
|
return input
|
|
1558
|
-
.filter((e)
|
|
1559
|
-
.map((entry)
|
|
2040
|
+
.filter(function (e) { return e != null; })
|
|
2041
|
+
.map(function (entry) {
|
|
1560
2042
|
return entry;
|
|
1561
2043
|
});
|
|
1562
2044
|
};
|
|
1563
|
-
|
|
1564
|
-
return {
|
|
1565
|
-
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
1566
|
-
...(input.imageManifest != null && { imageManifest: input.imageManifest }),
|
|
1567
|
-
...(input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType }),
|
|
1568
|
-
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
1569
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1570
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1571
|
-
};
|
|
2045
|
+
var serializeAws_json1_1PutImageRequest = function (input, context) {
|
|
2046
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.imageDigest != null && { imageDigest: input.imageDigest })), (input.imageManifest != null && { imageManifest: input.imageManifest })), (input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType })), (input.imageTag != null && { imageTag: input.imageTag })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1572
2047
|
};
|
|
1573
|
-
|
|
1574
|
-
return {
|
|
1575
|
-
...(input.displayName != null && { displayName: input.displayName }),
|
|
1576
|
-
};
|
|
2048
|
+
var serializeAws_json1_1PutRegistryCatalogDataRequest = function (input, context) {
|
|
2049
|
+
return __assign({}, (input.displayName != null && { displayName: input.displayName }));
|
|
1577
2050
|
};
|
|
1578
|
-
|
|
1579
|
-
return {
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
}),
|
|
1583
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1584
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1585
|
-
};
|
|
2051
|
+
var serializeAws_json1_1PutRepositoryCatalogDataRequest = function (input, context) {
|
|
2052
|
+
return __assign(__assign(__assign({}, (input.catalogData != null && {
|
|
2053
|
+
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
2054
|
+
})), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1586
2055
|
};
|
|
1587
|
-
|
|
1588
|
-
return {
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
...(input.description != null && { description: input.description }),
|
|
1594
|
-
...(input.logoImageBlob != null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) }),
|
|
1595
|
-
...(input.operatingSystems != null && {
|
|
1596
|
-
operatingSystems: serializeAws_json1_1OperatingSystemList(input.operatingSystems, context),
|
|
1597
|
-
}),
|
|
1598
|
-
...(input.usageText != null && { usageText: input.usageText }),
|
|
1599
|
-
};
|
|
2056
|
+
var serializeAws_json1_1RepositoryCatalogDataInput = function (input, context) {
|
|
2057
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.aboutText != null && { aboutText: input.aboutText })), (input.architectures != null && {
|
|
2058
|
+
architectures: serializeAws_json1_1ArchitectureList(input.architectures, context),
|
|
2059
|
+
})), (input.description != null && { description: input.description })), (input.logoImageBlob != null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) })), (input.operatingSystems != null && {
|
|
2060
|
+
operatingSystems: serializeAws_json1_1OperatingSystemList(input.operatingSystems, context),
|
|
2061
|
+
})), (input.usageText != null && { usageText: input.usageText }));
|
|
1600
2062
|
};
|
|
1601
|
-
|
|
2063
|
+
var serializeAws_json1_1RepositoryNameList = function (input, context) {
|
|
1602
2064
|
return input
|
|
1603
|
-
.filter((e)
|
|
1604
|
-
.map((entry)
|
|
2065
|
+
.filter(function (e) { return e != null; })
|
|
2066
|
+
.map(function (entry) {
|
|
1605
2067
|
return entry;
|
|
1606
2068
|
});
|
|
1607
2069
|
};
|
|
1608
|
-
|
|
1609
|
-
return {
|
|
1610
|
-
...(input.force != null && { force: input.force }),
|
|
1611
|
-
...(input.policyText != null && { policyText: input.policyText }),
|
|
1612
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1613
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1614
|
-
};
|
|
2070
|
+
var serializeAws_json1_1SetRepositoryPolicyRequest = function (input, context) {
|
|
2071
|
+
return __assign(__assign(__assign(__assign({}, (input.force != null && { force: input.force })), (input.policyText != null && { policyText: input.policyText })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1615
2072
|
};
|
|
1616
|
-
|
|
1617
|
-
return {
|
|
1618
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1619
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1620
|
-
};
|
|
2073
|
+
var serializeAws_json1_1Tag = function (input, context) {
|
|
2074
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
1621
2075
|
};
|
|
1622
|
-
|
|
2076
|
+
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
1623
2077
|
return input
|
|
1624
|
-
.filter((e)
|
|
1625
|
-
.map((entry)
|
|
2078
|
+
.filter(function (e) { return e != null; })
|
|
2079
|
+
.map(function (entry) {
|
|
1626
2080
|
return entry;
|
|
1627
2081
|
});
|
|
1628
2082
|
};
|
|
1629
|
-
|
|
2083
|
+
var serializeAws_json1_1TagList = function (input, context) {
|
|
1630
2084
|
return input
|
|
1631
|
-
.filter((e)
|
|
1632
|
-
.map((entry)
|
|
2085
|
+
.filter(function (e) { return e != null; })
|
|
2086
|
+
.map(function (entry) {
|
|
1633
2087
|
return serializeAws_json1_1Tag(entry, context);
|
|
1634
2088
|
});
|
|
1635
2089
|
};
|
|
1636
|
-
|
|
1637
|
-
return {
|
|
1638
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1639
|
-
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
1640
|
-
};
|
|
2090
|
+
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
2091
|
+
return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
1641
2092
|
};
|
|
1642
|
-
|
|
1643
|
-
return {
|
|
1644
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1645
|
-
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
1646
|
-
};
|
|
2093
|
+
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
2094
|
+
return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
|
|
1647
2095
|
};
|
|
1648
|
-
|
|
1649
|
-
return {
|
|
1650
|
-
...(input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
|
|
1651
|
-
...(input.partFirstByte != null && { partFirstByte: input.partFirstByte }),
|
|
1652
|
-
...(input.partLastByte != null && { partLastByte: input.partLastByte }),
|
|
1653
|
-
...(input.registryId != null && { registryId: input.registryId }),
|
|
1654
|
-
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1655
|
-
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
1656
|
-
};
|
|
2096
|
+
var serializeAws_json1_1UploadLayerPartRequest = function (input, context) {
|
|
2097
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) })), (input.partFirstByte != null && { partFirstByte: input.partFirstByte })), (input.partLastByte != null && { partLastByte: input.partLastByte })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.uploadId != null && { uploadId: input.uploadId }));
|
|
1657
2098
|
};
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
.filter((e)
|
|
1661
|
-
.map((entry)
|
|
2099
|
+
var deserializeAws_json1_1ArchitectureList = function (output, context) {
|
|
2100
|
+
var retVal = (output || [])
|
|
2101
|
+
.filter(function (e) { return e != null; })
|
|
2102
|
+
.map(function (entry) {
|
|
1662
2103
|
if (entry === null) {
|
|
1663
2104
|
return null;
|
|
1664
2105
|
}
|
|
@@ -1666,25 +2107,25 @@ const deserializeAws_json1_1ArchitectureList = (output, context) => {
|
|
|
1666
2107
|
});
|
|
1667
2108
|
return retVal;
|
|
1668
2109
|
};
|
|
1669
|
-
|
|
2110
|
+
var deserializeAws_json1_1AuthorizationData = function (output, context) {
|
|
1670
2111
|
return {
|
|
1671
2112
|
authorizationToken: __expectString(output.authorizationToken),
|
|
1672
2113
|
expiresAt: output.expiresAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt))) : undefined,
|
|
1673
2114
|
};
|
|
1674
2115
|
};
|
|
1675
|
-
|
|
2116
|
+
var deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = function (output, context) {
|
|
1676
2117
|
return {
|
|
1677
2118
|
failures: output.failures != null ? deserializeAws_json1_1LayerFailureList(output.failures, context) : undefined,
|
|
1678
2119
|
layers: output.layers != null ? deserializeAws_json1_1LayerList(output.layers, context) : undefined,
|
|
1679
2120
|
};
|
|
1680
2121
|
};
|
|
1681
|
-
|
|
2122
|
+
var deserializeAws_json1_1BatchDeleteImageResponse = function (output, context) {
|
|
1682
2123
|
return {
|
|
1683
2124
|
failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
|
|
1684
2125
|
imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
|
|
1685
2126
|
};
|
|
1686
2127
|
};
|
|
1687
|
-
|
|
2128
|
+
var deserializeAws_json1_1CompleteLayerUploadResponse = function (output, context) {
|
|
1688
2129
|
return {
|
|
1689
2130
|
layerDigest: __expectString(output.layerDigest),
|
|
1690
2131
|
registryId: __expectString(output.registryId),
|
|
@@ -1692,31 +2133,31 @@ const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
|
|
|
1692
2133
|
uploadId: __expectString(output.uploadId),
|
|
1693
2134
|
};
|
|
1694
2135
|
};
|
|
1695
|
-
|
|
2136
|
+
var deserializeAws_json1_1CreateRepositoryResponse = function (output, context) {
|
|
1696
2137
|
return {
|
|
1697
2138
|
catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
1698
2139
|
repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
|
|
1699
2140
|
};
|
|
1700
2141
|
};
|
|
1701
|
-
|
|
2142
|
+
var deserializeAws_json1_1DeleteRepositoryPolicyResponse = function (output, context) {
|
|
1702
2143
|
return {
|
|
1703
2144
|
policyText: __expectString(output.policyText),
|
|
1704
2145
|
registryId: __expectString(output.registryId),
|
|
1705
2146
|
repositoryName: __expectString(output.repositoryName),
|
|
1706
2147
|
};
|
|
1707
2148
|
};
|
|
1708
|
-
|
|
2149
|
+
var deserializeAws_json1_1DeleteRepositoryResponse = function (output, context) {
|
|
1709
2150
|
return {
|
|
1710
2151
|
repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
|
|
1711
2152
|
};
|
|
1712
2153
|
};
|
|
1713
|
-
|
|
2154
|
+
var deserializeAws_json1_1DescribeImagesResponse = function (output, context) {
|
|
1714
2155
|
return {
|
|
1715
2156
|
imageDetails: output.imageDetails != null ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) : undefined,
|
|
1716
2157
|
nextToken: __expectString(output.nextToken),
|
|
1717
2158
|
};
|
|
1718
2159
|
};
|
|
1719
|
-
|
|
2160
|
+
var deserializeAws_json1_1DescribeImageTagsResponse = function (output, context) {
|
|
1720
2161
|
return {
|
|
1721
2162
|
imageTagDetails: output.imageTagDetails != null
|
|
1722
2163
|
? deserializeAws_json1_1ImageTagDetailList(output.imageTagDetails, context)
|
|
@@ -1724,50 +2165,50 @@ const deserializeAws_json1_1DescribeImageTagsResponse = (output, context) => {
|
|
|
1724
2165
|
nextToken: __expectString(output.nextToken),
|
|
1725
2166
|
};
|
|
1726
2167
|
};
|
|
1727
|
-
|
|
2168
|
+
var deserializeAws_json1_1DescribeRegistriesResponse = function (output, context) {
|
|
1728
2169
|
return {
|
|
1729
2170
|
nextToken: __expectString(output.nextToken),
|
|
1730
2171
|
registries: output.registries != null ? deserializeAws_json1_1RegistryList(output.registries, context) : undefined,
|
|
1731
2172
|
};
|
|
1732
2173
|
};
|
|
1733
|
-
|
|
2174
|
+
var deserializeAws_json1_1DescribeRepositoriesResponse = function (output, context) {
|
|
1734
2175
|
return {
|
|
1735
2176
|
nextToken: __expectString(output.nextToken),
|
|
1736
2177
|
repositories: output.repositories != null ? deserializeAws_json1_1RepositoryList(output.repositories, context) : undefined,
|
|
1737
2178
|
};
|
|
1738
2179
|
};
|
|
1739
|
-
|
|
2180
|
+
var deserializeAws_json1_1EmptyUploadException = function (output, context) {
|
|
1740
2181
|
return {
|
|
1741
2182
|
message: __expectString(output.message),
|
|
1742
2183
|
};
|
|
1743
2184
|
};
|
|
1744
|
-
|
|
2185
|
+
var deserializeAws_json1_1GetAuthorizationTokenResponse = function (output, context) {
|
|
1745
2186
|
return {
|
|
1746
2187
|
authorizationData: output.authorizationData != null
|
|
1747
2188
|
? deserializeAws_json1_1AuthorizationData(output.authorizationData, context)
|
|
1748
2189
|
: undefined,
|
|
1749
2190
|
};
|
|
1750
2191
|
};
|
|
1751
|
-
|
|
2192
|
+
var deserializeAws_json1_1GetRegistryCatalogDataResponse = function (output, context) {
|
|
1752
2193
|
return {
|
|
1753
2194
|
registryCatalogData: output.registryCatalogData != null
|
|
1754
2195
|
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
1755
2196
|
: undefined,
|
|
1756
2197
|
};
|
|
1757
2198
|
};
|
|
1758
|
-
|
|
2199
|
+
var deserializeAws_json1_1GetRepositoryCatalogDataResponse = function (output, context) {
|
|
1759
2200
|
return {
|
|
1760
2201
|
catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
1761
2202
|
};
|
|
1762
2203
|
};
|
|
1763
|
-
|
|
2204
|
+
var deserializeAws_json1_1GetRepositoryPolicyResponse = function (output, context) {
|
|
1764
2205
|
return {
|
|
1765
2206
|
policyText: __expectString(output.policyText),
|
|
1766
2207
|
registryId: __expectString(output.registryId),
|
|
1767
2208
|
repositoryName: __expectString(output.repositoryName),
|
|
1768
2209
|
};
|
|
1769
2210
|
};
|
|
1770
|
-
|
|
2211
|
+
var deserializeAws_json1_1Image = function (output, context) {
|
|
1771
2212
|
return {
|
|
1772
2213
|
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
1773
2214
|
imageManifest: __expectString(output.imageManifest),
|
|
@@ -1776,12 +2217,12 @@ const deserializeAws_json1_1Image = (output, context) => {
|
|
|
1776
2217
|
repositoryName: __expectString(output.repositoryName),
|
|
1777
2218
|
};
|
|
1778
2219
|
};
|
|
1779
|
-
|
|
2220
|
+
var deserializeAws_json1_1ImageAlreadyExistsException = function (output, context) {
|
|
1780
2221
|
return {
|
|
1781
2222
|
message: __expectString(output.message),
|
|
1782
2223
|
};
|
|
1783
2224
|
};
|
|
1784
|
-
|
|
2225
|
+
var deserializeAws_json1_1ImageDetail = function (output, context) {
|
|
1785
2226
|
return {
|
|
1786
2227
|
artifactMediaType: __expectString(output.artifactMediaType),
|
|
1787
2228
|
imageDigest: __expectString(output.imageDigest),
|
|
@@ -1795,10 +2236,10 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
|
1795
2236
|
repositoryName: __expectString(output.repositoryName),
|
|
1796
2237
|
};
|
|
1797
2238
|
};
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
.filter((e)
|
|
1801
|
-
.map((entry)
|
|
2239
|
+
var deserializeAws_json1_1ImageDetailList = function (output, context) {
|
|
2240
|
+
var retVal = (output || [])
|
|
2241
|
+
.filter(function (e) { return e != null; })
|
|
2242
|
+
.map(function (entry) {
|
|
1802
2243
|
if (entry === null) {
|
|
1803
2244
|
return null;
|
|
1804
2245
|
}
|
|
@@ -1806,22 +2247,22 @@ const deserializeAws_json1_1ImageDetailList = (output, context) => {
|
|
|
1806
2247
|
});
|
|
1807
2248
|
return retVal;
|
|
1808
2249
|
};
|
|
1809
|
-
|
|
2250
|
+
var deserializeAws_json1_1ImageDigestDoesNotMatchException = function (output, context) {
|
|
1810
2251
|
return {
|
|
1811
2252
|
message: __expectString(output.message),
|
|
1812
2253
|
};
|
|
1813
2254
|
};
|
|
1814
|
-
|
|
2255
|
+
var deserializeAws_json1_1ImageFailure = function (output, context) {
|
|
1815
2256
|
return {
|
|
1816
2257
|
failureCode: __expectString(output.failureCode),
|
|
1817
2258
|
failureReason: __expectString(output.failureReason),
|
|
1818
2259
|
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
1819
2260
|
};
|
|
1820
2261
|
};
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
.filter((e)
|
|
1824
|
-
.map((entry)
|
|
2262
|
+
var deserializeAws_json1_1ImageFailureList = function (output, context) {
|
|
2263
|
+
var retVal = (output || [])
|
|
2264
|
+
.filter(function (e) { return e != null; })
|
|
2265
|
+
.map(function (entry) {
|
|
1825
2266
|
if (entry === null) {
|
|
1826
2267
|
return null;
|
|
1827
2268
|
}
|
|
@@ -1829,16 +2270,16 @@ const deserializeAws_json1_1ImageFailureList = (output, context) => {
|
|
|
1829
2270
|
});
|
|
1830
2271
|
return retVal;
|
|
1831
2272
|
};
|
|
1832
|
-
|
|
2273
|
+
var deserializeAws_json1_1ImageIdentifier = function (output, context) {
|
|
1833
2274
|
return {
|
|
1834
2275
|
imageDigest: __expectString(output.imageDigest),
|
|
1835
2276
|
imageTag: __expectString(output.imageTag),
|
|
1836
2277
|
};
|
|
1837
2278
|
};
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
.filter((e)
|
|
1841
|
-
.map((entry)
|
|
2279
|
+
var deserializeAws_json1_1ImageIdentifierList = function (output, context) {
|
|
2280
|
+
var retVal = (output || [])
|
|
2281
|
+
.filter(function (e) { return e != null; })
|
|
2282
|
+
.map(function (entry) {
|
|
1842
2283
|
if (entry === null) {
|
|
1843
2284
|
return null;
|
|
1844
2285
|
}
|
|
@@ -1846,27 +2287,27 @@ const deserializeAws_json1_1ImageIdentifierList = (output, context) => {
|
|
|
1846
2287
|
});
|
|
1847
2288
|
return retVal;
|
|
1848
2289
|
};
|
|
1849
|
-
|
|
2290
|
+
var deserializeAws_json1_1ImageNotFoundException = function (output, context) {
|
|
1850
2291
|
return {
|
|
1851
2292
|
message: __expectString(output.message),
|
|
1852
2293
|
};
|
|
1853
2294
|
};
|
|
1854
|
-
|
|
2295
|
+
var deserializeAws_json1_1ImageTagAlreadyExistsException = function (output, context) {
|
|
1855
2296
|
return {
|
|
1856
2297
|
message: __expectString(output.message),
|
|
1857
2298
|
};
|
|
1858
2299
|
};
|
|
1859
|
-
|
|
2300
|
+
var deserializeAws_json1_1ImageTagDetail = function (output, context) {
|
|
1860
2301
|
return {
|
|
1861
2302
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
1862
2303
|
imageDetail: output.imageDetail != null ? deserializeAws_json1_1ReferencedImageDetail(output.imageDetail, context) : undefined,
|
|
1863
2304
|
imageTag: __expectString(output.imageTag),
|
|
1864
2305
|
};
|
|
1865
2306
|
};
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
.filter((e)
|
|
1869
|
-
.map((entry)
|
|
2307
|
+
var deserializeAws_json1_1ImageTagDetailList = function (output, context) {
|
|
2308
|
+
var retVal = (output || [])
|
|
2309
|
+
.filter(function (e) { return e != null; })
|
|
2310
|
+
.map(function (entry) {
|
|
1870
2311
|
if (entry === null) {
|
|
1871
2312
|
return null;
|
|
1872
2313
|
}
|
|
@@ -1874,10 +2315,10 @@ const deserializeAws_json1_1ImageTagDetailList = (output, context) => {
|
|
|
1874
2315
|
});
|
|
1875
2316
|
return retVal;
|
|
1876
2317
|
};
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
.filter((e)
|
|
1880
|
-
.map((entry)
|
|
2318
|
+
var deserializeAws_json1_1ImageTagList = function (output, context) {
|
|
2319
|
+
var retVal = (output || [])
|
|
2320
|
+
.filter(function (e) { return e != null; })
|
|
2321
|
+
.map(function (entry) {
|
|
1881
2322
|
if (entry === null) {
|
|
1882
2323
|
return null;
|
|
1883
2324
|
}
|
|
@@ -1885,18 +2326,18 @@ const deserializeAws_json1_1ImageTagList = (output, context) => {
|
|
|
1885
2326
|
});
|
|
1886
2327
|
return retVal;
|
|
1887
2328
|
};
|
|
1888
|
-
|
|
2329
|
+
var deserializeAws_json1_1InitiateLayerUploadResponse = function (output, context) {
|
|
1889
2330
|
return {
|
|
1890
2331
|
partSize: __expectLong(output.partSize),
|
|
1891
2332
|
uploadId: __expectString(output.uploadId),
|
|
1892
2333
|
};
|
|
1893
2334
|
};
|
|
1894
|
-
|
|
2335
|
+
var deserializeAws_json1_1InvalidLayerException = function (output, context) {
|
|
1895
2336
|
return {
|
|
1896
2337
|
message: __expectString(output.message),
|
|
1897
2338
|
};
|
|
1898
2339
|
};
|
|
1899
|
-
|
|
2340
|
+
var deserializeAws_json1_1InvalidLayerPartException = function (output, context) {
|
|
1900
2341
|
return {
|
|
1901
2342
|
lastValidByteReceived: __expectLong(output.lastValidByteReceived),
|
|
1902
2343
|
message: __expectString(output.message),
|
|
@@ -1905,17 +2346,17 @@ const deserializeAws_json1_1InvalidLayerPartException = (output, context) => {
|
|
|
1905
2346
|
uploadId: __expectString(output.uploadId),
|
|
1906
2347
|
};
|
|
1907
2348
|
};
|
|
1908
|
-
|
|
2349
|
+
var deserializeAws_json1_1InvalidParameterException = function (output, context) {
|
|
1909
2350
|
return {
|
|
1910
2351
|
message: __expectString(output.message),
|
|
1911
2352
|
};
|
|
1912
2353
|
};
|
|
1913
|
-
|
|
2354
|
+
var deserializeAws_json1_1InvalidTagParameterException = function (output, context) {
|
|
1914
2355
|
return {
|
|
1915
2356
|
message: __expectString(output.message),
|
|
1916
2357
|
};
|
|
1917
2358
|
};
|
|
1918
|
-
|
|
2359
|
+
var deserializeAws_json1_1Layer = function (output, context) {
|
|
1919
2360
|
return {
|
|
1920
2361
|
layerAvailability: __expectString(output.layerAvailability),
|
|
1921
2362
|
layerDigest: __expectString(output.layerDigest),
|
|
@@ -1923,22 +2364,22 @@ const deserializeAws_json1_1Layer = (output, context) => {
|
|
|
1923
2364
|
mediaType: __expectString(output.mediaType),
|
|
1924
2365
|
};
|
|
1925
2366
|
};
|
|
1926
|
-
|
|
2367
|
+
var deserializeAws_json1_1LayerAlreadyExistsException = function (output, context) {
|
|
1927
2368
|
return {
|
|
1928
2369
|
message: __expectString(output.message),
|
|
1929
2370
|
};
|
|
1930
2371
|
};
|
|
1931
|
-
|
|
2372
|
+
var deserializeAws_json1_1LayerFailure = function (output, context) {
|
|
1932
2373
|
return {
|
|
1933
2374
|
failureCode: __expectString(output.failureCode),
|
|
1934
2375
|
failureReason: __expectString(output.failureReason),
|
|
1935
2376
|
layerDigest: __expectString(output.layerDigest),
|
|
1936
2377
|
};
|
|
1937
2378
|
};
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
.filter((e)
|
|
1941
|
-
.map((entry)
|
|
2379
|
+
var deserializeAws_json1_1LayerFailureList = function (output, context) {
|
|
2380
|
+
var retVal = (output || [])
|
|
2381
|
+
.filter(function (e) { return e != null; })
|
|
2382
|
+
.map(function (entry) {
|
|
1942
2383
|
if (entry === null) {
|
|
1943
2384
|
return null;
|
|
1944
2385
|
}
|
|
@@ -1946,10 +2387,10 @@ const deserializeAws_json1_1LayerFailureList = (output, context) => {
|
|
|
1946
2387
|
});
|
|
1947
2388
|
return retVal;
|
|
1948
2389
|
};
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
.filter((e)
|
|
1952
|
-
.map((entry)
|
|
2390
|
+
var deserializeAws_json1_1LayerList = function (output, context) {
|
|
2391
|
+
var retVal = (output || [])
|
|
2392
|
+
.filter(function (e) { return e != null; })
|
|
2393
|
+
.map(function (entry) {
|
|
1953
2394
|
if (entry === null) {
|
|
1954
2395
|
return null;
|
|
1955
2396
|
}
|
|
@@ -1957,30 +2398,30 @@ const deserializeAws_json1_1LayerList = (output, context) => {
|
|
|
1957
2398
|
});
|
|
1958
2399
|
return retVal;
|
|
1959
2400
|
};
|
|
1960
|
-
|
|
2401
|
+
var deserializeAws_json1_1LayerPartTooSmallException = function (output, context) {
|
|
1961
2402
|
return {
|
|
1962
2403
|
message: __expectString(output.message),
|
|
1963
2404
|
};
|
|
1964
2405
|
};
|
|
1965
|
-
|
|
2406
|
+
var deserializeAws_json1_1LayersNotFoundException = function (output, context) {
|
|
1966
2407
|
return {
|
|
1967
2408
|
message: __expectString(output.message),
|
|
1968
2409
|
};
|
|
1969
2410
|
};
|
|
1970
|
-
|
|
2411
|
+
var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
1971
2412
|
return {
|
|
1972
2413
|
message: __expectString(output.message),
|
|
1973
2414
|
};
|
|
1974
2415
|
};
|
|
1975
|
-
|
|
2416
|
+
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
1976
2417
|
return {
|
|
1977
2418
|
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
1978
2419
|
};
|
|
1979
2420
|
};
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
.filter((e)
|
|
1983
|
-
.map((entry)
|
|
2421
|
+
var deserializeAws_json1_1OperatingSystemList = function (output, context) {
|
|
2422
|
+
var retVal = (output || [])
|
|
2423
|
+
.filter(function (e) { return e != null; })
|
|
2424
|
+
.map(function (entry) {
|
|
1984
2425
|
if (entry === null) {
|
|
1985
2426
|
return null;
|
|
1986
2427
|
}
|
|
@@ -1988,24 +2429,24 @@ const deserializeAws_json1_1OperatingSystemList = (output, context) => {
|
|
|
1988
2429
|
});
|
|
1989
2430
|
return retVal;
|
|
1990
2431
|
};
|
|
1991
|
-
|
|
2432
|
+
var deserializeAws_json1_1PutImageResponse = function (output, context) {
|
|
1992
2433
|
return {
|
|
1993
2434
|
image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
|
|
1994
2435
|
};
|
|
1995
2436
|
};
|
|
1996
|
-
|
|
2437
|
+
var deserializeAws_json1_1PutRegistryCatalogDataResponse = function (output, context) {
|
|
1997
2438
|
return {
|
|
1998
2439
|
registryCatalogData: output.registryCatalogData != null
|
|
1999
2440
|
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
2000
2441
|
: undefined,
|
|
2001
2442
|
};
|
|
2002
2443
|
};
|
|
2003
|
-
|
|
2444
|
+
var deserializeAws_json1_1PutRepositoryCatalogDataResponse = function (output, context) {
|
|
2004
2445
|
return {
|
|
2005
2446
|
catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
2006
2447
|
};
|
|
2007
2448
|
};
|
|
2008
|
-
|
|
2449
|
+
var deserializeAws_json1_1ReferencedImageDetail = function (output, context) {
|
|
2009
2450
|
return {
|
|
2010
2451
|
artifactMediaType: __expectString(output.artifactMediaType),
|
|
2011
2452
|
imageDigest: __expectString(output.imageDigest),
|
|
@@ -2016,12 +2457,12 @@ const deserializeAws_json1_1ReferencedImageDetail = (output, context) => {
|
|
|
2016
2457
|
imageSizeInBytes: __expectLong(output.imageSizeInBytes),
|
|
2017
2458
|
};
|
|
2018
2459
|
};
|
|
2019
|
-
|
|
2460
|
+
var deserializeAws_json1_1ReferencedImagesNotFoundException = function (output, context) {
|
|
2020
2461
|
return {
|
|
2021
2462
|
message: __expectString(output.message),
|
|
2022
2463
|
};
|
|
2023
2464
|
};
|
|
2024
|
-
|
|
2465
|
+
var deserializeAws_json1_1Registry = function (output, context) {
|
|
2025
2466
|
return {
|
|
2026
2467
|
aliases: output.aliases != null ? deserializeAws_json1_1RegistryAliasList(output.aliases, context) : undefined,
|
|
2027
2468
|
registryArn: __expectString(output.registryArn),
|
|
@@ -2030,7 +2471,7 @@ const deserializeAws_json1_1Registry = (output, context) => {
|
|
|
2030
2471
|
verified: __expectBoolean(output.verified),
|
|
2031
2472
|
};
|
|
2032
2473
|
};
|
|
2033
|
-
|
|
2474
|
+
var deserializeAws_json1_1RegistryAlias = function (output, context) {
|
|
2034
2475
|
return {
|
|
2035
2476
|
defaultRegistryAlias: __expectBoolean(output.defaultRegistryAlias),
|
|
2036
2477
|
name: __expectString(output.name),
|
|
@@ -2038,10 +2479,10 @@ const deserializeAws_json1_1RegistryAlias = (output, context) => {
|
|
|
2038
2479
|
status: __expectString(output.status),
|
|
2039
2480
|
};
|
|
2040
2481
|
};
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
.filter((e)
|
|
2044
|
-
.map((entry)
|
|
2482
|
+
var deserializeAws_json1_1RegistryAliasList = function (output, context) {
|
|
2483
|
+
var retVal = (output || [])
|
|
2484
|
+
.filter(function (e) { return e != null; })
|
|
2485
|
+
.map(function (entry) {
|
|
2045
2486
|
if (entry === null) {
|
|
2046
2487
|
return null;
|
|
2047
2488
|
}
|
|
@@ -2049,15 +2490,15 @@ const deserializeAws_json1_1RegistryAliasList = (output, context) => {
|
|
|
2049
2490
|
});
|
|
2050
2491
|
return retVal;
|
|
2051
2492
|
};
|
|
2052
|
-
|
|
2493
|
+
var deserializeAws_json1_1RegistryCatalogData = function (output, context) {
|
|
2053
2494
|
return {
|
|
2054
2495
|
displayName: __expectString(output.displayName),
|
|
2055
2496
|
};
|
|
2056
2497
|
};
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
.filter((e)
|
|
2060
|
-
.map((entry)
|
|
2498
|
+
var deserializeAws_json1_1RegistryList = function (output, context) {
|
|
2499
|
+
var retVal = (output || [])
|
|
2500
|
+
.filter(function (e) { return e != null; })
|
|
2501
|
+
.map(function (entry) {
|
|
2061
2502
|
if (entry === null) {
|
|
2062
2503
|
return null;
|
|
2063
2504
|
}
|
|
@@ -2065,12 +2506,12 @@ const deserializeAws_json1_1RegistryList = (output, context) => {
|
|
|
2065
2506
|
});
|
|
2066
2507
|
return retVal;
|
|
2067
2508
|
};
|
|
2068
|
-
|
|
2509
|
+
var deserializeAws_json1_1RegistryNotFoundException = function (output, context) {
|
|
2069
2510
|
return {
|
|
2070
2511
|
message: __expectString(output.message),
|
|
2071
2512
|
};
|
|
2072
2513
|
};
|
|
2073
|
-
|
|
2514
|
+
var deserializeAws_json1_1Repository = function (output, context) {
|
|
2074
2515
|
return {
|
|
2075
2516
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
2076
2517
|
registryId: __expectString(output.registryId),
|
|
@@ -2079,12 +2520,12 @@ const deserializeAws_json1_1Repository = (output, context) => {
|
|
|
2079
2520
|
repositoryUri: __expectString(output.repositoryUri),
|
|
2080
2521
|
};
|
|
2081
2522
|
};
|
|
2082
|
-
|
|
2523
|
+
var deserializeAws_json1_1RepositoryAlreadyExistsException = function (output, context) {
|
|
2083
2524
|
return {
|
|
2084
2525
|
message: __expectString(output.message),
|
|
2085
2526
|
};
|
|
2086
2527
|
};
|
|
2087
|
-
|
|
2528
|
+
var deserializeAws_json1_1RepositoryCatalogData = function (output, context) {
|
|
2088
2529
|
return {
|
|
2089
2530
|
aboutText: __expectString(output.aboutText),
|
|
2090
2531
|
architectures: output.architectures != null ? deserializeAws_json1_1ArchitectureList(output.architectures, context) : undefined,
|
|
@@ -2097,10 +2538,10 @@ const deserializeAws_json1_1RepositoryCatalogData = (output, context) => {
|
|
|
2097
2538
|
usageText: __expectString(output.usageText),
|
|
2098
2539
|
};
|
|
2099
2540
|
};
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
.filter((e)
|
|
2103
|
-
.map((entry)
|
|
2541
|
+
var deserializeAws_json1_1RepositoryList = function (output, context) {
|
|
2542
|
+
var retVal = (output || [])
|
|
2543
|
+
.filter(function (e) { return e != null; })
|
|
2544
|
+
.map(function (entry) {
|
|
2104
2545
|
if (entry === null) {
|
|
2105
2546
|
return null;
|
|
2106
2547
|
}
|
|
@@ -2108,43 +2549,43 @@ const deserializeAws_json1_1RepositoryList = (output, context) => {
|
|
|
2108
2549
|
});
|
|
2109
2550
|
return retVal;
|
|
2110
2551
|
};
|
|
2111
|
-
|
|
2552
|
+
var deserializeAws_json1_1RepositoryNotEmptyException = function (output, context) {
|
|
2112
2553
|
return {
|
|
2113
2554
|
message: __expectString(output.message),
|
|
2114
2555
|
};
|
|
2115
2556
|
};
|
|
2116
|
-
|
|
2557
|
+
var deserializeAws_json1_1RepositoryNotFoundException = function (output, context) {
|
|
2117
2558
|
return {
|
|
2118
2559
|
message: __expectString(output.message),
|
|
2119
2560
|
};
|
|
2120
2561
|
};
|
|
2121
|
-
|
|
2562
|
+
var deserializeAws_json1_1RepositoryPolicyNotFoundException = function (output, context) {
|
|
2122
2563
|
return {
|
|
2123
2564
|
message: __expectString(output.message),
|
|
2124
2565
|
};
|
|
2125
2566
|
};
|
|
2126
|
-
|
|
2567
|
+
var deserializeAws_json1_1ServerException = function (output, context) {
|
|
2127
2568
|
return {
|
|
2128
2569
|
message: __expectString(output.message),
|
|
2129
2570
|
};
|
|
2130
2571
|
};
|
|
2131
|
-
|
|
2572
|
+
var deserializeAws_json1_1SetRepositoryPolicyResponse = function (output, context) {
|
|
2132
2573
|
return {
|
|
2133
2574
|
policyText: __expectString(output.policyText),
|
|
2134
2575
|
registryId: __expectString(output.registryId),
|
|
2135
2576
|
repositoryName: __expectString(output.repositoryName),
|
|
2136
2577
|
};
|
|
2137
2578
|
};
|
|
2138
|
-
|
|
2579
|
+
var deserializeAws_json1_1Tag = function (output, context) {
|
|
2139
2580
|
return {
|
|
2140
2581
|
Key: __expectString(output.Key),
|
|
2141
2582
|
Value: __expectString(output.Value),
|
|
2142
2583
|
};
|
|
2143
2584
|
};
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
.filter((e)
|
|
2147
|
-
.map((entry)
|
|
2585
|
+
var deserializeAws_json1_1TagList = function (output, context) {
|
|
2586
|
+
var retVal = (output || [])
|
|
2587
|
+
.filter(function (e) { return e != null; })
|
|
2588
|
+
.map(function (entry) {
|
|
2148
2589
|
if (entry === null) {
|
|
2149
2590
|
return null;
|
|
2150
2591
|
}
|
|
@@ -2152,23 +2593,23 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
2152
2593
|
});
|
|
2153
2594
|
return retVal;
|
|
2154
2595
|
};
|
|
2155
|
-
|
|
2596
|
+
var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
2156
2597
|
return {};
|
|
2157
2598
|
};
|
|
2158
|
-
|
|
2599
|
+
var deserializeAws_json1_1TooManyTagsException = function (output, context) {
|
|
2159
2600
|
return {
|
|
2160
2601
|
message: __expectString(output.message),
|
|
2161
2602
|
};
|
|
2162
2603
|
};
|
|
2163
|
-
|
|
2604
|
+
var deserializeAws_json1_1UnsupportedCommandException = function (output, context) {
|
|
2164
2605
|
return {
|
|
2165
2606
|
message: __expectString(output.message),
|
|
2166
2607
|
};
|
|
2167
2608
|
};
|
|
2168
|
-
|
|
2609
|
+
var deserializeAws_json1_1UntagResourceResponse = function (output, context) {
|
|
2169
2610
|
return {};
|
|
2170
2611
|
};
|
|
2171
|
-
|
|
2612
|
+
var deserializeAws_json1_1UploadLayerPartResponse = function (output, context) {
|
|
2172
2613
|
return {
|
|
2173
2614
|
lastByteReceived: __expectLong(output.lastByteReceived),
|
|
2174
2615
|
registryId: __expectString(output.registryId),
|
|
@@ -2176,57 +2617,80 @@ const deserializeAws_json1_1UploadLayerPartResponse = (output, context) => {
|
|
|
2176
2617
|
uploadId: __expectString(output.uploadId),
|
|
2177
2618
|
};
|
|
2178
2619
|
};
|
|
2179
|
-
|
|
2620
|
+
var deserializeAws_json1_1UploadNotFoundException = function (output, context) {
|
|
2180
2621
|
return {
|
|
2181
2622
|
message: __expectString(output.message),
|
|
2182
2623
|
};
|
|
2183
2624
|
};
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2625
|
+
var deserializeMetadata = function (output) {
|
|
2626
|
+
var _a, _b;
|
|
2627
|
+
return ({
|
|
2628
|
+
httpStatusCode: output.statusCode,
|
|
2629
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2630
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2631
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2632
|
+
});
|
|
2633
|
+
};
|
|
2634
|
+
var collectBody = function (streamBody, context) {
|
|
2635
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2191
2636
|
if (streamBody instanceof Uint8Array) {
|
|
2192
2637
|
return Promise.resolve(streamBody);
|
|
2193
2638
|
}
|
|
2194
2639
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2195
2640
|
};
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2641
|
+
var collectBodyString = function (streamBody, context) {
|
|
2642
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2643
|
+
};
|
|
2644
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2645
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2646
|
+
return __generator(this, function (_c) {
|
|
2647
|
+
switch (_c.label) {
|
|
2648
|
+
case 0: return [4, context.endpoint()];
|
|
2649
|
+
case 1:
|
|
2650
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2651
|
+
contents = {
|
|
2652
|
+
protocol: protocol,
|
|
2653
|
+
hostname: hostname,
|
|
2654
|
+
port: port,
|
|
2655
|
+
method: "POST",
|
|
2656
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2657
|
+
headers: headers,
|
|
2658
|
+
};
|
|
2659
|
+
if (resolvedHostname !== undefined) {
|
|
2660
|
+
contents.hostname = resolvedHostname;
|
|
2661
|
+
}
|
|
2662
|
+
if (body !== undefined) {
|
|
2663
|
+
contents.body = body;
|
|
2664
|
+
}
|
|
2665
|
+
return [2, new __HttpRequest(contents)];
|
|
2666
|
+
}
|
|
2667
|
+
});
|
|
2668
|
+
}); };
|
|
2669
|
+
var parseBody = function (streamBody, context) {
|
|
2670
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2671
|
+
if (encoded.length) {
|
|
2672
|
+
return JSON.parse(encoded);
|
|
2673
|
+
}
|
|
2674
|
+
return {};
|
|
2675
|
+
});
|
|
2214
2676
|
};
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2677
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2678
|
+
var value;
|
|
2679
|
+
var _a;
|
|
2680
|
+
return __generator(this, function (_b) {
|
|
2681
|
+
switch (_b.label) {
|
|
2682
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2683
|
+
case 1:
|
|
2684
|
+
value = _b.sent();
|
|
2685
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2686
|
+
return [2, value];
|
|
2687
|
+
}
|
|
2688
|
+
});
|
|
2689
|
+
}); };
|
|
2690
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2691
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2692
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2693
|
+
var cleanValue = rawValue;
|
|
2230
2694
|
if (typeof cleanValue === "number") {
|
|
2231
2695
|
cleanValue = cleanValue.toString();
|
|
2232
2696
|
}
|
|
@@ -2241,7 +2705,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2241
2705
|
}
|
|
2242
2706
|
return cleanValue;
|
|
2243
2707
|
};
|
|
2244
|
-
|
|
2708
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2245
2709
|
if (headerKey !== undefined) {
|
|
2246
2710
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2247
2711
|
}
|