@aws-sdk/client-ecr-public 3.118.1 → 3.128.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.
@@ -275,7 +275,7 @@ export var deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = function (
275
275
  });
276
276
  }); };
277
277
  var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
278
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
278
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
279
279
  var _c;
280
280
  return __generator(this, function (_d) {
281
281
  switch (_d.label) {
@@ -285,7 +285,6 @@ var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (ou
285
285
  return [4, parseBody(output.body, context)];
286
286
  case 1:
287
287
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
288
- errorCode = "UnknownError";
289
288
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
290
289
  _b = errorCode;
291
290
  switch (_b) {
@@ -309,10 +308,12 @@ var deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = function (ou
309
308
  case 9: throw _d.sent();
310
309
  case 10:
311
310
  parsedBody = parsedOutput.body;
311
+ $metadata = deserializeMetadata(output);
312
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
312
313
  response = new __BaseException({
313
- name: parsedBody.code || parsedBody.Code || errorCode,
314
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
314
315
  $fault: "client",
315
- $metadata: deserializeMetadata(output),
316
+ $metadata: $metadata,
316
317
  });
317
318
  throw __decorateServiceException(response, parsedBody);
318
319
  }
@@ -337,7 +338,7 @@ export var deserializeAws_json1_1BatchDeleteImageCommand = function (output, con
337
338
  });
338
339
  }); };
339
340
  var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
340
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
341
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
341
342
  var _c;
342
343
  return __generator(this, function (_d) {
343
344
  switch (_d.label) {
@@ -347,7 +348,6 @@ var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, conte
347
348
  return [4, parseBody(output.body, context)];
348
349
  case 1:
349
350
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
350
- errorCode = "UnknownError";
351
351
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
352
352
  _b = errorCode;
353
353
  switch (_b) {
@@ -367,10 +367,12 @@ var deserializeAws_json1_1BatchDeleteImageCommandError = function (output, conte
367
367
  case 7: throw _d.sent();
368
368
  case 8:
369
369
  parsedBody = parsedOutput.body;
370
+ $metadata = deserializeMetadata(output);
371
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
370
372
  response = new __BaseException({
371
- name: parsedBody.code || parsedBody.Code || errorCode,
373
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
372
374
  $fault: "client",
373
- $metadata: deserializeMetadata(output),
375
+ $metadata: $metadata,
374
376
  });
375
377
  throw __decorateServiceException(response, parsedBody);
376
378
  }
@@ -395,7 +397,7 @@ export var deserializeAws_json1_1CompleteLayerUploadCommand = function (output,
395
397
  });
396
398
  }); };
397
399
  var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
398
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
400
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
399
401
  var _c;
400
402
  return __generator(this, function (_d) {
401
403
  switch (_d.label) {
@@ -405,7 +407,6 @@ var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, co
405
407
  return [4, parseBody(output.body, context)];
406
408
  case 1:
407
409
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
408
- errorCode = "UnknownError";
409
410
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
410
411
  _b = errorCode;
411
412
  switch (_b) {
@@ -453,10 +454,12 @@ var deserializeAws_json1_1CompleteLayerUploadCommandError = function (output, co
453
454
  case 21: throw _d.sent();
454
455
  case 22:
455
456
  parsedBody = parsedOutput.body;
457
+ $metadata = deserializeMetadata(output);
458
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
456
459
  response = new __BaseException({
457
- name: parsedBody.code || parsedBody.Code || errorCode,
460
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
458
461
  $fault: "client",
459
- $metadata: deserializeMetadata(output),
462
+ $metadata: $metadata,
460
463
  });
461
464
  throw __decorateServiceException(response, parsedBody);
462
465
  }
@@ -481,7 +484,7 @@ export var deserializeAws_json1_1CreateRepositoryCommand = function (output, con
481
484
  });
482
485
  }); };
483
486
  var deserializeAws_json1_1CreateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
484
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
487
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
485
488
  var _c;
486
489
  return __generator(this, function (_d) {
487
490
  switch (_d.label) {
@@ -491,7 +494,6 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
491
494
  return [4, parseBody(output.body, context)];
492
495
  case 1:
493
496
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
494
- errorCode = "UnknownError";
495
497
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
496
498
  _b = errorCode;
497
499
  switch (_b) {
@@ -523,10 +525,12 @@ var deserializeAws_json1_1CreateRepositoryCommandError = function (output, conte
523
525
  case 13: throw _d.sent();
524
526
  case 14:
525
527
  parsedBody = parsedOutput.body;
528
+ $metadata = deserializeMetadata(output);
529
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
526
530
  response = new __BaseException({
527
- name: parsedBody.code || parsedBody.Code || errorCode,
531
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
528
532
  $fault: "client",
529
- $metadata: deserializeMetadata(output),
533
+ $metadata: $metadata,
530
534
  });
531
535
  throw __decorateServiceException(response, parsedBody);
532
536
  }
@@ -551,7 +555,7 @@ export var deserializeAws_json1_1DeleteRepositoryCommand = function (output, con
551
555
  });
552
556
  }); };
553
557
  var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
554
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
558
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
555
559
  var _c;
556
560
  return __generator(this, function (_d) {
557
561
  switch (_d.label) {
@@ -561,7 +565,6 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
561
565
  return [4, parseBody(output.body, context)];
562
566
  case 1:
563
567
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
564
- errorCode = "UnknownError";
565
568
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
566
569
  _b = errorCode;
567
570
  switch (_b) {
@@ -585,10 +588,12 @@ var deserializeAws_json1_1DeleteRepositoryCommandError = function (output, conte
585
588
  case 9: throw _d.sent();
586
589
  case 10:
587
590
  parsedBody = parsedOutput.body;
591
+ $metadata = deserializeMetadata(output);
592
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
588
593
  response = new __BaseException({
589
- name: parsedBody.code || parsedBody.Code || errorCode,
594
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
590
595
  $fault: "client",
591
- $metadata: deserializeMetadata(output),
596
+ $metadata: $metadata,
592
597
  });
593
598
  throw __decorateServiceException(response, parsedBody);
594
599
  }
@@ -613,7 +618,7 @@ export var deserializeAws_json1_1DeleteRepositoryPolicyCommand = function (outpu
613
618
  });
614
619
  }); };
615
620
  var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
616
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
621
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
617
622
  var _c;
618
623
  return __generator(this, function (_d) {
619
624
  switch (_d.label) {
@@ -623,7 +628,6 @@ var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output,
623
628
  return [4, parseBody(output.body, context)];
624
629
  case 1:
625
630
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
626
- errorCode = "UnknownError";
627
631
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
628
632
  _b = errorCode;
629
633
  switch (_b) {
@@ -647,10 +651,12 @@ var deserializeAws_json1_1DeleteRepositoryPolicyCommandError = function (output,
647
651
  case 9: throw _d.sent();
648
652
  case 10:
649
653
  parsedBody = parsedOutput.body;
654
+ $metadata = deserializeMetadata(output);
655
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
650
656
  response = new __BaseException({
651
- name: parsedBody.code || parsedBody.Code || errorCode,
657
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
652
658
  $fault: "client",
653
- $metadata: deserializeMetadata(output),
659
+ $metadata: $metadata,
654
660
  });
655
661
  throw __decorateServiceException(response, parsedBody);
656
662
  }
@@ -675,7 +681,7 @@ export var deserializeAws_json1_1DescribeImagesCommand = function (output, conte
675
681
  });
676
682
  }); };
677
683
  var deserializeAws_json1_1DescribeImagesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
678
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
684
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
679
685
  var _c;
680
686
  return __generator(this, function (_d) {
681
687
  switch (_d.label) {
@@ -685,7 +691,6 @@ var deserializeAws_json1_1DescribeImagesCommandError = function (output, context
685
691
  return [4, parseBody(output.body, context)];
686
692
  case 1:
687
693
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
688
- errorCode = "UnknownError";
689
694
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
690
695
  _b = errorCode;
691
696
  switch (_b) {
@@ -709,10 +714,12 @@ var deserializeAws_json1_1DescribeImagesCommandError = function (output, context
709
714
  case 9: throw _d.sent();
710
715
  case 10:
711
716
  parsedBody = parsedOutput.body;
717
+ $metadata = deserializeMetadata(output);
718
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
712
719
  response = new __BaseException({
713
- name: parsedBody.code || parsedBody.Code || errorCode,
720
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
714
721
  $fault: "client",
715
- $metadata: deserializeMetadata(output),
722
+ $metadata: $metadata,
716
723
  });
717
724
  throw __decorateServiceException(response, parsedBody);
718
725
  }
@@ -737,7 +744,7 @@ export var deserializeAws_json1_1DescribeImageTagsCommand = function (output, co
737
744
  });
738
745
  }); };
739
746
  var deserializeAws_json1_1DescribeImageTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
740
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
747
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
741
748
  var _c;
742
749
  return __generator(this, function (_d) {
743
750
  switch (_d.label) {
@@ -747,7 +754,6 @@ var deserializeAws_json1_1DescribeImageTagsCommandError = function (output, cont
747
754
  return [4, parseBody(output.body, context)];
748
755
  case 1:
749
756
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
750
- errorCode = "UnknownError";
751
757
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
752
758
  _b = errorCode;
753
759
  switch (_b) {
@@ -767,10 +773,12 @@ var deserializeAws_json1_1DescribeImageTagsCommandError = function (output, cont
767
773
  case 7: throw _d.sent();
768
774
  case 8:
769
775
  parsedBody = parsedOutput.body;
776
+ $metadata = deserializeMetadata(output);
777
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
770
778
  response = new __BaseException({
771
- name: parsedBody.code || parsedBody.Code || errorCode,
779
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
772
780
  $fault: "client",
773
- $metadata: deserializeMetadata(output),
781
+ $metadata: $metadata,
774
782
  });
775
783
  throw __decorateServiceException(response, parsedBody);
776
784
  }
@@ -795,7 +803,7 @@ export var deserializeAws_json1_1DescribeRegistriesCommand = function (output, c
795
803
  });
796
804
  }); };
797
805
  var deserializeAws_json1_1DescribeRegistriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
798
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
806
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
799
807
  var _c;
800
808
  return __generator(this, function (_d) {
801
809
  switch (_d.label) {
@@ -805,7 +813,6 @@ var deserializeAws_json1_1DescribeRegistriesCommandError = function (output, con
805
813
  return [4, parseBody(output.body, context)];
806
814
  case 1:
807
815
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
808
- errorCode = "UnknownError";
809
816
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
810
817
  _b = errorCode;
811
818
  switch (_b) {
@@ -825,10 +832,12 @@ var deserializeAws_json1_1DescribeRegistriesCommandError = function (output, con
825
832
  case 7: throw _d.sent();
826
833
  case 8:
827
834
  parsedBody = parsedOutput.body;
835
+ $metadata = deserializeMetadata(output);
836
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
828
837
  response = new __BaseException({
829
- name: parsedBody.code || parsedBody.Code || errorCode,
838
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
830
839
  $fault: "client",
831
- $metadata: deserializeMetadata(output),
840
+ $metadata: $metadata,
832
841
  });
833
842
  throw __decorateServiceException(response, parsedBody);
834
843
  }
@@ -853,7 +862,7 @@ export var deserializeAws_json1_1DescribeRepositoriesCommand = function (output,
853
862
  });
854
863
  }); };
855
864
  var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
856
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
865
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
857
866
  var _c;
858
867
  return __generator(this, function (_d) {
859
868
  switch (_d.label) {
@@ -863,7 +872,6 @@ var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, c
863
872
  return [4, parseBody(output.body, context)];
864
873
  case 1:
865
874
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
866
- errorCode = "UnknownError";
867
875
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
868
876
  _b = errorCode;
869
877
  switch (_b) {
@@ -883,10 +891,12 @@ var deserializeAws_json1_1DescribeRepositoriesCommandError = function (output, c
883
891
  case 7: throw _d.sent();
884
892
  case 8:
885
893
  parsedBody = parsedOutput.body;
894
+ $metadata = deserializeMetadata(output);
895
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
886
896
  response = new __BaseException({
887
- name: parsedBody.code || parsedBody.Code || errorCode,
897
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
888
898
  $fault: "client",
889
- $metadata: deserializeMetadata(output),
899
+ $metadata: $metadata,
890
900
  });
891
901
  throw __decorateServiceException(response, parsedBody);
892
902
  }
@@ -911,7 +921,7 @@ export var deserializeAws_json1_1GetAuthorizationTokenCommand = function (output
911
921
  });
912
922
  }); };
913
923
  var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
914
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
924
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
915
925
  var _c;
916
926
  return __generator(this, function (_d) {
917
927
  switch (_d.label) {
@@ -921,7 +931,6 @@ var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output,
921
931
  return [4, parseBody(output.body, context)];
922
932
  case 1:
923
933
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
924
- errorCode = "UnknownError";
925
934
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
926
935
  _b = errorCode;
927
936
  switch (_b) {
@@ -937,10 +946,12 @@ var deserializeAws_json1_1GetAuthorizationTokenCommandError = function (output,
937
946
  case 5: throw _d.sent();
938
947
  case 6:
939
948
  parsedBody = parsedOutput.body;
949
+ $metadata = deserializeMetadata(output);
950
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
940
951
  response = new __BaseException({
941
- name: parsedBody.code || parsedBody.Code || errorCode,
952
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
942
953
  $fault: "client",
943
- $metadata: deserializeMetadata(output),
954
+ $metadata: $metadata,
944
955
  });
945
956
  throw __decorateServiceException(response, parsedBody);
946
957
  }
@@ -965,7 +976,7 @@ export var deserializeAws_json1_1GetRegistryCatalogDataCommand = function (outpu
965
976
  });
966
977
  }); };
967
978
  var deserializeAws_json1_1GetRegistryCatalogDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
968
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
979
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
969
980
  var _c;
970
981
  return __generator(this, function (_d) {
971
982
  switch (_d.label) {
@@ -975,7 +986,6 @@ var deserializeAws_json1_1GetRegistryCatalogDataCommandError = function (output,
975
986
  return [4, parseBody(output.body, context)];
976
987
  case 1:
977
988
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
978
- errorCode = "UnknownError";
979
989
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
990
  _b = errorCode;
981
991
  switch (_b) {
@@ -991,10 +1001,12 @@ var deserializeAws_json1_1GetRegistryCatalogDataCommandError = function (output,
991
1001
  case 5: throw _d.sent();
992
1002
  case 6:
993
1003
  parsedBody = parsedOutput.body;
1004
+ $metadata = deserializeMetadata(output);
1005
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
994
1006
  response = new __BaseException({
995
- name: parsedBody.code || parsedBody.Code || errorCode,
1007
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
996
1008
  $fault: "client",
997
- $metadata: deserializeMetadata(output),
1009
+ $metadata: $metadata,
998
1010
  });
999
1011
  throw __decorateServiceException(response, parsedBody);
1000
1012
  }
@@ -1019,7 +1031,7 @@ export var deserializeAws_json1_1GetRepositoryCatalogDataCommand = function (out
1019
1031
  });
1020
1032
  }); };
1021
1033
  var deserializeAws_json1_1GetRepositoryCatalogDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1022
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1034
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1023
1035
  var _c;
1024
1036
  return __generator(this, function (_d) {
1025
1037
  switch (_d.label) {
@@ -1029,7 +1041,6 @@ var deserializeAws_json1_1GetRepositoryCatalogDataCommandError = function (outpu
1029
1041
  return [4, parseBody(output.body, context)];
1030
1042
  case 1:
1031
1043
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1032
- errorCode = "UnknownError";
1033
1044
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1034
1045
  _b = errorCode;
1035
1046
  switch (_b) {
@@ -1049,10 +1060,12 @@ var deserializeAws_json1_1GetRepositoryCatalogDataCommandError = function (outpu
1049
1060
  case 7: throw _d.sent();
1050
1061
  case 8:
1051
1062
  parsedBody = parsedOutput.body;
1063
+ $metadata = deserializeMetadata(output);
1064
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1052
1065
  response = new __BaseException({
1053
- name: parsedBody.code || parsedBody.Code || errorCode,
1066
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1054
1067
  $fault: "client",
1055
- $metadata: deserializeMetadata(output),
1068
+ $metadata: $metadata,
1056
1069
  });
1057
1070
  throw __decorateServiceException(response, parsedBody);
1058
1071
  }
@@ -1077,7 +1090,7 @@ export var deserializeAws_json1_1GetRepositoryPolicyCommand = function (output,
1077
1090
  });
1078
1091
  }); };
1079
1092
  var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1080
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1093
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1081
1094
  var _c;
1082
1095
  return __generator(this, function (_d) {
1083
1096
  switch (_d.label) {
@@ -1087,7 +1100,6 @@ var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, co
1087
1100
  return [4, parseBody(output.body, context)];
1088
1101
  case 1:
1089
1102
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1090
- errorCode = "UnknownError";
1091
1103
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1092
1104
  _b = errorCode;
1093
1105
  switch (_b) {
@@ -1111,10 +1123,12 @@ var deserializeAws_json1_1GetRepositoryPolicyCommandError = function (output, co
1111
1123
  case 9: throw _d.sent();
1112
1124
  case 10:
1113
1125
  parsedBody = parsedOutput.body;
1126
+ $metadata = deserializeMetadata(output);
1127
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1114
1128
  response = new __BaseException({
1115
- name: parsedBody.code || parsedBody.Code || errorCode,
1129
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1116
1130
  $fault: "client",
1117
- $metadata: deserializeMetadata(output),
1131
+ $metadata: $metadata,
1118
1132
  });
1119
1133
  throw __decorateServiceException(response, parsedBody);
1120
1134
  }
@@ -1139,7 +1153,7 @@ export var deserializeAws_json1_1InitiateLayerUploadCommand = function (output,
1139
1153
  });
1140
1154
  }); };
1141
1155
  var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1142
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1156
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1143
1157
  var _c;
1144
1158
  return __generator(this, function (_d) {
1145
1159
  switch (_d.label) {
@@ -1149,7 +1163,6 @@ var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, co
1149
1163
  return [4, parseBody(output.body, context)];
1150
1164
  case 1:
1151
1165
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1152
- errorCode = "UnknownError";
1153
1166
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1154
1167
  _b = errorCode;
1155
1168
  switch (_b) {
@@ -1177,10 +1190,12 @@ var deserializeAws_json1_1InitiateLayerUploadCommandError = function (output, co
1177
1190
  case 11: throw _d.sent();
1178
1191
  case 12:
1179
1192
  parsedBody = parsedOutput.body;
1193
+ $metadata = deserializeMetadata(output);
1194
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1180
1195
  response = new __BaseException({
1181
- name: parsedBody.code || parsedBody.Code || errorCode,
1196
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1182
1197
  $fault: "client",
1183
- $metadata: deserializeMetadata(output),
1198
+ $metadata: $metadata,
1184
1199
  });
1185
1200
  throw __decorateServiceException(response, parsedBody);
1186
1201
  }
@@ -1205,7 +1220,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
1205
1220
  });
1206
1221
  }); };
1207
1222
  var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1208
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1223
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1209
1224
  var _c;
1210
1225
  return __generator(this, function (_d) {
1211
1226
  switch (_d.label) {
@@ -1215,7 +1230,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
1215
1230
  return [4, parseBody(output.body, context)];
1216
1231
  case 1:
1217
1232
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1218
- errorCode = "UnknownError";
1219
1233
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1220
1234
  _b = errorCode;
1221
1235
  switch (_b) {
@@ -1235,10 +1249,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
1235
1249
  case 7: throw _d.sent();
1236
1250
  case 8:
1237
1251
  parsedBody = parsedOutput.body;
1252
+ $metadata = deserializeMetadata(output);
1253
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1238
1254
  response = new __BaseException({
1239
- name: parsedBody.code || parsedBody.Code || errorCode,
1255
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1240
1256
  $fault: "client",
1241
- $metadata: deserializeMetadata(output),
1257
+ $metadata: $metadata,
1242
1258
  });
1243
1259
  throw __decorateServiceException(response, parsedBody);
1244
1260
  }
@@ -1263,7 +1279,7 @@ export var deserializeAws_json1_1PutImageCommand = function (output, context) {
1263
1279
  });
1264
1280
  }); };
1265
1281
  var deserializeAws_json1_1PutImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1266
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1282
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1267
1283
  var _c;
1268
1284
  return __generator(this, function (_d) {
1269
1285
  switch (_d.label) {
@@ -1273,7 +1289,6 @@ var deserializeAws_json1_1PutImageCommandError = function (output, context) { re
1273
1289
  return [4, parseBody(output.body, context)];
1274
1290
  case 1:
1275
1291
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1276
- errorCode = "UnknownError";
1277
1292
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1278
1293
  _b = errorCode;
1279
1294
  switch (_b) {
@@ -1325,10 +1340,12 @@ var deserializeAws_json1_1PutImageCommandError = function (output, context) { re
1325
1340
  case 23: throw _d.sent();
1326
1341
  case 24:
1327
1342
  parsedBody = parsedOutput.body;
1343
+ $metadata = deserializeMetadata(output);
1344
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1328
1345
  response = new __BaseException({
1329
- name: parsedBody.code || parsedBody.Code || errorCode,
1346
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1330
1347
  $fault: "client",
1331
- $metadata: deserializeMetadata(output),
1348
+ $metadata: $metadata,
1332
1349
  });
1333
1350
  throw __decorateServiceException(response, parsedBody);
1334
1351
  }
@@ -1353,7 +1370,7 @@ export var deserializeAws_json1_1PutRegistryCatalogDataCommand = function (outpu
1353
1370
  });
1354
1371
  }); };
1355
1372
  var deserializeAws_json1_1PutRegistryCatalogDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1356
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1373
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1357
1374
  var _c;
1358
1375
  return __generator(this, function (_d) {
1359
1376
  switch (_d.label) {
@@ -1363,7 +1380,6 @@ var deserializeAws_json1_1PutRegistryCatalogDataCommandError = function (output,
1363
1380
  return [4, parseBody(output.body, context)];
1364
1381
  case 1:
1365
1382
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1366
- errorCode = "UnknownError";
1367
1383
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1368
1384
  _b = errorCode;
1369
1385
  switch (_b) {
@@ -1383,10 +1399,12 @@ var deserializeAws_json1_1PutRegistryCatalogDataCommandError = function (output,
1383
1399
  case 7: throw _d.sent();
1384
1400
  case 8:
1385
1401
  parsedBody = parsedOutput.body;
1402
+ $metadata = deserializeMetadata(output);
1403
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1386
1404
  response = new __BaseException({
1387
- name: parsedBody.code || parsedBody.Code || errorCode,
1405
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1388
1406
  $fault: "client",
1389
- $metadata: deserializeMetadata(output),
1407
+ $metadata: $metadata,
1390
1408
  });
1391
1409
  throw __decorateServiceException(response, parsedBody);
1392
1410
  }
@@ -1411,7 +1429,7 @@ export var deserializeAws_json1_1PutRepositoryCatalogDataCommand = function (out
1411
1429
  });
1412
1430
  }); };
1413
1431
  var deserializeAws_json1_1PutRepositoryCatalogDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1414
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1432
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1415
1433
  var _c;
1416
1434
  return __generator(this, function (_d) {
1417
1435
  switch (_d.label) {
@@ -1421,7 +1439,6 @@ var deserializeAws_json1_1PutRepositoryCatalogDataCommandError = function (outpu
1421
1439
  return [4, parseBody(output.body, context)];
1422
1440
  case 1:
1423
1441
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1424
- errorCode = "UnknownError";
1425
1442
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1426
1443
  _b = errorCode;
1427
1444
  switch (_b) {
@@ -1441,10 +1458,12 @@ var deserializeAws_json1_1PutRepositoryCatalogDataCommandError = function (outpu
1441
1458
  case 7: throw _d.sent();
1442
1459
  case 8:
1443
1460
  parsedBody = parsedOutput.body;
1461
+ $metadata = deserializeMetadata(output);
1462
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1444
1463
  response = new __BaseException({
1445
- name: parsedBody.code || parsedBody.Code || errorCode,
1464
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1446
1465
  $fault: "client",
1447
- $metadata: deserializeMetadata(output),
1466
+ $metadata: $metadata,
1448
1467
  });
1449
1468
  throw __decorateServiceException(response, parsedBody);
1450
1469
  }
@@ -1469,7 +1488,7 @@ export var deserializeAws_json1_1SetRepositoryPolicyCommand = function (output,
1469
1488
  });
1470
1489
  }); };
1471
1490
  var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1472
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1491
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1473
1492
  var _c;
1474
1493
  return __generator(this, function (_d) {
1475
1494
  switch (_d.label) {
@@ -1479,7 +1498,6 @@ var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, co
1479
1498
  return [4, parseBody(output.body, context)];
1480
1499
  case 1:
1481
1500
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1482
- errorCode = "UnknownError";
1483
1501
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1484
1502
  _b = errorCode;
1485
1503
  switch (_b) {
@@ -1499,10 +1517,12 @@ var deserializeAws_json1_1SetRepositoryPolicyCommandError = function (output, co
1499
1517
  case 7: throw _d.sent();
1500
1518
  case 8:
1501
1519
  parsedBody = parsedOutput.body;
1520
+ $metadata = deserializeMetadata(output);
1521
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1502
1522
  response = new __BaseException({
1503
- name: parsedBody.code || parsedBody.Code || errorCode,
1523
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1504
1524
  $fault: "client",
1505
- $metadata: deserializeMetadata(output),
1525
+ $metadata: $metadata,
1506
1526
  });
1507
1527
  throw __decorateServiceException(response, parsedBody);
1508
1528
  }
@@ -1527,7 +1547,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
1527
1547
  });
1528
1548
  }); };
1529
1549
  var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1530
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1550
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1531
1551
  var _c;
1532
1552
  return __generator(this, function (_d) {
1533
1553
  switch (_d.label) {
@@ -1537,7 +1557,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
1537
1557
  return [4, parseBody(output.body, context)];
1538
1558
  case 1:
1539
1559
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1540
- errorCode = "UnknownError";
1541
1560
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1542
1561
  _b = errorCode;
1543
1562
  switch (_b) {
@@ -1565,10 +1584,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
1565
1584
  case 11: throw _d.sent();
1566
1585
  case 12:
1567
1586
  parsedBody = parsedOutput.body;
1587
+ $metadata = deserializeMetadata(output);
1588
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1568
1589
  response = new __BaseException({
1569
- name: parsedBody.code || parsedBody.Code || errorCode,
1590
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1570
1591
  $fault: "client",
1571
- $metadata: deserializeMetadata(output),
1592
+ $metadata: $metadata,
1572
1593
  });
1573
1594
  throw __decorateServiceException(response, parsedBody);
1574
1595
  }
@@ -1593,7 +1614,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
1593
1614
  });
1594
1615
  }); };
1595
1616
  var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1596
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1617
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1597
1618
  var _c;
1598
1619
  return __generator(this, function (_d) {
1599
1620
  switch (_d.label) {
@@ -1603,7 +1624,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
1603
1624
  return [4, parseBody(output.body, context)];
1604
1625
  case 1:
1605
1626
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1606
- errorCode = "UnknownError";
1607
1627
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1608
1628
  _b = errorCode;
1609
1629
  switch (_b) {
@@ -1631,10 +1651,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
1631
1651
  case 11: throw _d.sent();
1632
1652
  case 12:
1633
1653
  parsedBody = parsedOutput.body;
1654
+ $metadata = deserializeMetadata(output);
1655
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1634
1656
  response = new __BaseException({
1635
- name: parsedBody.code || parsedBody.Code || errorCode,
1657
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1636
1658
  $fault: "client",
1637
- $metadata: deserializeMetadata(output),
1659
+ $metadata: $metadata,
1638
1660
  });
1639
1661
  throw __decorateServiceException(response, parsedBody);
1640
1662
  }
@@ -1659,7 +1681,7 @@ export var deserializeAws_json1_1UploadLayerPartCommand = function (output, cont
1659
1681
  });
1660
1682
  }); };
1661
1683
  var deserializeAws_json1_1UploadLayerPartCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1662
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
1684
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
1663
1685
  var _c;
1664
1686
  return __generator(this, function (_d) {
1665
1687
  switch (_d.label) {
@@ -1669,7 +1691,6 @@ var deserializeAws_json1_1UploadLayerPartCommandError = function (output, contex
1669
1691
  return [4, parseBody(output.body, context)];
1670
1692
  case 1:
1671
1693
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
1672
- errorCode = "UnknownError";
1673
1694
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1674
1695
  _b = errorCode;
1675
1696
  switch (_b) {
@@ -1709,10 +1730,12 @@ var deserializeAws_json1_1UploadLayerPartCommandError = function (output, contex
1709
1730
  case 17: throw _d.sent();
1710
1731
  case 18:
1711
1732
  parsedBody = parsedOutput.body;
1733
+ $metadata = deserializeMetadata(output);
1734
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1712
1735
  response = new __BaseException({
1713
- name: parsedBody.code || parsedBody.Code || errorCode,
1736
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1714
1737
  $fault: "client",
1715
- $metadata: deserializeMetadata(output),
1738
+ $metadata: $metadata,
1716
1739
  });
1717
1740
  throw __decorateServiceException(response, parsedBody);
1718
1741
  }
@@ -1936,16 +1959,12 @@ var serializeAws_json1_1ArchitectureList = function (input, context) {
1936
1959
  });
1937
1960
  };
1938
1961
  var serializeAws_json1_1BatchCheckLayerAvailabilityRequest = function (input, context) {
1939
- return __assign(__assign(__assign({}, (input.layerDigests !== undefined &&
1940
- input.layerDigests !== null && {
1962
+ return __assign(__assign(__assign({}, (input.layerDigests != null && {
1941
1963
  layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context),
1942
- })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
1943
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
1964
+ })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
1944
1965
  };
1945
1966
  var serializeAws_json1_1BatchDeleteImageRequest = function (input, context) {
1946
- return __assign(__assign(__assign({}, (input.imageIds !== undefined &&
1947
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
1948
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
1967
+ 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 }));
1949
1968
  };
1950
1969
  var serializeAws_json1_1BatchedOperationLayerDigestList = function (input, context) {
1951
1970
  return input
@@ -1958,42 +1977,32 @@ var serializeAws_json1_1BatchedOperationLayerDigestList = function (input, conte
1958
1977
  });
1959
1978
  };
1960
1979
  var serializeAws_json1_1CompleteLayerUploadRequest = function (input, context) {
1961
- return __assign(__assign(__assign(__assign({}, (input.layerDigests !== undefined &&
1962
- input.layerDigests !== null && {
1980
+ return __assign(__assign(__assign(__assign({}, (input.layerDigests != null && {
1963
1981
  layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
1964
- })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
1965
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }));
1982
+ })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.uploadId != null && { uploadId: input.uploadId }));
1966
1983
  };
1967
1984
  var serializeAws_json1_1CreateRepositoryRequest = function (input, context) {
1968
- return __assign(__assign(__assign({}, (input.catalogData !== undefined &&
1969
- input.catalogData !== null && {
1985
+ return __assign(__assign(__assign({}, (input.catalogData != null && {
1970
1986
  catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
1971
- })), (input.repositoryName !== undefined &&
1972
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
1987
+ })), (input.repositoryName != null && { repositoryName: input.repositoryName })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
1973
1988
  };
1974
1989
  var serializeAws_json1_1DeleteRepositoryPolicyRequest = function (input, context) {
1975
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
1976
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
1990
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
1977
1991
  };
1978
1992
  var serializeAws_json1_1DeleteRepositoryRequest = function (input, context) {
1979
- return __assign(__assign(__assign({}, (input.force !== undefined && input.force !== null && { force: input.force })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
1980
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
1993
+ return __assign(__assign(__assign({}, (input.force != null && { force: input.force })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
1981
1994
  };
1982
1995
  var serializeAws_json1_1DescribeImagesRequest = function (input, context) {
1983
- return __assign(__assign(__assign(__assign(__assign({}, (input.imageIds !== undefined &&
1984
- input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
1985
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
1996
+ 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 }));
1986
1997
  };
1987
1998
  var serializeAws_json1_1DescribeImageTagsRequest = function (input, context) {
1988
- return __assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
1989
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
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.repositoryName != null && { repositoryName: input.repositoryName }));
1990
2000
  };
1991
2001
  var serializeAws_json1_1DescribeRegistriesRequest = function (input, context) {
1992
- return __assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
2002
+ return __assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
1993
2003
  };
1994
2004
  var serializeAws_json1_1DescribeRepositoriesRequest = function (input, context) {
1995
- return __assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryNames !== undefined &&
1996
- input.repositoryNames !== null && {
2005
+ 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 && {
1997
2006
  repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
1998
2007
  }));
1999
2008
  };
@@ -2004,15 +2013,13 @@ var serializeAws_json1_1GetRegistryCatalogDataRequest = function (input, context
2004
2013
  return {};
2005
2014
  };
2006
2015
  var serializeAws_json1_1GetRepositoryCatalogDataRequest = function (input, context) {
2007
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
2008
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
2016
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
2009
2017
  };
2010
2018
  var serializeAws_json1_1GetRepositoryPolicyRequest = function (input, context) {
2011
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
2012
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
2019
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
2013
2020
  };
2014
2021
  var serializeAws_json1_1ImageIdentifier = function (input, context) {
2015
- return __assign(__assign({}, (input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest })), (input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }));
2022
+ return __assign(__assign({}, (input.imageDigest != null && { imageDigest: input.imageDigest })), (input.imageTag != null && { imageTag: input.imageTag }));
2016
2023
  };
2017
2024
  var serializeAws_json1_1ImageIdentifierList = function (input, context) {
2018
2025
  return input
@@ -2025,8 +2032,7 @@ var serializeAws_json1_1ImageIdentifierList = function (input, context) {
2025
2032
  });
2026
2033
  };
2027
2034
  var serializeAws_json1_1InitiateLayerUploadRequest = function (input, context) {
2028
- return __assign(__assign({}, (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
2029
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
2035
+ return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
2030
2036
  };
2031
2037
  var serializeAws_json1_1LayerDigestList = function (input, context) {
2032
2038
  return input
@@ -2039,7 +2045,7 @@ var serializeAws_json1_1LayerDigestList = function (input, context) {
2039
2045
  });
2040
2046
  };
2041
2047
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
2042
- return __assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
2048
+ return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
2043
2049
  };
2044
2050
  var serializeAws_json1_1OperatingSystemList = function (input, context) {
2045
2051
  return input
@@ -2052,29 +2058,22 @@ var serializeAws_json1_1OperatingSystemList = function (input, context) {
2052
2058
  });
2053
2059
  };
2054
2060
  var serializeAws_json1_1PutImageRequest = function (input, context) {
2055
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest })), (input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest })), (input.imageManifestMediaType !== undefined &&
2056
- input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType })), (input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
2057
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
2061
+ 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 }));
2058
2062
  };
2059
2063
  var serializeAws_json1_1PutRegistryCatalogDataRequest = function (input, context) {
2060
- return __assign({}, (input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }));
2064
+ return __assign({}, (input.displayName != null && { displayName: input.displayName }));
2061
2065
  };
2062
2066
  var serializeAws_json1_1PutRepositoryCatalogDataRequest = function (input, context) {
2063
- return __assign(__assign(__assign({}, (input.catalogData !== undefined &&
2064
- input.catalogData !== null && {
2067
+ return __assign(__assign(__assign({}, (input.catalogData != null && {
2065
2068
  catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
2066
- })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
2067
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
2069
+ })), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
2068
2070
  };
2069
2071
  var serializeAws_json1_1RepositoryCatalogDataInput = function (input, context) {
2070
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.aboutText !== undefined && input.aboutText !== null && { aboutText: input.aboutText })), (input.architectures !== undefined &&
2071
- input.architectures !== null && {
2072
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.aboutText != null && { aboutText: input.aboutText })), (input.architectures != null && {
2072
2073
  architectures: serializeAws_json1_1ArchitectureList(input.architectures, context),
2073
- })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.logoImageBlob !== undefined &&
2074
- input.logoImageBlob !== null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) })), (input.operatingSystems !== undefined &&
2075
- input.operatingSystems !== null && {
2074
+ })), (input.description != null && { description: input.description })), (input.logoImageBlob != null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) })), (input.operatingSystems != null && {
2076
2075
  operatingSystems: serializeAws_json1_1OperatingSystemList(input.operatingSystems, context),
2077
- })), (input.usageText !== undefined && input.usageText !== null && { usageText: input.usageText }));
2076
+ })), (input.usageText != null && { usageText: input.usageText }));
2078
2077
  };
2079
2078
  var serializeAws_json1_1RepositoryNameList = function (input, context) {
2080
2079
  return input
@@ -2087,11 +2086,10 @@ var serializeAws_json1_1RepositoryNameList = function (input, context) {
2087
2086
  });
2088
2087
  };
2089
2088
  var serializeAws_json1_1SetRepositoryPolicyRequest = function (input, context) {
2090
- return __assign(__assign(__assign(__assign({}, (input.force !== undefined && input.force !== null && { force: input.force })), (input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
2091
- input.repositoryName !== null && { repositoryName: input.repositoryName }));
2089
+ 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 }));
2092
2090
  };
2093
2091
  var serializeAws_json1_1Tag = function (input, context) {
2094
- return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
2092
+ return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
2095
2093
  };
2096
2094
  var serializeAws_json1_1TagKeyList = function (input, context) {
2097
2095
  return input
@@ -2114,16 +2112,13 @@ var serializeAws_json1_1TagList = function (input, context) {
2114
2112
  });
2115
2113
  };
2116
2114
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
2117
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
2115
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
2118
2116
  };
2119
2117
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
2120
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
2121
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
2118
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
2122
2119
  };
2123
2120
  var serializeAws_json1_1UploadLayerPartRequest = function (input, context) {
2124
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.layerPartBlob !== undefined &&
2125
- input.layerPartBlob !== null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) })), (input.partFirstByte !== undefined && input.partFirstByte !== null && { partFirstByte: input.partFirstByte })), (input.partLastByte !== undefined && input.partLastByte !== null && { partLastByte: input.partLastByte })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
2126
- input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }));
2121
+ 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 }));
2127
2122
  };
2128
2123
  var deserializeAws_json1_1ArchitectureList = function (output, context) {
2129
2124
  var retVal = (output || [])
@@ -2139,29 +2134,19 @@ var deserializeAws_json1_1ArchitectureList = function (output, context) {
2139
2134
  var deserializeAws_json1_1AuthorizationData = function (output, context) {
2140
2135
  return {
2141
2136
  authorizationToken: __expectString(output.authorizationToken),
2142
- expiresAt: output.expiresAt !== undefined && output.expiresAt !== null
2143
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt)))
2144
- : undefined,
2137
+ expiresAt: output.expiresAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt))) : undefined,
2145
2138
  };
2146
2139
  };
2147
2140
  var deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = function (output, context) {
2148
2141
  return {
2149
- failures: output.failures !== undefined && output.failures !== null
2150
- ? deserializeAws_json1_1LayerFailureList(output.failures, context)
2151
- : undefined,
2152
- layers: output.layers !== undefined && output.layers !== null
2153
- ? deserializeAws_json1_1LayerList(output.layers, context)
2154
- : undefined,
2142
+ failures: output.failures != null ? deserializeAws_json1_1LayerFailureList(output.failures, context) : undefined,
2143
+ layers: output.layers != null ? deserializeAws_json1_1LayerList(output.layers, context) : undefined,
2155
2144
  };
2156
2145
  };
2157
2146
  var deserializeAws_json1_1BatchDeleteImageResponse = function (output, context) {
2158
2147
  return {
2159
- failures: output.failures !== undefined && output.failures !== null
2160
- ? deserializeAws_json1_1ImageFailureList(output.failures, context)
2161
- : undefined,
2162
- imageIds: output.imageIds !== undefined && output.imageIds !== null
2163
- ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
2164
- : undefined,
2148
+ failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
2149
+ imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
2165
2150
  };
2166
2151
  };
2167
2152
  var deserializeAws_json1_1CompleteLayerUploadResponse = function (output, context) {
@@ -2174,12 +2159,8 @@ var deserializeAws_json1_1CompleteLayerUploadResponse = function (output, contex
2174
2159
  };
2175
2160
  var deserializeAws_json1_1CreateRepositoryResponse = function (output, context) {
2176
2161
  return {
2177
- catalogData: output.catalogData !== undefined && output.catalogData !== null
2178
- ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
2179
- : undefined,
2180
- repository: output.repository !== undefined && output.repository !== null
2181
- ? deserializeAws_json1_1Repository(output.repository, context)
2182
- : undefined,
2162
+ catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
2163
+ repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
2183
2164
  };
2184
2165
  };
2185
2166
  var deserializeAws_json1_1DeleteRepositoryPolicyResponse = function (output, context) {
@@ -2191,22 +2172,18 @@ var deserializeAws_json1_1DeleteRepositoryPolicyResponse = function (output, con
2191
2172
  };
2192
2173
  var deserializeAws_json1_1DeleteRepositoryResponse = function (output, context) {
2193
2174
  return {
2194
- repository: output.repository !== undefined && output.repository !== null
2195
- ? deserializeAws_json1_1Repository(output.repository, context)
2196
- : undefined,
2175
+ repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
2197
2176
  };
2198
2177
  };
2199
2178
  var deserializeAws_json1_1DescribeImagesResponse = function (output, context) {
2200
2179
  return {
2201
- imageDetails: output.imageDetails !== undefined && output.imageDetails !== null
2202
- ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context)
2203
- : undefined,
2180
+ imageDetails: output.imageDetails != null ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) : undefined,
2204
2181
  nextToken: __expectString(output.nextToken),
2205
2182
  };
2206
2183
  };
2207
2184
  var deserializeAws_json1_1DescribeImageTagsResponse = function (output, context) {
2208
2185
  return {
2209
- imageTagDetails: output.imageTagDetails !== undefined && output.imageTagDetails !== null
2186
+ imageTagDetails: output.imageTagDetails != null
2210
2187
  ? deserializeAws_json1_1ImageTagDetailList(output.imageTagDetails, context)
2211
2188
  : undefined,
2212
2189
  nextToken: __expectString(output.nextToken),
@@ -2215,17 +2192,13 @@ var deserializeAws_json1_1DescribeImageTagsResponse = function (output, context)
2215
2192
  var deserializeAws_json1_1DescribeRegistriesResponse = function (output, context) {
2216
2193
  return {
2217
2194
  nextToken: __expectString(output.nextToken),
2218
- registries: output.registries !== undefined && output.registries !== null
2219
- ? deserializeAws_json1_1RegistryList(output.registries, context)
2220
- : undefined,
2195
+ registries: output.registries != null ? deserializeAws_json1_1RegistryList(output.registries, context) : undefined,
2221
2196
  };
2222
2197
  };
2223
2198
  var deserializeAws_json1_1DescribeRepositoriesResponse = function (output, context) {
2224
2199
  return {
2225
2200
  nextToken: __expectString(output.nextToken),
2226
- repositories: output.repositories !== undefined && output.repositories !== null
2227
- ? deserializeAws_json1_1RepositoryList(output.repositories, context)
2228
- : undefined,
2201
+ repositories: output.repositories != null ? deserializeAws_json1_1RepositoryList(output.repositories, context) : undefined,
2229
2202
  };
2230
2203
  };
2231
2204
  var deserializeAws_json1_1EmptyUploadException = function (output, context) {
@@ -2235,23 +2208,21 @@ var deserializeAws_json1_1EmptyUploadException = function (output, context) {
2235
2208
  };
2236
2209
  var deserializeAws_json1_1GetAuthorizationTokenResponse = function (output, context) {
2237
2210
  return {
2238
- authorizationData: output.authorizationData !== undefined && output.authorizationData !== null
2211
+ authorizationData: output.authorizationData != null
2239
2212
  ? deserializeAws_json1_1AuthorizationData(output.authorizationData, context)
2240
2213
  : undefined,
2241
2214
  };
2242
2215
  };
2243
2216
  var deserializeAws_json1_1GetRegistryCatalogDataResponse = function (output, context) {
2244
2217
  return {
2245
- registryCatalogData: output.registryCatalogData !== undefined && output.registryCatalogData !== null
2218
+ registryCatalogData: output.registryCatalogData != null
2246
2219
  ? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
2247
2220
  : undefined,
2248
2221
  };
2249
2222
  };
2250
2223
  var deserializeAws_json1_1GetRepositoryCatalogDataResponse = function (output, context) {
2251
2224
  return {
2252
- catalogData: output.catalogData !== undefined && output.catalogData !== null
2253
- ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
2254
- : undefined,
2225
+ catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
2255
2226
  };
2256
2227
  };
2257
2228
  var deserializeAws_json1_1GetRepositoryPolicyResponse = function (output, context) {
@@ -2263,9 +2234,7 @@ var deserializeAws_json1_1GetRepositoryPolicyResponse = function (output, contex
2263
2234
  };
2264
2235
  var deserializeAws_json1_1Image = function (output, context) {
2265
2236
  return {
2266
- imageId: output.imageId !== undefined && output.imageId !== null
2267
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
2268
- : undefined,
2237
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
2269
2238
  imageManifest: __expectString(output.imageManifest),
2270
2239
  imageManifestMediaType: __expectString(output.imageManifestMediaType),
2271
2240
  registryId: __expectString(output.registryId),
@@ -2282,13 +2251,11 @@ var deserializeAws_json1_1ImageDetail = function (output, context) {
2282
2251
  artifactMediaType: __expectString(output.artifactMediaType),
2283
2252
  imageDigest: __expectString(output.imageDigest),
2284
2253
  imageManifestMediaType: __expectString(output.imageManifestMediaType),
2285
- imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
2254
+ imagePushedAt: output.imagePushedAt != null
2286
2255
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
2287
2256
  : undefined,
2288
2257
  imageSizeInBytes: __expectLong(output.imageSizeInBytes),
2289
- imageTags: output.imageTags !== undefined && output.imageTags !== null
2290
- ? deserializeAws_json1_1ImageTagList(output.imageTags, context)
2291
- : undefined,
2258
+ imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
2292
2259
  registryId: __expectString(output.registryId),
2293
2260
  repositoryName: __expectString(output.repositoryName),
2294
2261
  };
@@ -2313,9 +2280,7 @@ var deserializeAws_json1_1ImageFailure = function (output, context) {
2313
2280
  return {
2314
2281
  failureCode: __expectString(output.failureCode),
2315
2282
  failureReason: __expectString(output.failureReason),
2316
- imageId: output.imageId !== undefined && output.imageId !== null
2317
- ? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
2318
- : undefined,
2283
+ imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
2319
2284
  };
2320
2285
  };
2321
2286
  var deserializeAws_json1_1ImageFailureList = function (output, context) {
@@ -2358,12 +2323,8 @@ var deserializeAws_json1_1ImageTagAlreadyExistsException = function (output, con
2358
2323
  };
2359
2324
  var deserializeAws_json1_1ImageTagDetail = function (output, context) {
2360
2325
  return {
2361
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2362
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
2363
- : undefined,
2364
- imageDetail: output.imageDetail !== undefined && output.imageDetail !== null
2365
- ? deserializeAws_json1_1ReferencedImageDetail(output.imageDetail, context)
2366
- : undefined,
2326
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
2327
+ imageDetail: output.imageDetail != null ? deserializeAws_json1_1ReferencedImageDetail(output.imageDetail, context) : undefined,
2367
2328
  imageTag: __expectString(output.imageTag),
2368
2329
  };
2369
2330
  };
@@ -2478,9 +2439,7 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
2478
2439
  };
2479
2440
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
2480
2441
  return {
2481
- tags: output.tags !== undefined && output.tags !== null
2482
- ? deserializeAws_json1_1TagList(output.tags, context)
2483
- : undefined,
2442
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
2484
2443
  };
2485
2444
  };
2486
2445
  var deserializeAws_json1_1OperatingSystemList = function (output, context) {
@@ -2496,23 +2455,19 @@ var deserializeAws_json1_1OperatingSystemList = function (output, context) {
2496
2455
  };
2497
2456
  var deserializeAws_json1_1PutImageResponse = function (output, context) {
2498
2457
  return {
2499
- image: output.image !== undefined && output.image !== null
2500
- ? deserializeAws_json1_1Image(output.image, context)
2501
- : undefined,
2458
+ image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
2502
2459
  };
2503
2460
  };
2504
2461
  var deserializeAws_json1_1PutRegistryCatalogDataResponse = function (output, context) {
2505
2462
  return {
2506
- registryCatalogData: output.registryCatalogData !== undefined && output.registryCatalogData !== null
2463
+ registryCatalogData: output.registryCatalogData != null
2507
2464
  ? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
2508
2465
  : undefined,
2509
2466
  };
2510
2467
  };
2511
2468
  var deserializeAws_json1_1PutRepositoryCatalogDataResponse = function (output, context) {
2512
2469
  return {
2513
- catalogData: output.catalogData !== undefined && output.catalogData !== null
2514
- ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
2515
- : undefined,
2470
+ catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
2516
2471
  };
2517
2472
  };
2518
2473
  var deserializeAws_json1_1ReferencedImageDetail = function (output, context) {
@@ -2520,7 +2475,7 @@ var deserializeAws_json1_1ReferencedImageDetail = function (output, context) {
2520
2475
  artifactMediaType: __expectString(output.artifactMediaType),
2521
2476
  imageDigest: __expectString(output.imageDigest),
2522
2477
  imageManifestMediaType: __expectString(output.imageManifestMediaType),
2523
- imagePushedAt: output.imagePushedAt !== undefined && output.imagePushedAt !== null
2478
+ imagePushedAt: output.imagePushedAt != null
2524
2479
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
2525
2480
  : undefined,
2526
2481
  imageSizeInBytes: __expectLong(output.imageSizeInBytes),
@@ -2533,9 +2488,7 @@ var deserializeAws_json1_1ReferencedImagesNotFoundException = function (output,
2533
2488
  };
2534
2489
  var deserializeAws_json1_1Registry = function (output, context) {
2535
2490
  return {
2536
- aliases: output.aliases !== undefined && output.aliases !== null
2537
- ? deserializeAws_json1_1RegistryAliasList(output.aliases, context)
2538
- : undefined,
2491
+ aliases: output.aliases != null ? deserializeAws_json1_1RegistryAliasList(output.aliases, context) : undefined,
2539
2492
  registryArn: __expectString(output.registryArn),
2540
2493
  registryId: __expectString(output.registryId),
2541
2494
  registryUri: __expectString(output.registryUri),
@@ -2584,9 +2537,7 @@ var deserializeAws_json1_1RegistryNotFoundException = function (output, context)
2584
2537
  };
2585
2538
  var deserializeAws_json1_1Repository = function (output, context) {
2586
2539
  return {
2587
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2588
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
2589
- : undefined,
2540
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
2590
2541
  registryId: __expectString(output.registryId),
2591
2542
  repositoryArn: __expectString(output.repositoryArn),
2592
2543
  repositoryName: __expectString(output.repositoryName),
@@ -2601,13 +2552,11 @@ var deserializeAws_json1_1RepositoryAlreadyExistsException = function (output, c
2601
2552
  var deserializeAws_json1_1RepositoryCatalogData = function (output, context) {
2602
2553
  return {
2603
2554
  aboutText: __expectString(output.aboutText),
2604
- architectures: output.architectures !== undefined && output.architectures !== null
2605
- ? deserializeAws_json1_1ArchitectureList(output.architectures, context)
2606
- : undefined,
2555
+ architectures: output.architectures != null ? deserializeAws_json1_1ArchitectureList(output.architectures, context) : undefined,
2607
2556
  description: __expectString(output.description),
2608
2557
  logoUrl: __expectString(output.logoUrl),
2609
2558
  marketplaceCertified: __expectBoolean(output.marketplaceCertified),
2610
- operatingSystems: output.operatingSystems !== undefined && output.operatingSystems !== null
2559
+ operatingSystems: output.operatingSystems != null
2611
2560
  ? deserializeAws_json1_1OperatingSystemList(output.operatingSystems, context)
2612
2561
  : undefined,
2613
2562
  usageText: __expectString(output.usageText),
@@ -2771,5 +2720,4 @@ var loadRestJsonErrorCode = function (output, data) {
2771
2720
  if (data["__type"] !== undefined) {
2772
2721
  return sanitizeErrorCode(data["__type"]);
2773
2722
  }
2774
- return "";
2775
2723
  };