aws-sdk-codeartifact 1.23.0 → 1.25.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codeartifact/client.rb +80 -6
- data/lib/aws-sdk-codeartifact/client_api.rb +27 -0
- data/lib/aws-sdk-codeartifact/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-codeartifact/endpoint_provider.rb +1 -1
- 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 +66 -6
- 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: 04e4dc94c04a4a043e984f85a62de2b2d67c2e6e0ddfb39f9aaa49fa69e47534
|
4
|
+
data.tar.gz: a66c4173b0bc5995761ddffddb50d955b3aff65a827f7d33b5b2d9eaee411e5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96b11f28bef8a42bc5b7309afee06267a214cb527e0ca7885c5190113175c5edc088e443112e85cc15c290882d737b50a197c1e827896bf0a7ece24a8bb62373
|
7
|
+
data.tar.gz: 2da71734ebb24b998e59e9fe47f61308417468f8a55cf2cb6c29015eefe60a115db2567360fbc62cbb53d37b91645db9a50a2cb695f66783978887466deb9599
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.25.0 (2023-01-31)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release introduces a new DeletePackage API, which enables deletion of a package and all of its versions from a repository.
|
8
|
+
|
9
|
+
1.24.0 (2023-01-19)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Documentation updates for CodeArtifact
|
13
|
+
|
4
14
|
1.23.0 (2023-01-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.25.0
|
@@ -392,6 +392,8 @@ module Aws::CodeArtifact
|
|
392
392
|
#
|
393
393
|
# * `public:npmjs` - for the npm public repository.
|
394
394
|
#
|
395
|
+
# * `public:nuget-org` - for the NuGet Gallery.
|
396
|
+
#
|
395
397
|
# * `public:pypi` - for the Python Package Index.
|
396
398
|
#
|
397
399
|
# * `public:maven-central` - for Maven Central.
|
@@ -802,6 +804,74 @@ module Aws::CodeArtifact
|
|
802
804
|
req.send_request(options)
|
803
805
|
end
|
804
806
|
|
807
|
+
# Deletes a package and all associated package versions. A deleted
|
808
|
+
# package cannot be restored. To delete one or more package versions,
|
809
|
+
# use the [DeletePackageVersions][1] API.
|
810
|
+
#
|
811
|
+
#
|
812
|
+
#
|
813
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DeletePackageVersions.html
|
814
|
+
#
|
815
|
+
# @option params [required, String] :domain
|
816
|
+
# The name of the domain that contains the package to delete.
|
817
|
+
#
|
818
|
+
# @option params [String] :domain_owner
|
819
|
+
# The 12-digit account number of the Amazon Web Services account that
|
820
|
+
# owns the domain. It does not include dashes or spaces.
|
821
|
+
#
|
822
|
+
# @option params [required, String] :repository
|
823
|
+
# The name of the repository that contains the package to delete.
|
824
|
+
#
|
825
|
+
# @option params [required, String] :format
|
826
|
+
# The format of the requested package to delete.
|
827
|
+
#
|
828
|
+
# @option params [String] :namespace
|
829
|
+
# The namespace of the package to delete. The package component that
|
830
|
+
# specifies its namespace depends on its type. For example:
|
831
|
+
#
|
832
|
+
# * The namespace of a Maven package is its `groupId`. The namespace is
|
833
|
+
# required when deleting Maven package versions.
|
834
|
+
#
|
835
|
+
# * The namespace of an npm package is its `scope`.
|
836
|
+
#
|
837
|
+
# * Python and NuGet packages do not contain corresponding components,
|
838
|
+
# packages of those formats do not have a namespace.
|
839
|
+
#
|
840
|
+
# @option params [required, String] :package
|
841
|
+
# The name of the package to delete.
|
842
|
+
#
|
843
|
+
# @return [Types::DeletePackageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
844
|
+
#
|
845
|
+
# * {Types::DeletePackageResult#deleted_package #deleted_package} => Types::PackageSummary
|
846
|
+
#
|
847
|
+
# @example Request syntax with placeholder values
|
848
|
+
#
|
849
|
+
# resp = client.delete_package({
|
850
|
+
# domain: "DomainName", # required
|
851
|
+
# domain_owner: "AccountId",
|
852
|
+
# repository: "RepositoryName", # required
|
853
|
+
# format: "npm", # required, accepts npm, pypi, maven, nuget
|
854
|
+
# namespace: "PackageNamespace",
|
855
|
+
# package: "PackageName", # required
|
856
|
+
# })
|
857
|
+
#
|
858
|
+
# @example Response structure
|
859
|
+
#
|
860
|
+
# resp.deleted_package.format #=> String, one of "npm", "pypi", "maven", "nuget"
|
861
|
+
# resp.deleted_package.namespace #=> String
|
862
|
+
# resp.deleted_package.package #=> String
|
863
|
+
# resp.deleted_package.origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
|
864
|
+
# resp.deleted_package.origin_configuration.restrictions.upstream #=> String, one of "ALLOW", "BLOCK"
|
865
|
+
#
|
866
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackage AWS API Documentation
|
867
|
+
#
|
868
|
+
# @overload delete_package(params = {})
|
869
|
+
# @param [Hash] params ({})
|
870
|
+
def delete_package(params = {}, options = {})
|
871
|
+
req = build_request(:delete_package, params)
|
872
|
+
req.send_request(options)
|
873
|
+
end
|
874
|
+
|
805
875
|
# Deletes one or more versions of a package. A deleted package version
|
806
876
|
# cannot be restored in your repository. If you want to remove a package
|
807
877
|
# version from your repository and be able to restore it later, set its
|
@@ -1594,10 +1664,7 @@ module Aws::CodeArtifact
|
|
1594
1664
|
req.send_request(options, &block)
|
1595
1665
|
end
|
1596
1666
|
|
1597
|
-
# Gets the readme file or descriptive text for a package version.
|
1598
|
-
# packages that do not contain a readme file, CodeArtifact extracts a
|
1599
|
-
# description from a metadata file. For example, from the
|
1600
|
-
# `<description>` element in the `pom.xml` file of a Maven package.
|
1667
|
+
# Gets the readme file or descriptive text for a package version.
|
1601
1668
|
#
|
1602
1669
|
# The returned text might contain formatting. For example, it might
|
1603
1670
|
# contain formatting for Markdown or reStructuredText.
|
@@ -1618,6 +1685,11 @@ module Aws::CodeArtifact
|
|
1618
1685
|
# A format that specifies the type of the package version with the
|
1619
1686
|
# requested readme file.
|
1620
1687
|
#
|
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
|
+
#
|
1621
1693
|
# @option params [String] :namespace
|
1622
1694
|
# The namespace of the package version with the requested readme file.
|
1623
1695
|
# The package version component that specifies its namespace depends on
|
@@ -2018,7 +2090,9 @@ module Aws::CodeArtifact
|
|
2018
2090
|
end
|
2019
2091
|
|
2020
2092
|
# Returns a list of [PackageVersionSummary][1] objects for package
|
2021
|
-
# versions in a repository that match the request parameters.
|
2093
|
+
# versions in a repository that match the request parameters. Package
|
2094
|
+
# versions of all statuses will be returned by default when calling
|
2095
|
+
# `list-package-versions` with no `--status` parameter.
|
2022
2096
|
#
|
2023
2097
|
#
|
2024
2098
|
#
|
@@ -2836,7 +2910,7 @@ module Aws::CodeArtifact
|
|
2836
2910
|
params: params,
|
2837
2911
|
config: config)
|
2838
2912
|
context[:gem_name] = 'aws-sdk-codeartifact'
|
2839
|
-
context[:gem_version] = '1.
|
2913
|
+
context[:gem_version] = '1.25.0'
|
2840
2914
|
Seahorse::Client::Request.new(handlers, context)
|
2841
2915
|
end
|
2842
2916
|
|
@@ -38,6 +38,8 @@ module Aws::CodeArtifact
|
|
38
38
|
DeleteDomainPermissionsPolicyResult = Shapes::StructureShape.new(name: 'DeleteDomainPermissionsPolicyResult')
|
39
39
|
DeleteDomainRequest = Shapes::StructureShape.new(name: 'DeleteDomainRequest')
|
40
40
|
DeleteDomainResult = Shapes::StructureShape.new(name: 'DeleteDomainResult')
|
41
|
+
DeletePackageRequest = Shapes::StructureShape.new(name: 'DeletePackageRequest')
|
42
|
+
DeletePackageResult = Shapes::StructureShape.new(name: 'DeletePackageResult')
|
41
43
|
DeletePackageVersionsRequest = Shapes::StructureShape.new(name: 'DeletePackageVersionsRequest')
|
42
44
|
DeletePackageVersionsResult = Shapes::StructureShape.new(name: 'DeletePackageVersionsResult')
|
43
45
|
DeleteRepositoryPermissionsPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRepositoryPermissionsPolicyRequest')
|
@@ -256,6 +258,17 @@ module Aws::CodeArtifact
|
|
256
258
|
DeleteDomainResult.add_member(:domain, Shapes::ShapeRef.new(shape: DomainDescription, location_name: "domain"))
|
257
259
|
DeleteDomainResult.struct_class = Types::DeleteDomainResult
|
258
260
|
|
261
|
+
DeletePackageRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
262
|
+
DeletePackageRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
263
|
+
DeletePackageRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
264
|
+
DeletePackageRequest.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, required: true, location: "querystring", location_name: "format"))
|
265
|
+
DeletePackageRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location: "querystring", location_name: "namespace"))
|
266
|
+
DeletePackageRequest.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, required: true, location: "querystring", location_name: "package"))
|
267
|
+
DeletePackageRequest.struct_class = Types::DeletePackageRequest
|
268
|
+
|
269
|
+
DeletePackageResult.add_member(:deleted_package, Shapes::ShapeRef.new(shape: PackageSummary, location_name: "deletedPackage"))
|
270
|
+
DeletePackageResult.struct_class = Types::DeletePackageResult
|
271
|
+
|
259
272
|
DeletePackageVersionsRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
|
260
273
|
DeletePackageVersionsRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
|
261
274
|
DeletePackageVersionsRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
|
@@ -880,6 +893,20 @@ module Aws::CodeArtifact
|
|
880
893
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
881
894
|
end)
|
882
895
|
|
896
|
+
api.add_operation(:delete_package, Seahorse::Model::Operation.new.tap do |o|
|
897
|
+
o.name = "DeletePackage"
|
898
|
+
o.http_method = "DELETE"
|
899
|
+
o.http_request_uri = "/v1/package"
|
900
|
+
o.input = Shapes::ShapeRef.new(shape: DeletePackageRequest)
|
901
|
+
o.output = Shapes::ShapeRef.new(shape: DeletePackageResult)
|
902
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
903
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
904
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
905
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
906
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
907
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
908
|
+
end)
|
909
|
+
|
883
910
|
api.add_operation(:delete_package_versions, Seahorse::Model::Operation.new.tap do |o|
|
884
911
|
o.name = "DeletePackageVersions"
|
885
912
|
o.http_method = "POST"
|
@@ -50,6 +50,9 @@ 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
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -15,7 +15,7 @@ module Aws::CodeArtifact
|
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
17
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
19
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
20
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
21
|
end
|
@@ -95,6 +95,20 @@ module Aws::CodeArtifact
|
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
98
|
+
class DeletePackage
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::CodeArtifact::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
98
112
|
class DeletePackageVersions
|
99
113
|
def self.build(context)
|
100
114
|
unless context.config.regional_endpoint
|
@@ -68,6 +68,8 @@ module Aws::CodeArtifact
|
|
68
68
|
Aws::CodeArtifact::Endpoints::DeleteDomain.build(context)
|
69
69
|
when :delete_domain_permissions_policy
|
70
70
|
Aws::CodeArtifact::Endpoints::DeleteDomainPermissionsPolicy.build(context)
|
71
|
+
when :delete_package
|
72
|
+
Aws::CodeArtifact::Endpoints::DeletePackage.build(context)
|
71
73
|
when :delete_package_versions
|
72
74
|
Aws::CodeArtifact::Endpoints::DeletePackageVersions.build(context)
|
73
75
|
when :delete_repository
|
@@ -68,6 +68,8 @@ module Aws::CodeArtifact
|
|
68
68
|
#
|
69
69
|
# * `public:npmjs` - for the npm public repository.
|
70
70
|
#
|
71
|
+
# * `public:nuget-org` - for the NuGet Gallery.
|
72
|
+
#
|
71
73
|
# * `public:pypi` - for the Python Package Index.
|
72
74
|
#
|
73
75
|
# * `public:maven-central` - for Maven Central.
|
@@ -445,6 +447,65 @@ module Aws::CodeArtifact
|
|
445
447
|
include Aws::Structure
|
446
448
|
end
|
447
449
|
|
450
|
+
# @!attribute [rw] domain
|
451
|
+
# The name of the domain that contains the package to delete.
|
452
|
+
# @return [String]
|
453
|
+
#
|
454
|
+
# @!attribute [rw] domain_owner
|
455
|
+
# The 12-digit account number of the Amazon Web Services account that
|
456
|
+
# owns the domain. It does not include dashes or spaces.
|
457
|
+
# @return [String]
|
458
|
+
#
|
459
|
+
# @!attribute [rw] repository
|
460
|
+
# The name of the repository that contains the package to delete.
|
461
|
+
# @return [String]
|
462
|
+
#
|
463
|
+
# @!attribute [rw] format
|
464
|
+
# The format of the requested package to delete.
|
465
|
+
# @return [String]
|
466
|
+
#
|
467
|
+
# @!attribute [rw] namespace
|
468
|
+
# The namespace of the package to delete. The package component that
|
469
|
+
# specifies its namespace depends on its type. For example:
|
470
|
+
#
|
471
|
+
# * The namespace of a Maven package is its `groupId`. The namespace
|
472
|
+
# is required when deleting Maven package versions.
|
473
|
+
#
|
474
|
+
# * The namespace of an npm package is its `scope`.
|
475
|
+
#
|
476
|
+
# * Python and NuGet packages do not contain corresponding components,
|
477
|
+
# packages of those formats do not have a namespace.
|
478
|
+
# @return [String]
|
479
|
+
#
|
480
|
+
# @!attribute [rw] package
|
481
|
+
# The name of the package to delete.
|
482
|
+
# @return [String]
|
483
|
+
#
|
484
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackageRequest AWS API Documentation
|
485
|
+
#
|
486
|
+
class DeletePackageRequest < Struct.new(
|
487
|
+
:domain,
|
488
|
+
:domain_owner,
|
489
|
+
:repository,
|
490
|
+
:format,
|
491
|
+
:namespace,
|
492
|
+
:package)
|
493
|
+
SENSITIVE = []
|
494
|
+
include Aws::Structure
|
495
|
+
end
|
496
|
+
|
497
|
+
# @!attribute [rw] deleted_package
|
498
|
+
# Details about a package, including its format, namespace, and name.
|
499
|
+
# @return [Types::PackageSummary]
|
500
|
+
#
|
501
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackageResult AWS API Documentation
|
502
|
+
#
|
503
|
+
class DeletePackageResult < Struct.new(
|
504
|
+
:deleted_package)
|
505
|
+
SENSITIVE = []
|
506
|
+
include Aws::Structure
|
507
|
+
end
|
508
|
+
|
448
509
|
# @!attribute [rw] domain
|
449
510
|
# The name of the domain that contains the package to delete.
|
450
511
|
# @return [String]
|
@@ -1283,6 +1344,11 @@ module Aws::CodeArtifact
|
|
1283
1344
|
# @!attribute [rw] format
|
1284
1345
|
# A format that specifies the type of the package version with the
|
1285
1346
|
# 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>
|
1286
1352
|
# @return [String]
|
1287
1353
|
#
|
1288
1354
|
# @!attribute [rw] namespace
|
@@ -2272,12 +2338,6 @@ module Aws::CodeArtifact
|
|
2272
2338
|
end
|
2273
2339
|
|
2274
2340
|
# Details about a package, including its format, namespace, and name.
|
2275
|
-
# The [ListPackages][1] operation returns a list of `PackageSummary`
|
2276
|
-
# objects.
|
2277
|
-
#
|
2278
|
-
#
|
2279
|
-
#
|
2280
|
-
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackages.html
|
2281
2341
|
#
|
2282
2342
|
# @!attribute [rw] format
|
2283
2343
|
# The format of the 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.25.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-01-
|
11
|
+
date: 2023-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|