aws-sdk-codeartifact 1.25.0 → 1.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codeartifact/client.rb +182 -40
- data/lib/aws-sdk-codeartifact/client_api.rb +42 -0
- data/lib/aws-sdk-codeartifact/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-codeartifact/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-codeartifact/endpoints.rb +14 -0
- data/lib/aws-sdk-codeartifact/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-codeartifact/types.rb +186 -11
- data/lib/aws-sdk-codeartifact.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1887a093b00f0e31c4a69940b4055000e1722d13b70fef8fcb68fe327ed9500a
|
4
|
+
data.tar.gz: 1da2f39656d8b920214bcadd4f3d7b353649fbb6f92c51678508576e305290eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aa7fb685b84ba0e6ae5f5771bfd829d0dc83cd552deab68db9ac5a96693791ca7bd88d13cafdf26a817514c2e5bb924bfd03a213259bb7c2d877f35452f520e
|
7
|
+
data.tar.gz: 692313a434d8bfadae4183d159a5da188f1cca35aeff9a67a07207c96cf69c89406bd8d6a8e64d09c9b6ed0c875a5c658247b9a243295bc9996f0154718ca0bc
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.26.0 (2023-03-09)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release introduces the generic package format, a mechanism for storing arbitrary binary assets. It also adds a new API, PublishPackageVersion, to allow for publishing generic packages.
|
8
|
+
|
4
9
|
1.25.0 (2023-01-31)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.26.0
|
@@ -429,7 +429,7 @@ module Aws::CodeArtifact
|
|
429
429
|
# resp.repository.upstreams[0].repository_name #=> String
|
430
430
|
# resp.repository.external_connections #=> Array
|
431
431
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
432
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
432
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
433
433
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
434
434
|
#
|
435
435
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnection AWS API Documentation
|
@@ -481,6 +481,8 @@ module Aws::CodeArtifact
|
|
481
481
|
# component, package versions of those formats do not have a
|
482
482
|
# namespace.
|
483
483
|
#
|
484
|
+
# * The namespace of a generic package is it’s `namespace`.
|
485
|
+
#
|
484
486
|
# @option params [required, String] :package
|
485
487
|
# The name of the package that contains the versions to be copied.
|
486
488
|
#
|
@@ -532,7 +534,7 @@ module Aws::CodeArtifact
|
|
532
534
|
# domain_owner: "AccountId",
|
533
535
|
# source_repository: "RepositoryName", # required
|
534
536
|
# destination_repository: "RepositoryName", # required
|
535
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
537
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
536
538
|
# namespace: "PackageNamespace",
|
537
539
|
# package: "PackageName", # required
|
538
540
|
# versions: ["PackageVersion"],
|
@@ -707,7 +709,7 @@ module Aws::CodeArtifact
|
|
707
709
|
# resp.repository.upstreams[0].repository_name #=> String
|
708
710
|
# resp.repository.external_connections #=> Array
|
709
711
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
710
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
712
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
711
713
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
712
714
|
#
|
713
715
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepository AWS API Documentation
|
@@ -850,14 +852,14 @@ module Aws::CodeArtifact
|
|
850
852
|
# domain: "DomainName", # required
|
851
853
|
# domain_owner: "AccountId",
|
852
854
|
# repository: "RepositoryName", # required
|
853
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
855
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
854
856
|
# namespace: "PackageNamespace",
|
855
857
|
# package: "PackageName", # required
|
856
858
|
# })
|
857
859
|
#
|
858
860
|
# @example Response structure
|
859
861
|
#
|
860
|
-
# resp.deleted_package.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
862
|
+
# resp.deleted_package.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
861
863
|
# resp.deleted_package.namespace #=> String
|
862
864
|
# resp.deleted_package.package #=> String
|
863
865
|
# resp.deleted_package.origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
|
@@ -877,7 +879,7 @@ module Aws::CodeArtifact
|
|
877
879
|
# version from your repository and be able to restore it later, set its
|
878
880
|
# status to `Archived`. Archived packages cannot be downloaded from a
|
879
881
|
# repository and don't show up with list package APIs (for example,
|
880
|
-
# [
|
882
|
+
# [ListPackageVersions][1]), but you can restore them using
|
881
883
|
# [UpdatePackageVersionsStatus][2].
|
882
884
|
#
|
883
885
|
#
|
@@ -913,6 +915,8 @@ module Aws::CodeArtifact
|
|
913
915
|
# component, package versions of those formats do not have a
|
914
916
|
# namespace.
|
915
917
|
#
|
918
|
+
# * The namespace of a generic package is it’s `namespace`.
|
919
|
+
#
|
916
920
|
# @option params [required, String] :package
|
917
921
|
# The name of the package with the versions to delete.
|
918
922
|
#
|
@@ -934,7 +938,7 @@ module Aws::CodeArtifact
|
|
934
938
|
# domain: "DomainName", # required
|
935
939
|
# domain_owner: "AccountId",
|
936
940
|
# repository: "RepositoryName", # required
|
937
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
941
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
938
942
|
# namespace: "PackageNamespace",
|
939
943
|
# package: "PackageName", # required
|
940
944
|
# versions: ["PackageVersion"], # required
|
@@ -995,7 +999,7 @@ module Aws::CodeArtifact
|
|
995
999
|
# resp.repository.upstreams[0].repository_name #=> String
|
996
1000
|
# resp.repository.external_connections #=> Array
|
997
1001
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
998
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1002
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
999
1003
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
1000
1004
|
#
|
1001
1005
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepository AWS API Documentation
|
@@ -1142,6 +1146,8 @@ module Aws::CodeArtifact
|
|
1142
1146
|
# * Python and NuGet packages do not contain a corresponding component,
|
1143
1147
|
# packages of those formats do not have a namespace.
|
1144
1148
|
#
|
1149
|
+
# * The namespace of a generic package is it’s `namespace`.
|
1150
|
+
#
|
1145
1151
|
# @option params [required, String] :package
|
1146
1152
|
# The name of the requested package.
|
1147
1153
|
#
|
@@ -1155,14 +1161,14 @@ module Aws::CodeArtifact
|
|
1155
1161
|
# domain: "DomainName", # required
|
1156
1162
|
# domain_owner: "AccountId",
|
1157
1163
|
# repository: "RepositoryName", # required
|
1158
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1164
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
1159
1165
|
# namespace: "PackageNamespace",
|
1160
1166
|
# package: "PackageName", # required
|
1161
1167
|
# })
|
1162
1168
|
#
|
1163
1169
|
# @example Response structure
|
1164
1170
|
#
|
1165
|
-
# resp.package.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1171
|
+
# resp.package.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
1166
1172
|
# resp.package.namespace #=> String
|
1167
1173
|
# resp.package.name #=> String
|
1168
1174
|
# resp.package.origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
|
@@ -1211,6 +1217,8 @@ module Aws::CodeArtifact
|
|
1211
1217
|
# component, package versions of those formats do not have a
|
1212
1218
|
# namespace.
|
1213
1219
|
#
|
1220
|
+
# * The namespace of a generic package is it’s `namespace`.
|
1221
|
+
#
|
1214
1222
|
# @option params [required, String] :package
|
1215
1223
|
# The name of the requested package version.
|
1216
1224
|
#
|
@@ -1227,7 +1235,7 @@ module Aws::CodeArtifact
|
|
1227
1235
|
# domain: "DomainName", # required
|
1228
1236
|
# domain_owner: "AccountId",
|
1229
1237
|
# repository: "RepositoryName", # required
|
1230
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1238
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
1231
1239
|
# namespace: "PackageNamespace",
|
1232
1240
|
# package: "PackageName", # required
|
1233
1241
|
# package_version: "PackageVersion", # required
|
@@ -1235,7 +1243,7 @@ module Aws::CodeArtifact
|
|
1235
1243
|
#
|
1236
1244
|
# @example Response structure
|
1237
1245
|
#
|
1238
|
-
# resp.package_version.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1246
|
+
# resp.package_version.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
1239
1247
|
# resp.package_version.namespace #=> String
|
1240
1248
|
# resp.package_version.package_name #=> String
|
1241
1249
|
# resp.package_version.display_name #=> String
|
@@ -1299,7 +1307,7 @@ module Aws::CodeArtifact
|
|
1299
1307
|
# resp.repository.upstreams[0].repository_name #=> String
|
1300
1308
|
# resp.repository.external_connections #=> Array
|
1301
1309
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
1302
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1310
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
1303
1311
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
1304
1312
|
#
|
1305
1313
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeRepository AWS API Documentation
|
@@ -1353,7 +1361,7 @@ module Aws::CodeArtifact
|
|
1353
1361
|
# resp.repository.upstreams[0].repository_name #=> String
|
1354
1362
|
# resp.repository.external_connections #=> Array
|
1355
1363
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
1356
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1364
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
1357
1365
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
1358
1366
|
#
|
1359
1367
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisassociateExternalConnection AWS API Documentation
|
@@ -1411,6 +1419,8 @@ module Aws::CodeArtifact
|
|
1411
1419
|
# component, package versions of those formats do not have a
|
1412
1420
|
# namespace.
|
1413
1421
|
#
|
1422
|
+
# * The namespace of a generic package is it’s `namespace`.
|
1423
|
+
#
|
1414
1424
|
# @option params [required, String] :package
|
1415
1425
|
# The name of the package with the versions you want to dispose.
|
1416
1426
|
#
|
@@ -1434,7 +1444,7 @@ module Aws::CodeArtifact
|
|
1434
1444
|
# domain: "DomainName", # required
|
1435
1445
|
# domain_owner: "AccountId",
|
1436
1446
|
# repository: "RepositoryName", # required
|
1437
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1447
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
1438
1448
|
# namespace: "PackageNamespace",
|
1439
1449
|
# package: "PackageName", # required
|
1440
1450
|
# versions: ["PackageVersion"], # required
|
@@ -1614,6 +1624,8 @@ module Aws::CodeArtifact
|
|
1614
1624
|
# component, package versions of those formats do not have a
|
1615
1625
|
# namespace.
|
1616
1626
|
#
|
1627
|
+
# * The namespace of a generic package is it’s `namespace`.
|
1628
|
+
#
|
1617
1629
|
# @option params [required, String] :package
|
1618
1630
|
# The name of the package that contains the requested asset.
|
1619
1631
|
#
|
@@ -1640,7 +1652,7 @@ module Aws::CodeArtifact
|
|
1640
1652
|
# domain: "DomainName", # required
|
1641
1653
|
# domain_owner: "AccountId",
|
1642
1654
|
# repository: "RepositoryName", # required
|
1643
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1655
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
1644
1656
|
# namespace: "PackageNamespace",
|
1645
1657
|
# package: "PackageName", # required
|
1646
1658
|
# package_version: "PackageVersion", # required
|
@@ -1685,11 +1697,6 @@ module Aws::CodeArtifact
|
|
1685
1697
|
# A format that specifies the type of the package version with the
|
1686
1698
|
# requested readme file.
|
1687
1699
|
#
|
1688
|
-
# <note markdown="1"> Although `maven` is listed as a valid value, CodeArtifact does not
|
1689
|
-
# support displaying readme files for Maven packages.
|
1690
|
-
#
|
1691
|
-
# </note>
|
1692
|
-
#
|
1693
1700
|
# @option params [String] :namespace
|
1694
1701
|
# The namespace of the package version with the requested readme file.
|
1695
1702
|
# The package version component that specifies its namespace depends on
|
@@ -1725,7 +1732,7 @@ module Aws::CodeArtifact
|
|
1725
1732
|
# domain: "DomainName", # required
|
1726
1733
|
# domain_owner: "AccountId",
|
1727
1734
|
# repository: "RepositoryName", # required
|
1728
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1735
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
1729
1736
|
# namespace: "PackageNamespace",
|
1730
1737
|
# package: "PackageName", # required
|
1731
1738
|
# package_version: "PackageVersion", # required
|
@@ -1733,7 +1740,7 @@ module Aws::CodeArtifact
|
|
1733
1740
|
#
|
1734
1741
|
# @example Response structure
|
1735
1742
|
#
|
1736
|
-
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1743
|
+
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
1737
1744
|
# resp.namespace #=> String
|
1738
1745
|
# resp.package #=> String
|
1739
1746
|
# resp.version #=> String
|
@@ -1785,7 +1792,7 @@ module Aws::CodeArtifact
|
|
1785
1792
|
# domain: "DomainName", # required
|
1786
1793
|
# domain_owner: "AccountId",
|
1787
1794
|
# repository: "RepositoryName", # required
|
1788
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1795
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
1789
1796
|
# })
|
1790
1797
|
#
|
1791
1798
|
# @example Response structure
|
@@ -1928,6 +1935,8 @@ module Aws::CodeArtifact
|
|
1928
1935
|
# component, package versions of those formats do not have a
|
1929
1936
|
# namespace.
|
1930
1937
|
#
|
1938
|
+
# * The namespace of a generic package is it’s `namespace`.
|
1939
|
+
#
|
1931
1940
|
# @option params [required, String] :package
|
1932
1941
|
# The name of the package that contains the requested package version
|
1933
1942
|
# assets.
|
@@ -1961,7 +1970,7 @@ module Aws::CodeArtifact
|
|
1961
1970
|
# domain: "DomainName", # required
|
1962
1971
|
# domain_owner: "AccountId",
|
1963
1972
|
# repository: "RepositoryName", # required
|
1964
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
1973
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
1965
1974
|
# namespace: "PackageNamespace",
|
1966
1975
|
# package: "PackageName", # required
|
1967
1976
|
# package_version: "PackageVersion", # required
|
@@ -1971,7 +1980,7 @@ module Aws::CodeArtifact
|
|
1971
1980
|
#
|
1972
1981
|
# @example Response structure
|
1973
1982
|
#
|
1974
|
-
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
1983
|
+
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
1975
1984
|
# resp.namespace #=> String
|
1976
1985
|
# resp.package #=> String
|
1977
1986
|
# resp.version #=> String
|
@@ -2032,6 +2041,8 @@ module Aws::CodeArtifact
|
|
2032
2041
|
# component, package versions of those formats do not have a
|
2033
2042
|
# namespace.
|
2034
2043
|
#
|
2044
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2045
|
+
#
|
2035
2046
|
# @option params [required, String] :package
|
2036
2047
|
# The name of the package versions' package.
|
2037
2048
|
#
|
@@ -2059,7 +2070,7 @@ module Aws::CodeArtifact
|
|
2059
2070
|
# domain: "DomainName", # required
|
2060
2071
|
# domain_owner: "AccountId",
|
2061
2072
|
# repository: "RepositoryName", # required
|
2062
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
2073
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
2063
2074
|
# namespace: "PackageNamespace",
|
2064
2075
|
# package: "PackageName", # required
|
2065
2076
|
# package_version: "PackageVersion", # required
|
@@ -2068,7 +2079,7 @@ module Aws::CodeArtifact
|
|
2068
2079
|
#
|
2069
2080
|
# @example Response structure
|
2070
2081
|
#
|
2071
|
-
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
2082
|
+
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
2072
2083
|
# resp.namespace #=> String
|
2073
2084
|
# resp.package #=> String
|
2074
2085
|
# resp.version #=> String
|
@@ -2111,7 +2122,7 @@ module Aws::CodeArtifact
|
|
2111
2122
|
# versions.
|
2112
2123
|
#
|
2113
2124
|
# @option params [required, String] :format
|
2114
|
-
# The format of the
|
2125
|
+
# The format of the package versions you want to list.
|
2115
2126
|
#
|
2116
2127
|
# @option params [String] :namespace
|
2117
2128
|
# The namespace of the package that contains the requested package
|
@@ -2125,6 +2136,8 @@ module Aws::CodeArtifact
|
|
2125
2136
|
# * Python and NuGet packages do not contain a corresponding component,
|
2126
2137
|
# packages of those formats do not have a namespace.
|
2127
2138
|
#
|
2139
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2140
|
+
#
|
2128
2141
|
# @option params [required, String] :package
|
2129
2142
|
# The name of the package for which you want to request package
|
2130
2143
|
# versions.
|
@@ -2164,7 +2177,7 @@ module Aws::CodeArtifact
|
|
2164
2177
|
# domain: "DomainName", # required
|
2165
2178
|
# domain_owner: "AccountId",
|
2166
2179
|
# repository: "RepositoryName", # required
|
2167
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
2180
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
2168
2181
|
# namespace: "PackageNamespace",
|
2169
2182
|
# package: "PackageName", # required
|
2170
2183
|
# status: "Published", # accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
|
@@ -2177,7 +2190,7 @@ module Aws::CodeArtifact
|
|
2177
2190
|
# @example Response structure
|
2178
2191
|
#
|
2179
2192
|
# resp.default_display_version #=> String
|
2180
|
-
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
2193
|
+
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
2181
2194
|
# resp.namespace #=> String
|
2182
2195
|
# resp.package #=> String
|
2183
2196
|
# resp.versions #=> Array
|
@@ -2221,9 +2234,12 @@ module Aws::CodeArtifact
|
|
2221
2234
|
# provided format will be returned.
|
2222
2235
|
#
|
2223
2236
|
# @option params [String] :namespace
|
2224
|
-
# The namespace used to filter requested packages. Only packages
|
2225
|
-
#
|
2226
|
-
#
|
2237
|
+
# The namespace prefix used to filter requested packages. Only packages
|
2238
|
+
# with a namespace that starts with the provided string value are
|
2239
|
+
# returned. Note that although this option is called `--namespace` and
|
2240
|
+
# not `--namespace-prefix`, it has prefix-matching behavior.
|
2241
|
+
#
|
2242
|
+
# Each package format uses namespace as follows:
|
2227
2243
|
#
|
2228
2244
|
# * The namespace of a Maven package is its `groupId`.
|
2229
2245
|
#
|
@@ -2232,6 +2248,8 @@ module Aws::CodeArtifact
|
|
2232
2248
|
# * Python and NuGet packages do not contain a corresponding component,
|
2233
2249
|
# packages of those formats do not have a namespace.
|
2234
2250
|
#
|
2251
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2252
|
+
#
|
2235
2253
|
# @option params [String] :package_prefix
|
2236
2254
|
# A prefix used to filter requested packages. Only packages with names
|
2237
2255
|
# that start with `packagePrefix` are returned.
|
@@ -2277,7 +2295,7 @@ module Aws::CodeArtifact
|
|
2277
2295
|
# domain: "DomainName", # required
|
2278
2296
|
# domain_owner: "AccountId",
|
2279
2297
|
# repository: "RepositoryName", # required
|
2280
|
-
# format: "npm", # accepts npm, pypi, maven, nuget
|
2298
|
+
# format: "npm", # accepts npm, pypi, maven, nuget, generic
|
2281
2299
|
# namespace: "PackageNamespace",
|
2282
2300
|
# package_prefix: "PackageName",
|
2283
2301
|
# max_results: 1,
|
@@ -2289,7 +2307,7 @@ module Aws::CodeArtifact
|
|
2289
2307
|
# @example Response structure
|
2290
2308
|
#
|
2291
2309
|
# resp.packages #=> Array
|
2292
|
-
# resp.packages[0].format #=> String, one of "npm", "pypi", "maven", "nuget"
|
2310
|
+
# resp.packages[0].format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
2293
2311
|
# resp.packages[0].namespace #=> String
|
2294
2312
|
# resp.packages[0].package #=> String
|
2295
2313
|
# resp.packages[0].origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
|
@@ -2462,6 +2480,126 @@ module Aws::CodeArtifact
|
|
2462
2480
|
req.send_request(options)
|
2463
2481
|
end
|
2464
2482
|
|
2483
|
+
# Creates a new package version containing one or more assets (or
|
2484
|
+
# files).
|
2485
|
+
#
|
2486
|
+
# The `unfinished` flag can be used to keep the package version in the
|
2487
|
+
# `Unfinished` state until all of it’s assets have been uploaded (see
|
2488
|
+
# [Package version status][1] in the *CodeArtifact user guide*). To set
|
2489
|
+
# the package version’s status to `Published`, omit the `unfinished`
|
2490
|
+
# flag when uploading the final asset, or set the status using
|
2491
|
+
# [UpdatePackageVersionStatus][2]. Once a package version’s status is
|
2492
|
+
# set to `Published`, it cannot change back to `Unfinished`.
|
2493
|
+
#
|
2494
|
+
# <note markdown="1"> Only generic packages can be published using this API.
|
2495
|
+
#
|
2496
|
+
# </note>
|
2497
|
+
#
|
2498
|
+
#
|
2499
|
+
#
|
2500
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
|
2501
|
+
# [2]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html
|
2502
|
+
#
|
2503
|
+
# @option params [required, String] :domain
|
2504
|
+
# The name of the domain that contains the repository that contains the
|
2505
|
+
# package version to publish.
|
2506
|
+
#
|
2507
|
+
# @option params [String] :domain_owner
|
2508
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
2509
|
+
# It does not include dashes or spaces.
|
2510
|
+
#
|
2511
|
+
# @option params [required, String] :repository
|
2512
|
+
# The name of the repository that the package version will be published
|
2513
|
+
# to.
|
2514
|
+
#
|
2515
|
+
# @option params [required, String] :format
|
2516
|
+
# A format that specifies the type of the package version with the
|
2517
|
+
# requested asset file.
|
2518
|
+
#
|
2519
|
+
# @option params [String] :namespace
|
2520
|
+
# The namespace of the package version to publish.
|
2521
|
+
#
|
2522
|
+
# @option params [required, String] :package
|
2523
|
+
# The name of the package version to publish.
|
2524
|
+
#
|
2525
|
+
# @option params [required, String] :package_version
|
2526
|
+
# The package version to publish (for example, `3.5.2`).
|
2527
|
+
#
|
2528
|
+
# @option params [required, String, StringIO, File] :asset_content
|
2529
|
+
# The content of the asset to publish.
|
2530
|
+
#
|
2531
|
+
# @option params [required, String] :asset_name
|
2532
|
+
# The name of the asset to publish. Asset names can include Unicode
|
2533
|
+
# letters and numbers, and the following special characters: `` ~ ! @ ^
|
2534
|
+
# & ( ) - ` _ + [ ] \{ \} ; , . ` ``
|
2535
|
+
#
|
2536
|
+
# @option params [required, String] :asset_sha256
|
2537
|
+
# The SHA256 hash of the `assetContent` to publish. This value must be
|
2538
|
+
# calculated by the caller and provided with the request.
|
2539
|
+
#
|
2540
|
+
# This value is used as an integrity check to verify that the
|
2541
|
+
# `assetContent` has not changed after it was originally sent.
|
2542
|
+
#
|
2543
|
+
# @option params [Boolean] :unfinished
|
2544
|
+
# Specifies whether the package version should remain in the
|
2545
|
+
# `unfinished` state. If omitted, the package version status will be set
|
2546
|
+
# to `Published` (see [Package version status][1] in the *CodeArtifact
|
2547
|
+
# User Guide*).
|
2548
|
+
#
|
2549
|
+
# Valid values: `unfinished`
|
2550
|
+
#
|
2551
|
+
#
|
2552
|
+
#
|
2553
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
|
2554
|
+
#
|
2555
|
+
# @return [Types::PublishPackageVersionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2556
|
+
#
|
2557
|
+
# * {Types::PublishPackageVersionResult#format #format} => String
|
2558
|
+
# * {Types::PublishPackageVersionResult#namespace #namespace} => String
|
2559
|
+
# * {Types::PublishPackageVersionResult#package #package} => String
|
2560
|
+
# * {Types::PublishPackageVersionResult#version #version} => String
|
2561
|
+
# * {Types::PublishPackageVersionResult#version_revision #version_revision} => String
|
2562
|
+
# * {Types::PublishPackageVersionResult#status #status} => String
|
2563
|
+
# * {Types::PublishPackageVersionResult#asset #asset} => Types::AssetSummary
|
2564
|
+
#
|
2565
|
+
# @example Request syntax with placeholder values
|
2566
|
+
#
|
2567
|
+
# resp = client.publish_package_version({
|
2568
|
+
# domain: "DomainName", # required
|
2569
|
+
# domain_owner: "AccountId",
|
2570
|
+
# repository: "RepositoryName", # required
|
2571
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
2572
|
+
# namespace: "PackageNamespace",
|
2573
|
+
# package: "PackageName", # required
|
2574
|
+
# package_version: "PackageVersion", # required
|
2575
|
+
# asset_content: "data", # required
|
2576
|
+
# asset_name: "AssetName", # required
|
2577
|
+
# asset_sha256: "SHA256", # required
|
2578
|
+
# unfinished: false,
|
2579
|
+
# })
|
2580
|
+
#
|
2581
|
+
# @example Response structure
|
2582
|
+
#
|
2583
|
+
# resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
2584
|
+
# resp.namespace #=> String
|
2585
|
+
# resp.package #=> String
|
2586
|
+
# resp.version #=> String
|
2587
|
+
# resp.version_revision #=> String
|
2588
|
+
# resp.status #=> String, one of "Published", "Unfinished", "Unlisted", "Archived", "Disposed", "Deleted"
|
2589
|
+
# resp.asset.name #=> String
|
2590
|
+
# resp.asset.size #=> Integer
|
2591
|
+
# resp.asset.hashes #=> Hash
|
2592
|
+
# resp.asset.hashes["HashAlgorithm"] #=> String
|
2593
|
+
#
|
2594
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PublishPackageVersion AWS API Documentation
|
2595
|
+
#
|
2596
|
+
# @overload publish_package_version(params = {})
|
2597
|
+
# @param [Hash] params ({})
|
2598
|
+
def publish_package_version(params = {}, options = {})
|
2599
|
+
req = build_request(:publish_package_version, params)
|
2600
|
+
req.send_request(options)
|
2601
|
+
end
|
2602
|
+
|
2465
2603
|
# Sets a resource policy on a domain that specifies permissions to
|
2466
2604
|
# access it.
|
2467
2605
|
#
|
@@ -2561,6 +2699,8 @@ module Aws::CodeArtifact
|
|
2561
2699
|
# * Python and NuGet packages do not contain a corresponding component,
|
2562
2700
|
# packages of those formats do not have a namespace.
|
2563
2701
|
#
|
2702
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2703
|
+
#
|
2564
2704
|
# @option params [required, String] :package
|
2565
2705
|
# The name of the package to be updated.
|
2566
2706
|
#
|
@@ -2589,7 +2729,7 @@ module Aws::CodeArtifact
|
|
2589
2729
|
# domain: "DomainName", # required
|
2590
2730
|
# domain_owner: "AccountId",
|
2591
2731
|
# repository: "RepositoryName", # required
|
2592
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
2732
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
2593
2733
|
# namespace: "PackageNamespace",
|
2594
2734
|
# package: "PackageName", # required
|
2595
2735
|
# restrictions: { # required
|
@@ -2768,6 +2908,8 @@ module Aws::CodeArtifact
|
|
2768
2908
|
# component, package versions of those formats do not have a
|
2769
2909
|
# namespace.
|
2770
2910
|
#
|
2911
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2912
|
+
#
|
2771
2913
|
# @option params [required, String] :package
|
2772
2914
|
# The name of the package with the version statuses to update.
|
2773
2915
|
#
|
@@ -2800,7 +2942,7 @@ module Aws::CodeArtifact
|
|
2800
2942
|
# domain: "DomainName", # required
|
2801
2943
|
# domain_owner: "AccountId",
|
2802
2944
|
# repository: "RepositoryName", # required
|
2803
|
-
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
2945
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget, generic
|
2804
2946
|
# namespace: "PackageNamespace",
|
2805
2947
|
# package: "PackageName", # required
|
2806
2948
|
# versions: ["PackageVersion"], # required
|
@@ -2885,7 +3027,7 @@ module Aws::CodeArtifact
|
|
2885
3027
|
# resp.repository.upstreams[0].repository_name #=> String
|
2886
3028
|
# resp.repository.external_connections #=> Array
|
2887
3029
|
# resp.repository.external_connections[0].external_connection_name #=> String
|
2888
|
-
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
|
3030
|
+
# resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
|
2889
3031
|
# resp.repository.external_connections[0].status #=> String, one of "Available"
|
2890
3032
|
#
|
2891
3033
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdateRepository AWS API Documentation
|
@@ -2910,7 +3052,7 @@ module Aws::CodeArtifact
|
|
2910
3052
|
params: params,
|
2911
3053
|
config: config)
|
2912
3054
|
context[:gem_name] = 'aws-sdk-codeartifact'
|
2913
|
-
context[:gem_version] = '1.
|
3055
|
+
context[:gem_version] = '1.26.0'
|
2914
3056
|
Seahorse::Client::Request.new(handlers, context)
|
2915
3057
|
end
|
2916
3058
|
|
@@ -137,6 +137,8 @@ module Aws::CodeArtifact
|
|
137
137
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
138
138
|
PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
|
139
139
|
PolicyRevision = Shapes::StringShape.new(name: 'PolicyRevision')
|
140
|
+
PublishPackageVersionRequest = Shapes::StructureShape.new(name: 'PublishPackageVersionRequest')
|
141
|
+
PublishPackageVersionResult = Shapes::StructureShape.new(name: 'PublishPackageVersionResult')
|
140
142
|
PutDomainPermissionsPolicyRequest = Shapes::StructureShape.new(name: 'PutDomainPermissionsPolicyRequest')
|
141
143
|
PutDomainPermissionsPolicyResult = Shapes::StructureShape.new(name: 'PutDomainPermissionsPolicyResult')
|
142
144
|
PutPackageOriginConfigurationRequest = Shapes::StructureShape.new(name: 'PutPackageOriginConfigurationRequest')
|
@@ -153,6 +155,7 @@ module Aws::CodeArtifact
|
|
153
155
|
ResourcePolicy = Shapes::StructureShape.new(name: 'ResourcePolicy')
|
154
156
|
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
155
157
|
RetryAfterSeconds = Shapes::IntegerShape.new(name: 'RetryAfterSeconds')
|
158
|
+
SHA256 = Shapes::StringShape.new(name: 'SHA256')
|
156
159
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
157
160
|
String = Shapes::StringShape.new(name: 'String')
|
158
161
|
String255 = Shapes::StringShape.new(name: 'String255')
|
@@ -644,6 +647,30 @@ module Aws::CodeArtifact
|
|
644
647
|
|
645
648
|
PackageVersionSummaryList.member = Shapes::ShapeRef.new(shape: PackageVersionSummary)
|
646
649
|
|
650
|
+
PublishPackageVersionRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
651
|
+
PublishPackageVersionRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
652
|
+
PublishPackageVersionRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
653
|
+
PublishPackageVersionRequest.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, required: true, location: "querystring", location_name: "format"))
|
654
|
+
PublishPackageVersionRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location: "querystring", location_name: "namespace"))
|
655
|
+
PublishPackageVersionRequest.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, required: true, location: "querystring", location_name: "package"))
|
656
|
+
PublishPackageVersionRequest.add_member(:package_version, Shapes::ShapeRef.new(shape: PackageVersion, required: true, location: "querystring", location_name: "version"))
|
657
|
+
PublishPackageVersionRequest.add_member(:asset_content, Shapes::ShapeRef.new(shape: Asset, required: true, location_name: "assetContent"))
|
658
|
+
PublishPackageVersionRequest.add_member(:asset_name, Shapes::ShapeRef.new(shape: AssetName, required: true, location: "querystring", location_name: "asset"))
|
659
|
+
PublishPackageVersionRequest.add_member(:asset_sha256, Shapes::ShapeRef.new(shape: SHA256, required: true, location: "header", location_name: "x-amz-content-sha256"))
|
660
|
+
PublishPackageVersionRequest.add_member(:unfinished, Shapes::ShapeRef.new(shape: BooleanOptional, location: "querystring", location_name: "unfinished"))
|
661
|
+
PublishPackageVersionRequest.struct_class = Types::PublishPackageVersionRequest
|
662
|
+
PublishPackageVersionRequest[:payload] = :asset_content
|
663
|
+
PublishPackageVersionRequest[:payload_member] = PublishPackageVersionRequest.member(:asset_content)
|
664
|
+
|
665
|
+
PublishPackageVersionResult.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, location_name: "format"))
|
666
|
+
PublishPackageVersionResult.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location_name: "namespace"))
|
667
|
+
PublishPackageVersionResult.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, location_name: "package"))
|
668
|
+
PublishPackageVersionResult.add_member(:version, Shapes::ShapeRef.new(shape: PackageVersion, location_name: "version"))
|
669
|
+
PublishPackageVersionResult.add_member(:version_revision, Shapes::ShapeRef.new(shape: PackageVersionRevision, location_name: "versionRevision"))
|
670
|
+
PublishPackageVersionResult.add_member(:status, Shapes::ShapeRef.new(shape: PackageVersionStatus, location_name: "status"))
|
671
|
+
PublishPackageVersionResult.add_member(:asset, Shapes::ShapeRef.new(shape: AssetSummary, location_name: "asset"))
|
672
|
+
PublishPackageVersionResult.struct_class = Types::PublishPackageVersionResult
|
673
|
+
|
647
674
|
PutDomainPermissionsPolicyRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location_name: "domain"))
|
648
675
|
PutDomainPermissionsPolicyRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "domainOwner"))
|
649
676
|
PutDomainPermissionsPolicyRequest.add_member(:policy_revision, Shapes::ShapeRef.new(shape: PolicyRevision, location_name: "policyRevision"))
|
@@ -1247,6 +1274,21 @@ module Aws::CodeArtifact
|
|
1247
1274
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1248
1275
|
end)
|
1249
1276
|
|
1277
|
+
api.add_operation(:publish_package_version, Seahorse::Model::Operation.new.tap do |o|
|
1278
|
+
o.name = "PublishPackageVersion"
|
1279
|
+
o.http_method = "POST"
|
1280
|
+
o.http_request_uri = "/v1/package/version/publish"
|
1281
|
+
o.input = Shapes::ShapeRef.new(shape: PublishPackageVersionRequest)
|
1282
|
+
o.output = Shapes::ShapeRef.new(shape: PublishPackageVersionResult)
|
1283
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1284
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
1285
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1286
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1287
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
1288
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
1289
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1290
|
+
end)
|
1291
|
+
|
1250
1292
|
api.add_operation(:put_domain_permissions_policy, Seahorse::Model::Operation.new.tap do |o|
|
1251
1293
|
o.name = "PutDomainPermissionsPolicy"
|
1252
1294
|
o.http_method = "PUT"
|
@@ -50,9 +50,6 @@ module Aws::CodeArtifact
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,39 @@ module Aws::CodeArtifact
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://codeartifact.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -431,6 +431,20 @@ module Aws::CodeArtifact
|
|
431
431
|
end
|
432
432
|
end
|
433
433
|
|
434
|
+
class PublishPackageVersion
|
435
|
+
def self.build(context)
|
436
|
+
unless context.config.regional_endpoint
|
437
|
+
endpoint = context.config.endpoint.to_s
|
438
|
+
end
|
439
|
+
Aws::CodeArtifact::EndpointParameters.new(
|
440
|
+
region: context.config.region,
|
441
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
442
|
+
use_fips: context.config.use_fips_endpoint,
|
443
|
+
endpoint: endpoint,
|
444
|
+
)
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
434
448
|
class PutDomainPermissionsPolicy
|
435
449
|
def self.build(context)
|
436
450
|
unless context.config.regional_endpoint
|
@@ -116,6 +116,8 @@ module Aws::CodeArtifact
|
|
116
116
|
Aws::CodeArtifact::Endpoints::ListRepositoriesInDomain.build(context)
|
117
117
|
when :list_tags_for_resource
|
118
118
|
Aws::CodeArtifact::Endpoints::ListTagsForResource.build(context)
|
119
|
+
when :publish_package_version
|
120
|
+
Aws::CodeArtifact::Endpoints::PublishPackageVersion.build(context)
|
119
121
|
when :put_domain_permissions_policy
|
120
122
|
Aws::CodeArtifact::Endpoints::PutDomainPermissionsPolicy.build(context)
|
121
123
|
when :put_package_origin_configuration
|
@@ -165,6 +165,8 @@ module Aws::CodeArtifact
|
|
165
165
|
# * Python and NuGet package versions do not contain a corresponding
|
166
166
|
# component, package versions of those formats do not have a
|
167
167
|
# namespace.
|
168
|
+
#
|
169
|
+
# * The namespace of a generic package is it’s `namespace`.
|
168
170
|
# @return [String]
|
169
171
|
#
|
170
172
|
# @!attribute [rw] package
|
@@ -537,6 +539,8 @@ module Aws::CodeArtifact
|
|
537
539
|
# * Python and NuGet package versions do not contain a corresponding
|
538
540
|
# component, package versions of those formats do not have a
|
539
541
|
# namespace.
|
542
|
+
#
|
543
|
+
# * The namespace of a generic package is it’s `namespace`.
|
540
544
|
# @return [String]
|
541
545
|
#
|
542
546
|
# @!attribute [rw] package
|
@@ -740,6 +744,8 @@ module Aws::CodeArtifact
|
|
740
744
|
#
|
741
745
|
# * Python and NuGet packages do not contain a corresponding
|
742
746
|
# component, packages of those formats do not have a namespace.
|
747
|
+
#
|
748
|
+
# * The namespace of a generic package is it’s `namespace`.
|
743
749
|
# @return [String]
|
744
750
|
#
|
745
751
|
# @!attribute [rw] package
|
@@ -806,6 +812,8 @@ module Aws::CodeArtifact
|
|
806
812
|
# * Python and NuGet package versions do not contain a corresponding
|
807
813
|
# component, package versions of those formats do not have a
|
808
814
|
# namespace.
|
815
|
+
#
|
816
|
+
# * The namespace of a generic package is it’s `namespace`.
|
809
817
|
# @return [String]
|
810
818
|
#
|
811
819
|
# @!attribute [rw] package
|
@@ -958,6 +966,8 @@ module Aws::CodeArtifact
|
|
958
966
|
# * Python and NuGet package versions do not contain a corresponding
|
959
967
|
# component, package versions of those formats do not have a
|
960
968
|
# namespace.
|
969
|
+
#
|
970
|
+
# * The namespace of a generic package is it’s `namespace`.
|
961
971
|
# @return [String]
|
962
972
|
#
|
963
973
|
# @!attribute [rw] package
|
@@ -1263,6 +1273,8 @@ module Aws::CodeArtifact
|
|
1263
1273
|
# * Python and NuGet package versions do not contain a corresponding
|
1264
1274
|
# component, package versions of those formats do not have a
|
1265
1275
|
# namespace.
|
1276
|
+
#
|
1277
|
+
# * The namespace of a generic package is it’s `namespace`.
|
1266
1278
|
# @return [String]
|
1267
1279
|
#
|
1268
1280
|
# @!attribute [rw] package
|
@@ -1344,11 +1356,6 @@ module Aws::CodeArtifact
|
|
1344
1356
|
# @!attribute [rw] format
|
1345
1357
|
# A format that specifies the type of the package version with the
|
1346
1358
|
# requested readme file.
|
1347
|
-
#
|
1348
|
-
# <note markdown="1"> Although `maven` is listed as a valid value, CodeArtifact does not
|
1349
|
-
# support displaying readme files for Maven packages.
|
1350
|
-
#
|
1351
|
-
# </note>
|
1352
1359
|
# @return [String]
|
1353
1360
|
#
|
1354
1361
|
# @!attribute [rw] namespace
|
@@ -1621,6 +1628,8 @@ module Aws::CodeArtifact
|
|
1621
1628
|
# * Python and NuGet package versions do not contain a corresponding
|
1622
1629
|
# component, package versions of those formats do not have a
|
1623
1630
|
# namespace.
|
1631
|
+
#
|
1632
|
+
# * The namespace of a generic package is it’s `namespace`.
|
1624
1633
|
# @return [String]
|
1625
1634
|
#
|
1626
1635
|
# @!attribute [rw] package
|
@@ -1748,6 +1757,8 @@ module Aws::CodeArtifact
|
|
1748
1757
|
# * Python and NuGet package versions do not contain a corresponding
|
1749
1758
|
# component, package versions of those formats do not have a
|
1750
1759
|
# namespace.
|
1760
|
+
#
|
1761
|
+
# * The namespace of a generic package is it’s `namespace`.
|
1751
1762
|
# @return [String]
|
1752
1763
|
#
|
1753
1764
|
# @!attribute [rw] package
|
@@ -1855,7 +1866,7 @@ module Aws::CodeArtifact
|
|
1855
1866
|
# @return [String]
|
1856
1867
|
#
|
1857
1868
|
# @!attribute [rw] format
|
1858
|
-
# The format of the
|
1869
|
+
# The format of the package versions you want to list.
|
1859
1870
|
# @return [String]
|
1860
1871
|
#
|
1861
1872
|
# @!attribute [rw] namespace
|
@@ -1869,6 +1880,8 @@ module Aws::CodeArtifact
|
|
1869
1880
|
#
|
1870
1881
|
# * Python and NuGet packages do not contain a corresponding
|
1871
1882
|
# component, packages of those formats do not have a namespace.
|
1883
|
+
#
|
1884
|
+
# * The namespace of a generic package is it’s `namespace`.
|
1872
1885
|
# @return [String]
|
1873
1886
|
#
|
1874
1887
|
# @!attribute [rw] package
|
@@ -1996,9 +2009,12 @@ module Aws::CodeArtifact
|
|
1996
2009
|
# @return [String]
|
1997
2010
|
#
|
1998
2011
|
# @!attribute [rw] namespace
|
1999
|
-
# The namespace used to filter requested packages. Only
|
2000
|
-
#
|
2001
|
-
#
|
2012
|
+
# The namespace prefix used to filter requested packages. Only
|
2013
|
+
# packages with a namespace that starts with the provided string value
|
2014
|
+
# are returned. Note that although this option is called `--namespace`
|
2015
|
+
# and not `--namespace-prefix`, it has prefix-matching behavior.
|
2016
|
+
#
|
2017
|
+
# Each package format uses namespace as follows:
|
2002
2018
|
#
|
2003
2019
|
# * The namespace of a Maven package is its `groupId`.
|
2004
2020
|
#
|
@@ -2006,6 +2022,8 @@ module Aws::CodeArtifact
|
|
2006
2022
|
#
|
2007
2023
|
# * Python and NuGet packages do not contain a corresponding
|
2008
2024
|
# component, packages of those formats do not have a namespace.
|
2025
|
+
#
|
2026
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2009
2027
|
# @return [String]
|
2010
2028
|
#
|
2011
2029
|
# @!attribute [rw] package_prefix
|
@@ -2238,8 +2256,22 @@ module Aws::CodeArtifact
|
|
2238
2256
|
#
|
2239
2257
|
# @!attribute [rw] dependency_type
|
2240
2258
|
# The type of a package dependency. The possible values depend on the
|
2241
|
-
# package type.
|
2242
|
-
#
|
2259
|
+
# package type.
|
2260
|
+
#
|
2261
|
+
# * npm: `regular`, `dev`, `peer`, `optional`
|
2262
|
+
#
|
2263
|
+
# * maven: `optional`, `parent`, `compile`, `runtime`, `test`,
|
2264
|
+
# `system`, `provided`.
|
2265
|
+
#
|
2266
|
+
# <note markdown="1"> Note that `parent` is not a regular Maven dependency type; instead
|
2267
|
+
# this is extracted from the `<parent>` element if one is defined in
|
2268
|
+
# the package version's POM file.
|
2269
|
+
#
|
2270
|
+
# </note>
|
2271
|
+
#
|
2272
|
+
# * nuget: The `dependencyType` field is never set for NuGet packages.
|
2273
|
+
#
|
2274
|
+
# * pypi: `Requires-Dist`
|
2243
2275
|
# @return [String]
|
2244
2276
|
#
|
2245
2277
|
# @!attribute [rw] version_requirement
|
@@ -2276,6 +2308,8 @@ module Aws::CodeArtifact
|
|
2276
2308
|
#
|
2277
2309
|
# * Python and NuGet packages do not contain a corresponding
|
2278
2310
|
# component, packages of those formats do not have a namespace.
|
2311
|
+
#
|
2312
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2279
2313
|
# @return [String]
|
2280
2314
|
#
|
2281
2315
|
# @!attribute [rw] name
|
@@ -2353,6 +2387,8 @@ module Aws::CodeArtifact
|
|
2353
2387
|
#
|
2354
2388
|
# * Python and NuGet packages do not contain a corresponding
|
2355
2389
|
# component, packages of those formats do not have a namespace.
|
2390
|
+
#
|
2391
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2356
2392
|
# @return [String]
|
2357
2393
|
#
|
2358
2394
|
# @!attribute [rw] package
|
@@ -2398,6 +2434,8 @@ module Aws::CodeArtifact
|
|
2398
2434
|
# * Python and NuGet package versions do not contain a corresponding
|
2399
2435
|
# component, package versions of those formats do not have a
|
2400
2436
|
# namespace.
|
2437
|
+
#
|
2438
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2401
2439
|
# @return [String]
|
2402
2440
|
#
|
2403
2441
|
# @!attribute [rw] package_name
|
@@ -2577,6 +2615,139 @@ module Aws::CodeArtifact
|
|
2577
2615
|
include Aws::Structure
|
2578
2616
|
end
|
2579
2617
|
|
2618
|
+
# @!attribute [rw] domain
|
2619
|
+
# The name of the domain that contains the repository that contains
|
2620
|
+
# the package version to publish.
|
2621
|
+
# @return [String]
|
2622
|
+
#
|
2623
|
+
# @!attribute [rw] domain_owner
|
2624
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
2625
|
+
# It does not include dashes or spaces.
|
2626
|
+
# @return [String]
|
2627
|
+
#
|
2628
|
+
# @!attribute [rw] repository
|
2629
|
+
# The name of the repository that the package version will be
|
2630
|
+
# published to.
|
2631
|
+
# @return [String]
|
2632
|
+
#
|
2633
|
+
# @!attribute [rw] format
|
2634
|
+
# A format that specifies the type of the package version with the
|
2635
|
+
# requested asset file.
|
2636
|
+
# @return [String]
|
2637
|
+
#
|
2638
|
+
# @!attribute [rw] namespace
|
2639
|
+
# The namespace of the package version to publish.
|
2640
|
+
# @return [String]
|
2641
|
+
#
|
2642
|
+
# @!attribute [rw] package
|
2643
|
+
# The name of the package version to publish.
|
2644
|
+
# @return [String]
|
2645
|
+
#
|
2646
|
+
# @!attribute [rw] package_version
|
2647
|
+
# The package version to publish (for example, `3.5.2`).
|
2648
|
+
# @return [String]
|
2649
|
+
#
|
2650
|
+
# @!attribute [rw] asset_content
|
2651
|
+
# The content of the asset to publish.
|
2652
|
+
# @return [IO]
|
2653
|
+
#
|
2654
|
+
# @!attribute [rw] asset_name
|
2655
|
+
# The name of the asset to publish. Asset names can include Unicode
|
2656
|
+
# letters and numbers, and the following special characters: `` ~ ! @
|
2657
|
+
# ^ & ( ) - ` _ + [ ] \{ \} ; , . ` ``
|
2658
|
+
# @return [String]
|
2659
|
+
#
|
2660
|
+
# @!attribute [rw] asset_sha256
|
2661
|
+
# The SHA256 hash of the `assetContent` to publish. This value must be
|
2662
|
+
# calculated by the caller and provided with the request.
|
2663
|
+
#
|
2664
|
+
# This value is used as an integrity check to verify that the
|
2665
|
+
# `assetContent` has not changed after it was originally sent.
|
2666
|
+
# @return [String]
|
2667
|
+
#
|
2668
|
+
# @!attribute [rw] unfinished
|
2669
|
+
# Specifies whether the package version should remain in the
|
2670
|
+
# `unfinished` state. If omitted, the package version status will be
|
2671
|
+
# set to `Published` (see [Package version status][1] in the
|
2672
|
+
# *CodeArtifact User Guide*).
|
2673
|
+
#
|
2674
|
+
# Valid values: `unfinished`
|
2675
|
+
#
|
2676
|
+
#
|
2677
|
+
#
|
2678
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
|
2679
|
+
# @return [Boolean]
|
2680
|
+
#
|
2681
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PublishPackageVersionRequest AWS API Documentation
|
2682
|
+
#
|
2683
|
+
class PublishPackageVersionRequest < Struct.new(
|
2684
|
+
:domain,
|
2685
|
+
:domain_owner,
|
2686
|
+
:repository,
|
2687
|
+
:format,
|
2688
|
+
:namespace,
|
2689
|
+
:package,
|
2690
|
+
:package_version,
|
2691
|
+
:asset_content,
|
2692
|
+
:asset_name,
|
2693
|
+
:asset_sha256,
|
2694
|
+
:unfinished)
|
2695
|
+
SENSITIVE = []
|
2696
|
+
include Aws::Structure
|
2697
|
+
end
|
2698
|
+
|
2699
|
+
# @!attribute [rw] format
|
2700
|
+
# The format of the package version.
|
2701
|
+
# @return [String]
|
2702
|
+
#
|
2703
|
+
# @!attribute [rw] namespace
|
2704
|
+
# The namespace of the package version.
|
2705
|
+
# @return [String]
|
2706
|
+
#
|
2707
|
+
# @!attribute [rw] package
|
2708
|
+
# The name of the package.
|
2709
|
+
# @return [String]
|
2710
|
+
#
|
2711
|
+
# @!attribute [rw] version
|
2712
|
+
# The version of the package.
|
2713
|
+
# @return [String]
|
2714
|
+
#
|
2715
|
+
# @!attribute [rw] version_revision
|
2716
|
+
# The revision of the package version.
|
2717
|
+
# @return [String]
|
2718
|
+
#
|
2719
|
+
# @!attribute [rw] status
|
2720
|
+
# A string that contains the status of the package version. For more
|
2721
|
+
# information, see [Package version status][1] in the *CodeArtifact
|
2722
|
+
# User Guide*.
|
2723
|
+
#
|
2724
|
+
#
|
2725
|
+
#
|
2726
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
|
2727
|
+
# @return [String]
|
2728
|
+
#
|
2729
|
+
# @!attribute [rw] asset
|
2730
|
+
# An [AssetSummary][1] for the published asset.
|
2731
|
+
#
|
2732
|
+
#
|
2733
|
+
#
|
2734
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html
|
2735
|
+
# @return [Types::AssetSummary]
|
2736
|
+
#
|
2737
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PublishPackageVersionResult AWS API Documentation
|
2738
|
+
#
|
2739
|
+
class PublishPackageVersionResult < Struct.new(
|
2740
|
+
:format,
|
2741
|
+
:namespace,
|
2742
|
+
:package,
|
2743
|
+
:version,
|
2744
|
+
:version_revision,
|
2745
|
+
:status,
|
2746
|
+
:asset)
|
2747
|
+
SENSITIVE = []
|
2748
|
+
include Aws::Structure
|
2749
|
+
end
|
2750
|
+
|
2580
2751
|
# @!attribute [rw] domain
|
2581
2752
|
# The name of the domain on which to set the resource policy.
|
2582
2753
|
# @return [String]
|
@@ -2648,6 +2819,8 @@ module Aws::CodeArtifact
|
|
2648
2819
|
#
|
2649
2820
|
# * Python and NuGet packages do not contain a corresponding
|
2650
2821
|
# component, packages of those formats do not have a namespace.
|
2822
|
+
#
|
2823
|
+
# * The namespace of a generic package is it’s `namespace`.
|
2651
2824
|
# @return [String]
|
2652
2825
|
#
|
2653
2826
|
# @!attribute [rw] package
|
@@ -3108,6 +3281,8 @@ module Aws::CodeArtifact
|
|
3108
3281
|
# * Python and NuGet package versions do not contain a corresponding
|
3109
3282
|
# component, package versions of those formats do not have a
|
3110
3283
|
# namespace.
|
3284
|
+
#
|
3285
|
+
# * The namespace of a generic package is it’s `namespace`.
|
3111
3286
|
# @return [String]
|
3112
3287
|
#
|
3113
3288
|
# @!attribute [rw] package
|
data/lib/aws-sdk-codeartifact.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-codeartifact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|