@aws-sdk/client-ecr-public 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +107 -178
- package/dist-es/protocols/Aws_json1_1.js +63 -134
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-ecr-public
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-ecr-public
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -1539,22 +1539,18 @@ const serializeAws_json1_1ArchitectureList = (input, context) => {
|
|
|
1539
1539
|
};
|
|
1540
1540
|
const serializeAws_json1_1BatchCheckLayerAvailabilityRequest = (input, context) => {
|
|
1541
1541
|
return {
|
|
1542
|
-
...(input.layerDigests
|
|
1543
|
-
input.layerDigests !== null && {
|
|
1542
|
+
...(input.layerDigests != null && {
|
|
1544
1543
|
layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context),
|
|
1545
1544
|
}),
|
|
1546
|
-
...(input.registryId
|
|
1547
|
-
...(input.repositoryName
|
|
1548
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1545
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1546
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1549
1547
|
};
|
|
1550
1548
|
};
|
|
1551
1549
|
const serializeAws_json1_1BatchDeleteImageRequest = (input, context) => {
|
|
1552
1550
|
return {
|
|
1553
|
-
...(input.imageIds
|
|
1554
|
-
|
|
1555
|
-
...(input.
|
|
1556
|
-
...(input.repositoryName !== undefined &&
|
|
1557
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1551
|
+
...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
1552
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1553
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1558
1554
|
};
|
|
1559
1555
|
};
|
|
1560
1556
|
const serializeAws_json1_1BatchedOperationLayerDigestList = (input, context) => {
|
|
@@ -1569,75 +1565,65 @@ const serializeAws_json1_1BatchedOperationLayerDigestList = (input, context) =>
|
|
|
1569
1565
|
};
|
|
1570
1566
|
const serializeAws_json1_1CompleteLayerUploadRequest = (input, context) => {
|
|
1571
1567
|
return {
|
|
1572
|
-
...(input.layerDigests
|
|
1573
|
-
input.layerDigests !== null && {
|
|
1568
|
+
...(input.layerDigests != null && {
|
|
1574
1569
|
layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
|
|
1575
1570
|
}),
|
|
1576
|
-
...(input.registryId
|
|
1577
|
-
...(input.repositoryName
|
|
1578
|
-
|
|
1579
|
-
...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
|
|
1571
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1572
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1573
|
+
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
1580
1574
|
};
|
|
1581
1575
|
};
|
|
1582
1576
|
const serializeAws_json1_1CreateRepositoryRequest = (input, context) => {
|
|
1583
1577
|
return {
|
|
1584
|
-
...(input.catalogData
|
|
1585
|
-
input.catalogData !== null && {
|
|
1578
|
+
...(input.catalogData != null && {
|
|
1586
1579
|
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
1587
1580
|
}),
|
|
1588
|
-
...(input.repositoryName
|
|
1589
|
-
|
|
1590
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
1581
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1582
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
1591
1583
|
};
|
|
1592
1584
|
};
|
|
1593
1585
|
const serializeAws_json1_1DeleteRepositoryPolicyRequest = (input, context) => {
|
|
1594
1586
|
return {
|
|
1595
|
-
...(input.registryId
|
|
1596
|
-
...(input.repositoryName
|
|
1597
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1587
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1588
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1598
1589
|
};
|
|
1599
1590
|
};
|
|
1600
1591
|
const serializeAws_json1_1DeleteRepositoryRequest = (input, context) => {
|
|
1601
1592
|
return {
|
|
1602
|
-
...(input.force
|
|
1603
|
-
...(input.registryId
|
|
1604
|
-
...(input.repositoryName
|
|
1605
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1593
|
+
...(input.force != null && { force: input.force }),
|
|
1594
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1595
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1606
1596
|
};
|
|
1607
1597
|
};
|
|
1608
1598
|
const serializeAws_json1_1DescribeImagesRequest = (input, context) => {
|
|
1609
1599
|
return {
|
|
1610
|
-
...(input.imageIds
|
|
1611
|
-
|
|
1612
|
-
...(input.
|
|
1613
|
-
...(input.
|
|
1614
|
-
...(input.
|
|
1615
|
-
...(input.repositoryName !== undefined &&
|
|
1616
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1600
|
+
...(input.imageIds != null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
1601
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1602
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1603
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1604
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1617
1605
|
};
|
|
1618
1606
|
};
|
|
1619
1607
|
const serializeAws_json1_1DescribeImageTagsRequest = (input, context) => {
|
|
1620
1608
|
return {
|
|
1621
|
-
...(input.maxResults
|
|
1622
|
-
...(input.nextToken
|
|
1623
|
-
...(input.registryId
|
|
1624
|
-
...(input.repositoryName
|
|
1625
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1609
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1610
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1611
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1612
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1626
1613
|
};
|
|
1627
1614
|
};
|
|
1628
1615
|
const serializeAws_json1_1DescribeRegistriesRequest = (input, context) => {
|
|
1629
1616
|
return {
|
|
1630
|
-
...(input.maxResults
|
|
1631
|
-
...(input.nextToken
|
|
1617
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1618
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1632
1619
|
};
|
|
1633
1620
|
};
|
|
1634
1621
|
const serializeAws_json1_1DescribeRepositoriesRequest = (input, context) => {
|
|
1635
1622
|
return {
|
|
1636
|
-
...(input.maxResults
|
|
1637
|
-
...(input.nextToken
|
|
1638
|
-
...(input.registryId
|
|
1639
|
-
...(input.repositoryNames
|
|
1640
|
-
input.repositoryNames !== null && {
|
|
1623
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1624
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1625
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1626
|
+
...(input.repositoryNames != null && {
|
|
1641
1627
|
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
1642
1628
|
}),
|
|
1643
1629
|
};
|
|
@@ -1650,22 +1636,20 @@ const serializeAws_json1_1GetRegistryCatalogDataRequest = (input, context) => {
|
|
|
1650
1636
|
};
|
|
1651
1637
|
const serializeAws_json1_1GetRepositoryCatalogDataRequest = (input, context) => {
|
|
1652
1638
|
return {
|
|
1653
|
-
...(input.registryId
|
|
1654
|
-
...(input.repositoryName
|
|
1655
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1639
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1640
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1656
1641
|
};
|
|
1657
1642
|
};
|
|
1658
1643
|
const serializeAws_json1_1GetRepositoryPolicyRequest = (input, context) => {
|
|
1659
1644
|
return {
|
|
1660
|
-
...(input.registryId
|
|
1661
|
-
...(input.repositoryName
|
|
1662
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1645
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1646
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1663
1647
|
};
|
|
1664
1648
|
};
|
|
1665
1649
|
const serializeAws_json1_1ImageIdentifier = (input, context) => {
|
|
1666
1650
|
return {
|
|
1667
|
-
...(input.imageDigest
|
|
1668
|
-
...(input.imageTag
|
|
1651
|
+
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
1652
|
+
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
1669
1653
|
};
|
|
1670
1654
|
};
|
|
1671
1655
|
const serializeAws_json1_1ImageIdentifierList = (input, context) => {
|
|
@@ -1680,9 +1664,8 @@ const serializeAws_json1_1ImageIdentifierList = (input, context) => {
|
|
|
1680
1664
|
};
|
|
1681
1665
|
const serializeAws_json1_1InitiateLayerUploadRequest = (input, context) => {
|
|
1682
1666
|
return {
|
|
1683
|
-
...(input.registryId
|
|
1684
|
-
...(input.repositoryName
|
|
1685
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1667
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1668
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1686
1669
|
};
|
|
1687
1670
|
};
|
|
1688
1671
|
const serializeAws_json1_1LayerDigestList = (input, context) => {
|
|
@@ -1697,7 +1680,7 @@ const serializeAws_json1_1LayerDigestList = (input, context) => {
|
|
|
1697
1680
|
};
|
|
1698
1681
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
1699
1682
|
return {
|
|
1700
|
-
...(input.resourceArn
|
|
1683
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1701
1684
|
};
|
|
1702
1685
|
};
|
|
1703
1686
|
const serializeAws_json1_1OperatingSystemList = (input, context) => {
|
|
@@ -1712,47 +1695,40 @@ const serializeAws_json1_1OperatingSystemList = (input, context) => {
|
|
|
1712
1695
|
};
|
|
1713
1696
|
const serializeAws_json1_1PutImageRequest = (input, context) => {
|
|
1714
1697
|
return {
|
|
1715
|
-
...(input.imageDigest
|
|
1716
|
-
...(input.imageManifest
|
|
1717
|
-
...(input.imageManifestMediaType
|
|
1718
|
-
|
|
1719
|
-
...(input.
|
|
1720
|
-
...(input.
|
|
1721
|
-
...(input.repositoryName !== undefined &&
|
|
1722
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1698
|
+
...(input.imageDigest != null && { imageDigest: input.imageDigest }),
|
|
1699
|
+
...(input.imageManifest != null && { imageManifest: input.imageManifest }),
|
|
1700
|
+
...(input.imageManifestMediaType != null && { imageManifestMediaType: input.imageManifestMediaType }),
|
|
1701
|
+
...(input.imageTag != null && { imageTag: input.imageTag }),
|
|
1702
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1703
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1723
1704
|
};
|
|
1724
1705
|
};
|
|
1725
1706
|
const serializeAws_json1_1PutRegistryCatalogDataRequest = (input, context) => {
|
|
1726
1707
|
return {
|
|
1727
|
-
...(input.displayName
|
|
1708
|
+
...(input.displayName != null && { displayName: input.displayName }),
|
|
1728
1709
|
};
|
|
1729
1710
|
};
|
|
1730
1711
|
const serializeAws_json1_1PutRepositoryCatalogDataRequest = (input, context) => {
|
|
1731
1712
|
return {
|
|
1732
|
-
...(input.catalogData
|
|
1733
|
-
input.catalogData !== null && {
|
|
1713
|
+
...(input.catalogData != null && {
|
|
1734
1714
|
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
1735
1715
|
}),
|
|
1736
|
-
...(input.registryId
|
|
1737
|
-
...(input.repositoryName
|
|
1738
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1716
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1717
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1739
1718
|
};
|
|
1740
1719
|
};
|
|
1741
1720
|
const serializeAws_json1_1RepositoryCatalogDataInput = (input, context) => {
|
|
1742
1721
|
return {
|
|
1743
|
-
...(input.aboutText
|
|
1744
|
-
...(input.architectures
|
|
1745
|
-
input.architectures !== null && {
|
|
1722
|
+
...(input.aboutText != null && { aboutText: input.aboutText }),
|
|
1723
|
+
...(input.architectures != null && {
|
|
1746
1724
|
architectures: serializeAws_json1_1ArchitectureList(input.architectures, context),
|
|
1747
1725
|
}),
|
|
1748
|
-
...(input.description
|
|
1749
|
-
...(input.logoImageBlob
|
|
1750
|
-
|
|
1751
|
-
...(input.operatingSystems !== undefined &&
|
|
1752
|
-
input.operatingSystems !== null && {
|
|
1726
|
+
...(input.description != null && { description: input.description }),
|
|
1727
|
+
...(input.logoImageBlob != null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) }),
|
|
1728
|
+
...(input.operatingSystems != null && {
|
|
1753
1729
|
operatingSystems: serializeAws_json1_1OperatingSystemList(input.operatingSystems, context),
|
|
1754
1730
|
}),
|
|
1755
|
-
...(input.usageText
|
|
1731
|
+
...(input.usageText != null && { usageText: input.usageText }),
|
|
1756
1732
|
};
|
|
1757
1733
|
};
|
|
1758
1734
|
const serializeAws_json1_1RepositoryNameList = (input, context) => {
|
|
@@ -1767,17 +1743,16 @@ const serializeAws_json1_1RepositoryNameList = (input, context) => {
|
|
|
1767
1743
|
};
|
|
1768
1744
|
const serializeAws_json1_1SetRepositoryPolicyRequest = (input, context) => {
|
|
1769
1745
|
return {
|
|
1770
|
-
...(input.force
|
|
1771
|
-
...(input.policyText
|
|
1772
|
-
...(input.registryId
|
|
1773
|
-
...(input.repositoryName
|
|
1774
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1746
|
+
...(input.force != null && { force: input.force }),
|
|
1747
|
+
...(input.policyText != null && { policyText: input.policyText }),
|
|
1748
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1749
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1775
1750
|
};
|
|
1776
1751
|
};
|
|
1777
1752
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
1778
1753
|
return {
|
|
1779
|
-
...(input.Key
|
|
1780
|
-
...(input.Value
|
|
1754
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1755
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1781
1756
|
};
|
|
1782
1757
|
};
|
|
1783
1758
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -1802,27 +1777,24 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
1802
1777
|
};
|
|
1803
1778
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
1804
1779
|
return {
|
|
1805
|
-
...(input.resourceArn
|
|
1806
|
-
...(input.tags
|
|
1780
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1781
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
1807
1782
|
};
|
|
1808
1783
|
};
|
|
1809
1784
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1810
1785
|
return {
|
|
1811
|
-
...(input.resourceArn
|
|
1812
|
-
...(input.tagKeys
|
|
1813
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
1786
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1787
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
1814
1788
|
};
|
|
1815
1789
|
};
|
|
1816
1790
|
const serializeAws_json1_1UploadLayerPartRequest = (input, context) => {
|
|
1817
1791
|
return {
|
|
1818
|
-
...(input.layerPartBlob
|
|
1819
|
-
|
|
1820
|
-
...(input.
|
|
1821
|
-
...(input.
|
|
1822
|
-
...(input.
|
|
1823
|
-
...(input.
|
|
1824
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
1825
|
-
...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
|
|
1792
|
+
...(input.layerPartBlob != null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
|
|
1793
|
+
...(input.partFirstByte != null && { partFirstByte: input.partFirstByte }),
|
|
1794
|
+
...(input.partLastByte != null && { partLastByte: input.partLastByte }),
|
|
1795
|
+
...(input.registryId != null && { registryId: input.registryId }),
|
|
1796
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
1797
|
+
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
1826
1798
|
};
|
|
1827
1799
|
};
|
|
1828
1800
|
const deserializeAws_json1_1ArchitectureList = (output, context) => {
|
|
@@ -1839,29 +1811,19 @@ const deserializeAws_json1_1ArchitectureList = (output, context) => {
|
|
|
1839
1811
|
const deserializeAws_json1_1AuthorizationData = (output, context) => {
|
|
1840
1812
|
return {
|
|
1841
1813
|
authorizationToken: (0, smithy_client_1.expectString)(output.authorizationToken),
|
|
1842
|
-
expiresAt: output.expiresAt
|
|
1843
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiresAt)))
|
|
1844
|
-
: undefined,
|
|
1814
|
+
expiresAt: output.expiresAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expiresAt))) : undefined,
|
|
1845
1815
|
};
|
|
1846
1816
|
};
|
|
1847
1817
|
const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = (output, context) => {
|
|
1848
1818
|
return {
|
|
1849
|
-
failures: output.failures
|
|
1850
|
-
|
|
1851
|
-
: undefined,
|
|
1852
|
-
layers: output.layers !== undefined && output.layers !== null
|
|
1853
|
-
? deserializeAws_json1_1LayerList(output.layers, context)
|
|
1854
|
-
: undefined,
|
|
1819
|
+
failures: output.failures != null ? deserializeAws_json1_1LayerFailureList(output.failures, context) : undefined,
|
|
1820
|
+
layers: output.layers != null ? deserializeAws_json1_1LayerList(output.layers, context) : undefined,
|
|
1855
1821
|
};
|
|
1856
1822
|
};
|
|
1857
1823
|
const deserializeAws_json1_1BatchDeleteImageResponse = (output, context) => {
|
|
1858
1824
|
return {
|
|
1859
|
-
failures: output.failures
|
|
1860
|
-
|
|
1861
|
-
: undefined,
|
|
1862
|
-
imageIds: output.imageIds !== undefined && output.imageIds !== null
|
|
1863
|
-
? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
|
|
1864
|
-
: undefined,
|
|
1825
|
+
failures: output.failures != null ? deserializeAws_json1_1ImageFailureList(output.failures, context) : undefined,
|
|
1826
|
+
imageIds: output.imageIds != null ? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context) : undefined,
|
|
1865
1827
|
};
|
|
1866
1828
|
};
|
|
1867
1829
|
const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
|
|
@@ -1874,12 +1836,8 @@ const deserializeAws_json1_1CompleteLayerUploadResponse = (output, context) => {
|
|
|
1874
1836
|
};
|
|
1875
1837
|
const deserializeAws_json1_1CreateRepositoryResponse = (output, context) => {
|
|
1876
1838
|
return {
|
|
1877
|
-
catalogData: output.catalogData
|
|
1878
|
-
|
|
1879
|
-
: undefined,
|
|
1880
|
-
repository: output.repository !== undefined && output.repository !== null
|
|
1881
|
-
? deserializeAws_json1_1Repository(output.repository, context)
|
|
1882
|
-
: undefined,
|
|
1839
|
+
catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
1840
|
+
repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
|
|
1883
1841
|
};
|
|
1884
1842
|
};
|
|
1885
1843
|
const deserializeAws_json1_1DeleteRepositoryPolicyResponse = (output, context) => {
|
|
@@ -1891,22 +1849,18 @@ const deserializeAws_json1_1DeleteRepositoryPolicyResponse = (output, context) =
|
|
|
1891
1849
|
};
|
|
1892
1850
|
const deserializeAws_json1_1DeleteRepositoryResponse = (output, context) => {
|
|
1893
1851
|
return {
|
|
1894
|
-
repository: output.repository
|
|
1895
|
-
? deserializeAws_json1_1Repository(output.repository, context)
|
|
1896
|
-
: undefined,
|
|
1852
|
+
repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
|
|
1897
1853
|
};
|
|
1898
1854
|
};
|
|
1899
1855
|
const deserializeAws_json1_1DescribeImagesResponse = (output, context) => {
|
|
1900
1856
|
return {
|
|
1901
|
-
imageDetails: output.imageDetails
|
|
1902
|
-
? deserializeAws_json1_1ImageDetailList(output.imageDetails, context)
|
|
1903
|
-
: undefined,
|
|
1857
|
+
imageDetails: output.imageDetails != null ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) : undefined,
|
|
1904
1858
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1905
1859
|
};
|
|
1906
1860
|
};
|
|
1907
1861
|
const deserializeAws_json1_1DescribeImageTagsResponse = (output, context) => {
|
|
1908
1862
|
return {
|
|
1909
|
-
imageTagDetails: output.imageTagDetails
|
|
1863
|
+
imageTagDetails: output.imageTagDetails != null
|
|
1910
1864
|
? deserializeAws_json1_1ImageTagDetailList(output.imageTagDetails, context)
|
|
1911
1865
|
: undefined,
|
|
1912
1866
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -1915,17 +1869,13 @@ const deserializeAws_json1_1DescribeImageTagsResponse = (output, context) => {
|
|
|
1915
1869
|
const deserializeAws_json1_1DescribeRegistriesResponse = (output, context) => {
|
|
1916
1870
|
return {
|
|
1917
1871
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1918
|
-
registries: output.registries
|
|
1919
|
-
? deserializeAws_json1_1RegistryList(output.registries, context)
|
|
1920
|
-
: undefined,
|
|
1872
|
+
registries: output.registries != null ? deserializeAws_json1_1RegistryList(output.registries, context) : undefined,
|
|
1921
1873
|
};
|
|
1922
1874
|
};
|
|
1923
1875
|
const deserializeAws_json1_1DescribeRepositoriesResponse = (output, context) => {
|
|
1924
1876
|
return {
|
|
1925
1877
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
1926
|
-
repositories: output.repositories
|
|
1927
|
-
? deserializeAws_json1_1RepositoryList(output.repositories, context)
|
|
1928
|
-
: undefined,
|
|
1878
|
+
repositories: output.repositories != null ? deserializeAws_json1_1RepositoryList(output.repositories, context) : undefined,
|
|
1929
1879
|
};
|
|
1930
1880
|
};
|
|
1931
1881
|
const deserializeAws_json1_1EmptyUploadException = (output, context) => {
|
|
@@ -1935,23 +1885,21 @@ const deserializeAws_json1_1EmptyUploadException = (output, context) => {
|
|
|
1935
1885
|
};
|
|
1936
1886
|
const deserializeAws_json1_1GetAuthorizationTokenResponse = (output, context) => {
|
|
1937
1887
|
return {
|
|
1938
|
-
authorizationData: output.authorizationData
|
|
1888
|
+
authorizationData: output.authorizationData != null
|
|
1939
1889
|
? deserializeAws_json1_1AuthorizationData(output.authorizationData, context)
|
|
1940
1890
|
: undefined,
|
|
1941
1891
|
};
|
|
1942
1892
|
};
|
|
1943
1893
|
const deserializeAws_json1_1GetRegistryCatalogDataResponse = (output, context) => {
|
|
1944
1894
|
return {
|
|
1945
|
-
registryCatalogData: output.registryCatalogData
|
|
1895
|
+
registryCatalogData: output.registryCatalogData != null
|
|
1946
1896
|
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
1947
1897
|
: undefined,
|
|
1948
1898
|
};
|
|
1949
1899
|
};
|
|
1950
1900
|
const deserializeAws_json1_1GetRepositoryCatalogDataResponse = (output, context) => {
|
|
1951
1901
|
return {
|
|
1952
|
-
catalogData: output.catalogData
|
|
1953
|
-
? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
|
|
1954
|
-
: undefined,
|
|
1902
|
+
catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
1955
1903
|
};
|
|
1956
1904
|
};
|
|
1957
1905
|
const deserializeAws_json1_1GetRepositoryPolicyResponse = (output, context) => {
|
|
@@ -1963,9 +1911,7 @@ const deserializeAws_json1_1GetRepositoryPolicyResponse = (output, context) => {
|
|
|
1963
1911
|
};
|
|
1964
1912
|
const deserializeAws_json1_1Image = (output, context) => {
|
|
1965
1913
|
return {
|
|
1966
|
-
imageId: output.imageId
|
|
1967
|
-
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
1968
|
-
: undefined,
|
|
1914
|
+
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
1969
1915
|
imageManifest: (0, smithy_client_1.expectString)(output.imageManifest),
|
|
1970
1916
|
imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
|
|
1971
1917
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
@@ -1982,13 +1928,11 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
|
1982
1928
|
artifactMediaType: (0, smithy_client_1.expectString)(output.artifactMediaType),
|
|
1983
1929
|
imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
|
|
1984
1930
|
imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
|
|
1985
|
-
imagePushedAt: output.imagePushedAt
|
|
1931
|
+
imagePushedAt: output.imagePushedAt != null
|
|
1986
1932
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
|
|
1987
1933
|
: undefined,
|
|
1988
1934
|
imageSizeInBytes: (0, smithy_client_1.expectLong)(output.imageSizeInBytes),
|
|
1989
|
-
imageTags: output.imageTags
|
|
1990
|
-
? deserializeAws_json1_1ImageTagList(output.imageTags, context)
|
|
1991
|
-
: undefined,
|
|
1935
|
+
imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
|
|
1992
1936
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
1993
1937
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
1994
1938
|
};
|
|
@@ -2013,9 +1957,7 @@ const deserializeAws_json1_1ImageFailure = (output, context) => {
|
|
|
2013
1957
|
return {
|
|
2014
1958
|
failureCode: (0, smithy_client_1.expectString)(output.failureCode),
|
|
2015
1959
|
failureReason: (0, smithy_client_1.expectString)(output.failureReason),
|
|
2016
|
-
imageId: output.imageId
|
|
2017
|
-
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
2018
|
-
: undefined,
|
|
1960
|
+
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
2019
1961
|
};
|
|
2020
1962
|
};
|
|
2021
1963
|
const deserializeAws_json1_1ImageFailureList = (output, context) => {
|
|
@@ -2058,12 +2000,8 @@ const deserializeAws_json1_1ImageTagAlreadyExistsException = (output, context) =
|
|
|
2058
2000
|
};
|
|
2059
2001
|
const deserializeAws_json1_1ImageTagDetail = (output, context) => {
|
|
2060
2002
|
return {
|
|
2061
|
-
createdAt: output.createdAt
|
|
2062
|
-
|
|
2063
|
-
: undefined,
|
|
2064
|
-
imageDetail: output.imageDetail !== undefined && output.imageDetail !== null
|
|
2065
|
-
? deserializeAws_json1_1ReferencedImageDetail(output.imageDetail, context)
|
|
2066
|
-
: undefined,
|
|
2003
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2004
|
+
imageDetail: output.imageDetail != null ? deserializeAws_json1_1ReferencedImageDetail(output.imageDetail, context) : undefined,
|
|
2067
2005
|
imageTag: (0, smithy_client_1.expectString)(output.imageTag),
|
|
2068
2006
|
};
|
|
2069
2007
|
};
|
|
@@ -2178,9 +2116,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
2178
2116
|
};
|
|
2179
2117
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2180
2118
|
return {
|
|
2181
|
-
tags: output.tags
|
|
2182
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
2183
|
-
: undefined,
|
|
2119
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
2184
2120
|
};
|
|
2185
2121
|
};
|
|
2186
2122
|
const deserializeAws_json1_1OperatingSystemList = (output, context) => {
|
|
@@ -2196,23 +2132,19 @@ const deserializeAws_json1_1OperatingSystemList = (output, context) => {
|
|
|
2196
2132
|
};
|
|
2197
2133
|
const deserializeAws_json1_1PutImageResponse = (output, context) => {
|
|
2198
2134
|
return {
|
|
2199
|
-
image: output.image
|
|
2200
|
-
? deserializeAws_json1_1Image(output.image, context)
|
|
2201
|
-
: undefined,
|
|
2135
|
+
image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
|
|
2202
2136
|
};
|
|
2203
2137
|
};
|
|
2204
2138
|
const deserializeAws_json1_1PutRegistryCatalogDataResponse = (output, context) => {
|
|
2205
2139
|
return {
|
|
2206
|
-
registryCatalogData: output.registryCatalogData
|
|
2140
|
+
registryCatalogData: output.registryCatalogData != null
|
|
2207
2141
|
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
2208
2142
|
: undefined,
|
|
2209
2143
|
};
|
|
2210
2144
|
};
|
|
2211
2145
|
const deserializeAws_json1_1PutRepositoryCatalogDataResponse = (output, context) => {
|
|
2212
2146
|
return {
|
|
2213
|
-
catalogData: output.catalogData
|
|
2214
|
-
? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
|
|
2215
|
-
: undefined,
|
|
2147
|
+
catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
2216
2148
|
};
|
|
2217
2149
|
};
|
|
2218
2150
|
const deserializeAws_json1_1ReferencedImageDetail = (output, context) => {
|
|
@@ -2220,7 +2152,7 @@ const deserializeAws_json1_1ReferencedImageDetail = (output, context) => {
|
|
|
2220
2152
|
artifactMediaType: (0, smithy_client_1.expectString)(output.artifactMediaType),
|
|
2221
2153
|
imageDigest: (0, smithy_client_1.expectString)(output.imageDigest),
|
|
2222
2154
|
imageManifestMediaType: (0, smithy_client_1.expectString)(output.imageManifestMediaType),
|
|
2223
|
-
imagePushedAt: output.imagePushedAt
|
|
2155
|
+
imagePushedAt: output.imagePushedAt != null
|
|
2224
2156
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.imagePushedAt)))
|
|
2225
2157
|
: undefined,
|
|
2226
2158
|
imageSizeInBytes: (0, smithy_client_1.expectLong)(output.imageSizeInBytes),
|
|
@@ -2233,9 +2165,7 @@ const deserializeAws_json1_1ReferencedImagesNotFoundException = (output, context
|
|
|
2233
2165
|
};
|
|
2234
2166
|
const deserializeAws_json1_1Registry = (output, context) => {
|
|
2235
2167
|
return {
|
|
2236
|
-
aliases: output.aliases
|
|
2237
|
-
? deserializeAws_json1_1RegistryAliasList(output.aliases, context)
|
|
2238
|
-
: undefined,
|
|
2168
|
+
aliases: output.aliases != null ? deserializeAws_json1_1RegistryAliasList(output.aliases, context) : undefined,
|
|
2239
2169
|
registryArn: (0, smithy_client_1.expectString)(output.registryArn),
|
|
2240
2170
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
2241
2171
|
registryUri: (0, smithy_client_1.expectString)(output.registryUri),
|
|
@@ -2284,9 +2214,7 @@ const deserializeAws_json1_1RegistryNotFoundException = (output, context) => {
|
|
|
2284
2214
|
};
|
|
2285
2215
|
const deserializeAws_json1_1Repository = (output, context) => {
|
|
2286
2216
|
return {
|
|
2287
|
-
createdAt: output.createdAt
|
|
2288
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
2289
|
-
: undefined,
|
|
2217
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
2290
2218
|
registryId: (0, smithy_client_1.expectString)(output.registryId),
|
|
2291
2219
|
repositoryArn: (0, smithy_client_1.expectString)(output.repositoryArn),
|
|
2292
2220
|
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
@@ -2301,13 +2229,11 @@ const deserializeAws_json1_1RepositoryAlreadyExistsException = (output, context)
|
|
|
2301
2229
|
const deserializeAws_json1_1RepositoryCatalogData = (output, context) => {
|
|
2302
2230
|
return {
|
|
2303
2231
|
aboutText: (0, smithy_client_1.expectString)(output.aboutText),
|
|
2304
|
-
architectures: output.architectures
|
|
2305
|
-
? deserializeAws_json1_1ArchitectureList(output.architectures, context)
|
|
2306
|
-
: undefined,
|
|
2232
|
+
architectures: output.architectures != null ? deserializeAws_json1_1ArchitectureList(output.architectures, context) : undefined,
|
|
2307
2233
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
2308
2234
|
logoUrl: (0, smithy_client_1.expectString)(output.logoUrl),
|
|
2309
2235
|
marketplaceCertified: (0, smithy_client_1.expectBoolean)(output.marketplaceCertified),
|
|
2310
|
-
operatingSystems: output.operatingSystems
|
|
2236
|
+
operatingSystems: output.operatingSystems != null
|
|
2311
2237
|
? deserializeAws_json1_1OperatingSystemList(output.operatingSystems, context)
|
|
2312
2238
|
: undefined,
|
|
2313
2239
|
usageText: (0, smithy_client_1.expectString)(output.usageText),
|
|
@@ -2441,6 +2367,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2441
2367
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2442
2368
|
const sanitizeErrorCode = (rawValue) => {
|
|
2443
2369
|
let cleanValue = rawValue;
|
|
2370
|
+
if (typeof cleanValue === "number") {
|
|
2371
|
+
cleanValue = cleanValue.toString();
|
|
2372
|
+
}
|
|
2444
2373
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2445
2374
|
cleanValue = cleanValue.split(":")[0];
|
|
2446
2375
|
}
|
|
@@ -1959,16 +1959,12 @@ var serializeAws_json1_1ArchitectureList = function (input, context) {
|
|
|
1959
1959
|
});
|
|
1960
1960
|
};
|
|
1961
1961
|
var serializeAws_json1_1BatchCheckLayerAvailabilityRequest = function (input, context) {
|
|
1962
|
-
return __assign(__assign(__assign({}, (input.layerDigests
|
|
1963
|
-
input.layerDigests !== null && {
|
|
1962
|
+
return __assign(__assign(__assign({}, (input.layerDigests != null && {
|
|
1964
1963
|
layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context),
|
|
1965
|
-
})), (input.registryId
|
|
1966
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
1964
|
+
})), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
1967
1965
|
};
|
|
1968
1966
|
var serializeAws_json1_1BatchDeleteImageRequest = function (input, context) {
|
|
1969
|
-
return __assign(__assign(__assign({}, (input.imageIds
|
|
1970
|
-
input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) })), (input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId })), (input.repositoryName !== undefined &&
|
|
1971
|
-
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 }));
|
|
1972
1968
|
};
|
|
1973
1969
|
var serializeAws_json1_1BatchedOperationLayerDigestList = function (input, context) {
|
|
1974
1970
|
return input
|
|
@@ -1981,42 +1977,32 @@ var serializeAws_json1_1BatchedOperationLayerDigestList = function (input, conte
|
|
|
1981
1977
|
});
|
|
1982
1978
|
};
|
|
1983
1979
|
var serializeAws_json1_1CompleteLayerUploadRequest = function (input, context) {
|
|
1984
|
-
return __assign(__assign(__assign(__assign({}, (input.layerDigests
|
|
1985
|
-
input.layerDigests !== null && {
|
|
1980
|
+
return __assign(__assign(__assign(__assign({}, (input.layerDigests != null && {
|
|
1986
1981
|
layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
|
|
1987
|
-
})), (input.registryId
|
|
1988
|
-
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 }));
|
|
1989
1983
|
};
|
|
1990
1984
|
var serializeAws_json1_1CreateRepositoryRequest = function (input, context) {
|
|
1991
|
-
return __assign(__assign(__assign({}, (input.catalogData
|
|
1992
|
-
input.catalogData !== null && {
|
|
1985
|
+
return __assign(__assign(__assign({}, (input.catalogData != null && {
|
|
1993
1986
|
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
1994
|
-
})), (input.repositoryName
|
|
1995
|
-
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) }));
|
|
1996
1988
|
};
|
|
1997
1989
|
var serializeAws_json1_1DeleteRepositoryPolicyRequest = function (input, context) {
|
|
1998
|
-
return __assign(__assign({}, (input.registryId
|
|
1999
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
1990
|
+
return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
2000
1991
|
};
|
|
2001
1992
|
var serializeAws_json1_1DeleteRepositoryRequest = function (input, context) {
|
|
2002
|
-
return __assign(__assign(__assign({}, (input.force
|
|
2003
|
-
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 }));
|
|
2004
1994
|
};
|
|
2005
1995
|
var serializeAws_json1_1DescribeImagesRequest = function (input, context) {
|
|
2006
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.imageIds
|
|
2007
|
-
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 &&
|
|
2008
|
-
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 }));
|
|
2009
1997
|
};
|
|
2010
1998
|
var serializeAws_json1_1DescribeImageTagsRequest = function (input, context) {
|
|
2011
|
-
return __assign(__assign(__assign(__assign({}, (input.maxResults
|
|
2012
|
-
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 }));
|
|
2013
2000
|
};
|
|
2014
2001
|
var serializeAws_json1_1DescribeRegistriesRequest = function (input, context) {
|
|
2015
|
-
return __assign(__assign({}, (input.maxResults
|
|
2002
|
+
return __assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken }));
|
|
2016
2003
|
};
|
|
2017
2004
|
var serializeAws_json1_1DescribeRepositoriesRequest = function (input, context) {
|
|
2018
|
-
return __assign(__assign(__assign(__assign({}, (input.maxResults
|
|
2019
|
-
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 && {
|
|
2020
2006
|
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
2021
2007
|
}));
|
|
2022
2008
|
};
|
|
@@ -2027,15 +2013,13 @@ var serializeAws_json1_1GetRegistryCatalogDataRequest = function (input, context
|
|
|
2027
2013
|
return {};
|
|
2028
2014
|
};
|
|
2029
2015
|
var serializeAws_json1_1GetRepositoryCatalogDataRequest = function (input, context) {
|
|
2030
|
-
return __assign(__assign({}, (input.registryId
|
|
2031
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
2016
|
+
return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
2032
2017
|
};
|
|
2033
2018
|
var serializeAws_json1_1GetRepositoryPolicyRequest = function (input, context) {
|
|
2034
|
-
return __assign(__assign({}, (input.registryId
|
|
2035
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
2019
|
+
return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
2036
2020
|
};
|
|
2037
2021
|
var serializeAws_json1_1ImageIdentifier = function (input, context) {
|
|
2038
|
-
return __assign(__assign({}, (input.imageDigest
|
|
2022
|
+
return __assign(__assign({}, (input.imageDigest != null && { imageDigest: input.imageDigest })), (input.imageTag != null && { imageTag: input.imageTag }));
|
|
2039
2023
|
};
|
|
2040
2024
|
var serializeAws_json1_1ImageIdentifierList = function (input, context) {
|
|
2041
2025
|
return input
|
|
@@ -2048,8 +2032,7 @@ var serializeAws_json1_1ImageIdentifierList = function (input, context) {
|
|
|
2048
2032
|
});
|
|
2049
2033
|
};
|
|
2050
2034
|
var serializeAws_json1_1InitiateLayerUploadRequest = function (input, context) {
|
|
2051
|
-
return __assign(__assign({}, (input.registryId
|
|
2052
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
2035
|
+
return __assign(__assign({}, (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
2053
2036
|
};
|
|
2054
2037
|
var serializeAws_json1_1LayerDigestList = function (input, context) {
|
|
2055
2038
|
return input
|
|
@@ -2062,7 +2045,7 @@ var serializeAws_json1_1LayerDigestList = function (input, context) {
|
|
|
2062
2045
|
});
|
|
2063
2046
|
};
|
|
2064
2047
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
2065
|
-
return __assign({}, (input.resourceArn
|
|
2048
|
+
return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
|
|
2066
2049
|
};
|
|
2067
2050
|
var serializeAws_json1_1OperatingSystemList = function (input, context) {
|
|
2068
2051
|
return input
|
|
@@ -2075,29 +2058,22 @@ var serializeAws_json1_1OperatingSystemList = function (input, context) {
|
|
|
2075
2058
|
});
|
|
2076
2059
|
};
|
|
2077
2060
|
var serializeAws_json1_1PutImageRequest = function (input, context) {
|
|
2078
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.imageDigest
|
|
2079
|
-
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 &&
|
|
2080
|
-
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 }));
|
|
2081
2062
|
};
|
|
2082
2063
|
var serializeAws_json1_1PutRegistryCatalogDataRequest = function (input, context) {
|
|
2083
|
-
return __assign({}, (input.displayName
|
|
2064
|
+
return __assign({}, (input.displayName != null && { displayName: input.displayName }));
|
|
2084
2065
|
};
|
|
2085
2066
|
var serializeAws_json1_1PutRepositoryCatalogDataRequest = function (input, context) {
|
|
2086
|
-
return __assign(__assign(__assign({}, (input.catalogData
|
|
2087
|
-
input.catalogData !== null && {
|
|
2067
|
+
return __assign(__assign(__assign({}, (input.catalogData != null && {
|
|
2088
2068
|
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
2089
|
-
})), (input.registryId
|
|
2090
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }));
|
|
2069
|
+
})), (input.registryId != null && { registryId: input.registryId })), (input.repositoryName != null && { repositoryName: input.repositoryName }));
|
|
2091
2070
|
};
|
|
2092
2071
|
var serializeAws_json1_1RepositoryCatalogDataInput = function (input, context) {
|
|
2093
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.aboutText
|
|
2094
|
-
input.architectures !== null && {
|
|
2072
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.aboutText != null && { aboutText: input.aboutText })), (input.architectures != null && {
|
|
2095
2073
|
architectures: serializeAws_json1_1ArchitectureList(input.architectures, context),
|
|
2096
|
-
})), (input.description
|
|
2097
|
-
input.logoImageBlob !== null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) })), (input.operatingSystems !== undefined &&
|
|
2098
|
-
input.operatingSystems !== null && {
|
|
2074
|
+
})), (input.description != null && { description: input.description })), (input.logoImageBlob != null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) })), (input.operatingSystems != null && {
|
|
2099
2075
|
operatingSystems: serializeAws_json1_1OperatingSystemList(input.operatingSystems, context),
|
|
2100
|
-
})), (input.usageText
|
|
2076
|
+
})), (input.usageText != null && { usageText: input.usageText }));
|
|
2101
2077
|
};
|
|
2102
2078
|
var serializeAws_json1_1RepositoryNameList = function (input, context) {
|
|
2103
2079
|
return input
|
|
@@ -2110,11 +2086,10 @@ var serializeAws_json1_1RepositoryNameList = function (input, context) {
|
|
|
2110
2086
|
});
|
|
2111
2087
|
};
|
|
2112
2088
|
var serializeAws_json1_1SetRepositoryPolicyRequest = function (input, context) {
|
|
2113
|
-
return __assign(__assign(__assign(__assign({}, (input.force
|
|
2114
|
-
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 }));
|
|
2115
2090
|
};
|
|
2116
2091
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
2117
|
-
return __assign(__assign({}, (input.Key
|
|
2092
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
2118
2093
|
};
|
|
2119
2094
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
2120
2095
|
return input
|
|
@@ -2137,16 +2112,13 @@ var serializeAws_json1_1TagList = function (input, context) {
|
|
|
2137
2112
|
});
|
|
2138
2113
|
};
|
|
2139
2114
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
2140
|
-
return __assign(__assign({}, (input.resourceArn
|
|
2115
|
+
return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
2141
2116
|
};
|
|
2142
2117
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
2143
|
-
return __assign(__assign({}, (input.resourceArn
|
|
2144
|
-
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) }));
|
|
2145
2119
|
};
|
|
2146
2120
|
var serializeAws_json1_1UploadLayerPartRequest = function (input, context) {
|
|
2147
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.layerPartBlob
|
|
2148
|
-
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 &&
|
|
2149
|
-
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 }));
|
|
2150
2122
|
};
|
|
2151
2123
|
var deserializeAws_json1_1ArchitectureList = function (output, context) {
|
|
2152
2124
|
var retVal = (output || [])
|
|
@@ -2162,29 +2134,19 @@ var deserializeAws_json1_1ArchitectureList = function (output, context) {
|
|
|
2162
2134
|
var deserializeAws_json1_1AuthorizationData = function (output, context) {
|
|
2163
2135
|
return {
|
|
2164
2136
|
authorizationToken: __expectString(output.authorizationToken),
|
|
2165
|
-
expiresAt: output.expiresAt
|
|
2166
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt)))
|
|
2167
|
-
: undefined,
|
|
2137
|
+
expiresAt: output.expiresAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt))) : undefined,
|
|
2168
2138
|
};
|
|
2169
2139
|
};
|
|
2170
2140
|
var deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = function (output, context) {
|
|
2171
2141
|
return {
|
|
2172
|
-
failures: output.failures
|
|
2173
|
-
|
|
2174
|
-
: undefined,
|
|
2175
|
-
layers: output.layers !== undefined && output.layers !== null
|
|
2176
|
-
? deserializeAws_json1_1LayerList(output.layers, context)
|
|
2177
|
-
: 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,
|
|
2178
2144
|
};
|
|
2179
2145
|
};
|
|
2180
2146
|
var deserializeAws_json1_1BatchDeleteImageResponse = function (output, context) {
|
|
2181
2147
|
return {
|
|
2182
|
-
failures: output.failures
|
|
2183
|
-
|
|
2184
|
-
: undefined,
|
|
2185
|
-
imageIds: output.imageIds !== undefined && output.imageIds !== null
|
|
2186
|
-
? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
|
|
2187
|
-
: 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,
|
|
2188
2150
|
};
|
|
2189
2151
|
};
|
|
2190
2152
|
var deserializeAws_json1_1CompleteLayerUploadResponse = function (output, context) {
|
|
@@ -2197,12 +2159,8 @@ var deserializeAws_json1_1CompleteLayerUploadResponse = function (output, contex
|
|
|
2197
2159
|
};
|
|
2198
2160
|
var deserializeAws_json1_1CreateRepositoryResponse = function (output, context) {
|
|
2199
2161
|
return {
|
|
2200
|
-
catalogData: output.catalogData
|
|
2201
|
-
|
|
2202
|
-
: undefined,
|
|
2203
|
-
repository: output.repository !== undefined && output.repository !== null
|
|
2204
|
-
? deserializeAws_json1_1Repository(output.repository, context)
|
|
2205
|
-
: 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,
|
|
2206
2164
|
};
|
|
2207
2165
|
};
|
|
2208
2166
|
var deserializeAws_json1_1DeleteRepositoryPolicyResponse = function (output, context) {
|
|
@@ -2214,22 +2172,18 @@ var deserializeAws_json1_1DeleteRepositoryPolicyResponse = function (output, con
|
|
|
2214
2172
|
};
|
|
2215
2173
|
var deserializeAws_json1_1DeleteRepositoryResponse = function (output, context) {
|
|
2216
2174
|
return {
|
|
2217
|
-
repository: output.repository
|
|
2218
|
-
? deserializeAws_json1_1Repository(output.repository, context)
|
|
2219
|
-
: undefined,
|
|
2175
|
+
repository: output.repository != null ? deserializeAws_json1_1Repository(output.repository, context) : undefined,
|
|
2220
2176
|
};
|
|
2221
2177
|
};
|
|
2222
2178
|
var deserializeAws_json1_1DescribeImagesResponse = function (output, context) {
|
|
2223
2179
|
return {
|
|
2224
|
-
imageDetails: output.imageDetails
|
|
2225
|
-
? deserializeAws_json1_1ImageDetailList(output.imageDetails, context)
|
|
2226
|
-
: undefined,
|
|
2180
|
+
imageDetails: output.imageDetails != null ? deserializeAws_json1_1ImageDetailList(output.imageDetails, context) : undefined,
|
|
2227
2181
|
nextToken: __expectString(output.nextToken),
|
|
2228
2182
|
};
|
|
2229
2183
|
};
|
|
2230
2184
|
var deserializeAws_json1_1DescribeImageTagsResponse = function (output, context) {
|
|
2231
2185
|
return {
|
|
2232
|
-
imageTagDetails: output.imageTagDetails
|
|
2186
|
+
imageTagDetails: output.imageTagDetails != null
|
|
2233
2187
|
? deserializeAws_json1_1ImageTagDetailList(output.imageTagDetails, context)
|
|
2234
2188
|
: undefined,
|
|
2235
2189
|
nextToken: __expectString(output.nextToken),
|
|
@@ -2238,17 +2192,13 @@ var deserializeAws_json1_1DescribeImageTagsResponse = function (output, context)
|
|
|
2238
2192
|
var deserializeAws_json1_1DescribeRegistriesResponse = function (output, context) {
|
|
2239
2193
|
return {
|
|
2240
2194
|
nextToken: __expectString(output.nextToken),
|
|
2241
|
-
registries: output.registries
|
|
2242
|
-
? deserializeAws_json1_1RegistryList(output.registries, context)
|
|
2243
|
-
: undefined,
|
|
2195
|
+
registries: output.registries != null ? deserializeAws_json1_1RegistryList(output.registries, context) : undefined,
|
|
2244
2196
|
};
|
|
2245
2197
|
};
|
|
2246
2198
|
var deserializeAws_json1_1DescribeRepositoriesResponse = function (output, context) {
|
|
2247
2199
|
return {
|
|
2248
2200
|
nextToken: __expectString(output.nextToken),
|
|
2249
|
-
repositories: output.repositories
|
|
2250
|
-
? deserializeAws_json1_1RepositoryList(output.repositories, context)
|
|
2251
|
-
: undefined,
|
|
2201
|
+
repositories: output.repositories != null ? deserializeAws_json1_1RepositoryList(output.repositories, context) : undefined,
|
|
2252
2202
|
};
|
|
2253
2203
|
};
|
|
2254
2204
|
var deserializeAws_json1_1EmptyUploadException = function (output, context) {
|
|
@@ -2258,23 +2208,21 @@ var deserializeAws_json1_1EmptyUploadException = function (output, context) {
|
|
|
2258
2208
|
};
|
|
2259
2209
|
var deserializeAws_json1_1GetAuthorizationTokenResponse = function (output, context) {
|
|
2260
2210
|
return {
|
|
2261
|
-
authorizationData: output.authorizationData
|
|
2211
|
+
authorizationData: output.authorizationData != null
|
|
2262
2212
|
? deserializeAws_json1_1AuthorizationData(output.authorizationData, context)
|
|
2263
2213
|
: undefined,
|
|
2264
2214
|
};
|
|
2265
2215
|
};
|
|
2266
2216
|
var deserializeAws_json1_1GetRegistryCatalogDataResponse = function (output, context) {
|
|
2267
2217
|
return {
|
|
2268
|
-
registryCatalogData: output.registryCatalogData
|
|
2218
|
+
registryCatalogData: output.registryCatalogData != null
|
|
2269
2219
|
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
2270
2220
|
: undefined,
|
|
2271
2221
|
};
|
|
2272
2222
|
};
|
|
2273
2223
|
var deserializeAws_json1_1GetRepositoryCatalogDataResponse = function (output, context) {
|
|
2274
2224
|
return {
|
|
2275
|
-
catalogData: output.catalogData
|
|
2276
|
-
? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
|
|
2277
|
-
: undefined,
|
|
2225
|
+
catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
2278
2226
|
};
|
|
2279
2227
|
};
|
|
2280
2228
|
var deserializeAws_json1_1GetRepositoryPolicyResponse = function (output, context) {
|
|
@@ -2286,9 +2234,7 @@ var deserializeAws_json1_1GetRepositoryPolicyResponse = function (output, contex
|
|
|
2286
2234
|
};
|
|
2287
2235
|
var deserializeAws_json1_1Image = function (output, context) {
|
|
2288
2236
|
return {
|
|
2289
|
-
imageId: output.imageId
|
|
2290
|
-
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
2291
|
-
: undefined,
|
|
2237
|
+
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
2292
2238
|
imageManifest: __expectString(output.imageManifest),
|
|
2293
2239
|
imageManifestMediaType: __expectString(output.imageManifestMediaType),
|
|
2294
2240
|
registryId: __expectString(output.registryId),
|
|
@@ -2305,13 +2251,11 @@ var deserializeAws_json1_1ImageDetail = function (output, context) {
|
|
|
2305
2251
|
artifactMediaType: __expectString(output.artifactMediaType),
|
|
2306
2252
|
imageDigest: __expectString(output.imageDigest),
|
|
2307
2253
|
imageManifestMediaType: __expectString(output.imageManifestMediaType),
|
|
2308
|
-
imagePushedAt: output.imagePushedAt
|
|
2254
|
+
imagePushedAt: output.imagePushedAt != null
|
|
2309
2255
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
|
|
2310
2256
|
: undefined,
|
|
2311
2257
|
imageSizeInBytes: __expectLong(output.imageSizeInBytes),
|
|
2312
|
-
imageTags: output.imageTags
|
|
2313
|
-
? deserializeAws_json1_1ImageTagList(output.imageTags, context)
|
|
2314
|
-
: undefined,
|
|
2258
|
+
imageTags: output.imageTags != null ? deserializeAws_json1_1ImageTagList(output.imageTags, context) : undefined,
|
|
2315
2259
|
registryId: __expectString(output.registryId),
|
|
2316
2260
|
repositoryName: __expectString(output.repositoryName),
|
|
2317
2261
|
};
|
|
@@ -2336,9 +2280,7 @@ var deserializeAws_json1_1ImageFailure = function (output, context) {
|
|
|
2336
2280
|
return {
|
|
2337
2281
|
failureCode: __expectString(output.failureCode),
|
|
2338
2282
|
failureReason: __expectString(output.failureReason),
|
|
2339
|
-
imageId: output.imageId
|
|
2340
|
-
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
2341
|
-
: undefined,
|
|
2283
|
+
imageId: output.imageId != null ? deserializeAws_json1_1ImageIdentifier(output.imageId, context) : undefined,
|
|
2342
2284
|
};
|
|
2343
2285
|
};
|
|
2344
2286
|
var deserializeAws_json1_1ImageFailureList = function (output, context) {
|
|
@@ -2381,12 +2323,8 @@ var deserializeAws_json1_1ImageTagAlreadyExistsException = function (output, con
|
|
|
2381
2323
|
};
|
|
2382
2324
|
var deserializeAws_json1_1ImageTagDetail = function (output, context) {
|
|
2383
2325
|
return {
|
|
2384
|
-
createdAt: output.createdAt
|
|
2385
|
-
|
|
2386
|
-
: undefined,
|
|
2387
|
-
imageDetail: output.imageDetail !== undefined && output.imageDetail !== null
|
|
2388
|
-
? deserializeAws_json1_1ReferencedImageDetail(output.imageDetail, context)
|
|
2389
|
-
: undefined,
|
|
2326
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
2327
|
+
imageDetail: output.imageDetail != null ? deserializeAws_json1_1ReferencedImageDetail(output.imageDetail, context) : undefined,
|
|
2390
2328
|
imageTag: __expectString(output.imageTag),
|
|
2391
2329
|
};
|
|
2392
2330
|
};
|
|
@@ -2501,9 +2439,7 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
|
2501
2439
|
};
|
|
2502
2440
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
2503
2441
|
return {
|
|
2504
|
-
tags: output.tags
|
|
2505
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
2506
|
-
: undefined,
|
|
2442
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
2507
2443
|
};
|
|
2508
2444
|
};
|
|
2509
2445
|
var deserializeAws_json1_1OperatingSystemList = function (output, context) {
|
|
@@ -2519,23 +2455,19 @@ var deserializeAws_json1_1OperatingSystemList = function (output, context) {
|
|
|
2519
2455
|
};
|
|
2520
2456
|
var deserializeAws_json1_1PutImageResponse = function (output, context) {
|
|
2521
2457
|
return {
|
|
2522
|
-
image: output.image
|
|
2523
|
-
? deserializeAws_json1_1Image(output.image, context)
|
|
2524
|
-
: undefined,
|
|
2458
|
+
image: output.image != null ? deserializeAws_json1_1Image(output.image, context) : undefined,
|
|
2525
2459
|
};
|
|
2526
2460
|
};
|
|
2527
2461
|
var deserializeAws_json1_1PutRegistryCatalogDataResponse = function (output, context) {
|
|
2528
2462
|
return {
|
|
2529
|
-
registryCatalogData: output.registryCatalogData
|
|
2463
|
+
registryCatalogData: output.registryCatalogData != null
|
|
2530
2464
|
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
2531
2465
|
: undefined,
|
|
2532
2466
|
};
|
|
2533
2467
|
};
|
|
2534
2468
|
var deserializeAws_json1_1PutRepositoryCatalogDataResponse = function (output, context) {
|
|
2535
2469
|
return {
|
|
2536
|
-
catalogData: output.catalogData
|
|
2537
|
-
? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
|
|
2538
|
-
: undefined,
|
|
2470
|
+
catalogData: output.catalogData != null ? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context) : undefined,
|
|
2539
2471
|
};
|
|
2540
2472
|
};
|
|
2541
2473
|
var deserializeAws_json1_1ReferencedImageDetail = function (output, context) {
|
|
@@ -2543,7 +2475,7 @@ var deserializeAws_json1_1ReferencedImageDetail = function (output, context) {
|
|
|
2543
2475
|
artifactMediaType: __expectString(output.artifactMediaType),
|
|
2544
2476
|
imageDigest: __expectString(output.imageDigest),
|
|
2545
2477
|
imageManifestMediaType: __expectString(output.imageManifestMediaType),
|
|
2546
|
-
imagePushedAt: output.imagePushedAt
|
|
2478
|
+
imagePushedAt: output.imagePushedAt != null
|
|
2547
2479
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
|
|
2548
2480
|
: undefined,
|
|
2549
2481
|
imageSizeInBytes: __expectLong(output.imageSizeInBytes),
|
|
@@ -2556,9 +2488,7 @@ var deserializeAws_json1_1ReferencedImagesNotFoundException = function (output,
|
|
|
2556
2488
|
};
|
|
2557
2489
|
var deserializeAws_json1_1Registry = function (output, context) {
|
|
2558
2490
|
return {
|
|
2559
|
-
aliases: output.aliases
|
|
2560
|
-
? deserializeAws_json1_1RegistryAliasList(output.aliases, context)
|
|
2561
|
-
: undefined,
|
|
2491
|
+
aliases: output.aliases != null ? deserializeAws_json1_1RegistryAliasList(output.aliases, context) : undefined,
|
|
2562
2492
|
registryArn: __expectString(output.registryArn),
|
|
2563
2493
|
registryId: __expectString(output.registryId),
|
|
2564
2494
|
registryUri: __expectString(output.registryUri),
|
|
@@ -2607,9 +2537,7 @@ var deserializeAws_json1_1RegistryNotFoundException = function (output, context)
|
|
|
2607
2537
|
};
|
|
2608
2538
|
var deserializeAws_json1_1Repository = function (output, context) {
|
|
2609
2539
|
return {
|
|
2610
|
-
createdAt: output.createdAt
|
|
2611
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
2612
|
-
: undefined,
|
|
2540
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
2613
2541
|
registryId: __expectString(output.registryId),
|
|
2614
2542
|
repositoryArn: __expectString(output.repositoryArn),
|
|
2615
2543
|
repositoryName: __expectString(output.repositoryName),
|
|
@@ -2624,13 +2552,11 @@ var deserializeAws_json1_1RepositoryAlreadyExistsException = function (output, c
|
|
|
2624
2552
|
var deserializeAws_json1_1RepositoryCatalogData = function (output, context) {
|
|
2625
2553
|
return {
|
|
2626
2554
|
aboutText: __expectString(output.aboutText),
|
|
2627
|
-
architectures: output.architectures
|
|
2628
|
-
? deserializeAws_json1_1ArchitectureList(output.architectures, context)
|
|
2629
|
-
: undefined,
|
|
2555
|
+
architectures: output.architectures != null ? deserializeAws_json1_1ArchitectureList(output.architectures, context) : undefined,
|
|
2630
2556
|
description: __expectString(output.description),
|
|
2631
2557
|
logoUrl: __expectString(output.logoUrl),
|
|
2632
2558
|
marketplaceCertified: __expectBoolean(output.marketplaceCertified),
|
|
2633
|
-
operatingSystems: output.operatingSystems
|
|
2559
|
+
operatingSystems: output.operatingSystems != null
|
|
2634
2560
|
? deserializeAws_json1_1OperatingSystemList(output.operatingSystems, context)
|
|
2635
2561
|
: undefined,
|
|
2636
2562
|
usageText: __expectString(output.usageText),
|
|
@@ -2776,6 +2702,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2776
2702
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2777
2703
|
var sanitizeErrorCode = function (rawValue) {
|
|
2778
2704
|
var cleanValue = rawValue;
|
|
2705
|
+
if (typeof cleanValue === "number") {
|
|
2706
|
+
cleanValue = cleanValue.toString();
|
|
2707
|
+
}
|
|
2779
2708
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2780
2709
|
cleanValue = cleanValue.split(":")[0];
|
|
2781
2710
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecr-public",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|