aws-sdk-codeartifact 1.24.0 → 1.25.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codeartifact/client.rb +76 -9
- data/lib/aws-sdk-codeartifact/client_api.rb +27 -0
- 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 +64 -28
- 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,11 @@
|
|
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
|
+
|
4
9
|
1.24.0 (2023-01-19)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.25.0
|
@@ -804,12 +804,80 @@ module Aws::CodeArtifact
|
|
804
804
|
req.send_request(options)
|
805
805
|
end
|
806
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
|
+
|
807
875
|
# Deletes one or more versions of a package. A deleted package version
|
808
876
|
# cannot be restored in your repository. If you want to remove a package
|
809
877
|
# version from your repository and be able to restore it later, set its
|
810
878
|
# status to `Archived`. Archived packages cannot be downloaded from a
|
811
879
|
# repository and don't show up with list package APIs (for example,
|
812
|
-
# [
|
880
|
+
# [ListackageVersions][1]), but you can restore them using
|
813
881
|
# [UpdatePackageVersionsStatus][2].
|
814
882
|
#
|
815
883
|
#
|
@@ -2022,7 +2090,9 @@ module Aws::CodeArtifact
|
|
2022
2090
|
end
|
2023
2091
|
|
2024
2092
|
# Returns a list of [PackageVersionSummary][1] objects for package
|
2025
|
-
# 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.
|
2026
2096
|
#
|
2027
2097
|
#
|
2028
2098
|
#
|
@@ -2151,12 +2221,9 @@ module Aws::CodeArtifact
|
|
2151
2221
|
# provided format will be returned.
|
2152
2222
|
#
|
2153
2223
|
# @option params [String] :namespace
|
2154
|
-
# The namespace
|
2155
|
-
#
|
2156
|
-
#
|
2157
|
-
# not `--namespace-prefix`, it has prefix-matching behavior.
|
2158
|
-
#
|
2159
|
-
# Each package format uses namespace as follows:
|
2224
|
+
# The namespace used to filter requested packages. Only packages with
|
2225
|
+
# the provided namespace will be returned. The package component that
|
2226
|
+
# specifies its namespace depends on its type. For example:
|
2160
2227
|
#
|
2161
2228
|
# * The namespace of a Maven package is its `groupId`.
|
2162
2229
|
#
|
@@ -2843,7 +2910,7 @@ module Aws::CodeArtifact
|
|
2843
2910
|
params: params,
|
2844
2911
|
config: config)
|
2845
2912
|
context[:gem_name] = 'aws-sdk-codeartifact'
|
2846
|
-
context[:gem_version] = '1.
|
2913
|
+
context[:gem_version] = '1.25.0'
|
2847
2914
|
Seahorse::Client::Request.new(handlers, context)
|
2848
2915
|
end
|
2849
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"
|
@@ -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
|
@@ -447,6 +447,65 @@ module Aws::CodeArtifact
|
|
447
447
|
include Aws::Structure
|
448
448
|
end
|
449
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
|
+
|
450
509
|
# @!attribute [rw] domain
|
451
510
|
# The name of the domain that contains the package to delete.
|
452
511
|
# @return [String]
|
@@ -1937,12 +1996,9 @@ module Aws::CodeArtifact
|
|
1937
1996
|
# @return [String]
|
1938
1997
|
#
|
1939
1998
|
# @!attribute [rw] namespace
|
1940
|
-
# The namespace
|
1941
|
-
#
|
1942
|
-
#
|
1943
|
-
# and not `--namespace-prefix`, it has prefix-matching behavior.
|
1944
|
-
#
|
1945
|
-
# Each package format uses namespace as follows:
|
1999
|
+
# The namespace used to filter requested packages. Only packages with
|
2000
|
+
# the provided namespace will be returned. The package component that
|
2001
|
+
# specifies its namespace depends on its type. For example:
|
1946
2002
|
#
|
1947
2003
|
# * The namespace of a Maven package is its `groupId`.
|
1948
2004
|
#
|
@@ -2182,22 +2238,8 @@ module Aws::CodeArtifact
|
|
2182
2238
|
#
|
2183
2239
|
# @!attribute [rw] dependency_type
|
2184
2240
|
# The type of a package dependency. The possible values depend on the
|
2185
|
-
# package type.
|
2186
|
-
#
|
2187
|
-
# * npm: `regular`, `dev`, `peer`, `optional`
|
2188
|
-
#
|
2189
|
-
# * maven: `optional`, `parent`, `compile`, `runtime`, `test`,
|
2190
|
-
# `system`, `provided`.
|
2191
|
-
#
|
2192
|
-
# <note markdown="1"> Note that `parent` is not a regular Maven dependency type; instead
|
2193
|
-
# this is extracted from the `<parent>` element if one is defined in
|
2194
|
-
# the package version's POM file.
|
2195
|
-
#
|
2196
|
-
# </note>
|
2197
|
-
#
|
2198
|
-
# * nuget: The `dependencyType` field is never set for NuGet packages.
|
2199
|
-
#
|
2200
|
-
# * pypi: `Requires-Dist`
|
2241
|
+
# package type. Example types are `compile`, `runtime`, and `test` for
|
2242
|
+
# Maven packages, and `dev`, `prod`, and `optional` for npm packages.
|
2201
2243
|
# @return [String]
|
2202
2244
|
#
|
2203
2245
|
# @!attribute [rw] version_requirement
|
@@ -2296,12 +2338,6 @@ module Aws::CodeArtifact
|
|
2296
2338
|
end
|
2297
2339
|
|
2298
2340
|
# Details about a package, including its format, namespace, and name.
|
2299
|
-
# The [ListPackages][1] operation returns a list of `PackageSummary`
|
2300
|
-
# objects.
|
2301
|
-
#
|
2302
|
-
#
|
2303
|
-
#
|
2304
|
-
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackages.html
|
2305
2341
|
#
|
2306
2342
|
# @!attribute [rw] format
|
2307
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
|