aws-sdk-codeartifact 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-codeartifact.rb +50 -0
- data/lib/aws-sdk-codeartifact/client.rb +2532 -0
- data/lib/aws-sdk-codeartifact/client_api.rb +1155 -0
- data/lib/aws-sdk-codeartifact/customizations.rb +0 -0
- data/lib/aws-sdk-codeartifact/errors.rb +188 -0
- data/lib/aws-sdk-codeartifact/resource.rb +24 -0
- data/lib/aws-sdk-codeartifact/types.rb +3193 -0
- metadata +88 -0
File without changes
|
@@ -0,0 +1,188 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CodeArtifact
|
9
|
+
|
10
|
+
# When CodeArtifact returns an error response, the Ruby SDK constructs and raises an error.
|
11
|
+
# These errors all extend Aws::CodeArtifact::Errors::ServiceError < {Aws::Errors::ServiceError}
|
12
|
+
#
|
13
|
+
# You can rescue all CodeArtifact errors using ServiceError:
|
14
|
+
#
|
15
|
+
# begin
|
16
|
+
# # do stuff
|
17
|
+
# rescue Aws::CodeArtifact::Errors::ServiceError
|
18
|
+
# # rescues all CodeArtifact API errors
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
#
|
22
|
+
# ## Request Context
|
23
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
24
|
+
# information about the request that generated the error.
|
25
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
26
|
+
#
|
27
|
+
# ## Error Classes
|
28
|
+
# * {AccessDeniedException}
|
29
|
+
# * {ConflictException}
|
30
|
+
# * {InternalServerException}
|
31
|
+
# * {ResourceNotFoundException}
|
32
|
+
# * {ServiceQuotaExceededException}
|
33
|
+
# * {ThrottlingException}
|
34
|
+
# * {ValidationException}
|
35
|
+
#
|
36
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
37
|
+
# if they are not defined above.
|
38
|
+
module Errors
|
39
|
+
|
40
|
+
extend Aws::Errors::DynamicErrors
|
41
|
+
|
42
|
+
class AccessDeniedException < ServiceError
|
43
|
+
|
44
|
+
# @param [Seahorse::Client::RequestContext] context
|
45
|
+
# @param [String] message
|
46
|
+
# @param [Aws::CodeArtifact::Types::AccessDeniedException] data
|
47
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
48
|
+
super(context, message, data)
|
49
|
+
end
|
50
|
+
|
51
|
+
# @return [String]
|
52
|
+
def message
|
53
|
+
@message || @data[:message]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class ConflictException < ServiceError
|
58
|
+
|
59
|
+
# @param [Seahorse::Client::RequestContext] context
|
60
|
+
# @param [String] message
|
61
|
+
# @param [Aws::CodeArtifact::Types::ConflictException] data
|
62
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
63
|
+
super(context, message, data)
|
64
|
+
end
|
65
|
+
|
66
|
+
# @return [String]
|
67
|
+
def message
|
68
|
+
@message || @data[:message]
|
69
|
+
end
|
70
|
+
|
71
|
+
# @return [String]
|
72
|
+
def resource_id
|
73
|
+
@data[:resource_id]
|
74
|
+
end
|
75
|
+
|
76
|
+
# @return [String]
|
77
|
+
def resource_type
|
78
|
+
@data[:resource_type]
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
class InternalServerException < ServiceError
|
83
|
+
|
84
|
+
# @param [Seahorse::Client::RequestContext] context
|
85
|
+
# @param [String] message
|
86
|
+
# @param [Aws::CodeArtifact::Types::InternalServerException] data
|
87
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
88
|
+
super(context, message, data)
|
89
|
+
end
|
90
|
+
|
91
|
+
# @return [String]
|
92
|
+
def message
|
93
|
+
@message || @data[:message]
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
class ResourceNotFoundException < ServiceError
|
98
|
+
|
99
|
+
# @param [Seahorse::Client::RequestContext] context
|
100
|
+
# @param [String] message
|
101
|
+
# @param [Aws::CodeArtifact::Types::ResourceNotFoundException] data
|
102
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
103
|
+
super(context, message, data)
|
104
|
+
end
|
105
|
+
|
106
|
+
# @return [String]
|
107
|
+
def message
|
108
|
+
@message || @data[:message]
|
109
|
+
end
|
110
|
+
|
111
|
+
# @return [String]
|
112
|
+
def resource_id
|
113
|
+
@data[:resource_id]
|
114
|
+
end
|
115
|
+
|
116
|
+
# @return [String]
|
117
|
+
def resource_type
|
118
|
+
@data[:resource_type]
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
class ServiceQuotaExceededException < ServiceError
|
123
|
+
|
124
|
+
# @param [Seahorse::Client::RequestContext] context
|
125
|
+
# @param [String] message
|
126
|
+
# @param [Aws::CodeArtifact::Types::ServiceQuotaExceededException] data
|
127
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
128
|
+
super(context, message, data)
|
129
|
+
end
|
130
|
+
|
131
|
+
# @return [String]
|
132
|
+
def message
|
133
|
+
@message || @data[:message]
|
134
|
+
end
|
135
|
+
|
136
|
+
# @return [String]
|
137
|
+
def resource_id
|
138
|
+
@data[:resource_id]
|
139
|
+
end
|
140
|
+
|
141
|
+
# @return [String]
|
142
|
+
def resource_type
|
143
|
+
@data[:resource_type]
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
class ThrottlingException < ServiceError
|
148
|
+
|
149
|
+
# @param [Seahorse::Client::RequestContext] context
|
150
|
+
# @param [String] message
|
151
|
+
# @param [Aws::CodeArtifact::Types::ThrottlingException] data
|
152
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
153
|
+
super(context, message, data)
|
154
|
+
end
|
155
|
+
|
156
|
+
# @return [String]
|
157
|
+
def message
|
158
|
+
@message || @data[:message]
|
159
|
+
end
|
160
|
+
|
161
|
+
# @return [String]
|
162
|
+
def retry_after_seconds
|
163
|
+
@data[:retry_after_seconds]
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
class ValidationException < ServiceError
|
168
|
+
|
169
|
+
# @param [Seahorse::Client::RequestContext] context
|
170
|
+
# @param [String] message
|
171
|
+
# @param [Aws::CodeArtifact::Types::ValidationException] data
|
172
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
173
|
+
super(context, message, data)
|
174
|
+
end
|
175
|
+
|
176
|
+
# @return [String]
|
177
|
+
def message
|
178
|
+
@message || @data[:message]
|
179
|
+
end
|
180
|
+
|
181
|
+
# @return [String]
|
182
|
+
def reason
|
183
|
+
@data[:reason]
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
end
|
188
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CodeArtifact
|
9
|
+
|
10
|
+
class Resource
|
11
|
+
|
12
|
+
# @param options ({})
|
13
|
+
# @option options [Client] :client
|
14
|
+
def initialize(options = {})
|
15
|
+
@client = options[:client] || Client.new(options)
|
16
|
+
end
|
17
|
+
|
18
|
+
# @return [Client]
|
19
|
+
def client
|
20
|
+
@client
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,3193 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws::CodeArtifact
|
9
|
+
module Types
|
10
|
+
|
11
|
+
# The operation did not succeed because of an unauthorized access
|
12
|
+
# attempt.
|
13
|
+
#
|
14
|
+
# @!attribute [rw] message
|
15
|
+
# @return [String]
|
16
|
+
#
|
17
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AccessDeniedException AWS API Documentation
|
18
|
+
#
|
19
|
+
class AccessDeniedException < Struct.new(
|
20
|
+
:message)
|
21
|
+
include Aws::Structure
|
22
|
+
end
|
23
|
+
|
24
|
+
# Contains details about a package version asset.
|
25
|
+
#
|
26
|
+
# @!attribute [rw] name
|
27
|
+
# The name of the asset.
|
28
|
+
# @return [String]
|
29
|
+
#
|
30
|
+
# @!attribute [rw] size
|
31
|
+
# The size of the asset.
|
32
|
+
# @return [Integer]
|
33
|
+
#
|
34
|
+
# @!attribute [rw] hashes
|
35
|
+
# The hashes of the asset.
|
36
|
+
# @return [Hash<String,String>]
|
37
|
+
#
|
38
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssetSummary AWS API Documentation
|
39
|
+
#
|
40
|
+
class AssetSummary < Struct.new(
|
41
|
+
:name,
|
42
|
+
:size,
|
43
|
+
:hashes)
|
44
|
+
include Aws::Structure
|
45
|
+
end
|
46
|
+
|
47
|
+
# @note When making an API call, you may pass AssociateExternalConnectionRequest
|
48
|
+
# data as a hash:
|
49
|
+
#
|
50
|
+
# {
|
51
|
+
# domain: "DomainName", # required
|
52
|
+
# domain_owner: "AccountId",
|
53
|
+
# repository: "RepositoryName", # required
|
54
|
+
# external_connection: "ExternalConnectionName", # required
|
55
|
+
# }
|
56
|
+
#
|
57
|
+
# @!attribute [rw] domain
|
58
|
+
# The name of the domain that contains the repository.
|
59
|
+
# @return [String]
|
60
|
+
#
|
61
|
+
# @!attribute [rw] domain_owner
|
62
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
63
|
+
# It does not include dashes or spaces.
|
64
|
+
# @return [String]
|
65
|
+
#
|
66
|
+
# @!attribute [rw] repository
|
67
|
+
# The name of the repository to which the external connection is
|
68
|
+
# added.
|
69
|
+
# @return [String]
|
70
|
+
#
|
71
|
+
# @!attribute [rw] external_connection
|
72
|
+
# The name of the external connection to add to the repository. The
|
73
|
+
# following values are supported:
|
74
|
+
#
|
75
|
+
# * `public:npmjs` - for the npm public repository.
|
76
|
+
#
|
77
|
+
# * `public:pypi` - for the Python Package Index.
|
78
|
+
#
|
79
|
+
# * `public:maven-central` - for Maven Central.
|
80
|
+
#
|
81
|
+
# * `public:maven-googleandroid` - for the Google Android repository.
|
82
|
+
#
|
83
|
+
# * `public:maven-gradleplugins` - for the Gradle plugins repository.
|
84
|
+
#
|
85
|
+
# * `public:maven-commonsware` - for the CommonsWare Android
|
86
|
+
# repository.
|
87
|
+
# @return [String]
|
88
|
+
#
|
89
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnectionRequest AWS API Documentation
|
90
|
+
#
|
91
|
+
class AssociateExternalConnectionRequest < Struct.new(
|
92
|
+
:domain,
|
93
|
+
:domain_owner,
|
94
|
+
:repository,
|
95
|
+
:external_connection)
|
96
|
+
include Aws::Structure
|
97
|
+
end
|
98
|
+
|
99
|
+
# @!attribute [rw] repository
|
100
|
+
# Information about the connected repository after processing the
|
101
|
+
# request.
|
102
|
+
# @return [Types::RepositoryDescription]
|
103
|
+
#
|
104
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnectionResult AWS API Documentation
|
105
|
+
#
|
106
|
+
class AssociateExternalConnectionResult < Struct.new(
|
107
|
+
:repository)
|
108
|
+
include Aws::Structure
|
109
|
+
end
|
110
|
+
|
111
|
+
# The operation did not succeed because prerequisites are not met.
|
112
|
+
#
|
113
|
+
# @!attribute [rw] message
|
114
|
+
# @return [String]
|
115
|
+
#
|
116
|
+
# @!attribute [rw] resource_id
|
117
|
+
# The ID of the resource.
|
118
|
+
# @return [String]
|
119
|
+
#
|
120
|
+
# @!attribute [rw] resource_type
|
121
|
+
# The type of AWS resource.
|
122
|
+
# @return [String]
|
123
|
+
#
|
124
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ConflictException AWS API Documentation
|
125
|
+
#
|
126
|
+
class ConflictException < Struct.new(
|
127
|
+
:message,
|
128
|
+
:resource_id,
|
129
|
+
:resource_type)
|
130
|
+
include Aws::Structure
|
131
|
+
end
|
132
|
+
|
133
|
+
# @note When making an API call, you may pass CopyPackageVersionsRequest
|
134
|
+
# data as a hash:
|
135
|
+
#
|
136
|
+
# {
|
137
|
+
# domain: "DomainName", # required
|
138
|
+
# domain_owner: "AccountId",
|
139
|
+
# source_repository: "RepositoryName", # required
|
140
|
+
# destination_repository: "RepositoryName", # required
|
141
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
142
|
+
# namespace: "PackageNamespace",
|
143
|
+
# package: "PackageName", # required
|
144
|
+
# versions: ["PackageVersion"],
|
145
|
+
# version_revisions: {
|
146
|
+
# "PackageVersion" => "PackageVersionRevision",
|
147
|
+
# },
|
148
|
+
# allow_overwrite: false,
|
149
|
+
# include_from_upstream: false,
|
150
|
+
# }
|
151
|
+
#
|
152
|
+
# @!attribute [rw] domain
|
153
|
+
# The name of the domain that contains the source and destination
|
154
|
+
# repositories.
|
155
|
+
# @return [String]
|
156
|
+
#
|
157
|
+
# @!attribute [rw] domain_owner
|
158
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
159
|
+
# It does not include dashes or spaces.
|
160
|
+
# @return [String]
|
161
|
+
#
|
162
|
+
# @!attribute [rw] source_repository
|
163
|
+
# The name of the repository that contains the package versions to
|
164
|
+
# copy.
|
165
|
+
# @return [String]
|
166
|
+
#
|
167
|
+
# @!attribute [rw] destination_repository
|
168
|
+
# The name of the repository into which package versions are copied.
|
169
|
+
# @return [String]
|
170
|
+
#
|
171
|
+
# @!attribute [rw] format
|
172
|
+
# The format of the package that is copied. The valid package types
|
173
|
+
# are:
|
174
|
+
#
|
175
|
+
# * `npm`\: A Node Package Manager (npm) package.
|
176
|
+
#
|
177
|
+
# * `pypi`\: A Python Package Index (PyPI) package.
|
178
|
+
#
|
179
|
+
# * `maven`\: A Maven package that contains compiled code in a
|
180
|
+
# distributable format, such as a JAR file.
|
181
|
+
# @return [String]
|
182
|
+
#
|
183
|
+
# @!attribute [rw] namespace
|
184
|
+
# The namespace of the package. The package component that specifies
|
185
|
+
# its namespace depends on its type. For example:
|
186
|
+
#
|
187
|
+
# * The namespace of a Maven package is its `groupId`.
|
188
|
+
#
|
189
|
+
# * The namespace of an npm package is its `scope`.
|
190
|
+
#
|
191
|
+
# * A Python package does not contain a corresponding component, so
|
192
|
+
# Python packages do not have a namespace.
|
193
|
+
# @return [String]
|
194
|
+
#
|
195
|
+
# @!attribute [rw] package
|
196
|
+
# The name of the package that is copied.
|
197
|
+
# @return [String]
|
198
|
+
#
|
199
|
+
# @!attribute [rw] versions
|
200
|
+
# The versions of the package to copy.
|
201
|
+
#
|
202
|
+
# <note markdown="1"> You must specify `versions` or `versionRevisions`. You cannot
|
203
|
+
# specify both.
|
204
|
+
#
|
205
|
+
# </note>
|
206
|
+
# @return [Array<String>]
|
207
|
+
#
|
208
|
+
# @!attribute [rw] version_revisions
|
209
|
+
# A list of key-value pairs. The keys are package versions and the
|
210
|
+
# values are package version revisions. A `CopyPackageVersion`
|
211
|
+
# operation succeeds if the specified versions in the source
|
212
|
+
# repository match the specified package version revision.
|
213
|
+
#
|
214
|
+
# <note markdown="1"> You must specify `versions` or `versionRevisions`. You cannot
|
215
|
+
# specify both.
|
216
|
+
#
|
217
|
+
# </note>
|
218
|
+
# @return [Hash<String,String>]
|
219
|
+
#
|
220
|
+
# @!attribute [rw] allow_overwrite
|
221
|
+
# Set to true to overwrite a package version that already exists in
|
222
|
+
# the destination repository. If set to false and the package version
|
223
|
+
# already exists in the destination repository, the package version is
|
224
|
+
# returned in the `failedVersions` field of the response with an
|
225
|
+
# `ALREADY_EXISTS` error code.
|
226
|
+
# @return [Boolean]
|
227
|
+
#
|
228
|
+
# @!attribute [rw] include_from_upstream
|
229
|
+
# Set to true to copy packages from repositories that are upstream
|
230
|
+
# from the source repository to the destination repository. The
|
231
|
+
# default setting is false. For more information, see [Working with
|
232
|
+
# upstream repositories][1].
|
233
|
+
#
|
234
|
+
#
|
235
|
+
#
|
236
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html
|
237
|
+
# @return [Boolean]
|
238
|
+
#
|
239
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CopyPackageVersionsRequest AWS API Documentation
|
240
|
+
#
|
241
|
+
class CopyPackageVersionsRequest < Struct.new(
|
242
|
+
:domain,
|
243
|
+
:domain_owner,
|
244
|
+
:source_repository,
|
245
|
+
:destination_repository,
|
246
|
+
:format,
|
247
|
+
:namespace,
|
248
|
+
:package,
|
249
|
+
:versions,
|
250
|
+
:version_revisions,
|
251
|
+
:allow_overwrite,
|
252
|
+
:include_from_upstream)
|
253
|
+
include Aws::Structure
|
254
|
+
end
|
255
|
+
|
256
|
+
# @!attribute [rw] successful_versions
|
257
|
+
# A list of the package versions that were successfully copied to your
|
258
|
+
# repository.
|
259
|
+
# @return [Hash<String,Types::SuccessfulPackageVersionInfo>]
|
260
|
+
#
|
261
|
+
# @!attribute [rw] failed_versions
|
262
|
+
# A map of package versions that failed to copy and their error codes.
|
263
|
+
# The possible error codes are in the `PackageVersionError` data type.
|
264
|
+
# They are:
|
265
|
+
#
|
266
|
+
# * `ALREADY_EXISTS`
|
267
|
+
#
|
268
|
+
# * `MISMATCHED_REVISION`
|
269
|
+
#
|
270
|
+
# * `MISMATCHED_STATUS`
|
271
|
+
#
|
272
|
+
# * `NOT_ALLOWED`
|
273
|
+
#
|
274
|
+
# * `NOT_FOUND`
|
275
|
+
#
|
276
|
+
# * `SKIPPED`
|
277
|
+
# @return [Hash<String,Types::PackageVersionError>]
|
278
|
+
#
|
279
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CopyPackageVersionsResult AWS API Documentation
|
280
|
+
#
|
281
|
+
class CopyPackageVersionsResult < Struct.new(
|
282
|
+
:successful_versions,
|
283
|
+
:failed_versions)
|
284
|
+
include Aws::Structure
|
285
|
+
end
|
286
|
+
|
287
|
+
# @note When making an API call, you may pass CreateDomainRequest
|
288
|
+
# data as a hash:
|
289
|
+
#
|
290
|
+
# {
|
291
|
+
# domain: "DomainName", # required
|
292
|
+
# encryption_key: "Arn",
|
293
|
+
# }
|
294
|
+
#
|
295
|
+
# @!attribute [rw] domain
|
296
|
+
# The name of the domain to create. All domain names in an AWS Region
|
297
|
+
# that are in the same AWS account must be unique. The domain name is
|
298
|
+
# used as the prefix in DNS hostnames. Do not use sensitive
|
299
|
+
# information in a domain name because it is publicly discoverable.
|
300
|
+
# @return [String]
|
301
|
+
#
|
302
|
+
# @!attribute [rw] encryption_key
|
303
|
+
# The encryption key for the domain. This is used to encrypt content
|
304
|
+
# stored in a domain. An encryption key can be a key ID, a key Amazon
|
305
|
+
# Resource Name (ARN), a key alias, or a key alias ARN. To specify an
|
306
|
+
# `encryptionKey`, your IAM role must have `kms:DescribeKey` and
|
307
|
+
# `kms:CreateGrant` permissions on the encryption key that is used.
|
308
|
+
# For more information, see [DescribeKey][1] in the *AWS Key
|
309
|
+
# Management Service API Reference* and [AWS KMS API Permissions
|
310
|
+
# Reference][2] in the *AWS Key Management Service Developer Guide*.
|
311
|
+
#
|
312
|
+
# CodeArtifact supports only symmetric CMKs. Do not associate an
|
313
|
+
# asymmetric CMK with your domain. For more information, see [Using
|
314
|
+
# symmetric and asymmetric keys][3] in the *AWS Key Management Service
|
315
|
+
# Developer Guide*.
|
316
|
+
#
|
317
|
+
#
|
318
|
+
#
|
319
|
+
# [1]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestSyntax
|
320
|
+
# [2]: https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html
|
321
|
+
# [3]: https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html
|
322
|
+
# @return [String]
|
323
|
+
#
|
324
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomainRequest AWS API Documentation
|
325
|
+
#
|
326
|
+
class CreateDomainRequest < Struct.new(
|
327
|
+
:domain,
|
328
|
+
:encryption_key)
|
329
|
+
include Aws::Structure
|
330
|
+
end
|
331
|
+
|
332
|
+
# @!attribute [rw] domain
|
333
|
+
# Contains information about the created domain after processing the
|
334
|
+
# request.
|
335
|
+
# @return [Types::DomainDescription]
|
336
|
+
#
|
337
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateDomainResult AWS API Documentation
|
338
|
+
#
|
339
|
+
class CreateDomainResult < Struct.new(
|
340
|
+
:domain)
|
341
|
+
include Aws::Structure
|
342
|
+
end
|
343
|
+
|
344
|
+
# @note When making an API call, you may pass CreateRepositoryRequest
|
345
|
+
# data as a hash:
|
346
|
+
#
|
347
|
+
# {
|
348
|
+
# domain: "DomainName", # required
|
349
|
+
# domain_owner: "AccountId",
|
350
|
+
# repository: "RepositoryName", # required
|
351
|
+
# description: "Description",
|
352
|
+
# upstreams: [
|
353
|
+
# {
|
354
|
+
# repository_name: "RepositoryName", # required
|
355
|
+
# },
|
356
|
+
# ],
|
357
|
+
# }
|
358
|
+
#
|
359
|
+
# @!attribute [rw] domain
|
360
|
+
# The domain that contains the created repository.
|
361
|
+
# @return [String]
|
362
|
+
#
|
363
|
+
# @!attribute [rw] domain_owner
|
364
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
365
|
+
# It does not include dashes or spaces.
|
366
|
+
# @return [String]
|
367
|
+
#
|
368
|
+
# @!attribute [rw] repository
|
369
|
+
# The name of the repository to create.
|
370
|
+
# @return [String]
|
371
|
+
#
|
372
|
+
# @!attribute [rw] description
|
373
|
+
# A description of the created repository.
|
374
|
+
# @return [String]
|
375
|
+
#
|
376
|
+
# @!attribute [rw] upstreams
|
377
|
+
# A list of upstream repositories to associate with the repository.
|
378
|
+
# The order of the upstream repositories in the list determines their
|
379
|
+
# priority order when AWS CodeArtifact looks for a requested package
|
380
|
+
# version. For more information, see [Working with upstream
|
381
|
+
# repositories][1].
|
382
|
+
#
|
383
|
+
#
|
384
|
+
#
|
385
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html
|
386
|
+
# @return [Array<Types::UpstreamRepository>]
|
387
|
+
#
|
388
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepositoryRequest AWS API Documentation
|
389
|
+
#
|
390
|
+
class CreateRepositoryRequest < Struct.new(
|
391
|
+
:domain,
|
392
|
+
:domain_owner,
|
393
|
+
:repository,
|
394
|
+
:description,
|
395
|
+
:upstreams)
|
396
|
+
include Aws::Structure
|
397
|
+
end
|
398
|
+
|
399
|
+
# @!attribute [rw] repository
|
400
|
+
# Information about the created repository after processing the
|
401
|
+
# request.
|
402
|
+
# @return [Types::RepositoryDescription]
|
403
|
+
#
|
404
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepositoryResult AWS API Documentation
|
405
|
+
#
|
406
|
+
class CreateRepositoryResult < Struct.new(
|
407
|
+
:repository)
|
408
|
+
include Aws::Structure
|
409
|
+
end
|
410
|
+
|
411
|
+
# @note When making an API call, you may pass DeleteDomainPermissionsPolicyRequest
|
412
|
+
# data as a hash:
|
413
|
+
#
|
414
|
+
# {
|
415
|
+
# domain: "DomainName", # required
|
416
|
+
# domain_owner: "AccountId",
|
417
|
+
# policy_revision: "PolicyRevision",
|
418
|
+
# }
|
419
|
+
#
|
420
|
+
# @!attribute [rw] domain
|
421
|
+
# The name of the domain associated with the resource policy to be
|
422
|
+
# deleted.
|
423
|
+
# @return [String]
|
424
|
+
#
|
425
|
+
# @!attribute [rw] domain_owner
|
426
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
427
|
+
# It does not include dashes or spaces.
|
428
|
+
# @return [String]
|
429
|
+
#
|
430
|
+
# @!attribute [rw] policy_revision
|
431
|
+
# The current revision of the resource policy to be deleted. This
|
432
|
+
# revision is used for optimistic locking, which prevents others from
|
433
|
+
# overwriting your changes to the domain's resource policy.
|
434
|
+
# @return [String]
|
435
|
+
#
|
436
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomainPermissionsPolicyRequest AWS API Documentation
|
437
|
+
#
|
438
|
+
class DeleteDomainPermissionsPolicyRequest < Struct.new(
|
439
|
+
:domain,
|
440
|
+
:domain_owner,
|
441
|
+
:policy_revision)
|
442
|
+
include Aws::Structure
|
443
|
+
end
|
444
|
+
|
445
|
+
# @!attribute [rw] policy
|
446
|
+
# Information about the deleted resource policy after processing the
|
447
|
+
# request.
|
448
|
+
# @return [Types::ResourcePolicy]
|
449
|
+
#
|
450
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomainPermissionsPolicyResult AWS API Documentation
|
451
|
+
#
|
452
|
+
class DeleteDomainPermissionsPolicyResult < Struct.new(
|
453
|
+
:policy)
|
454
|
+
include Aws::Structure
|
455
|
+
end
|
456
|
+
|
457
|
+
# @note When making an API call, you may pass DeleteDomainRequest
|
458
|
+
# data as a hash:
|
459
|
+
#
|
460
|
+
# {
|
461
|
+
# domain: "DomainName", # required
|
462
|
+
# domain_owner: "AccountId",
|
463
|
+
# }
|
464
|
+
#
|
465
|
+
# @!attribute [rw] domain
|
466
|
+
# The name of the domain to delete.
|
467
|
+
# @return [String]
|
468
|
+
#
|
469
|
+
# @!attribute [rw] domain_owner
|
470
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
471
|
+
# It does not include dashes or spaces.
|
472
|
+
# @return [String]
|
473
|
+
#
|
474
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomainRequest AWS API Documentation
|
475
|
+
#
|
476
|
+
class DeleteDomainRequest < Struct.new(
|
477
|
+
:domain,
|
478
|
+
:domain_owner)
|
479
|
+
include Aws::Structure
|
480
|
+
end
|
481
|
+
|
482
|
+
# @!attribute [rw] domain
|
483
|
+
# Contains information about the deleted domain after processing the
|
484
|
+
# request.
|
485
|
+
# @return [Types::DomainDescription]
|
486
|
+
#
|
487
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteDomainResult AWS API Documentation
|
488
|
+
#
|
489
|
+
class DeleteDomainResult < Struct.new(
|
490
|
+
:domain)
|
491
|
+
include Aws::Structure
|
492
|
+
end
|
493
|
+
|
494
|
+
# @note When making an API call, you may pass DeletePackageVersionsRequest
|
495
|
+
# data as a hash:
|
496
|
+
#
|
497
|
+
# {
|
498
|
+
# domain: "DomainName", # required
|
499
|
+
# domain_owner: "AccountId",
|
500
|
+
# repository: "RepositoryName", # required
|
501
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
502
|
+
# namespace: "PackageNamespace",
|
503
|
+
# package: "PackageName", # required
|
504
|
+
# versions: ["PackageVersion"], # required
|
505
|
+
# expected_status: "Published", # accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
|
506
|
+
# }
|
507
|
+
#
|
508
|
+
# @!attribute [rw] domain
|
509
|
+
# The name of the domain that contains the package to delete.
|
510
|
+
# @return [String]
|
511
|
+
#
|
512
|
+
# @!attribute [rw] domain_owner
|
513
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
514
|
+
# It does not include dashes or spaces.
|
515
|
+
# @return [String]
|
516
|
+
#
|
517
|
+
# @!attribute [rw] repository
|
518
|
+
# The name of the repository that contains the package versions to
|
519
|
+
# delete.
|
520
|
+
# @return [String]
|
521
|
+
#
|
522
|
+
# @!attribute [rw] format
|
523
|
+
# The format of the package versions to delete. The valid values are:
|
524
|
+
#
|
525
|
+
# * `npm`
|
526
|
+
#
|
527
|
+
# * `pypi`
|
528
|
+
#
|
529
|
+
# * `maven`
|
530
|
+
# @return [String]
|
531
|
+
#
|
532
|
+
# @!attribute [rw] namespace
|
533
|
+
# The namespace of the package. The package component that specifies
|
534
|
+
# its namespace depends on its type. For example:
|
535
|
+
#
|
536
|
+
# * The namespace of a Maven package is its `groupId`.
|
537
|
+
#
|
538
|
+
# * The namespace of an npm package is its `scope`.
|
539
|
+
#
|
540
|
+
# * A Python package does not contain a corresponding component, so
|
541
|
+
# Python packages do not have a namespace.
|
542
|
+
# @return [String]
|
543
|
+
#
|
544
|
+
# @!attribute [rw] package
|
545
|
+
# The name of the package with the versions to delete.
|
546
|
+
# @return [String]
|
547
|
+
#
|
548
|
+
# @!attribute [rw] versions
|
549
|
+
# An array of strings that specify the versions of the package to
|
550
|
+
# delete.
|
551
|
+
# @return [Array<String>]
|
552
|
+
#
|
553
|
+
# @!attribute [rw] expected_status
|
554
|
+
# The expected status of the package version to delete. Valid values
|
555
|
+
# are:
|
556
|
+
#
|
557
|
+
# * `Published`
|
558
|
+
#
|
559
|
+
# * `Unfinished`
|
560
|
+
#
|
561
|
+
# * `Unlisted`
|
562
|
+
#
|
563
|
+
# * `Archived`
|
564
|
+
#
|
565
|
+
# * `Disposed`
|
566
|
+
# @return [String]
|
567
|
+
#
|
568
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackageVersionsRequest AWS API Documentation
|
569
|
+
#
|
570
|
+
class DeletePackageVersionsRequest < Struct.new(
|
571
|
+
:domain,
|
572
|
+
:domain_owner,
|
573
|
+
:repository,
|
574
|
+
:format,
|
575
|
+
:namespace,
|
576
|
+
:package,
|
577
|
+
:versions,
|
578
|
+
:expected_status)
|
579
|
+
include Aws::Structure
|
580
|
+
end
|
581
|
+
|
582
|
+
# @!attribute [rw] successful_versions
|
583
|
+
# A list of the package versions that were successfully deleted.
|
584
|
+
# @return [Hash<String,Types::SuccessfulPackageVersionInfo>]
|
585
|
+
#
|
586
|
+
# @!attribute [rw] failed_versions
|
587
|
+
# A `PackageVersionError` object that contains a map of errors codes
|
588
|
+
# for the deleted package that failed. The possible error codes are:
|
589
|
+
#
|
590
|
+
# * `ALREADY_EXISTS`
|
591
|
+
#
|
592
|
+
# * `MISMATCHED_REVISION`
|
593
|
+
#
|
594
|
+
# * `MISMATCHED_STATUS`
|
595
|
+
#
|
596
|
+
# * `NOT_ALLOWED`
|
597
|
+
#
|
598
|
+
# * `NOT_FOUND`
|
599
|
+
#
|
600
|
+
# * `SKIPPED`
|
601
|
+
# @return [Hash<String,Types::PackageVersionError>]
|
602
|
+
#
|
603
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackageVersionsResult AWS API Documentation
|
604
|
+
#
|
605
|
+
class DeletePackageVersionsResult < Struct.new(
|
606
|
+
:successful_versions,
|
607
|
+
:failed_versions)
|
608
|
+
include Aws::Structure
|
609
|
+
end
|
610
|
+
|
611
|
+
# @note When making an API call, you may pass DeleteRepositoryPermissionsPolicyRequest
|
612
|
+
# data as a hash:
|
613
|
+
#
|
614
|
+
# {
|
615
|
+
# domain: "DomainName", # required
|
616
|
+
# domain_owner: "AccountId",
|
617
|
+
# repository: "RepositoryName", # required
|
618
|
+
# policy_revision: "PolicyRevision",
|
619
|
+
# }
|
620
|
+
#
|
621
|
+
# @!attribute [rw] domain
|
622
|
+
# The name of the domain that contains the repository associated with
|
623
|
+
# the resource policy to be deleted.
|
624
|
+
# @return [String]
|
625
|
+
#
|
626
|
+
# @!attribute [rw] domain_owner
|
627
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
628
|
+
# It does not include dashes or spaces.
|
629
|
+
# @return [String]
|
630
|
+
#
|
631
|
+
# @!attribute [rw] repository
|
632
|
+
# The name of the repository that is associated with the resource
|
633
|
+
# policy to be deleted
|
634
|
+
# @return [String]
|
635
|
+
#
|
636
|
+
# @!attribute [rw] policy_revision
|
637
|
+
# The revision of the repository's resource policy to be deleted.
|
638
|
+
# This revision is used for optimistic locking, which prevents others
|
639
|
+
# from accidentally overwriting your changes to the repository's
|
640
|
+
# resource policy.
|
641
|
+
# @return [String]
|
642
|
+
#
|
643
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepositoryPermissionsPolicyRequest AWS API Documentation
|
644
|
+
#
|
645
|
+
class DeleteRepositoryPermissionsPolicyRequest < Struct.new(
|
646
|
+
:domain,
|
647
|
+
:domain_owner,
|
648
|
+
:repository,
|
649
|
+
:policy_revision)
|
650
|
+
include Aws::Structure
|
651
|
+
end
|
652
|
+
|
653
|
+
# @!attribute [rw] policy
|
654
|
+
# Information about the deleted policy after processing the request.
|
655
|
+
# @return [Types::ResourcePolicy]
|
656
|
+
#
|
657
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepositoryPermissionsPolicyResult AWS API Documentation
|
658
|
+
#
|
659
|
+
class DeleteRepositoryPermissionsPolicyResult < Struct.new(
|
660
|
+
:policy)
|
661
|
+
include Aws::Structure
|
662
|
+
end
|
663
|
+
|
664
|
+
# @note When making an API call, you may pass DeleteRepositoryRequest
|
665
|
+
# data as a hash:
|
666
|
+
#
|
667
|
+
# {
|
668
|
+
# domain: "DomainName", # required
|
669
|
+
# domain_owner: "AccountId",
|
670
|
+
# repository: "RepositoryName", # required
|
671
|
+
# }
|
672
|
+
#
|
673
|
+
# @!attribute [rw] domain
|
674
|
+
# The name of the domain that contains the repository to delete.
|
675
|
+
# @return [String]
|
676
|
+
#
|
677
|
+
# @!attribute [rw] domain_owner
|
678
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
679
|
+
# It does not include dashes or spaces.
|
680
|
+
# @return [String]
|
681
|
+
#
|
682
|
+
# @!attribute [rw] repository
|
683
|
+
# The name of the repository to delete.
|
684
|
+
# @return [String]
|
685
|
+
#
|
686
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepositoryRequest AWS API Documentation
|
687
|
+
#
|
688
|
+
class DeleteRepositoryRequest < Struct.new(
|
689
|
+
:domain,
|
690
|
+
:domain_owner,
|
691
|
+
:repository)
|
692
|
+
include Aws::Structure
|
693
|
+
end
|
694
|
+
|
695
|
+
# @!attribute [rw] repository
|
696
|
+
# Information about the deleted repository after processing the
|
697
|
+
# request.
|
698
|
+
# @return [Types::RepositoryDescription]
|
699
|
+
#
|
700
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepositoryResult AWS API Documentation
|
701
|
+
#
|
702
|
+
class DeleteRepositoryResult < Struct.new(
|
703
|
+
:repository)
|
704
|
+
include Aws::Structure
|
705
|
+
end
|
706
|
+
|
707
|
+
# @note When making an API call, you may pass DescribeDomainRequest
|
708
|
+
# data as a hash:
|
709
|
+
#
|
710
|
+
# {
|
711
|
+
# domain: "DomainName", # required
|
712
|
+
# domain_owner: "AccountId",
|
713
|
+
# }
|
714
|
+
#
|
715
|
+
# @!attribute [rw] domain
|
716
|
+
# A string that specifies the name of the requested domain.
|
717
|
+
# @return [String]
|
718
|
+
#
|
719
|
+
# @!attribute [rw] domain_owner
|
720
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
721
|
+
# It does not include dashes or spaces.
|
722
|
+
# @return [String]
|
723
|
+
#
|
724
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeDomainRequest AWS API Documentation
|
725
|
+
#
|
726
|
+
class DescribeDomainRequest < Struct.new(
|
727
|
+
:domain,
|
728
|
+
:domain_owner)
|
729
|
+
include Aws::Structure
|
730
|
+
end
|
731
|
+
|
732
|
+
# @!attribute [rw] domain
|
733
|
+
# Information about a domain. A domain is a container for
|
734
|
+
# repositories. When you create a domain, it is empty until you add
|
735
|
+
# one or more repositories.
|
736
|
+
# @return [Types::DomainDescription]
|
737
|
+
#
|
738
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeDomainResult AWS API Documentation
|
739
|
+
#
|
740
|
+
class DescribeDomainResult < Struct.new(
|
741
|
+
:domain)
|
742
|
+
include Aws::Structure
|
743
|
+
end
|
744
|
+
|
745
|
+
# @note When making an API call, you may pass DescribePackageVersionRequest
|
746
|
+
# data as a hash:
|
747
|
+
#
|
748
|
+
# {
|
749
|
+
# domain: "DomainName", # required
|
750
|
+
# domain_owner: "AccountId",
|
751
|
+
# repository: "RepositoryName", # required
|
752
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
753
|
+
# namespace: "PackageNamespace",
|
754
|
+
# package: "PackageName", # required
|
755
|
+
# package_version: "PackageVersion", # required
|
756
|
+
# }
|
757
|
+
#
|
758
|
+
# @!attribute [rw] domain
|
759
|
+
# The name of the domain that contains the repository that contains
|
760
|
+
# the package version.
|
761
|
+
# @return [String]
|
762
|
+
#
|
763
|
+
# @!attribute [rw] domain_owner
|
764
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
765
|
+
# It does not include dashes or spaces.
|
766
|
+
# @return [String]
|
767
|
+
#
|
768
|
+
# @!attribute [rw] repository
|
769
|
+
# The name of the repository that contains the package version.
|
770
|
+
# @return [String]
|
771
|
+
#
|
772
|
+
# @!attribute [rw] format
|
773
|
+
# A format that specifies the type of the requested package version.
|
774
|
+
# The valid values are:
|
775
|
+
#
|
776
|
+
# * `npm`
|
777
|
+
#
|
778
|
+
# * `pypi`
|
779
|
+
#
|
780
|
+
# * `maven`
|
781
|
+
# @return [String]
|
782
|
+
#
|
783
|
+
# @!attribute [rw] namespace
|
784
|
+
# The namespace of the package. The package component that specifies
|
785
|
+
# its namespace depends on its type. For example:
|
786
|
+
#
|
787
|
+
# * The namespace of a Maven package is its `groupId`.
|
788
|
+
#
|
789
|
+
# * The namespace of an npm package is its `scope`.
|
790
|
+
#
|
791
|
+
# * A Python package does not contain a corresponding component, so
|
792
|
+
# Python packages do not have a namespace.
|
793
|
+
# @return [String]
|
794
|
+
#
|
795
|
+
# @!attribute [rw] package
|
796
|
+
# The name of the requested package version.
|
797
|
+
# @return [String]
|
798
|
+
#
|
799
|
+
# @!attribute [rw] package_version
|
800
|
+
# A string that contains the package version (for example, `3.5.2`).
|
801
|
+
# @return [String]
|
802
|
+
#
|
803
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribePackageVersionRequest AWS API Documentation
|
804
|
+
#
|
805
|
+
class DescribePackageVersionRequest < Struct.new(
|
806
|
+
:domain,
|
807
|
+
:domain_owner,
|
808
|
+
:repository,
|
809
|
+
:format,
|
810
|
+
:namespace,
|
811
|
+
:package,
|
812
|
+
:package_version)
|
813
|
+
include Aws::Structure
|
814
|
+
end
|
815
|
+
|
816
|
+
# @!attribute [rw] package_version
|
817
|
+
# A ` PackageVersionDescription ` object that contains information
|
818
|
+
# about the requested package version.
|
819
|
+
# @return [Types::PackageVersionDescription]
|
820
|
+
#
|
821
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribePackageVersionResult AWS API Documentation
|
822
|
+
#
|
823
|
+
class DescribePackageVersionResult < Struct.new(
|
824
|
+
:package_version)
|
825
|
+
include Aws::Structure
|
826
|
+
end
|
827
|
+
|
828
|
+
# @note When making an API call, you may pass DescribeRepositoryRequest
|
829
|
+
# data as a hash:
|
830
|
+
#
|
831
|
+
# {
|
832
|
+
# domain: "DomainName", # required
|
833
|
+
# domain_owner: "AccountId",
|
834
|
+
# repository: "RepositoryName", # required
|
835
|
+
# }
|
836
|
+
#
|
837
|
+
# @!attribute [rw] domain
|
838
|
+
# The name of the domain that contains the repository to describe.
|
839
|
+
# @return [String]
|
840
|
+
#
|
841
|
+
# @!attribute [rw] domain_owner
|
842
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
843
|
+
# It does not include dashes or spaces.
|
844
|
+
# @return [String]
|
845
|
+
#
|
846
|
+
# @!attribute [rw] repository
|
847
|
+
# A string that specifies the name of the requested repository.
|
848
|
+
# @return [String]
|
849
|
+
#
|
850
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeRepositoryRequest AWS API Documentation
|
851
|
+
#
|
852
|
+
class DescribeRepositoryRequest < Struct.new(
|
853
|
+
:domain,
|
854
|
+
:domain_owner,
|
855
|
+
:repository)
|
856
|
+
include Aws::Structure
|
857
|
+
end
|
858
|
+
|
859
|
+
# @!attribute [rw] repository
|
860
|
+
# A `RepositoryDescription` object that contains the requested
|
861
|
+
# repository information.
|
862
|
+
# @return [Types::RepositoryDescription]
|
863
|
+
#
|
864
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeRepositoryResult AWS API Documentation
|
865
|
+
#
|
866
|
+
class DescribeRepositoryResult < Struct.new(
|
867
|
+
:repository)
|
868
|
+
include Aws::Structure
|
869
|
+
end
|
870
|
+
|
871
|
+
# @note When making an API call, you may pass DisassociateExternalConnectionRequest
|
872
|
+
# data as a hash:
|
873
|
+
#
|
874
|
+
# {
|
875
|
+
# domain: "DomainName", # required
|
876
|
+
# domain_owner: "AccountId",
|
877
|
+
# repository: "RepositoryName", # required
|
878
|
+
# external_connection: "ExternalConnectionName", # required
|
879
|
+
# }
|
880
|
+
#
|
881
|
+
# @!attribute [rw] domain
|
882
|
+
# The name of the domain that contains the repository from which to
|
883
|
+
# remove the external repository.
|
884
|
+
# @return [String]
|
885
|
+
#
|
886
|
+
# @!attribute [rw] domain_owner
|
887
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
888
|
+
# It does not include dashes or spaces.
|
889
|
+
# @return [String]
|
890
|
+
#
|
891
|
+
# @!attribute [rw] repository
|
892
|
+
# The name of the repository from which the external connection will
|
893
|
+
# be removed.
|
894
|
+
# @return [String]
|
895
|
+
#
|
896
|
+
# @!attribute [rw] external_connection
|
897
|
+
# The name of the external connection to be removed from the
|
898
|
+
# repository.
|
899
|
+
# @return [String]
|
900
|
+
#
|
901
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisassociateExternalConnectionRequest AWS API Documentation
|
902
|
+
#
|
903
|
+
class DisassociateExternalConnectionRequest < Struct.new(
|
904
|
+
:domain,
|
905
|
+
:domain_owner,
|
906
|
+
:repository,
|
907
|
+
:external_connection)
|
908
|
+
include Aws::Structure
|
909
|
+
end
|
910
|
+
|
911
|
+
# @!attribute [rw] repository
|
912
|
+
# The repository associated with the removed external connection.
|
913
|
+
# @return [Types::RepositoryDescription]
|
914
|
+
#
|
915
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisassociateExternalConnectionResult AWS API Documentation
|
916
|
+
#
|
917
|
+
class DisassociateExternalConnectionResult < Struct.new(
|
918
|
+
:repository)
|
919
|
+
include Aws::Structure
|
920
|
+
end
|
921
|
+
|
922
|
+
# @note When making an API call, you may pass DisposePackageVersionsRequest
|
923
|
+
# data as a hash:
|
924
|
+
#
|
925
|
+
# {
|
926
|
+
# domain: "DomainName", # required
|
927
|
+
# domain_owner: "AccountId",
|
928
|
+
# repository: "RepositoryName", # required
|
929
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
930
|
+
# namespace: "PackageNamespace",
|
931
|
+
# package: "PackageName", # required
|
932
|
+
# versions: ["PackageVersion"], # required
|
933
|
+
# version_revisions: {
|
934
|
+
# "PackageVersion" => "PackageVersionRevision",
|
935
|
+
# },
|
936
|
+
# expected_status: "Published", # accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
|
937
|
+
# }
|
938
|
+
#
|
939
|
+
# @!attribute [rw] domain
|
940
|
+
# The name of the domain that contains the repository you want to
|
941
|
+
# dispose.
|
942
|
+
# @return [String]
|
943
|
+
#
|
944
|
+
# @!attribute [rw] domain_owner
|
945
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
946
|
+
# It does not include dashes or spaces.
|
947
|
+
# @return [String]
|
948
|
+
#
|
949
|
+
# @!attribute [rw] repository
|
950
|
+
# The name of the repository that contains the package versions you
|
951
|
+
# want to dispose.
|
952
|
+
# @return [String]
|
953
|
+
#
|
954
|
+
# @!attribute [rw] format
|
955
|
+
# A format that specifies the type of package versions you want to
|
956
|
+
# dispose. The valid values are:
|
957
|
+
#
|
958
|
+
# * `npm`
|
959
|
+
#
|
960
|
+
# * `pypi`
|
961
|
+
#
|
962
|
+
# * `maven`
|
963
|
+
# @return [String]
|
964
|
+
#
|
965
|
+
# @!attribute [rw] namespace
|
966
|
+
# The namespace of the package. The package component that specifies
|
967
|
+
# its namespace depends on its type. For example:
|
968
|
+
#
|
969
|
+
# * The namespace of a Maven package is its `groupId`.
|
970
|
+
#
|
971
|
+
# * The namespace of an npm package is its `scope`.
|
972
|
+
#
|
973
|
+
# * A Python package does not contain a corresponding component, so
|
974
|
+
# Python packages do not have a namespace.
|
975
|
+
# @return [String]
|
976
|
+
#
|
977
|
+
# @!attribute [rw] package
|
978
|
+
# The name of the package with the versions you want to dispose.
|
979
|
+
# @return [String]
|
980
|
+
#
|
981
|
+
# @!attribute [rw] versions
|
982
|
+
# The versions of the package you want to dispose.
|
983
|
+
# @return [Array<String>]
|
984
|
+
#
|
985
|
+
# @!attribute [rw] version_revisions
|
986
|
+
# The revisions of the package versions you want to dispose.
|
987
|
+
# @return [Hash<String,String>]
|
988
|
+
#
|
989
|
+
# @!attribute [rw] expected_status
|
990
|
+
# The expected status of the package version to dispose. Valid values
|
991
|
+
# are:
|
992
|
+
#
|
993
|
+
# * `Published`
|
994
|
+
#
|
995
|
+
# * `Unfinished`
|
996
|
+
#
|
997
|
+
# * `Unlisted`
|
998
|
+
#
|
999
|
+
# * `Archived`
|
1000
|
+
#
|
1001
|
+
# * `Disposed`
|
1002
|
+
# @return [String]
|
1003
|
+
#
|
1004
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisposePackageVersionsRequest AWS API Documentation
|
1005
|
+
#
|
1006
|
+
class DisposePackageVersionsRequest < Struct.new(
|
1007
|
+
:domain,
|
1008
|
+
:domain_owner,
|
1009
|
+
:repository,
|
1010
|
+
:format,
|
1011
|
+
:namespace,
|
1012
|
+
:package,
|
1013
|
+
:versions,
|
1014
|
+
:version_revisions,
|
1015
|
+
:expected_status)
|
1016
|
+
include Aws::Structure
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
# @!attribute [rw] successful_versions
|
1020
|
+
# A list of the package versions that were successfully disposed.
|
1021
|
+
# @return [Hash<String,Types::SuccessfulPackageVersionInfo>]
|
1022
|
+
#
|
1023
|
+
# @!attribute [rw] failed_versions
|
1024
|
+
# A `PackageVersionError` object that contains a map of errors codes
|
1025
|
+
# for the disposed package versions that failed. The possible error
|
1026
|
+
# codes are:
|
1027
|
+
#
|
1028
|
+
# * `ALREADY_EXISTS`
|
1029
|
+
#
|
1030
|
+
# * `MISMATCHED_REVISION`
|
1031
|
+
#
|
1032
|
+
# * `MISMATCHED_STATUS`
|
1033
|
+
#
|
1034
|
+
# * `NOT_ALLOWED`
|
1035
|
+
#
|
1036
|
+
# * `NOT_FOUND`
|
1037
|
+
#
|
1038
|
+
# * `SKIPPED`
|
1039
|
+
# @return [Hash<String,Types::PackageVersionError>]
|
1040
|
+
#
|
1041
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisposePackageVersionsResult AWS API Documentation
|
1042
|
+
#
|
1043
|
+
class DisposePackageVersionsResult < Struct.new(
|
1044
|
+
:successful_versions,
|
1045
|
+
:failed_versions)
|
1046
|
+
include Aws::Structure
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
# Information about a domain. A domain is a container for repositories.
|
1050
|
+
# When you create a domain, it is empty until you add one or more
|
1051
|
+
# repositories.
|
1052
|
+
#
|
1053
|
+
# @!attribute [rw] name
|
1054
|
+
# The name of the domain.
|
1055
|
+
# @return [String]
|
1056
|
+
#
|
1057
|
+
# @!attribute [rw] owner
|
1058
|
+
# The AWS account ID that owns the domain.
|
1059
|
+
# @return [String]
|
1060
|
+
#
|
1061
|
+
# @!attribute [rw] arn
|
1062
|
+
# The Amazon Resource Name (ARN) of the domain.
|
1063
|
+
# @return [String]
|
1064
|
+
#
|
1065
|
+
# @!attribute [rw] status
|
1066
|
+
# The current status of a domain. The valid values are
|
1067
|
+
#
|
1068
|
+
# * `Active`
|
1069
|
+
#
|
1070
|
+
# * `Deleted`
|
1071
|
+
# @return [String]
|
1072
|
+
#
|
1073
|
+
# @!attribute [rw] created_time
|
1074
|
+
# A timestamp that represents the date and time the domain was
|
1075
|
+
# created.
|
1076
|
+
# @return [Time]
|
1077
|
+
#
|
1078
|
+
# @!attribute [rw] encryption_key
|
1079
|
+
# The ARN of an AWS Key Management Service (AWS KMS) key associated
|
1080
|
+
# with a domain.
|
1081
|
+
# @return [String]
|
1082
|
+
#
|
1083
|
+
# @!attribute [rw] repository_count
|
1084
|
+
# The number of repositories in the domain.
|
1085
|
+
# @return [Integer]
|
1086
|
+
#
|
1087
|
+
# @!attribute [rw] asset_size_bytes
|
1088
|
+
# The total size of all assets in the domain.
|
1089
|
+
# @return [Integer]
|
1090
|
+
#
|
1091
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DomainDescription AWS API Documentation
|
1092
|
+
#
|
1093
|
+
class DomainDescription < Struct.new(
|
1094
|
+
:name,
|
1095
|
+
:owner,
|
1096
|
+
:arn,
|
1097
|
+
:status,
|
1098
|
+
:created_time,
|
1099
|
+
:encryption_key,
|
1100
|
+
:repository_count,
|
1101
|
+
:asset_size_bytes)
|
1102
|
+
include Aws::Structure
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
# Information about a domain, including its name, Amazon Resource Name
|
1106
|
+
# (ARN), and status. The [ `ListDomains` ][1] operation returns a list
|
1107
|
+
# of `DomainSummary` objects.
|
1108
|
+
#
|
1109
|
+
#
|
1110
|
+
#
|
1111
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListDomains.html
|
1112
|
+
#
|
1113
|
+
# @!attribute [rw] name
|
1114
|
+
# The name of the domain.
|
1115
|
+
# @return [String]
|
1116
|
+
#
|
1117
|
+
# @!attribute [rw] owner
|
1118
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
1119
|
+
# It does not include dashes or spaces.
|
1120
|
+
# @return [String]
|
1121
|
+
#
|
1122
|
+
# @!attribute [rw] arn
|
1123
|
+
# The ARN of the domain.
|
1124
|
+
# @return [String]
|
1125
|
+
#
|
1126
|
+
# @!attribute [rw] status
|
1127
|
+
# A string that contains the status of the domain. The valid values
|
1128
|
+
# are:
|
1129
|
+
#
|
1130
|
+
# * `Active`
|
1131
|
+
#
|
1132
|
+
# * `Deleted`
|
1133
|
+
# @return [String]
|
1134
|
+
#
|
1135
|
+
# @!attribute [rw] created_time
|
1136
|
+
# A timestamp that contains the date and time the domain was created.
|
1137
|
+
# @return [Time]
|
1138
|
+
#
|
1139
|
+
# @!attribute [rw] encryption_key
|
1140
|
+
# The key used to encrypt the domain.
|
1141
|
+
# @return [String]
|
1142
|
+
#
|
1143
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DomainSummary AWS API Documentation
|
1144
|
+
#
|
1145
|
+
class DomainSummary < Struct.new(
|
1146
|
+
:name,
|
1147
|
+
:owner,
|
1148
|
+
:arn,
|
1149
|
+
:status,
|
1150
|
+
:created_time,
|
1151
|
+
:encryption_key)
|
1152
|
+
include Aws::Structure
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# @note When making an API call, you may pass GetAuthorizationTokenRequest
|
1156
|
+
# data as a hash:
|
1157
|
+
#
|
1158
|
+
# {
|
1159
|
+
# domain: "DomainName", # required
|
1160
|
+
# domain_owner: "AccountId",
|
1161
|
+
# duration_seconds: 1,
|
1162
|
+
# }
|
1163
|
+
#
|
1164
|
+
# @!attribute [rw] domain
|
1165
|
+
# The name of the domain that is in scope for the generated
|
1166
|
+
# authorization token.
|
1167
|
+
# @return [String]
|
1168
|
+
#
|
1169
|
+
# @!attribute [rw] domain_owner
|
1170
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
1171
|
+
# It does not include dashes or spaces.
|
1172
|
+
# @return [String]
|
1173
|
+
#
|
1174
|
+
# @!attribute [rw] duration_seconds
|
1175
|
+
# The time, in seconds, that the generated authorization token is
|
1176
|
+
# valid.
|
1177
|
+
# @return [Integer]
|
1178
|
+
#
|
1179
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetAuthorizationTokenRequest AWS API Documentation
|
1180
|
+
#
|
1181
|
+
class GetAuthorizationTokenRequest < Struct.new(
|
1182
|
+
:domain,
|
1183
|
+
:domain_owner,
|
1184
|
+
:duration_seconds)
|
1185
|
+
include Aws::Structure
|
1186
|
+
end
|
1187
|
+
|
1188
|
+
# @!attribute [rw] authorization_token
|
1189
|
+
# The returned authentication token.
|
1190
|
+
# @return [String]
|
1191
|
+
#
|
1192
|
+
# @!attribute [rw] expiration
|
1193
|
+
# A timestamp that specifies the date and time the authorization token
|
1194
|
+
# expires.
|
1195
|
+
# @return [Time]
|
1196
|
+
#
|
1197
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetAuthorizationTokenResult AWS API Documentation
|
1198
|
+
#
|
1199
|
+
class GetAuthorizationTokenResult < Struct.new(
|
1200
|
+
:authorization_token,
|
1201
|
+
:expiration)
|
1202
|
+
include Aws::Structure
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
# @note When making an API call, you may pass GetDomainPermissionsPolicyRequest
|
1206
|
+
# data as a hash:
|
1207
|
+
#
|
1208
|
+
# {
|
1209
|
+
# domain: "DomainName", # required
|
1210
|
+
# domain_owner: "AccountId",
|
1211
|
+
# }
|
1212
|
+
#
|
1213
|
+
# @!attribute [rw] domain
|
1214
|
+
# The name of the domain to which the resource policy is attached.
|
1215
|
+
# @return [String]
|
1216
|
+
#
|
1217
|
+
# @!attribute [rw] domain_owner
|
1218
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
1219
|
+
# It does not include dashes or spaces.
|
1220
|
+
# @return [String]
|
1221
|
+
#
|
1222
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetDomainPermissionsPolicyRequest AWS API Documentation
|
1223
|
+
#
|
1224
|
+
class GetDomainPermissionsPolicyRequest < Struct.new(
|
1225
|
+
:domain,
|
1226
|
+
:domain_owner)
|
1227
|
+
include Aws::Structure
|
1228
|
+
end
|
1229
|
+
|
1230
|
+
# @!attribute [rw] policy
|
1231
|
+
# The returned resource policy.
|
1232
|
+
# @return [Types::ResourcePolicy]
|
1233
|
+
#
|
1234
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetDomainPermissionsPolicyResult AWS API Documentation
|
1235
|
+
#
|
1236
|
+
class GetDomainPermissionsPolicyResult < Struct.new(
|
1237
|
+
:policy)
|
1238
|
+
include Aws::Structure
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
# @note When making an API call, you may pass GetPackageVersionAssetRequest
|
1242
|
+
# data as a hash:
|
1243
|
+
#
|
1244
|
+
# {
|
1245
|
+
# domain: "DomainName", # required
|
1246
|
+
# domain_owner: "AccountId",
|
1247
|
+
# repository: "RepositoryName", # required
|
1248
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
1249
|
+
# namespace: "PackageNamespace",
|
1250
|
+
# package: "PackageName", # required
|
1251
|
+
# package_version: "PackageVersion", # required
|
1252
|
+
# asset: "AssetName", # required
|
1253
|
+
# package_version_revision: "PackageVersionRevision",
|
1254
|
+
# }
|
1255
|
+
#
|
1256
|
+
# @!attribute [rw] domain
|
1257
|
+
# The domain that contains the repository that contains the package
|
1258
|
+
# version with the requested asset.
|
1259
|
+
# @return [String]
|
1260
|
+
#
|
1261
|
+
# @!attribute [rw] domain_owner
|
1262
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
1263
|
+
# It does not include dashes or spaces.
|
1264
|
+
# @return [String]
|
1265
|
+
#
|
1266
|
+
# @!attribute [rw] repository
|
1267
|
+
# The repository that contains the package version with the requested
|
1268
|
+
# asset.
|
1269
|
+
# @return [String]
|
1270
|
+
#
|
1271
|
+
# @!attribute [rw] format
|
1272
|
+
# A format that specifies the type of the package version with the
|
1273
|
+
# requested asset file. The valid values are:
|
1274
|
+
#
|
1275
|
+
# * `npm`
|
1276
|
+
#
|
1277
|
+
# * `pypi`
|
1278
|
+
#
|
1279
|
+
# * `maven`
|
1280
|
+
# @return [String]
|
1281
|
+
#
|
1282
|
+
# @!attribute [rw] namespace
|
1283
|
+
# The namespace of the package. The package component that specifies
|
1284
|
+
# its namespace depends on its type. For example:
|
1285
|
+
#
|
1286
|
+
# * The namespace of a Maven package is its `groupId`.
|
1287
|
+
#
|
1288
|
+
# * The namespace of an npm package is its `scope`.
|
1289
|
+
#
|
1290
|
+
# * A Python package does not contain a corresponding component, so
|
1291
|
+
# Python packages do not have a namespace.
|
1292
|
+
# @return [String]
|
1293
|
+
#
|
1294
|
+
# @!attribute [rw] package
|
1295
|
+
# The name of the package that contains the requested asset.
|
1296
|
+
# @return [String]
|
1297
|
+
#
|
1298
|
+
# @!attribute [rw] package_version
|
1299
|
+
# A string that contains the package version (for example, `3.5.2`).
|
1300
|
+
# @return [String]
|
1301
|
+
#
|
1302
|
+
# @!attribute [rw] asset
|
1303
|
+
# The name of the requested asset.
|
1304
|
+
# @return [String]
|
1305
|
+
#
|
1306
|
+
# @!attribute [rw] package_version_revision
|
1307
|
+
# The name of the package version revision that contains the requested
|
1308
|
+
# asset.
|
1309
|
+
# @return [String]
|
1310
|
+
#
|
1311
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionAssetRequest AWS API Documentation
|
1312
|
+
#
|
1313
|
+
class GetPackageVersionAssetRequest < Struct.new(
|
1314
|
+
:domain,
|
1315
|
+
:domain_owner,
|
1316
|
+
:repository,
|
1317
|
+
:format,
|
1318
|
+
:namespace,
|
1319
|
+
:package,
|
1320
|
+
:package_version,
|
1321
|
+
:asset,
|
1322
|
+
:package_version_revision)
|
1323
|
+
include Aws::Structure
|
1324
|
+
end
|
1325
|
+
|
1326
|
+
# @!attribute [rw] asset
|
1327
|
+
# The binary file, or asset, that is downloaded.
|
1328
|
+
# @return [IO]
|
1329
|
+
#
|
1330
|
+
# @!attribute [rw] asset_name
|
1331
|
+
# The name of the asset that is downloaded.
|
1332
|
+
# @return [String]
|
1333
|
+
#
|
1334
|
+
# @!attribute [rw] package_version
|
1335
|
+
# A string that contains the package version (for example, `3.5.2`).
|
1336
|
+
# @return [String]
|
1337
|
+
#
|
1338
|
+
# @!attribute [rw] package_version_revision
|
1339
|
+
# The name of the package version revision that contains the
|
1340
|
+
# downloaded asset.
|
1341
|
+
# @return [String]
|
1342
|
+
#
|
1343
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionAssetResult AWS API Documentation
|
1344
|
+
#
|
1345
|
+
class GetPackageVersionAssetResult < Struct.new(
|
1346
|
+
:asset,
|
1347
|
+
:asset_name,
|
1348
|
+
:package_version,
|
1349
|
+
:package_version_revision)
|
1350
|
+
include Aws::Structure
|
1351
|
+
end
|
1352
|
+
|
1353
|
+
# @note When making an API call, you may pass GetPackageVersionReadmeRequest
|
1354
|
+
# data as a hash:
|
1355
|
+
#
|
1356
|
+
# {
|
1357
|
+
# domain: "DomainName", # required
|
1358
|
+
# domain_owner: "AccountId",
|
1359
|
+
# repository: "RepositoryName", # required
|
1360
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
1361
|
+
# namespace: "PackageNamespace",
|
1362
|
+
# package: "PackageName", # required
|
1363
|
+
# package_version: "PackageVersion", # required
|
1364
|
+
# }
|
1365
|
+
#
|
1366
|
+
# @!attribute [rw] domain
|
1367
|
+
# The name of the domain that contains the repository that contains
|
1368
|
+
# the package version with the requested readme file.
|
1369
|
+
# @return [String]
|
1370
|
+
#
|
1371
|
+
# @!attribute [rw] domain_owner
|
1372
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
1373
|
+
# It does not include dashes or spaces.
|
1374
|
+
# @return [String]
|
1375
|
+
#
|
1376
|
+
# @!attribute [rw] repository
|
1377
|
+
# The repository that contains the package with the requested readme
|
1378
|
+
# file.
|
1379
|
+
# @return [String]
|
1380
|
+
#
|
1381
|
+
# @!attribute [rw] format
|
1382
|
+
# A format that specifies the type of the package version with the
|
1383
|
+
# requested readme file. The valid values are:
|
1384
|
+
#
|
1385
|
+
# * `npm`
|
1386
|
+
#
|
1387
|
+
# * `pypi`
|
1388
|
+
#
|
1389
|
+
# * `maven`
|
1390
|
+
# @return [String]
|
1391
|
+
#
|
1392
|
+
# @!attribute [rw] namespace
|
1393
|
+
# The namespace of the package. The package component that specifies
|
1394
|
+
# its namespace depends on its type. For example:
|
1395
|
+
#
|
1396
|
+
# * The namespace of a Maven package is its `groupId`.
|
1397
|
+
#
|
1398
|
+
# * The namespace of an npm package is its `scope`.
|
1399
|
+
#
|
1400
|
+
# * A Python package does not contain a corresponding component, so
|
1401
|
+
# Python packages do not have a namespace.
|
1402
|
+
# @return [String]
|
1403
|
+
#
|
1404
|
+
# @!attribute [rw] package
|
1405
|
+
# The name of the package version that contains the requested readme
|
1406
|
+
# file.
|
1407
|
+
# @return [String]
|
1408
|
+
#
|
1409
|
+
# @!attribute [rw] package_version
|
1410
|
+
# A string that contains the package version (for example, `3.5.2`).
|
1411
|
+
# @return [String]
|
1412
|
+
#
|
1413
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionReadmeRequest AWS API Documentation
|
1414
|
+
#
|
1415
|
+
class GetPackageVersionReadmeRequest < Struct.new(
|
1416
|
+
:domain,
|
1417
|
+
:domain_owner,
|
1418
|
+
:repository,
|
1419
|
+
:format,
|
1420
|
+
:namespace,
|
1421
|
+
:package,
|
1422
|
+
:package_version)
|
1423
|
+
include Aws::Structure
|
1424
|
+
end
|
1425
|
+
|
1426
|
+
# @!attribute [rw] format
|
1427
|
+
# The format of the package with the requested readme file. Valid
|
1428
|
+
# format types are:
|
1429
|
+
#
|
1430
|
+
# * `npm`
|
1431
|
+
#
|
1432
|
+
# * `pypi`
|
1433
|
+
#
|
1434
|
+
# * `maven`
|
1435
|
+
# @return [String]
|
1436
|
+
#
|
1437
|
+
# @!attribute [rw] namespace
|
1438
|
+
# The namespace of the package. The package component that specifies
|
1439
|
+
# its namespace depends on its type. For example:
|
1440
|
+
#
|
1441
|
+
# * The namespace of a Maven package is its `groupId`.
|
1442
|
+
#
|
1443
|
+
# * The namespace of an npm package is its `scope`.
|
1444
|
+
#
|
1445
|
+
# * A Python package does not contain a corresponding component, so
|
1446
|
+
# Python packages do not have a namespace.
|
1447
|
+
# @return [String]
|
1448
|
+
#
|
1449
|
+
# @!attribute [rw] package
|
1450
|
+
# The name of the package that contains the returned readme file.
|
1451
|
+
# @return [String]
|
1452
|
+
#
|
1453
|
+
# @!attribute [rw] version
|
1454
|
+
# The version of the package with the requested readme file.
|
1455
|
+
# @return [String]
|
1456
|
+
#
|
1457
|
+
# @!attribute [rw] version_revision
|
1458
|
+
# The current revision associated with the package version.
|
1459
|
+
# @return [String]
|
1460
|
+
#
|
1461
|
+
# @!attribute [rw] readme
|
1462
|
+
# The text of the returned readme file.
|
1463
|
+
# @return [String]
|
1464
|
+
#
|
1465
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetPackageVersionReadmeResult AWS API Documentation
|
1466
|
+
#
|
1467
|
+
class GetPackageVersionReadmeResult < Struct.new(
|
1468
|
+
:format,
|
1469
|
+
:namespace,
|
1470
|
+
:package,
|
1471
|
+
:version,
|
1472
|
+
:version_revision,
|
1473
|
+
:readme)
|
1474
|
+
include Aws::Structure
|
1475
|
+
end
|
1476
|
+
|
1477
|
+
# @note When making an API call, you may pass GetRepositoryEndpointRequest
|
1478
|
+
# data as a hash:
|
1479
|
+
#
|
1480
|
+
# {
|
1481
|
+
# domain: "DomainName", # required
|
1482
|
+
# domain_owner: "AccountId",
|
1483
|
+
# repository: "RepositoryName", # required
|
1484
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
1485
|
+
# }
|
1486
|
+
#
|
1487
|
+
# @!attribute [rw] domain
|
1488
|
+
# The name of the domain that contains the repository.
|
1489
|
+
# @return [String]
|
1490
|
+
#
|
1491
|
+
# @!attribute [rw] domain_owner
|
1492
|
+
# The 12-digit account number of the AWS account that owns the domain
|
1493
|
+
# that contains the repository. It does not include dashes or spaces.
|
1494
|
+
# @return [String]
|
1495
|
+
#
|
1496
|
+
# @!attribute [rw] repository
|
1497
|
+
# The name of the repository.
|
1498
|
+
# @return [String]
|
1499
|
+
#
|
1500
|
+
# @!attribute [rw] format
|
1501
|
+
# Returns which endpoint of a repository to return. A repository has
|
1502
|
+
# one endpoint for each package format:
|
1503
|
+
#
|
1504
|
+
# * `npm`
|
1505
|
+
#
|
1506
|
+
# * `pypi`
|
1507
|
+
#
|
1508
|
+
# * `maven`
|
1509
|
+
# @return [String]
|
1510
|
+
#
|
1511
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryEndpointRequest AWS API Documentation
|
1512
|
+
#
|
1513
|
+
class GetRepositoryEndpointRequest < Struct.new(
|
1514
|
+
:domain,
|
1515
|
+
:domain_owner,
|
1516
|
+
:repository,
|
1517
|
+
:format)
|
1518
|
+
include Aws::Structure
|
1519
|
+
end
|
1520
|
+
|
1521
|
+
# @!attribute [rw] repository_endpoint
|
1522
|
+
# A string that specifies the URL of the returned endpoint.
|
1523
|
+
# @return [String]
|
1524
|
+
#
|
1525
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryEndpointResult AWS API Documentation
|
1526
|
+
#
|
1527
|
+
class GetRepositoryEndpointResult < Struct.new(
|
1528
|
+
:repository_endpoint)
|
1529
|
+
include Aws::Structure
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
# @note When making an API call, you may pass GetRepositoryPermissionsPolicyRequest
|
1533
|
+
# data as a hash:
|
1534
|
+
#
|
1535
|
+
# {
|
1536
|
+
# domain: "DomainName", # required
|
1537
|
+
# domain_owner: "AccountId",
|
1538
|
+
# repository: "RepositoryName", # required
|
1539
|
+
# }
|
1540
|
+
#
|
1541
|
+
# @!attribute [rw] domain
|
1542
|
+
# The name of the domain containing the repository whose associated
|
1543
|
+
# resource policy is to be retrieved.
|
1544
|
+
# @return [String]
|
1545
|
+
#
|
1546
|
+
# @!attribute [rw] domain_owner
|
1547
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
1548
|
+
# It does not include dashes or spaces.
|
1549
|
+
# @return [String]
|
1550
|
+
#
|
1551
|
+
# @!attribute [rw] repository
|
1552
|
+
# The name of the repository whose associated resource policy is to be
|
1553
|
+
# retrieved.
|
1554
|
+
# @return [String]
|
1555
|
+
#
|
1556
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryPermissionsPolicyRequest AWS API Documentation
|
1557
|
+
#
|
1558
|
+
class GetRepositoryPermissionsPolicyRequest < Struct.new(
|
1559
|
+
:domain,
|
1560
|
+
:domain_owner,
|
1561
|
+
:repository)
|
1562
|
+
include Aws::Structure
|
1563
|
+
end
|
1564
|
+
|
1565
|
+
# @!attribute [rw] policy
|
1566
|
+
# The returned resource policy.
|
1567
|
+
# @return [Types::ResourcePolicy]
|
1568
|
+
#
|
1569
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/GetRepositoryPermissionsPolicyResult AWS API Documentation
|
1570
|
+
#
|
1571
|
+
class GetRepositoryPermissionsPolicyResult < Struct.new(
|
1572
|
+
:policy)
|
1573
|
+
include Aws::Structure
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
# The operation did not succeed because of an error that occurred inside
|
1577
|
+
# AWS CodeArtifact.
|
1578
|
+
#
|
1579
|
+
# @!attribute [rw] message
|
1580
|
+
# @return [String]
|
1581
|
+
#
|
1582
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/InternalServerException AWS API Documentation
|
1583
|
+
#
|
1584
|
+
class InternalServerException < Struct.new(
|
1585
|
+
:message)
|
1586
|
+
include Aws::Structure
|
1587
|
+
end
|
1588
|
+
|
1589
|
+
# Details of the license data.
|
1590
|
+
#
|
1591
|
+
# @!attribute [rw] name
|
1592
|
+
# Name of the license.
|
1593
|
+
# @return [String]
|
1594
|
+
#
|
1595
|
+
# @!attribute [rw] url
|
1596
|
+
# The URL for license data.
|
1597
|
+
# @return [String]
|
1598
|
+
#
|
1599
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/LicenseInfo AWS API Documentation
|
1600
|
+
#
|
1601
|
+
class LicenseInfo < Struct.new(
|
1602
|
+
:name,
|
1603
|
+
:url)
|
1604
|
+
include Aws::Structure
|
1605
|
+
end
|
1606
|
+
|
1607
|
+
# @note When making an API call, you may pass ListDomainsRequest
|
1608
|
+
# data as a hash:
|
1609
|
+
#
|
1610
|
+
# {
|
1611
|
+
# max_results: 1,
|
1612
|
+
# next_token: "PaginationToken",
|
1613
|
+
# }
|
1614
|
+
#
|
1615
|
+
# @!attribute [rw] max_results
|
1616
|
+
# The maximum number of results to return per page.
|
1617
|
+
# @return [Integer]
|
1618
|
+
#
|
1619
|
+
# @!attribute [rw] next_token
|
1620
|
+
# The token for the next set of results. Use the value returned in the
|
1621
|
+
# previous response in the next request to retrieve the next set of
|
1622
|
+
# results.
|
1623
|
+
# @return [String]
|
1624
|
+
#
|
1625
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListDomainsRequest AWS API Documentation
|
1626
|
+
#
|
1627
|
+
class ListDomainsRequest < Struct.new(
|
1628
|
+
:max_results,
|
1629
|
+
:next_token)
|
1630
|
+
include Aws::Structure
|
1631
|
+
end
|
1632
|
+
|
1633
|
+
# @!attribute [rw] domains
|
1634
|
+
# The returned list of ` DomainSummary ` objects.
|
1635
|
+
# @return [Array<Types::DomainSummary>]
|
1636
|
+
#
|
1637
|
+
# @!attribute [rw] next_token
|
1638
|
+
# The token for the next set of results. Use the value returned in the
|
1639
|
+
# previous response in the next request to retrieve the next set of
|
1640
|
+
# results.
|
1641
|
+
# @return [String]
|
1642
|
+
#
|
1643
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListDomainsResult AWS API Documentation
|
1644
|
+
#
|
1645
|
+
class ListDomainsResult < Struct.new(
|
1646
|
+
:domains,
|
1647
|
+
:next_token)
|
1648
|
+
include Aws::Structure
|
1649
|
+
end
|
1650
|
+
|
1651
|
+
# @note When making an API call, you may pass ListPackageVersionAssetsRequest
|
1652
|
+
# data as a hash:
|
1653
|
+
#
|
1654
|
+
# {
|
1655
|
+
# domain: "DomainName", # required
|
1656
|
+
# domain_owner: "AccountId",
|
1657
|
+
# repository: "RepositoryName", # required
|
1658
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
1659
|
+
# namespace: "PackageNamespace",
|
1660
|
+
# package: "PackageName", # required
|
1661
|
+
# package_version: "PackageVersion", # required
|
1662
|
+
# max_results: 1,
|
1663
|
+
# next_token: "PaginationToken",
|
1664
|
+
# }
|
1665
|
+
#
|
1666
|
+
# @!attribute [rw] domain
|
1667
|
+
# The name of the domain that contains the repository associated with
|
1668
|
+
# the package version assets.
|
1669
|
+
# @return [String]
|
1670
|
+
#
|
1671
|
+
# @!attribute [rw] domain_owner
|
1672
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
1673
|
+
# It does not include dashes or spaces.
|
1674
|
+
# @return [String]
|
1675
|
+
#
|
1676
|
+
# @!attribute [rw] repository
|
1677
|
+
# The name of the repository that contains the package that contains
|
1678
|
+
# the returned package version assets.
|
1679
|
+
# @return [String]
|
1680
|
+
#
|
1681
|
+
# @!attribute [rw] format
|
1682
|
+
# The format of the package that contains the returned package version
|
1683
|
+
# assets. The valid package types are:
|
1684
|
+
#
|
1685
|
+
# * `npm`\: A Node Package Manager (npm) package.
|
1686
|
+
#
|
1687
|
+
# * `pypi`\: A Python Package Index (PyPI) package.
|
1688
|
+
#
|
1689
|
+
# * `maven`\: A Maven package that contains compiled code in a
|
1690
|
+
# distributable format, such as a JAR file.
|
1691
|
+
# @return [String]
|
1692
|
+
#
|
1693
|
+
# @!attribute [rw] namespace
|
1694
|
+
# The namespace of the package. The package component that specifies
|
1695
|
+
# its namespace depends on its type. For example:
|
1696
|
+
#
|
1697
|
+
# * The namespace of a Maven package is its `groupId`.
|
1698
|
+
#
|
1699
|
+
# * The namespace of an npm package is its `scope`.
|
1700
|
+
#
|
1701
|
+
# * A Python package does not contain a corresponding component, so
|
1702
|
+
# Python packages do not have a namespace.
|
1703
|
+
# @return [String]
|
1704
|
+
#
|
1705
|
+
# @!attribute [rw] package
|
1706
|
+
# The name of the package that contains the returned package version
|
1707
|
+
# assets.
|
1708
|
+
# @return [String]
|
1709
|
+
#
|
1710
|
+
# @!attribute [rw] package_version
|
1711
|
+
# A string that contains the package version (for example, `3.5.2`).
|
1712
|
+
# @return [String]
|
1713
|
+
#
|
1714
|
+
# @!attribute [rw] max_results
|
1715
|
+
# The maximum number of results to return per page.
|
1716
|
+
# @return [Integer]
|
1717
|
+
#
|
1718
|
+
# @!attribute [rw] next_token
|
1719
|
+
# The token for the next set of results. Use the value returned in the
|
1720
|
+
# previous response in the next request to retrieve the next set of
|
1721
|
+
# results.
|
1722
|
+
# @return [String]
|
1723
|
+
#
|
1724
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionAssetsRequest AWS API Documentation
|
1725
|
+
#
|
1726
|
+
class ListPackageVersionAssetsRequest < Struct.new(
|
1727
|
+
:domain,
|
1728
|
+
:domain_owner,
|
1729
|
+
:repository,
|
1730
|
+
:format,
|
1731
|
+
:namespace,
|
1732
|
+
:package,
|
1733
|
+
:package_version,
|
1734
|
+
:max_results,
|
1735
|
+
:next_token)
|
1736
|
+
include Aws::Structure
|
1737
|
+
end
|
1738
|
+
|
1739
|
+
# @!attribute [rw] format
|
1740
|
+
# The format of the package that contains the returned package version
|
1741
|
+
# assets.
|
1742
|
+
# @return [String]
|
1743
|
+
#
|
1744
|
+
# @!attribute [rw] namespace
|
1745
|
+
# The namespace of the package. The package component that specifies
|
1746
|
+
# its namespace depends on its type. For example:
|
1747
|
+
#
|
1748
|
+
# * The namespace of a Maven package is its `groupId`.
|
1749
|
+
#
|
1750
|
+
# * The namespace of an npm package is its `scope`.
|
1751
|
+
#
|
1752
|
+
# * A Python package does not contain a corresponding component, so
|
1753
|
+
# Python packages do not have a namespace.
|
1754
|
+
# @return [String]
|
1755
|
+
#
|
1756
|
+
# @!attribute [rw] package
|
1757
|
+
# The name of the package that contains the returned package version
|
1758
|
+
# assets.
|
1759
|
+
# @return [String]
|
1760
|
+
#
|
1761
|
+
# @!attribute [rw] version
|
1762
|
+
# The version of the package associated with the returned assets.
|
1763
|
+
# @return [String]
|
1764
|
+
#
|
1765
|
+
# @!attribute [rw] version_revision
|
1766
|
+
# The current revision associated with the package version.
|
1767
|
+
# @return [String]
|
1768
|
+
#
|
1769
|
+
# @!attribute [rw] next_token
|
1770
|
+
# If there are additional results, this is the token for the next set
|
1771
|
+
# of results.
|
1772
|
+
# @return [String]
|
1773
|
+
#
|
1774
|
+
# @!attribute [rw] assets
|
1775
|
+
# The returned list of [ `AssetSummary` ][1] objects.
|
1776
|
+
#
|
1777
|
+
#
|
1778
|
+
#
|
1779
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html
|
1780
|
+
# @return [Array<Types::AssetSummary>]
|
1781
|
+
#
|
1782
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionAssetsResult AWS API Documentation
|
1783
|
+
#
|
1784
|
+
class ListPackageVersionAssetsResult < Struct.new(
|
1785
|
+
:format,
|
1786
|
+
:namespace,
|
1787
|
+
:package,
|
1788
|
+
:version,
|
1789
|
+
:version_revision,
|
1790
|
+
:next_token,
|
1791
|
+
:assets)
|
1792
|
+
include Aws::Structure
|
1793
|
+
end
|
1794
|
+
|
1795
|
+
# @note When making an API call, you may pass ListPackageVersionDependenciesRequest
|
1796
|
+
# data as a hash:
|
1797
|
+
#
|
1798
|
+
# {
|
1799
|
+
# domain: "DomainName", # required
|
1800
|
+
# domain_owner: "AccountId",
|
1801
|
+
# repository: "RepositoryName", # required
|
1802
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
1803
|
+
# namespace: "PackageNamespace",
|
1804
|
+
# package: "PackageName", # required
|
1805
|
+
# package_version: "PackageVersion", # required
|
1806
|
+
# next_token: "PaginationToken",
|
1807
|
+
# }
|
1808
|
+
#
|
1809
|
+
# @!attribute [rw] domain
|
1810
|
+
# The domain that contains the repository that contains the requested
|
1811
|
+
# package version dependencies.
|
1812
|
+
# @return [String]
|
1813
|
+
#
|
1814
|
+
# @!attribute [rw] domain_owner
|
1815
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
1816
|
+
# It does not include dashes or spaces.
|
1817
|
+
# @return [String]
|
1818
|
+
#
|
1819
|
+
# @!attribute [rw] repository
|
1820
|
+
# The name of the repository that contains the requested package
|
1821
|
+
# version.
|
1822
|
+
# @return [String]
|
1823
|
+
#
|
1824
|
+
# @!attribute [rw] format
|
1825
|
+
# The format of the package with the requested dependencies. The valid
|
1826
|
+
# package types are:
|
1827
|
+
#
|
1828
|
+
# * `npm`\: A Node Package Manager (npm) package.
|
1829
|
+
#
|
1830
|
+
# * `pypi`\: A Python Package Index (PyPI) package.
|
1831
|
+
#
|
1832
|
+
# * `maven`\: A Maven package that contains compiled code in a
|
1833
|
+
# distributable format, such as a JAR file.
|
1834
|
+
# @return [String]
|
1835
|
+
#
|
1836
|
+
# @!attribute [rw] namespace
|
1837
|
+
# The namespace of the package. The package component that specifies
|
1838
|
+
# its namespace depends on its type. For example:
|
1839
|
+
#
|
1840
|
+
# * The namespace of a Maven package is its `groupId`.
|
1841
|
+
#
|
1842
|
+
# * The namespace of an npm package is its `scope`.
|
1843
|
+
#
|
1844
|
+
# * A Python package does not contain a corresponding component, so
|
1845
|
+
# Python packages do not have a namespace.
|
1846
|
+
# @return [String]
|
1847
|
+
#
|
1848
|
+
# @!attribute [rw] package
|
1849
|
+
# The name of the package versions' package.
|
1850
|
+
# @return [String]
|
1851
|
+
#
|
1852
|
+
# @!attribute [rw] package_version
|
1853
|
+
# A string that contains the package version (for example, `3.5.2`).
|
1854
|
+
# @return [String]
|
1855
|
+
#
|
1856
|
+
# @!attribute [rw] next_token
|
1857
|
+
# The token for the next set of results. Use the value returned in the
|
1858
|
+
# previous response in the next request to retrieve the next set of
|
1859
|
+
# results.
|
1860
|
+
# @return [String]
|
1861
|
+
#
|
1862
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionDependenciesRequest AWS API Documentation
|
1863
|
+
#
|
1864
|
+
class ListPackageVersionDependenciesRequest < Struct.new(
|
1865
|
+
:domain,
|
1866
|
+
:domain_owner,
|
1867
|
+
:repository,
|
1868
|
+
:format,
|
1869
|
+
:namespace,
|
1870
|
+
:package,
|
1871
|
+
:package_version,
|
1872
|
+
:next_token)
|
1873
|
+
include Aws::Structure
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
# @!attribute [rw] format
|
1877
|
+
# A format that specifies the type of the package that contains the
|
1878
|
+
# returned dependencies. The valid values are:
|
1879
|
+
#
|
1880
|
+
# * `npm`
|
1881
|
+
#
|
1882
|
+
# * `pypi`
|
1883
|
+
#
|
1884
|
+
# * `maven`
|
1885
|
+
# @return [String]
|
1886
|
+
#
|
1887
|
+
# @!attribute [rw] namespace
|
1888
|
+
# The namespace of the package. The package component that specifies
|
1889
|
+
# its namespace depends on its type. For example:
|
1890
|
+
#
|
1891
|
+
# * The namespace of a Maven package is its `groupId`.
|
1892
|
+
#
|
1893
|
+
# * The namespace of an npm package is its `scope`.
|
1894
|
+
#
|
1895
|
+
# * A Python package does not contain a corresponding component, so
|
1896
|
+
# Python packages do not have a namespace.
|
1897
|
+
# @return [String]
|
1898
|
+
#
|
1899
|
+
# @!attribute [rw] package
|
1900
|
+
# The name of the package that contains the returned package versions
|
1901
|
+
# dependencies.
|
1902
|
+
# @return [String]
|
1903
|
+
#
|
1904
|
+
# @!attribute [rw] version
|
1905
|
+
# The version of the package that is specified in the request.
|
1906
|
+
# @return [String]
|
1907
|
+
#
|
1908
|
+
# @!attribute [rw] version_revision
|
1909
|
+
# The current revision associated with the package version.
|
1910
|
+
# @return [String]
|
1911
|
+
#
|
1912
|
+
# @!attribute [rw] next_token
|
1913
|
+
# The token for the next set of results. Use the value returned in the
|
1914
|
+
# previous response in the next request to retrieve the next set of
|
1915
|
+
# results.
|
1916
|
+
# @return [String]
|
1917
|
+
#
|
1918
|
+
# @!attribute [rw] dependencies
|
1919
|
+
# The returned list of [ `PackageDependency` ][1] objects.
|
1920
|
+
#
|
1921
|
+
#
|
1922
|
+
#
|
1923
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html
|
1924
|
+
# @return [Array<Types::PackageDependency>]
|
1925
|
+
#
|
1926
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionDependenciesResult AWS API Documentation
|
1927
|
+
#
|
1928
|
+
class ListPackageVersionDependenciesResult < Struct.new(
|
1929
|
+
:format,
|
1930
|
+
:namespace,
|
1931
|
+
:package,
|
1932
|
+
:version,
|
1933
|
+
:version_revision,
|
1934
|
+
:next_token,
|
1935
|
+
:dependencies)
|
1936
|
+
include Aws::Structure
|
1937
|
+
end
|
1938
|
+
|
1939
|
+
# @note When making an API call, you may pass ListPackageVersionsRequest
|
1940
|
+
# data as a hash:
|
1941
|
+
#
|
1942
|
+
# {
|
1943
|
+
# domain: "DomainName", # required
|
1944
|
+
# domain_owner: "AccountId",
|
1945
|
+
# repository: "RepositoryName", # required
|
1946
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
1947
|
+
# namespace: "PackageNamespace",
|
1948
|
+
# package: "PackageName", # required
|
1949
|
+
# status: "Published", # accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
|
1950
|
+
# sort_by: "PUBLISHED_TIME", # accepts PUBLISHED_TIME
|
1951
|
+
# max_results: 1,
|
1952
|
+
# next_token: "PaginationToken",
|
1953
|
+
# }
|
1954
|
+
#
|
1955
|
+
# @!attribute [rw] domain
|
1956
|
+
# The name of the domain that contains the repository that contains
|
1957
|
+
# the returned package versions.
|
1958
|
+
# @return [String]
|
1959
|
+
#
|
1960
|
+
# @!attribute [rw] domain_owner
|
1961
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
1962
|
+
# It does not include dashes or spaces.
|
1963
|
+
# @return [String]
|
1964
|
+
#
|
1965
|
+
# @!attribute [rw] repository
|
1966
|
+
# The name of the repository that contains the package.
|
1967
|
+
# @return [String]
|
1968
|
+
#
|
1969
|
+
# @!attribute [rw] format
|
1970
|
+
# The format of the returned packages. The valid package types are:
|
1971
|
+
#
|
1972
|
+
# * `npm`\: A Node Package Manager (npm) package.
|
1973
|
+
#
|
1974
|
+
# * `pypi`\: A Python Package Index (PyPI) package.
|
1975
|
+
#
|
1976
|
+
# * `maven`\: A Maven package that contains compiled code in a
|
1977
|
+
# distributable format, such as a JAR file.
|
1978
|
+
# @return [String]
|
1979
|
+
#
|
1980
|
+
# @!attribute [rw] namespace
|
1981
|
+
# The namespace of the package. The package component that specifies
|
1982
|
+
# its namespace depends on its type. For example:
|
1983
|
+
#
|
1984
|
+
# * The namespace of a Maven package is its `groupId`.
|
1985
|
+
#
|
1986
|
+
# * The namespace of an npm package is its `scope`.
|
1987
|
+
#
|
1988
|
+
# * A Python package does not contain a corresponding component, so
|
1989
|
+
# Python packages do not have a namespace.
|
1990
|
+
# @return [String]
|
1991
|
+
#
|
1992
|
+
# @!attribute [rw] package
|
1993
|
+
# The name of the package for which you want to return a list of
|
1994
|
+
# package versions.
|
1995
|
+
# @return [String]
|
1996
|
+
#
|
1997
|
+
# @!attribute [rw] status
|
1998
|
+
# A string that specifies the status of the package versions to
|
1999
|
+
# include in the returned list. It can be one of the following:
|
2000
|
+
#
|
2001
|
+
# * `Published`
|
2002
|
+
#
|
2003
|
+
# * `Unfinished`
|
2004
|
+
#
|
2005
|
+
# * `Unlisted`
|
2006
|
+
#
|
2007
|
+
# * `Archived`
|
2008
|
+
#
|
2009
|
+
# * `Disposed`
|
2010
|
+
# @return [String]
|
2011
|
+
#
|
2012
|
+
# @!attribute [rw] sort_by
|
2013
|
+
# How to sort the returned list of package versions.
|
2014
|
+
# @return [String]
|
2015
|
+
#
|
2016
|
+
# @!attribute [rw] max_results
|
2017
|
+
# The maximum number of results to return per page.
|
2018
|
+
# @return [Integer]
|
2019
|
+
#
|
2020
|
+
# @!attribute [rw] next_token
|
2021
|
+
# The token for the next set of results. Use the value returned in the
|
2022
|
+
# previous response in the next request to retrieve the next set of
|
2023
|
+
# results.
|
2024
|
+
# @return [String]
|
2025
|
+
#
|
2026
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionsRequest AWS API Documentation
|
2027
|
+
#
|
2028
|
+
class ListPackageVersionsRequest < Struct.new(
|
2029
|
+
:domain,
|
2030
|
+
:domain_owner,
|
2031
|
+
:repository,
|
2032
|
+
:format,
|
2033
|
+
:namespace,
|
2034
|
+
:package,
|
2035
|
+
:status,
|
2036
|
+
:sort_by,
|
2037
|
+
:max_results,
|
2038
|
+
:next_token)
|
2039
|
+
include Aws::Structure
|
2040
|
+
end
|
2041
|
+
|
2042
|
+
# @!attribute [rw] default_display_version
|
2043
|
+
# The default package version to display. This depends on the package
|
2044
|
+
# format:
|
2045
|
+
#
|
2046
|
+
# * For Maven and PyPI packages, it's the most recently published
|
2047
|
+
# package version.
|
2048
|
+
#
|
2049
|
+
# * For npm packages, it's the version referenced by the `latest`
|
2050
|
+
# tag. If the `latest` tag is not set, it's the most recently
|
2051
|
+
# published package version.
|
2052
|
+
# @return [String]
|
2053
|
+
#
|
2054
|
+
# @!attribute [rw] format
|
2055
|
+
# A format of the package. Valid package format values are:
|
2056
|
+
#
|
2057
|
+
# * `npm`
|
2058
|
+
#
|
2059
|
+
# * `pypi`
|
2060
|
+
#
|
2061
|
+
# * `maven`
|
2062
|
+
# @return [String]
|
2063
|
+
#
|
2064
|
+
# @!attribute [rw] namespace
|
2065
|
+
# The namespace of the package. The package component that specifies
|
2066
|
+
# its namespace depends on its type. For example:
|
2067
|
+
#
|
2068
|
+
# * The namespace of a Maven package is its `groupId`.
|
2069
|
+
#
|
2070
|
+
# * The namespace of an npm package is its `scope`.
|
2071
|
+
#
|
2072
|
+
# * A Python package does not contain a corresponding component, so
|
2073
|
+
# Python packages do not have a namespace.
|
2074
|
+
# @return [String]
|
2075
|
+
#
|
2076
|
+
# @!attribute [rw] package
|
2077
|
+
# The name of the package.
|
2078
|
+
# @return [String]
|
2079
|
+
#
|
2080
|
+
# @!attribute [rw] versions
|
2081
|
+
# The returned list of [ `PackageVersionSummary` ][1] objects.
|
2082
|
+
#
|
2083
|
+
#
|
2084
|
+
#
|
2085
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html
|
2086
|
+
# @return [Array<Types::PackageVersionSummary>]
|
2087
|
+
#
|
2088
|
+
# @!attribute [rw] next_token
|
2089
|
+
# If there are additional results, this is the token for the next set
|
2090
|
+
# of results.
|
2091
|
+
# @return [String]
|
2092
|
+
#
|
2093
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackageVersionsResult AWS API Documentation
|
2094
|
+
#
|
2095
|
+
class ListPackageVersionsResult < Struct.new(
|
2096
|
+
:default_display_version,
|
2097
|
+
:format,
|
2098
|
+
:namespace,
|
2099
|
+
:package,
|
2100
|
+
:versions,
|
2101
|
+
:next_token)
|
2102
|
+
include Aws::Structure
|
2103
|
+
end
|
2104
|
+
|
2105
|
+
# @note When making an API call, you may pass ListPackagesRequest
|
2106
|
+
# data as a hash:
|
2107
|
+
#
|
2108
|
+
# {
|
2109
|
+
# domain: "DomainName", # required
|
2110
|
+
# domain_owner: "AccountId",
|
2111
|
+
# repository: "RepositoryName", # required
|
2112
|
+
# format: "npm", # accepts npm, pypi, maven
|
2113
|
+
# namespace: "PackageNamespace",
|
2114
|
+
# package_prefix: "PackageName",
|
2115
|
+
# max_results: 1,
|
2116
|
+
# next_token: "PaginationToken",
|
2117
|
+
# }
|
2118
|
+
#
|
2119
|
+
# @!attribute [rw] domain
|
2120
|
+
# The domain that contains the repository that contains the requested
|
2121
|
+
# list of packages.
|
2122
|
+
# @return [String]
|
2123
|
+
#
|
2124
|
+
# @!attribute [rw] domain_owner
|
2125
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
2126
|
+
# It does not include dashes or spaces.
|
2127
|
+
# @return [String]
|
2128
|
+
#
|
2129
|
+
# @!attribute [rw] repository
|
2130
|
+
# The name of the repository from which packages are to be listed.
|
2131
|
+
# @return [String]
|
2132
|
+
#
|
2133
|
+
# @!attribute [rw] format
|
2134
|
+
# The format of the packages. The valid package types are:
|
2135
|
+
#
|
2136
|
+
# * `npm`\: A Node Package Manager (npm) package.
|
2137
|
+
#
|
2138
|
+
# * `pypi`\: A Python Package Index (PyPI) package.
|
2139
|
+
#
|
2140
|
+
# * `maven`\: A Maven package that contains compiled code in a
|
2141
|
+
# distributable format, such as a JAR file.
|
2142
|
+
# @return [String]
|
2143
|
+
#
|
2144
|
+
# @!attribute [rw] namespace
|
2145
|
+
# The namespace of the package. The package component that specifies
|
2146
|
+
# its namespace depends on its type. For example:
|
2147
|
+
#
|
2148
|
+
# * The namespace of a Maven package is its `groupId`.
|
2149
|
+
#
|
2150
|
+
# * The namespace of an npm package is its `scope`.
|
2151
|
+
#
|
2152
|
+
# * A Python package does not contain a corresponding component, so
|
2153
|
+
# Python packages do not have a namespace.
|
2154
|
+
# @return [String]
|
2155
|
+
#
|
2156
|
+
# @!attribute [rw] package_prefix
|
2157
|
+
# A prefix used to filter returned repositories. Only repositories
|
2158
|
+
# with names that start with `repositoryPrefix` are returned.
|
2159
|
+
# @return [String]
|
2160
|
+
#
|
2161
|
+
# @!attribute [rw] max_results
|
2162
|
+
# The maximum number of results to return per page.
|
2163
|
+
# @return [Integer]
|
2164
|
+
#
|
2165
|
+
# @!attribute [rw] next_token
|
2166
|
+
# The token for the next set of results. Use the value returned in the
|
2167
|
+
# previous response in the next request to retrieve the next set of
|
2168
|
+
# results.
|
2169
|
+
# @return [String]
|
2170
|
+
#
|
2171
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackagesRequest AWS API Documentation
|
2172
|
+
#
|
2173
|
+
class ListPackagesRequest < Struct.new(
|
2174
|
+
:domain,
|
2175
|
+
:domain_owner,
|
2176
|
+
:repository,
|
2177
|
+
:format,
|
2178
|
+
:namespace,
|
2179
|
+
:package_prefix,
|
2180
|
+
:max_results,
|
2181
|
+
:next_token)
|
2182
|
+
include Aws::Structure
|
2183
|
+
end
|
2184
|
+
|
2185
|
+
# @!attribute [rw] packages
|
2186
|
+
# The list of returned [ `PackageSummary` ][1] objects.
|
2187
|
+
#
|
2188
|
+
#
|
2189
|
+
#
|
2190
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html
|
2191
|
+
# @return [Array<Types::PackageSummary>]
|
2192
|
+
#
|
2193
|
+
# @!attribute [rw] next_token
|
2194
|
+
# If there are additional results, this is the token for the next set
|
2195
|
+
# of results.
|
2196
|
+
# @return [String]
|
2197
|
+
#
|
2198
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListPackagesResult AWS API Documentation
|
2199
|
+
#
|
2200
|
+
class ListPackagesResult < Struct.new(
|
2201
|
+
:packages,
|
2202
|
+
:next_token)
|
2203
|
+
include Aws::Structure
|
2204
|
+
end
|
2205
|
+
|
2206
|
+
# @note When making an API call, you may pass ListRepositoriesInDomainRequest
|
2207
|
+
# data as a hash:
|
2208
|
+
#
|
2209
|
+
# {
|
2210
|
+
# domain: "DomainName", # required
|
2211
|
+
# domain_owner: "AccountId",
|
2212
|
+
# administrator_account: "AccountId",
|
2213
|
+
# repository_prefix: "RepositoryName",
|
2214
|
+
# max_results: 1,
|
2215
|
+
# next_token: "PaginationToken",
|
2216
|
+
# }
|
2217
|
+
#
|
2218
|
+
# @!attribute [rw] domain
|
2219
|
+
# The name of the domain that contains the returned list of
|
2220
|
+
# repositories.
|
2221
|
+
# @return [String]
|
2222
|
+
#
|
2223
|
+
# @!attribute [rw] domain_owner
|
2224
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
2225
|
+
# It does not include dashes or spaces.
|
2226
|
+
# @return [String]
|
2227
|
+
#
|
2228
|
+
# @!attribute [rw] administrator_account
|
2229
|
+
# Filter the list of repositories to only include those that are
|
2230
|
+
# managed by the AWS account ID.
|
2231
|
+
# @return [String]
|
2232
|
+
#
|
2233
|
+
# @!attribute [rw] repository_prefix
|
2234
|
+
# A prefix used to filter returned repositories. Only repositories
|
2235
|
+
# with names that start with `repositoryPrefix` are returned.
|
2236
|
+
# @return [String]
|
2237
|
+
#
|
2238
|
+
# @!attribute [rw] max_results
|
2239
|
+
# The maximum number of results to return per page.
|
2240
|
+
# @return [Integer]
|
2241
|
+
#
|
2242
|
+
# @!attribute [rw] next_token
|
2243
|
+
# The token for the next set of results. Use the value returned in the
|
2244
|
+
# previous response in the next request to retrieve the next set of
|
2245
|
+
# results.
|
2246
|
+
# @return [String]
|
2247
|
+
#
|
2248
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositoriesInDomainRequest AWS API Documentation
|
2249
|
+
#
|
2250
|
+
class ListRepositoriesInDomainRequest < Struct.new(
|
2251
|
+
:domain,
|
2252
|
+
:domain_owner,
|
2253
|
+
:administrator_account,
|
2254
|
+
:repository_prefix,
|
2255
|
+
:max_results,
|
2256
|
+
:next_token)
|
2257
|
+
include Aws::Structure
|
2258
|
+
end
|
2259
|
+
|
2260
|
+
# @!attribute [rw] repositories
|
2261
|
+
# The returned list of repositories.
|
2262
|
+
# @return [Array<Types::RepositorySummary>]
|
2263
|
+
#
|
2264
|
+
# @!attribute [rw] next_token
|
2265
|
+
# If there are additional results, this is the token for the next set
|
2266
|
+
# of results.
|
2267
|
+
# @return [String]
|
2268
|
+
#
|
2269
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositoriesInDomainResult AWS API Documentation
|
2270
|
+
#
|
2271
|
+
class ListRepositoriesInDomainResult < Struct.new(
|
2272
|
+
:repositories,
|
2273
|
+
:next_token)
|
2274
|
+
include Aws::Structure
|
2275
|
+
end
|
2276
|
+
|
2277
|
+
# @note When making an API call, you may pass ListRepositoriesRequest
|
2278
|
+
# data as a hash:
|
2279
|
+
#
|
2280
|
+
# {
|
2281
|
+
# repository_prefix: "RepositoryName",
|
2282
|
+
# max_results: 1,
|
2283
|
+
# next_token: "PaginationToken",
|
2284
|
+
# }
|
2285
|
+
#
|
2286
|
+
# @!attribute [rw] repository_prefix
|
2287
|
+
# A prefix used to filter returned repositories. Only repositories
|
2288
|
+
# with names that start with `repositoryPrefix` are returned.
|
2289
|
+
# @return [String]
|
2290
|
+
#
|
2291
|
+
# @!attribute [rw] max_results
|
2292
|
+
# The maximum number of results to return per page.
|
2293
|
+
# @return [Integer]
|
2294
|
+
#
|
2295
|
+
# @!attribute [rw] next_token
|
2296
|
+
# The token for the next set of results. Use the value returned in the
|
2297
|
+
# previous response in the next request to retrieve the next set of
|
2298
|
+
# results.
|
2299
|
+
# @return [String]
|
2300
|
+
#
|
2301
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositoriesRequest AWS API Documentation
|
2302
|
+
#
|
2303
|
+
class ListRepositoriesRequest < Struct.new(
|
2304
|
+
:repository_prefix,
|
2305
|
+
:max_results,
|
2306
|
+
:next_token)
|
2307
|
+
include Aws::Structure
|
2308
|
+
end
|
2309
|
+
|
2310
|
+
# @!attribute [rw] repositories
|
2311
|
+
# The returned list of [ `RepositorySummary` ][1] objects.
|
2312
|
+
#
|
2313
|
+
#
|
2314
|
+
#
|
2315
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html
|
2316
|
+
# @return [Array<Types::RepositorySummary>]
|
2317
|
+
#
|
2318
|
+
# @!attribute [rw] next_token
|
2319
|
+
# If there are additional results, this is the token for the next set
|
2320
|
+
# of results.
|
2321
|
+
# @return [String]
|
2322
|
+
#
|
2323
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositoriesResult AWS API Documentation
|
2324
|
+
#
|
2325
|
+
class ListRepositoriesResult < Struct.new(
|
2326
|
+
:repositories,
|
2327
|
+
:next_token)
|
2328
|
+
include Aws::Structure
|
2329
|
+
end
|
2330
|
+
|
2331
|
+
# Details about a package dependency.
|
2332
|
+
#
|
2333
|
+
# @!attribute [rw] namespace
|
2334
|
+
# The namespace of the package. The package component that specifies
|
2335
|
+
# its namespace depends on its type. For example:
|
2336
|
+
#
|
2337
|
+
# * The namespace of a Maven package is its `groupId`.
|
2338
|
+
#
|
2339
|
+
# * The namespace of an npm package is its `scope`.
|
2340
|
+
#
|
2341
|
+
# * A Python package does not contain a corresponding component, so
|
2342
|
+
# Python packages do not have a namespace.
|
2343
|
+
# @return [String]
|
2344
|
+
#
|
2345
|
+
# @!attribute [rw] package
|
2346
|
+
# The name of the package that this package depends on.
|
2347
|
+
# @return [String]
|
2348
|
+
#
|
2349
|
+
# @!attribute [rw] dependency_type
|
2350
|
+
# The type of a package dependency. The possible values depend on the
|
2351
|
+
# package type. Example types are `compile`, `runtime`, and `test` for
|
2352
|
+
# Maven packages, and `dev`, `prod`, and `optional` for npm packages.
|
2353
|
+
# @return [String]
|
2354
|
+
#
|
2355
|
+
# @!attribute [rw] version_requirement
|
2356
|
+
# The required version, or version range, of the package that this
|
2357
|
+
# package depends on. The version format is specific to the package
|
2358
|
+
# type. For example, the following are possible valid required
|
2359
|
+
# versions: `1.2.3`, `^2.3.4`, or `4.x`.
|
2360
|
+
# @return [String]
|
2361
|
+
#
|
2362
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PackageDependency AWS API Documentation
|
2363
|
+
#
|
2364
|
+
class PackageDependency < Struct.new(
|
2365
|
+
:namespace,
|
2366
|
+
:package,
|
2367
|
+
:dependency_type,
|
2368
|
+
:version_requirement)
|
2369
|
+
include Aws::Structure
|
2370
|
+
end
|
2371
|
+
|
2372
|
+
# Details about a package, including its format, namespace, and name.
|
2373
|
+
# The [ `ListPackages` ][1] operation returns a list of `PackageSummary`
|
2374
|
+
# objects.
|
2375
|
+
#
|
2376
|
+
#
|
2377
|
+
#
|
2378
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackages.html
|
2379
|
+
#
|
2380
|
+
# @!attribute [rw] format
|
2381
|
+
# The format of the package. Valid values are:
|
2382
|
+
#
|
2383
|
+
# * `npm`
|
2384
|
+
#
|
2385
|
+
# * `pypi`
|
2386
|
+
#
|
2387
|
+
# * `maven`
|
2388
|
+
# @return [String]
|
2389
|
+
#
|
2390
|
+
# @!attribute [rw] namespace
|
2391
|
+
# The namespace of the package. The package component that specifies
|
2392
|
+
# its namespace depends on its type. For example:
|
2393
|
+
#
|
2394
|
+
# * The namespace of a Maven package is its `groupId`.
|
2395
|
+
#
|
2396
|
+
# * The namespace of an npm package is its `scope`.
|
2397
|
+
#
|
2398
|
+
# * A Python package does not contain a corresponding component, so
|
2399
|
+
# Python packages do not have a namespace.
|
2400
|
+
# @return [String]
|
2401
|
+
#
|
2402
|
+
# @!attribute [rw] package
|
2403
|
+
# The name of the package.
|
2404
|
+
# @return [String]
|
2405
|
+
#
|
2406
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PackageSummary AWS API Documentation
|
2407
|
+
#
|
2408
|
+
class PackageSummary < Struct.new(
|
2409
|
+
:format,
|
2410
|
+
:namespace,
|
2411
|
+
:package)
|
2412
|
+
include Aws::Structure
|
2413
|
+
end
|
2414
|
+
|
2415
|
+
# Details about a package version.
|
2416
|
+
#
|
2417
|
+
# @!attribute [rw] format
|
2418
|
+
# The format of the package version. The valid package formats are:
|
2419
|
+
#
|
2420
|
+
# * `npm`\: A Node Package Manager (npm) package.
|
2421
|
+
#
|
2422
|
+
# * `pypi`\: A Python Package Index (PyPI) package.
|
2423
|
+
#
|
2424
|
+
# * `maven`\: A Maven package that contains compiled code in a
|
2425
|
+
# distributable format, such as a JAR file.
|
2426
|
+
# @return [String]
|
2427
|
+
#
|
2428
|
+
# @!attribute [rw] namespace
|
2429
|
+
# The namespace of the package. The package component that specifies
|
2430
|
+
# its namespace depends on its type. For example:
|
2431
|
+
#
|
2432
|
+
# * The namespace of a Maven package is its `groupId`.
|
2433
|
+
#
|
2434
|
+
# * The namespace of an npm package is its `scope`.
|
2435
|
+
#
|
2436
|
+
# * A Python package does not contain a corresponding component, so
|
2437
|
+
# Python packages do not have a namespace.
|
2438
|
+
# @return [String]
|
2439
|
+
#
|
2440
|
+
# @!attribute [rw] package_name
|
2441
|
+
# The name of the requested package.
|
2442
|
+
# @return [String]
|
2443
|
+
#
|
2444
|
+
# @!attribute [rw] display_name
|
2445
|
+
# The name of the package that is displayed. The `displayName` varies
|
2446
|
+
# depending on the package version's format. For example, if an npm
|
2447
|
+
# package is named `ui`, is in the namespace `vue`, and has the format
|
2448
|
+
# `npm`, then the `displayName` is `@vue/ui`.
|
2449
|
+
# @return [String]
|
2450
|
+
#
|
2451
|
+
# @!attribute [rw] version
|
2452
|
+
# The version of the package.
|
2453
|
+
# @return [String]
|
2454
|
+
#
|
2455
|
+
# @!attribute [rw] summary
|
2456
|
+
# A summary of the package version. The summary is extracted from the
|
2457
|
+
# package. The information in and detail level of the summary depends
|
2458
|
+
# on the package version's format.
|
2459
|
+
# @return [String]
|
2460
|
+
#
|
2461
|
+
# @!attribute [rw] home_page
|
2462
|
+
# The homepage associated with the package.
|
2463
|
+
# @return [String]
|
2464
|
+
#
|
2465
|
+
# @!attribute [rw] source_code_repository
|
2466
|
+
# The repository for the source code in the package version, or the
|
2467
|
+
# source code used to build it.
|
2468
|
+
# @return [String]
|
2469
|
+
#
|
2470
|
+
# @!attribute [rw] published_time
|
2471
|
+
# A timestamp that contains the date and time the package version was
|
2472
|
+
# published.
|
2473
|
+
# @return [Time]
|
2474
|
+
#
|
2475
|
+
# @!attribute [rw] licenses
|
2476
|
+
# Information about licenses associated with the package version.
|
2477
|
+
# @return [Array<Types::LicenseInfo>]
|
2478
|
+
#
|
2479
|
+
# @!attribute [rw] revision
|
2480
|
+
# The revision of the package version.
|
2481
|
+
# @return [String]
|
2482
|
+
#
|
2483
|
+
# @!attribute [rw] status
|
2484
|
+
# A string that contains the status of the package version. It can be
|
2485
|
+
# one of the following:
|
2486
|
+
#
|
2487
|
+
# * `Published`
|
2488
|
+
#
|
2489
|
+
# * `Unfinished`
|
2490
|
+
#
|
2491
|
+
# * `Unlisted`
|
2492
|
+
#
|
2493
|
+
# * `Archived`
|
2494
|
+
#
|
2495
|
+
# * `Disposed`
|
2496
|
+
# @return [String]
|
2497
|
+
#
|
2498
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PackageVersionDescription AWS API Documentation
|
2499
|
+
#
|
2500
|
+
class PackageVersionDescription < Struct.new(
|
2501
|
+
:format,
|
2502
|
+
:namespace,
|
2503
|
+
:package_name,
|
2504
|
+
:display_name,
|
2505
|
+
:version,
|
2506
|
+
:summary,
|
2507
|
+
:home_page,
|
2508
|
+
:source_code_repository,
|
2509
|
+
:published_time,
|
2510
|
+
:licenses,
|
2511
|
+
:revision,
|
2512
|
+
:status)
|
2513
|
+
include Aws::Structure
|
2514
|
+
end
|
2515
|
+
|
2516
|
+
# An error associated with package.
|
2517
|
+
#
|
2518
|
+
# @!attribute [rw] error_code
|
2519
|
+
# The error code associated with the error. Valid error codes are:
|
2520
|
+
#
|
2521
|
+
# * `ALREADY_EXISTS`
|
2522
|
+
#
|
2523
|
+
# * `MISMATCHED_REVISION`
|
2524
|
+
#
|
2525
|
+
# * `MISMATCHED_STATUS`
|
2526
|
+
#
|
2527
|
+
# * `NOT_ALLOWED`
|
2528
|
+
#
|
2529
|
+
# * `NOT_FOUND`
|
2530
|
+
#
|
2531
|
+
# * `SKIPPED`
|
2532
|
+
# @return [String]
|
2533
|
+
#
|
2534
|
+
# @!attribute [rw] error_message
|
2535
|
+
# The error message associated with the error.
|
2536
|
+
# @return [String]
|
2537
|
+
#
|
2538
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PackageVersionError AWS API Documentation
|
2539
|
+
#
|
2540
|
+
class PackageVersionError < Struct.new(
|
2541
|
+
:error_code,
|
2542
|
+
:error_message)
|
2543
|
+
include Aws::Structure
|
2544
|
+
end
|
2545
|
+
|
2546
|
+
# Details about a package version, including its status, version, and
|
2547
|
+
# revision. The [ `ListPackageVersions` ][1] operation returns a list of
|
2548
|
+
# `PackageVersionSummary` objects.
|
2549
|
+
#
|
2550
|
+
#
|
2551
|
+
#
|
2552
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html
|
2553
|
+
#
|
2554
|
+
# @!attribute [rw] version
|
2555
|
+
# Information about a package version.
|
2556
|
+
# @return [String]
|
2557
|
+
#
|
2558
|
+
# @!attribute [rw] revision
|
2559
|
+
# The revision associated with a package version.
|
2560
|
+
# @return [String]
|
2561
|
+
#
|
2562
|
+
# @!attribute [rw] status
|
2563
|
+
# A string that contains the status of the package version. It can be
|
2564
|
+
# one of the following:
|
2565
|
+
#
|
2566
|
+
# * `Published`
|
2567
|
+
#
|
2568
|
+
# * `Unfinished`
|
2569
|
+
#
|
2570
|
+
# * `Unlisted`
|
2571
|
+
#
|
2572
|
+
# * `Archived`
|
2573
|
+
#
|
2574
|
+
# * `Disposed`
|
2575
|
+
# @return [String]
|
2576
|
+
#
|
2577
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PackageVersionSummary AWS API Documentation
|
2578
|
+
#
|
2579
|
+
class PackageVersionSummary < Struct.new(
|
2580
|
+
:version,
|
2581
|
+
:revision,
|
2582
|
+
:status)
|
2583
|
+
include Aws::Structure
|
2584
|
+
end
|
2585
|
+
|
2586
|
+
# @note When making an API call, you may pass PutDomainPermissionsPolicyRequest
|
2587
|
+
# data as a hash:
|
2588
|
+
#
|
2589
|
+
# {
|
2590
|
+
# domain: "DomainName", # required
|
2591
|
+
# domain_owner: "AccountId",
|
2592
|
+
# policy_revision: "PolicyRevision",
|
2593
|
+
# policy_document: "PolicyDocument", # required
|
2594
|
+
# }
|
2595
|
+
#
|
2596
|
+
# @!attribute [rw] domain
|
2597
|
+
# The name of the domain on which to set the resource policy.
|
2598
|
+
# @return [String]
|
2599
|
+
#
|
2600
|
+
# @!attribute [rw] domain_owner
|
2601
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
2602
|
+
# It does not include dashes or spaces.
|
2603
|
+
# @return [String]
|
2604
|
+
#
|
2605
|
+
# @!attribute [rw] policy_revision
|
2606
|
+
# The current revision of the resource policy to be set. This revision
|
2607
|
+
# is used for optimistic locking, which prevents others from
|
2608
|
+
# overwriting your changes to the domain's resource policy.
|
2609
|
+
# @return [String]
|
2610
|
+
#
|
2611
|
+
# @!attribute [rw] policy_document
|
2612
|
+
# A valid displayable JSON Aspen policy string to be set as the access
|
2613
|
+
# control resource policy on the provided domain.
|
2614
|
+
# @return [String]
|
2615
|
+
#
|
2616
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutDomainPermissionsPolicyRequest AWS API Documentation
|
2617
|
+
#
|
2618
|
+
class PutDomainPermissionsPolicyRequest < Struct.new(
|
2619
|
+
:domain,
|
2620
|
+
:domain_owner,
|
2621
|
+
:policy_revision,
|
2622
|
+
:policy_document)
|
2623
|
+
include Aws::Structure
|
2624
|
+
end
|
2625
|
+
|
2626
|
+
# @!attribute [rw] policy
|
2627
|
+
# The resource policy that was set after processing the request.
|
2628
|
+
# @return [Types::ResourcePolicy]
|
2629
|
+
#
|
2630
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutDomainPermissionsPolicyResult AWS API Documentation
|
2631
|
+
#
|
2632
|
+
class PutDomainPermissionsPolicyResult < Struct.new(
|
2633
|
+
:policy)
|
2634
|
+
include Aws::Structure
|
2635
|
+
end
|
2636
|
+
|
2637
|
+
# @note When making an API call, you may pass PutRepositoryPermissionsPolicyRequest
|
2638
|
+
# data as a hash:
|
2639
|
+
#
|
2640
|
+
# {
|
2641
|
+
# domain: "DomainName", # required
|
2642
|
+
# domain_owner: "AccountId",
|
2643
|
+
# repository: "RepositoryName", # required
|
2644
|
+
# policy_revision: "PolicyRevision",
|
2645
|
+
# policy_document: "PolicyDocument", # required
|
2646
|
+
# }
|
2647
|
+
#
|
2648
|
+
# @!attribute [rw] domain
|
2649
|
+
# The name of the domain containing the repository to set the resource
|
2650
|
+
# policy on.
|
2651
|
+
# @return [String]
|
2652
|
+
#
|
2653
|
+
# @!attribute [rw] domain_owner
|
2654
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
2655
|
+
# It does not include dashes or spaces.
|
2656
|
+
# @return [String]
|
2657
|
+
#
|
2658
|
+
# @!attribute [rw] repository
|
2659
|
+
# The name of the repository to set the resource policy on.
|
2660
|
+
# @return [String]
|
2661
|
+
#
|
2662
|
+
# @!attribute [rw] policy_revision
|
2663
|
+
# Sets the revision of the resource policy that specifies permissions
|
2664
|
+
# to access the repository. This revision is used for optimistic
|
2665
|
+
# locking, which prevents others from overwriting your changes to the
|
2666
|
+
# repository's resource policy.
|
2667
|
+
# @return [String]
|
2668
|
+
#
|
2669
|
+
# @!attribute [rw] policy_document
|
2670
|
+
# A valid displayable JSON Aspen policy string to be set as the access
|
2671
|
+
# control resource policy on the provided repository.
|
2672
|
+
# @return [String]
|
2673
|
+
#
|
2674
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutRepositoryPermissionsPolicyRequest AWS API Documentation
|
2675
|
+
#
|
2676
|
+
class PutRepositoryPermissionsPolicyRequest < Struct.new(
|
2677
|
+
:domain,
|
2678
|
+
:domain_owner,
|
2679
|
+
:repository,
|
2680
|
+
:policy_revision,
|
2681
|
+
:policy_document)
|
2682
|
+
include Aws::Structure
|
2683
|
+
end
|
2684
|
+
|
2685
|
+
# @!attribute [rw] policy
|
2686
|
+
# The resource policy that was set after processing the request.
|
2687
|
+
# @return [Types::ResourcePolicy]
|
2688
|
+
#
|
2689
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PutRepositoryPermissionsPolicyResult AWS API Documentation
|
2690
|
+
#
|
2691
|
+
class PutRepositoryPermissionsPolicyResult < Struct.new(
|
2692
|
+
:policy)
|
2693
|
+
include Aws::Structure
|
2694
|
+
end
|
2695
|
+
|
2696
|
+
# The details of a repository stored in AWS CodeArtifact. A CodeArtifact
|
2697
|
+
# repository contains a set of package versions, each of which maps to a
|
2698
|
+
# set of assets. Repositories are polyglot—a single repository can
|
2699
|
+
# contain packages of any supported type. Each repository exposes
|
2700
|
+
# endpoints for fetching and publishing packages using tools like the
|
2701
|
+
# `npm` CLI, the Maven CLI (`mvn`), and `pip`. You can create up to 100
|
2702
|
+
# repositories per AWS account.
|
2703
|
+
#
|
2704
|
+
# @!attribute [rw] name
|
2705
|
+
# The name of the repository.
|
2706
|
+
# @return [String]
|
2707
|
+
#
|
2708
|
+
# @!attribute [rw] administrator_account
|
2709
|
+
# The 12-digit account number of the AWS account that manages the
|
2710
|
+
# repository.
|
2711
|
+
# @return [String]
|
2712
|
+
#
|
2713
|
+
# @!attribute [rw] domain_name
|
2714
|
+
# The name of the domain that contains the repository.
|
2715
|
+
# @return [String]
|
2716
|
+
#
|
2717
|
+
# @!attribute [rw] domain_owner
|
2718
|
+
# The 12-digit account number of the AWS account that owns the domain
|
2719
|
+
# that contains the repository. It does not include dashes or spaces.
|
2720
|
+
# @return [String]
|
2721
|
+
#
|
2722
|
+
# @!attribute [rw] arn
|
2723
|
+
# The Amazon Resource Name (ARN) of the repository.
|
2724
|
+
# @return [String]
|
2725
|
+
#
|
2726
|
+
# @!attribute [rw] description
|
2727
|
+
# A text description of the repository.
|
2728
|
+
# @return [String]
|
2729
|
+
#
|
2730
|
+
# @!attribute [rw] upstreams
|
2731
|
+
# A list of upstream repositories to associate with the repository.
|
2732
|
+
# The order of the upstream repositories in the list determines their
|
2733
|
+
# priority order when AWS CodeArtifact looks for a requested package
|
2734
|
+
# version. For more information, see [Working with upstream
|
2735
|
+
# repositories][1].
|
2736
|
+
#
|
2737
|
+
#
|
2738
|
+
#
|
2739
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html
|
2740
|
+
# @return [Array<Types::UpstreamRepositoryInfo>]
|
2741
|
+
#
|
2742
|
+
# @!attribute [rw] external_connections
|
2743
|
+
# An array of external connections associated with the repository.
|
2744
|
+
# @return [Array<Types::RepositoryExternalConnectionInfo>]
|
2745
|
+
#
|
2746
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/RepositoryDescription AWS API Documentation
|
2747
|
+
#
|
2748
|
+
class RepositoryDescription < Struct.new(
|
2749
|
+
:name,
|
2750
|
+
:administrator_account,
|
2751
|
+
:domain_name,
|
2752
|
+
:domain_owner,
|
2753
|
+
:arn,
|
2754
|
+
:description,
|
2755
|
+
:upstreams,
|
2756
|
+
:external_connections)
|
2757
|
+
include Aws::Structure
|
2758
|
+
end
|
2759
|
+
|
2760
|
+
# Contains information about the external connection of a repository.
|
2761
|
+
#
|
2762
|
+
# @!attribute [rw] external_connection_name
|
2763
|
+
# The name of the external connection associated with a repository.
|
2764
|
+
# @return [String]
|
2765
|
+
#
|
2766
|
+
# @!attribute [rw] package_format
|
2767
|
+
# The package format associated with a repository's external
|
2768
|
+
# connection. The valid package formats are:
|
2769
|
+
#
|
2770
|
+
# * `npm`\: A Node Package Manager (npm) package.
|
2771
|
+
#
|
2772
|
+
# * `pypi`\: A Python Package Index (PyPI) package.
|
2773
|
+
#
|
2774
|
+
# * `maven`\: A Maven package that contains compiled code in a
|
2775
|
+
# distributable format, such as a JAR file.
|
2776
|
+
# @return [String]
|
2777
|
+
#
|
2778
|
+
# @!attribute [rw] status
|
2779
|
+
# The status of the external connection of a repository. There is one
|
2780
|
+
# valid value, `Available`.
|
2781
|
+
# @return [String]
|
2782
|
+
#
|
2783
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/RepositoryExternalConnectionInfo AWS API Documentation
|
2784
|
+
#
|
2785
|
+
class RepositoryExternalConnectionInfo < Struct.new(
|
2786
|
+
:external_connection_name,
|
2787
|
+
:package_format,
|
2788
|
+
:status)
|
2789
|
+
include Aws::Structure
|
2790
|
+
end
|
2791
|
+
|
2792
|
+
# Details about a repository, including its Amazon Resource Name (ARN),
|
2793
|
+
# description, and domain information. The [ `ListRepositories` ][1]
|
2794
|
+
# operation returns a list of `RepositorySummary` objects.
|
2795
|
+
#
|
2796
|
+
#
|
2797
|
+
#
|
2798
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListRepositories.html
|
2799
|
+
#
|
2800
|
+
# @!attribute [rw] name
|
2801
|
+
# The name of the repository.
|
2802
|
+
# @return [String]
|
2803
|
+
#
|
2804
|
+
# @!attribute [rw] administrator_account
|
2805
|
+
# The AWS account ID that manages the repository.
|
2806
|
+
# @return [String]
|
2807
|
+
#
|
2808
|
+
# @!attribute [rw] domain_name
|
2809
|
+
# The name of the domain that contains the repository.
|
2810
|
+
# @return [String]
|
2811
|
+
#
|
2812
|
+
# @!attribute [rw] domain_owner
|
2813
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
2814
|
+
# It does not include dashes or spaces.
|
2815
|
+
# @return [String]
|
2816
|
+
#
|
2817
|
+
# @!attribute [rw] arn
|
2818
|
+
# The ARN of the repository.
|
2819
|
+
# @return [String]
|
2820
|
+
#
|
2821
|
+
# @!attribute [rw] description
|
2822
|
+
# The description of the repository.
|
2823
|
+
# @return [String]
|
2824
|
+
#
|
2825
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/RepositorySummary AWS API Documentation
|
2826
|
+
#
|
2827
|
+
class RepositorySummary < Struct.new(
|
2828
|
+
:name,
|
2829
|
+
:administrator_account,
|
2830
|
+
:domain_name,
|
2831
|
+
:domain_owner,
|
2832
|
+
:arn,
|
2833
|
+
:description)
|
2834
|
+
include Aws::Structure
|
2835
|
+
end
|
2836
|
+
|
2837
|
+
# The operation did not succeed because the resource requested is not
|
2838
|
+
# found in the service.
|
2839
|
+
#
|
2840
|
+
# @!attribute [rw] message
|
2841
|
+
# @return [String]
|
2842
|
+
#
|
2843
|
+
# @!attribute [rw] resource_id
|
2844
|
+
# The ID of the resource.
|
2845
|
+
# @return [String]
|
2846
|
+
#
|
2847
|
+
# @!attribute [rw] resource_type
|
2848
|
+
# The type of AWS resource.
|
2849
|
+
# @return [String]
|
2850
|
+
#
|
2851
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ResourceNotFoundException AWS API Documentation
|
2852
|
+
#
|
2853
|
+
class ResourceNotFoundException < Struct.new(
|
2854
|
+
:message,
|
2855
|
+
:resource_id,
|
2856
|
+
:resource_type)
|
2857
|
+
include Aws::Structure
|
2858
|
+
end
|
2859
|
+
|
2860
|
+
# An AWS CodeArtifact resource policy that contains a resource ARN,
|
2861
|
+
# document details, and a revision.
|
2862
|
+
#
|
2863
|
+
# @!attribute [rw] resource_arn
|
2864
|
+
# The ARN of the resource associated with the resource policy
|
2865
|
+
# @return [String]
|
2866
|
+
#
|
2867
|
+
# @!attribute [rw] revision
|
2868
|
+
# The current revision of the resource policy.
|
2869
|
+
# @return [String]
|
2870
|
+
#
|
2871
|
+
# @!attribute [rw] document
|
2872
|
+
# The resource policy formatted in JSON.
|
2873
|
+
# @return [String]
|
2874
|
+
#
|
2875
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ResourcePolicy AWS API Documentation
|
2876
|
+
#
|
2877
|
+
class ResourcePolicy < Struct.new(
|
2878
|
+
:resource_arn,
|
2879
|
+
:revision,
|
2880
|
+
:document)
|
2881
|
+
include Aws::Structure
|
2882
|
+
end
|
2883
|
+
|
2884
|
+
# The operation did not succeed because it would have exceeded a service
|
2885
|
+
# limit for your account.
|
2886
|
+
#
|
2887
|
+
# @!attribute [rw] message
|
2888
|
+
# @return [String]
|
2889
|
+
#
|
2890
|
+
# @!attribute [rw] resource_id
|
2891
|
+
# The ID of the resource.
|
2892
|
+
# @return [String]
|
2893
|
+
#
|
2894
|
+
# @!attribute [rw] resource_type
|
2895
|
+
# The type of AWS resource.
|
2896
|
+
# @return [String]
|
2897
|
+
#
|
2898
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ServiceQuotaExceededException AWS API Documentation
|
2899
|
+
#
|
2900
|
+
class ServiceQuotaExceededException < Struct.new(
|
2901
|
+
:message,
|
2902
|
+
:resource_id,
|
2903
|
+
:resource_type)
|
2904
|
+
include Aws::Structure
|
2905
|
+
end
|
2906
|
+
|
2907
|
+
# Contains the revision and status of a package version.
|
2908
|
+
#
|
2909
|
+
# @!attribute [rw] revision
|
2910
|
+
# The revision of a package version.
|
2911
|
+
# @return [String]
|
2912
|
+
#
|
2913
|
+
# @!attribute [rw] status
|
2914
|
+
# The status of a package version. Valid statuses are:
|
2915
|
+
#
|
2916
|
+
# * `Published`
|
2917
|
+
#
|
2918
|
+
# * `Unfinished`
|
2919
|
+
#
|
2920
|
+
# * `Unlisted`
|
2921
|
+
#
|
2922
|
+
# * `Archived`
|
2923
|
+
#
|
2924
|
+
# * `Disposed`
|
2925
|
+
# @return [String]
|
2926
|
+
#
|
2927
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/SuccessfulPackageVersionInfo AWS API Documentation
|
2928
|
+
#
|
2929
|
+
class SuccessfulPackageVersionInfo < Struct.new(
|
2930
|
+
:revision,
|
2931
|
+
:status)
|
2932
|
+
include Aws::Structure
|
2933
|
+
end
|
2934
|
+
|
2935
|
+
# The operation did not succeed because too many requests are sent to
|
2936
|
+
# the service.
|
2937
|
+
#
|
2938
|
+
# @!attribute [rw] message
|
2939
|
+
# @return [String]
|
2940
|
+
#
|
2941
|
+
# @!attribute [rw] retry_after_seconds
|
2942
|
+
# The time period, in seconds, to wait before retrying the request.
|
2943
|
+
# @return [Integer]
|
2944
|
+
#
|
2945
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ThrottlingException AWS API Documentation
|
2946
|
+
#
|
2947
|
+
class ThrottlingException < Struct.new(
|
2948
|
+
:message,
|
2949
|
+
:retry_after_seconds)
|
2950
|
+
include Aws::Structure
|
2951
|
+
end
|
2952
|
+
|
2953
|
+
# @note When making an API call, you may pass UpdatePackageVersionsStatusRequest
|
2954
|
+
# data as a hash:
|
2955
|
+
#
|
2956
|
+
# {
|
2957
|
+
# domain: "DomainName", # required
|
2958
|
+
# domain_owner: "AccountId",
|
2959
|
+
# repository: "RepositoryName", # required
|
2960
|
+
# format: "npm", # required, accepts npm, pypi, maven
|
2961
|
+
# namespace: "PackageNamespace",
|
2962
|
+
# package: "PackageName", # required
|
2963
|
+
# versions: ["PackageVersion"], # required
|
2964
|
+
# version_revisions: {
|
2965
|
+
# "PackageVersion" => "PackageVersionRevision",
|
2966
|
+
# },
|
2967
|
+
# expected_status: "Published", # accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
|
2968
|
+
# target_status: "Published", # required, accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
|
2969
|
+
# }
|
2970
|
+
#
|
2971
|
+
# @!attribute [rw] domain
|
2972
|
+
# The domain that contains the repository that contains the package
|
2973
|
+
# versions with a status to be updated.
|
2974
|
+
# @return [String]
|
2975
|
+
#
|
2976
|
+
# @!attribute [rw] domain_owner
|
2977
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
2978
|
+
# It does not include dashes or spaces.
|
2979
|
+
# @return [String]
|
2980
|
+
#
|
2981
|
+
# @!attribute [rw] repository
|
2982
|
+
# The repository that contains the package versions with the status
|
2983
|
+
# you want to update.
|
2984
|
+
# @return [String]
|
2985
|
+
#
|
2986
|
+
# @!attribute [rw] format
|
2987
|
+
# A format that specifies the type of the package with the statuses to
|
2988
|
+
# update. The valid values are:
|
2989
|
+
#
|
2990
|
+
# * `npm`
|
2991
|
+
#
|
2992
|
+
# * `pypi`
|
2993
|
+
#
|
2994
|
+
# * `maven`
|
2995
|
+
# @return [String]
|
2996
|
+
#
|
2997
|
+
# @!attribute [rw] namespace
|
2998
|
+
# The namespace of the package. The package component that specifies
|
2999
|
+
# its namespace depends on its type. For example:
|
3000
|
+
#
|
3001
|
+
# * The namespace of a Maven package is its `groupId`.
|
3002
|
+
#
|
3003
|
+
# * The namespace of an npm package is its `scope`.
|
3004
|
+
#
|
3005
|
+
# * A Python package does not contain a corresponding component, so
|
3006
|
+
# Python packages do not have a namespace.
|
3007
|
+
# @return [String]
|
3008
|
+
#
|
3009
|
+
# @!attribute [rw] package
|
3010
|
+
# The name of the package with the version statuses to update.
|
3011
|
+
# @return [String]
|
3012
|
+
#
|
3013
|
+
# @!attribute [rw] versions
|
3014
|
+
# An array of strings that specify the versions of the package with
|
3015
|
+
# the statuses to update.
|
3016
|
+
# @return [Array<String>]
|
3017
|
+
#
|
3018
|
+
# @!attribute [rw] version_revisions
|
3019
|
+
# A map of package versions and package version revisions. The map
|
3020
|
+
# `key` is the package version (for example, `3.5.2`), and the map
|
3021
|
+
# `value` is the package version revision.
|
3022
|
+
# @return [Hash<String,String>]
|
3023
|
+
#
|
3024
|
+
# @!attribute [rw] expected_status
|
3025
|
+
# The package version’s expected status before it is updated. If
|
3026
|
+
# `expectedStatus` is provided, the package version's status is
|
3027
|
+
# updated only if its status at the time `UpdatePackageVersionsStatus`
|
3028
|
+
# is called matches `expectedStatus`.
|
3029
|
+
# @return [String]
|
3030
|
+
#
|
3031
|
+
# @!attribute [rw] target_status
|
3032
|
+
# The status you want to change the package version status to.
|
3033
|
+
# @return [String]
|
3034
|
+
#
|
3035
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdatePackageVersionsStatusRequest AWS API Documentation
|
3036
|
+
#
|
3037
|
+
class UpdatePackageVersionsStatusRequest < Struct.new(
|
3038
|
+
:domain,
|
3039
|
+
:domain_owner,
|
3040
|
+
:repository,
|
3041
|
+
:format,
|
3042
|
+
:namespace,
|
3043
|
+
:package,
|
3044
|
+
:versions,
|
3045
|
+
:version_revisions,
|
3046
|
+
:expected_status,
|
3047
|
+
:target_status)
|
3048
|
+
include Aws::Structure
|
3049
|
+
end
|
3050
|
+
|
3051
|
+
# @!attribute [rw] successful_versions
|
3052
|
+
# A list of `PackageVersionError` objects, one for each package
|
3053
|
+
# version with a status that failed to update.
|
3054
|
+
# @return [Hash<String,Types::SuccessfulPackageVersionInfo>]
|
3055
|
+
#
|
3056
|
+
# @!attribute [rw] failed_versions
|
3057
|
+
# A list of `SuccessfulPackageVersionInfo` objects, one for each
|
3058
|
+
# package version with a status that successfully updated.
|
3059
|
+
# @return [Hash<String,Types::PackageVersionError>]
|
3060
|
+
#
|
3061
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdatePackageVersionsStatusResult AWS API Documentation
|
3062
|
+
#
|
3063
|
+
class UpdatePackageVersionsStatusResult < Struct.new(
|
3064
|
+
:successful_versions,
|
3065
|
+
:failed_versions)
|
3066
|
+
include Aws::Structure
|
3067
|
+
end
|
3068
|
+
|
3069
|
+
# @note When making an API call, you may pass UpdateRepositoryRequest
|
3070
|
+
# data as a hash:
|
3071
|
+
#
|
3072
|
+
# {
|
3073
|
+
# domain: "DomainName", # required
|
3074
|
+
# domain_owner: "AccountId",
|
3075
|
+
# repository: "RepositoryName", # required
|
3076
|
+
# description: "Description",
|
3077
|
+
# upstreams: [
|
3078
|
+
# {
|
3079
|
+
# repository_name: "RepositoryName", # required
|
3080
|
+
# },
|
3081
|
+
# ],
|
3082
|
+
# }
|
3083
|
+
#
|
3084
|
+
# @!attribute [rw] domain
|
3085
|
+
# The name of the domain associated with the repository to update.
|
3086
|
+
# @return [String]
|
3087
|
+
#
|
3088
|
+
# @!attribute [rw] domain_owner
|
3089
|
+
# The 12-digit account number of the AWS account that owns the domain.
|
3090
|
+
# It does not include dashes or spaces.
|
3091
|
+
# @return [String]
|
3092
|
+
#
|
3093
|
+
# @!attribute [rw] repository
|
3094
|
+
# The name of the repository to update.
|
3095
|
+
# @return [String]
|
3096
|
+
#
|
3097
|
+
# @!attribute [rw] description
|
3098
|
+
# An updated repository description.
|
3099
|
+
# @return [String]
|
3100
|
+
#
|
3101
|
+
# @!attribute [rw] upstreams
|
3102
|
+
# A list of upstream repositories to associate with the repository.
|
3103
|
+
# The order of the upstream repositories in the list determines their
|
3104
|
+
# priority order when AWS CodeArtifact looks for a requested package
|
3105
|
+
# version. For more information, see [Working with upstream
|
3106
|
+
# repositories][1].
|
3107
|
+
#
|
3108
|
+
#
|
3109
|
+
#
|
3110
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html
|
3111
|
+
# @return [Array<Types::UpstreamRepository>]
|
3112
|
+
#
|
3113
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdateRepositoryRequest AWS API Documentation
|
3114
|
+
#
|
3115
|
+
class UpdateRepositoryRequest < Struct.new(
|
3116
|
+
:domain,
|
3117
|
+
:domain_owner,
|
3118
|
+
:repository,
|
3119
|
+
:description,
|
3120
|
+
:upstreams)
|
3121
|
+
include Aws::Structure
|
3122
|
+
end
|
3123
|
+
|
3124
|
+
# @!attribute [rw] repository
|
3125
|
+
# The updated repository.
|
3126
|
+
# @return [Types::RepositoryDescription]
|
3127
|
+
#
|
3128
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdateRepositoryResult AWS API Documentation
|
3129
|
+
#
|
3130
|
+
class UpdateRepositoryResult < Struct.new(
|
3131
|
+
:repository)
|
3132
|
+
include Aws::Structure
|
3133
|
+
end
|
3134
|
+
|
3135
|
+
# Information about an upstream repository. A list of
|
3136
|
+
# `UpstreamRepository` objects is an input parameter to [
|
3137
|
+
# `CreateRepository` ][1] and [ `UpdateRepository` ][2].
|
3138
|
+
#
|
3139
|
+
#
|
3140
|
+
#
|
3141
|
+
# [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_CreateRepository.html
|
3142
|
+
# [2]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdateRepository.html
|
3143
|
+
#
|
3144
|
+
# @note When making an API call, you may pass UpstreamRepository
|
3145
|
+
# data as a hash:
|
3146
|
+
#
|
3147
|
+
# {
|
3148
|
+
# repository_name: "RepositoryName", # required
|
3149
|
+
# }
|
3150
|
+
#
|
3151
|
+
# @!attribute [rw] repository_name
|
3152
|
+
# The name of an upstream repository.
|
3153
|
+
# @return [String]
|
3154
|
+
#
|
3155
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpstreamRepository AWS API Documentation
|
3156
|
+
#
|
3157
|
+
class UpstreamRepository < Struct.new(
|
3158
|
+
:repository_name)
|
3159
|
+
include Aws::Structure
|
3160
|
+
end
|
3161
|
+
|
3162
|
+
# Information about an upstream repository.
|
3163
|
+
#
|
3164
|
+
# @!attribute [rw] repository_name
|
3165
|
+
# The name of an upstream repository.
|
3166
|
+
# @return [String]
|
3167
|
+
#
|
3168
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpstreamRepositoryInfo AWS API Documentation
|
3169
|
+
#
|
3170
|
+
class UpstreamRepositoryInfo < Struct.new(
|
3171
|
+
:repository_name)
|
3172
|
+
include Aws::Structure
|
3173
|
+
end
|
3174
|
+
|
3175
|
+
# The operation did not succeed because a parameter in the request was
|
3176
|
+
# sent with an invalid value.
|
3177
|
+
#
|
3178
|
+
# @!attribute [rw] message
|
3179
|
+
# @return [String]
|
3180
|
+
#
|
3181
|
+
# @!attribute [rw] reason
|
3182
|
+
# @return [String]
|
3183
|
+
#
|
3184
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ValidationException AWS API Documentation
|
3185
|
+
#
|
3186
|
+
class ValidationException < Struct.new(
|
3187
|
+
:message,
|
3188
|
+
:reason)
|
3189
|
+
include Aws::Structure
|
3190
|
+
end
|
3191
|
+
|
3192
|
+
end
|
3193
|
+
end
|