aws-sdk-codecommit 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codecommit.rb +1 -1
- data/lib/aws-sdk-codecommit/client.rb +831 -630
- data/lib/aws-sdk-codecommit/client_api.rb +676 -574
- data/lib/aws-sdk-codecommit/errors.rb +4 -13
- data/lib/aws-sdk-codecommit/resource.rb +12 -14
- data/lib/aws-sdk-codecommit/types.rb +953 -692
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 236e5ba573ce1bdce276943428ba031ffecabb21
|
4
|
+
data.tar.gz: 4da92a3e807c39af77b12c6bd0482e3ebf1a9dbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 064bc952085e39b88658fcc9a7fb87af06050173191fdf10f54c19a6d77a60c682e5fd7f4304f2d7de45d4197434b34666172aed2587ca5717ef43a578cf63da
|
7
|
+
data.tar.gz: 171ddd00aa7f138b1714ab8a25eb2e5de8c0f789700235e189385070d8831a42f2f0f8080306ecd3ec9003c8eb764febf3667a9736bf356a9373c5300fe1bcbe
|
data/lib/aws-sdk-codecommit.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -23,658 +23,859 @@ require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
|
23
23
|
|
24
24
|
Aws::Plugins::GlobalConfiguration.add_identifier(:codecommit)
|
25
25
|
|
26
|
-
module Aws
|
27
|
-
|
28
|
-
class Client < Seahorse::Client::Base
|
29
|
-
|
30
|
-
include Aws::ClientStubs
|
31
|
-
|
32
|
-
@identifier = :codecommit
|
33
|
-
|
34
|
-
set_api(ClientApi::API)
|
35
|
-
|
36
|
-
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
37
|
-
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
38
|
-
add_plugin(Aws::Plugins::Logging)
|
39
|
-
add_plugin(Aws::Plugins::ParamConverter)
|
40
|
-
add_plugin(Aws::Plugins::ParamValidator)
|
41
|
-
add_plugin(Aws::Plugins::UserAgent)
|
42
|
-
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
43
|
-
add_plugin(Aws::Plugins::RetryErrors)
|
44
|
-
add_plugin(Aws::Plugins::GlobalConfiguration)
|
45
|
-
add_plugin(Aws::Plugins::RegionalEndpoint)
|
46
|
-
add_plugin(Aws::Plugins::ResponsePaging)
|
47
|
-
add_plugin(Aws::Plugins::StubResponses)
|
48
|
-
add_plugin(Aws::Plugins::IdempotencyToken)
|
49
|
-
add_plugin(Aws::Plugins::SignatureV4)
|
50
|
-
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
51
|
-
|
52
|
-
# @option options [required, Aws::CredentialProvider] :credentials
|
53
|
-
# Your AWS credentials. This can be an instance of any one of the
|
54
|
-
# following classes:
|
55
|
-
#
|
56
|
-
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
57
|
-
# credentials.
|
58
|
-
#
|
59
|
-
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
60
|
-
# from an EC2 IMDS on an EC2 instance.
|
61
|
-
#
|
62
|
-
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
63
|
-
# shared file, such as `~/.aws/config`.
|
64
|
-
#
|
65
|
-
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
66
|
-
#
|
67
|
-
# When `:credentials` are not configured directly, the following
|
68
|
-
# locations will be searched for credentials:
|
69
|
-
#
|
70
|
-
# * `Aws.config[:credentials]`
|
71
|
-
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
72
|
-
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
73
|
-
# * `~/.aws/credentials`
|
74
|
-
# * `~/.aws/config`
|
75
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
76
|
-
# very aggressive. Construct and pass an instance of
|
77
|
-
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
78
|
-
# timeouts.
|
79
|
-
# @option options [required, String] :region
|
80
|
-
# The AWS region to connect to. The configured `:region` is
|
81
|
-
# used to determine the service `:endpoint`. When not passed,
|
82
|
-
# a default `:region` is search for in the following locations:
|
83
|
-
#
|
84
|
-
# * `Aws.config[:region]`
|
85
|
-
# * `ENV['AWS_REGION']`
|
86
|
-
# * `ENV['AMAZON_REGION']`
|
87
|
-
# * `ENV['AWS_DEFAULT_REGION']`
|
88
|
-
# * `~/.aws/credentials`
|
89
|
-
# * `~/.aws/config`
|
90
|
-
# @option options [String] :access_key_id
|
91
|
-
# @option options [Boolean] :convert_params (true)
|
92
|
-
# When `true`, an attempt is made to coerce request parameters into
|
93
|
-
# the required types.
|
94
|
-
# @option options [String] :endpoint
|
95
|
-
# The client endpoint is normally constructed from the `:region`
|
96
|
-
# option. You should only configure an `:endpoint` when connecting
|
97
|
-
# to test endpoints. This should be avalid HTTP(S) URI.
|
98
|
-
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
99
|
-
# The log formatter.
|
100
|
-
# @option options [Symbol] :log_level (:info)
|
101
|
-
# The log level to send messages to the `:logger` at.
|
102
|
-
# @option options [Logger] :logger
|
103
|
-
# The Logger instance to send log messages to. If this option
|
104
|
-
# is not set, logging will be disabled.
|
105
|
-
# @option options [String] :profile ("default")
|
106
|
-
# Used when loading credentials from the shared credentials file
|
107
|
-
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
108
|
-
# @option options [Integer] :retry_limit (3)
|
109
|
-
# The maximum number of times to retry failed requests. Only
|
110
|
-
# ~ 500 level server errors and certain ~ 400 level client errors
|
111
|
-
# are retried. Generally, these are throttling errors, data
|
112
|
-
# checksum errors, networking errors, timeout errors and auth
|
113
|
-
# errors from expired credentials.
|
114
|
-
# @option options [String] :secret_access_key
|
115
|
-
# @option options [String] :session_token
|
116
|
-
# @option options [Boolean] :simple_json (false)
|
117
|
-
# Disables request parameter conversion, validation, and formatting.
|
118
|
-
# Also disable response data type conversions. This option is useful
|
119
|
-
# when you want to ensure the highest level of performance by
|
120
|
-
# avoiding overhead of walking request parameters and response data
|
121
|
-
# structures.
|
122
|
-
#
|
123
|
-
# When `:simple_json` is enabled, the request parameters hash must
|
124
|
-
# be formatted exactly as the DynamoDB API expects.
|
125
|
-
# @option options [Boolean] :stub_responses (false)
|
126
|
-
# Causes the client to return stubbed responses. By default
|
127
|
-
# fake responses are generated and returned. You can specify
|
128
|
-
# the response data to return or errors to raise by calling
|
129
|
-
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
130
|
-
#
|
131
|
-
# ** Please note ** When response stubbing is enabled, no HTTP
|
132
|
-
# requests are made, and retries are disabled.
|
133
|
-
# @option options [Boolean] :validate_params (true)
|
134
|
-
# When `true`, request parameters are validated before
|
135
|
-
# sending the request.
|
136
|
-
def initialize(*args)
|
137
|
-
super
|
138
|
-
end
|
26
|
+
module Aws::CodeCommit
|
27
|
+
class Client < Seahorse::Client::Base
|
139
28
|
|
140
|
-
|
141
|
-
|
142
|
-
# Returns information about one or more repositories.
|
143
|
-
#
|
144
|
-
# <note markdown="1">The description field for a repository accepts all HTML characters and
|
145
|
-
# all valid Unicode characters. Applications that do not HTML-encode the
|
146
|
-
# description and display it in a web page could expose users to
|
147
|
-
# potentially malicious code. Make sure that you HTML-encode the
|
148
|
-
# description field in any application that uses this API to display the
|
149
|
-
# repository description on a web page.
|
150
|
-
#
|
151
|
-
# </note>
|
152
|
-
# @option params [required, Array<String>] :repository_names
|
153
|
-
# The names of the repositories to get information about.
|
154
|
-
# @return [Types::BatchGetRepositoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
155
|
-
#
|
156
|
-
# * {Types::BatchGetRepositoriesOutput#repositories #repositories} => Array<Types::RepositoryMetadata>
|
157
|
-
# * {Types::BatchGetRepositoriesOutput#repositories_not_found #repositoriesNotFound} => Array<String>
|
158
|
-
#
|
159
|
-
# @example Request syntax with placeholder values
|
160
|
-
# resp = client.batch_get_repositories({
|
161
|
-
# repository_names: ["RepositoryName"], # required
|
162
|
-
# })
|
163
|
-
#
|
164
|
-
# @example Response structure
|
165
|
-
# resp.repositories #=> Array
|
166
|
-
# resp.repositories[0].account_id #=> String
|
167
|
-
# resp.repositories[0].repository_id #=> String
|
168
|
-
# resp.repositories[0].repository_name #=> String
|
169
|
-
# resp.repositories[0].repository_description #=> String
|
170
|
-
# resp.repositories[0].default_branch #=> String
|
171
|
-
# resp.repositories[0].last_modified_date #=> Time
|
172
|
-
# resp.repositories[0].creation_date #=> Time
|
173
|
-
# resp.repositories[0].clone_url_http #=> String
|
174
|
-
# resp.repositories[0].clone_url_ssh #=> String
|
175
|
-
# resp.repositories[0].arn #=> String
|
176
|
-
# resp.repositories_not_found #=> Array
|
177
|
-
# resp.repositories_not_found[0] #=> String
|
178
|
-
# @overload batch_get_repositories(params = {})
|
179
|
-
# @param [Hash] params ({})
|
180
|
-
def batch_get_repositories(params = {}, options = {})
|
181
|
-
req = build_request(:batch_get_repositories, params)
|
182
|
-
req.send_request(options)
|
183
|
-
end
|
29
|
+
include Aws::ClientStubs
|
184
30
|
|
185
|
-
|
186
|
-
# commit.
|
187
|
-
#
|
188
|
-
# <note markdown="1">Calling the create branch operation does not set a repository's
|
189
|
-
# default branch. To do this, call the update default branch operation.
|
190
|
-
#
|
191
|
-
# </note>
|
192
|
-
# @option params [required, String] :repository_name
|
193
|
-
# The name of the repository in which you want to create the new branch.
|
194
|
-
# @option params [required, String] :branch_name
|
195
|
-
# The name of the new branch to create.
|
196
|
-
# @option params [required, String] :commit_id
|
197
|
-
# The ID of the commit to point the new branch to.
|
198
|
-
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
199
|
-
#
|
200
|
-
# @example Request syntax with placeholder values
|
201
|
-
# resp = client.create_branch({
|
202
|
-
# repository_name: "RepositoryName", # required
|
203
|
-
# branch_name: "BranchName", # required
|
204
|
-
# commit_id: "CommitId", # required
|
205
|
-
# })
|
206
|
-
# @overload create_branch(params = {})
|
207
|
-
# @param [Hash] params ({})
|
208
|
-
def create_branch(params = {}, options = {})
|
209
|
-
req = build_request(:create_branch, params)
|
210
|
-
req.send_request(options)
|
211
|
-
end
|
31
|
+
@identifier = :codecommit
|
212
32
|
|
213
|
-
|
214
|
-
# @option params [required, String] :repository_name
|
215
|
-
# The name of the new repository to be created.
|
216
|
-
#
|
217
|
-
# <note markdown="1">The repository name must be unique across the calling AWS account. In
|
218
|
-
# addition, repository names are limited to 100 alphanumeric, dash, and
|
219
|
-
# underscore characters, and cannot include certain characters. For a
|
220
|
-
# full description of the limits on repository names, see [Limits][1] in
|
221
|
-
# the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
|
222
|
-
#
|
223
|
-
# </note>
|
224
|
-
#
|
225
|
-
#
|
226
|
-
#
|
227
|
-
# [1]: http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
|
228
|
-
# @option params [String] :repository_description
|
229
|
-
# A comment or description about the new repository.
|
230
|
-
#
|
231
|
-
# <note markdown="1">The description field for a repository accepts all HTML characters and
|
232
|
-
# all valid Unicode characters. Applications that do not HTML-encode the
|
233
|
-
# description and display it in a web page could expose users to
|
234
|
-
# potentially malicious code. Make sure that you HTML-encode the
|
235
|
-
# description field in any application that uses this API to display the
|
236
|
-
# repository description on a web page.
|
237
|
-
#
|
238
|
-
# </note>
|
239
|
-
# @return [Types::CreateRepositoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
240
|
-
#
|
241
|
-
# * {Types::CreateRepositoryOutput#repository_metadata #repositoryMetadata} => Types::RepositoryMetadata
|
242
|
-
#
|
243
|
-
# @example Request syntax with placeholder values
|
244
|
-
# resp = client.create_repository({
|
245
|
-
# repository_name: "RepositoryName", # required
|
246
|
-
# repository_description: "RepositoryDescription",
|
247
|
-
# })
|
248
|
-
#
|
249
|
-
# @example Response structure
|
250
|
-
# resp.repository_metadata.account_id #=> String
|
251
|
-
# resp.repository_metadata.repository_id #=> String
|
252
|
-
# resp.repository_metadata.repository_name #=> String
|
253
|
-
# resp.repository_metadata.repository_description #=> String
|
254
|
-
# resp.repository_metadata.default_branch #=> String
|
255
|
-
# resp.repository_metadata.last_modified_date #=> Time
|
256
|
-
# resp.repository_metadata.creation_date #=> Time
|
257
|
-
# resp.repository_metadata.clone_url_http #=> String
|
258
|
-
# resp.repository_metadata.clone_url_ssh #=> String
|
259
|
-
# resp.repository_metadata.arn #=> String
|
260
|
-
# @overload create_repository(params = {})
|
261
|
-
# @param [Hash] params ({})
|
262
|
-
def create_repository(params = {}, options = {})
|
263
|
-
req = build_request(:create_repository, params)
|
264
|
-
req.send_request(options)
|
265
|
-
end
|
33
|
+
set_api(ClientApi::API)
|
266
34
|
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
# })
|
283
|
-
#
|
284
|
-
# @example Response structure
|
285
|
-
# resp.repository_id #=> String
|
286
|
-
# @overload delete_repository(params = {})
|
287
|
-
# @param [Hash] params ({})
|
288
|
-
def delete_repository(params = {}, options = {})
|
289
|
-
req = build_request(:delete_repository, params)
|
290
|
-
req.send_request(options)
|
291
|
-
end
|
35
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
36
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
37
|
+
add_plugin(Aws::Plugins::Logging)
|
38
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
39
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
40
|
+
add_plugin(Aws::Plugins::UserAgent)
|
41
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
42
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
43
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
44
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
45
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
46
|
+
add_plugin(Aws::Plugins::StubResponses)
|
47
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
48
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
49
|
+
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
292
50
|
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
51
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
52
|
+
# Your AWS credentials. This can be an instance of any one of the
|
53
|
+
# following classes:
|
54
|
+
#
|
55
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
56
|
+
# credentials.
|
57
|
+
#
|
58
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
59
|
+
# from an EC2 IMDS on an EC2 instance.
|
60
|
+
#
|
61
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
62
|
+
# shared file, such as `~/.aws/config`.
|
63
|
+
#
|
64
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
65
|
+
#
|
66
|
+
# When `:credentials` are not configured directly, the following
|
67
|
+
# locations will be searched for credentials:
|
68
|
+
#
|
69
|
+
# * `Aws.config[:credentials]`
|
70
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
71
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
72
|
+
# * `~/.aws/credentials`
|
73
|
+
# * `~/.aws/config`
|
74
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
75
|
+
# very aggressive. Construct and pass an instance of
|
76
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
77
|
+
# timeouts.
|
78
|
+
#
|
79
|
+
# @option options [required, String] :region
|
80
|
+
# The AWS region to connect to. The configured `:region` is
|
81
|
+
# used to determine the service `:endpoint`. When not passed,
|
82
|
+
# a default `:region` is search for in the following locations:
|
83
|
+
#
|
84
|
+
# * `Aws.config[:region]`
|
85
|
+
# * `ENV['AWS_REGION']`
|
86
|
+
# * `ENV['AMAZON_REGION']`
|
87
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
88
|
+
# * `~/.aws/credentials`
|
89
|
+
# * `~/.aws/config`
|
90
|
+
#
|
91
|
+
# @option options [String] :access_key_id
|
92
|
+
#
|
93
|
+
# @option options [Boolean] :convert_params (true)
|
94
|
+
# When `true`, an attempt is made to coerce request parameters into
|
95
|
+
# the required types.
|
96
|
+
#
|
97
|
+
# @option options [String] :endpoint
|
98
|
+
# The client endpoint is normally constructed from the `:region`
|
99
|
+
# option. You should only configure an `:endpoint` when connecting
|
100
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
101
|
+
#
|
102
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
103
|
+
# The log formatter.
|
104
|
+
#
|
105
|
+
# @option options [Symbol] :log_level (:info)
|
106
|
+
# The log level to send messages to the `:logger` at.
|
107
|
+
#
|
108
|
+
# @option options [Logger] :logger
|
109
|
+
# The Logger instance to send log messages to. If this option
|
110
|
+
# is not set, logging will be disabled.
|
111
|
+
#
|
112
|
+
# @option options [String] :profile ("default")
|
113
|
+
# Used when loading credentials from the shared credentials file
|
114
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
115
|
+
#
|
116
|
+
# @option options [Integer] :retry_limit (3)
|
117
|
+
# The maximum number of times to retry failed requests. Only
|
118
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
119
|
+
# are retried. Generally, these are throttling errors, data
|
120
|
+
# checksum errors, networking errors, timeout errors and auth
|
121
|
+
# errors from expired credentials.
|
122
|
+
#
|
123
|
+
# @option options [String] :secret_access_key
|
124
|
+
#
|
125
|
+
# @option options [String] :session_token
|
126
|
+
#
|
127
|
+
# @option options [Boolean] :simple_json (false)
|
128
|
+
# Disables request parameter conversion, validation, and formatting.
|
129
|
+
# Also disable response data type conversions. This option is useful
|
130
|
+
# when you want to ensure the highest level of performance by
|
131
|
+
# avoiding overhead of walking request parameters and response data
|
132
|
+
# structures.
|
133
|
+
#
|
134
|
+
# When `:simple_json` is enabled, the request parameters hash must
|
135
|
+
# be formatted exactly as the DynamoDB API expects.
|
136
|
+
#
|
137
|
+
# @option options [Boolean] :stub_responses (false)
|
138
|
+
# Causes the client to return stubbed responses. By default
|
139
|
+
# fake responses are generated and returned. You can specify
|
140
|
+
# the response data to return or errors to raise by calling
|
141
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
142
|
+
#
|
143
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
144
|
+
# requests are made, and retries are disabled.
|
145
|
+
#
|
146
|
+
# @option options [Boolean] :validate_params (true)
|
147
|
+
# When `true`, request parameters are validated before
|
148
|
+
# sending the request.
|
149
|
+
#
|
150
|
+
def initialize(*args)
|
151
|
+
super
|
152
|
+
end
|
319
153
|
|
320
|
-
|
321
|
-
# committer information.
|
322
|
-
# @option params [required, String] :repository_name
|
323
|
-
# The name of the repository to which the commit was made.
|
324
|
-
# @option params [required, String] :commit_id
|
325
|
-
# The commit ID.
|
326
|
-
# @return [Types::GetCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
327
|
-
#
|
328
|
-
# * {Types::GetCommitOutput#commit #commit} => Types::Commit
|
329
|
-
#
|
330
|
-
# @example Request syntax with placeholder values
|
331
|
-
# resp = client.get_commit({
|
332
|
-
# repository_name: "RepositoryName", # required
|
333
|
-
# commit_id: "ObjectId", # required
|
334
|
-
# })
|
335
|
-
#
|
336
|
-
# @example Response structure
|
337
|
-
# resp.commit.tree_id #=> String
|
338
|
-
# resp.commit.parents #=> Array
|
339
|
-
# resp.commit.parents[0] #=> String
|
340
|
-
# resp.commit.message #=> String
|
341
|
-
# resp.commit.author.name #=> String
|
342
|
-
# resp.commit.author.email #=> String
|
343
|
-
# resp.commit.author.date #=> String
|
344
|
-
# resp.commit.committer.name #=> String
|
345
|
-
# resp.commit.committer.email #=> String
|
346
|
-
# resp.commit.committer.date #=> String
|
347
|
-
# resp.commit.additional_data #=> String
|
348
|
-
# @overload get_commit(params = {})
|
349
|
-
# @param [Hash] params ({})
|
350
|
-
def get_commit(params = {}, options = {})
|
351
|
-
req = build_request(:get_commit, params)
|
352
|
-
req.send_request(options)
|
353
|
-
end
|
154
|
+
# @!group API Operations
|
354
155
|
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
156
|
+
# Returns information about one or more repositories.
|
157
|
+
#
|
158
|
+
# <note markdown="1"> The description field for a repository accepts all HTML characters and
|
159
|
+
# all valid Unicode characters. Applications that do not HTML-encode the
|
160
|
+
# description and display it in a web page could expose users to
|
161
|
+
# potentially malicious code. Make sure that you HTML-encode the
|
162
|
+
# description field in any application that uses this API to display the
|
163
|
+
# repository description on a web page.
|
164
|
+
#
|
165
|
+
# </note>
|
166
|
+
#
|
167
|
+
# @option params [required, Array<String>] :repository_names
|
168
|
+
# The names of the repositories to get information about.
|
169
|
+
#
|
170
|
+
# @return [Types::BatchGetRepositoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
171
|
+
#
|
172
|
+
# * {Types::BatchGetRepositoriesOutput#repositories #repositories} => Array<Types::RepositoryMetadata>
|
173
|
+
# * {Types::BatchGetRepositoriesOutput#repositories_not_found #repositories_not_found} => Array<String>
|
174
|
+
#
|
175
|
+
# @example Request syntax with placeholder values
|
176
|
+
#
|
177
|
+
# resp = client.batch_get_repositories({
|
178
|
+
# repository_names: ["RepositoryName"], # required
|
179
|
+
# })
|
180
|
+
#
|
181
|
+
# @example Response structure
|
182
|
+
#
|
183
|
+
# resp.repositories #=> Array
|
184
|
+
# resp.repositories[0].account_id #=> String
|
185
|
+
# resp.repositories[0].repository_id #=> String
|
186
|
+
# resp.repositories[0].repository_name #=> String
|
187
|
+
# resp.repositories[0].repository_description #=> String
|
188
|
+
# resp.repositories[0].default_branch #=> String
|
189
|
+
# resp.repositories[0].last_modified_date #=> Time
|
190
|
+
# resp.repositories[0].creation_date #=> Time
|
191
|
+
# resp.repositories[0].clone_url_http #=> String
|
192
|
+
# resp.repositories[0].clone_url_ssh #=> String
|
193
|
+
# resp.repositories[0].arn #=> String
|
194
|
+
# resp.repositories_not_found #=> Array
|
195
|
+
# resp.repositories_not_found[0] #=> String
|
196
|
+
#
|
197
|
+
# @overload batch_get_repositories(params = {})
|
198
|
+
# @param [Hash] params ({})
|
199
|
+
def batch_get_repositories(params = {}, options = {})
|
200
|
+
req = build_request(:batch_get_repositories, params)
|
201
|
+
req.send_request(options)
|
202
|
+
end
|
393
203
|
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
204
|
+
# Creates a new branch in a repository and points the branch to a
|
205
|
+
# commit.
|
206
|
+
#
|
207
|
+
# <note markdown="1"> Calling the create branch operation does not set a repository's
|
208
|
+
# default branch. To do this, call the update default branch operation.
|
209
|
+
#
|
210
|
+
# </note>
|
211
|
+
#
|
212
|
+
# @option params [required, String] :repository_name
|
213
|
+
# The name of the repository in which you want to create the new branch.
|
214
|
+
#
|
215
|
+
# @option params [required, String] :branch_name
|
216
|
+
# The name of the new branch to create.
|
217
|
+
#
|
218
|
+
# @option params [required, String] :commit_id
|
219
|
+
# The ID of the commit to point the new branch to.
|
220
|
+
#
|
221
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
222
|
+
#
|
223
|
+
# @example Request syntax with placeholder values
|
224
|
+
#
|
225
|
+
# resp = client.create_branch({
|
226
|
+
# repository_name: "RepositoryName", # required
|
227
|
+
# branch_name: "BranchName", # required
|
228
|
+
# commit_id: "CommitId", # required
|
229
|
+
# })
|
230
|
+
#
|
231
|
+
# @overload create_branch(params = {})
|
232
|
+
# @param [Hash] params ({})
|
233
|
+
def create_branch(params = {}, options = {})
|
234
|
+
req = build_request(:create_branch, params)
|
235
|
+
req.send_request(options)
|
236
|
+
end
|
423
237
|
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
238
|
+
# Creates a new, empty repository.
|
239
|
+
#
|
240
|
+
# @option params [required, String] :repository_name
|
241
|
+
# The name of the new repository to be created.
|
242
|
+
#
|
243
|
+
# <note markdown="1"> The repository name must be unique across the calling AWS account. In
|
244
|
+
# addition, repository names are limited to 100 alphanumeric, dash, and
|
245
|
+
# underscore characters, and cannot include certain characters. For a
|
246
|
+
# full description of the limits on repository names, see [Limits][1] in
|
247
|
+
# the AWS CodeCommit User Guide. The suffix ".git" is prohibited.
|
248
|
+
#
|
249
|
+
# </note>
|
250
|
+
#
|
251
|
+
#
|
252
|
+
#
|
253
|
+
# [1]: http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
|
254
|
+
#
|
255
|
+
# @option params [String] :repository_description
|
256
|
+
# A comment or description about the new repository.
|
257
|
+
#
|
258
|
+
# <note markdown="1"> The description field for a repository accepts all HTML characters and
|
259
|
+
# all valid Unicode characters. Applications that do not HTML-encode the
|
260
|
+
# description and display it in a web page could expose users to
|
261
|
+
# potentially malicious code. Make sure that you HTML-encode the
|
262
|
+
# description field in any application that uses this API to display the
|
263
|
+
# repository description on a web page.
|
264
|
+
#
|
265
|
+
# </note>
|
266
|
+
#
|
267
|
+
# @return [Types::CreateRepositoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
268
|
+
#
|
269
|
+
# * {Types::CreateRepositoryOutput#repository_metadata #repository_metadata} => Types::RepositoryMetadata
|
270
|
+
#
|
271
|
+
# @example Request syntax with placeholder values
|
272
|
+
#
|
273
|
+
# resp = client.create_repository({
|
274
|
+
# repository_name: "RepositoryName", # required
|
275
|
+
# repository_description: "RepositoryDescription",
|
276
|
+
# })
|
277
|
+
#
|
278
|
+
# @example Response structure
|
279
|
+
#
|
280
|
+
# resp.repository_metadata.account_id #=> String
|
281
|
+
# resp.repository_metadata.repository_id #=> String
|
282
|
+
# resp.repository_metadata.repository_name #=> String
|
283
|
+
# resp.repository_metadata.repository_description #=> String
|
284
|
+
# resp.repository_metadata.default_branch #=> String
|
285
|
+
# resp.repository_metadata.last_modified_date #=> Time
|
286
|
+
# resp.repository_metadata.creation_date #=> Time
|
287
|
+
# resp.repository_metadata.clone_url_http #=> String
|
288
|
+
# resp.repository_metadata.clone_url_ssh #=> String
|
289
|
+
# resp.repository_metadata.arn #=> String
|
290
|
+
#
|
291
|
+
# @overload create_repository(params = {})
|
292
|
+
# @param [Hash] params ({})
|
293
|
+
def create_repository(params = {}, options = {})
|
294
|
+
req = build_request(:create_repository, params)
|
295
|
+
req.send_request(options)
|
296
|
+
end
|
450
297
|
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
# @param [Hash] params ({})
|
482
|
-
def list_repositories(params = {}, options = {})
|
483
|
-
req = build_request(:list_repositories, params)
|
484
|
-
req.send_request(options)
|
485
|
-
end
|
298
|
+
# Deletes a repository. If a specified repository was already deleted, a
|
299
|
+
# null repository ID will be returned.
|
300
|
+
#
|
301
|
+
# Deleting a repository also deletes all associated objects and
|
302
|
+
# metadata. After a repository is deleted, all future push calls to the
|
303
|
+
# deleted repository will fail.
|
304
|
+
#
|
305
|
+
# @option params [required, String] :repository_name
|
306
|
+
# The name of the repository to delete.
|
307
|
+
#
|
308
|
+
# @return [Types::DeleteRepositoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
309
|
+
#
|
310
|
+
# * {Types::DeleteRepositoryOutput#repository_id #repository_id} => String
|
311
|
+
#
|
312
|
+
# @example Request syntax with placeholder values
|
313
|
+
#
|
314
|
+
# resp = client.delete_repository({
|
315
|
+
# repository_name: "RepositoryName", # required
|
316
|
+
# })
|
317
|
+
#
|
318
|
+
# @example Response structure
|
319
|
+
#
|
320
|
+
# resp.repository_id #=> String
|
321
|
+
#
|
322
|
+
# @overload delete_repository(params = {})
|
323
|
+
# @param [Hash] params ({})
|
324
|
+
def delete_repository(params = {}, options = {})
|
325
|
+
req = build_request(:delete_repository, params)
|
326
|
+
req.send_request(options)
|
327
|
+
end
|
486
328
|
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
req = build_request(:put_repository_triggers, params)
|
518
|
-
req.send_request(options)
|
519
|
-
end
|
329
|
+
# Returns the base-64 encoded content of an individual blob within a
|
330
|
+
# repository.
|
331
|
+
#
|
332
|
+
# @option params [required, String] :repository_name
|
333
|
+
# The name of the repository that contains the blob.
|
334
|
+
#
|
335
|
+
# @option params [required, String] :blob_id
|
336
|
+
# The ID of the blob, which is its SHA-1 pointer.
|
337
|
+
#
|
338
|
+
# @return [Types::GetBlobOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
339
|
+
#
|
340
|
+
# * {Types::GetBlobOutput#content #content} => String
|
341
|
+
#
|
342
|
+
# @example Request syntax with placeholder values
|
343
|
+
#
|
344
|
+
# resp = client.get_blob({
|
345
|
+
# repository_name: "RepositoryName", # required
|
346
|
+
# blob_id: "ObjectId", # required
|
347
|
+
# })
|
348
|
+
#
|
349
|
+
# @example Response structure
|
350
|
+
#
|
351
|
+
# resp.content #=> String
|
352
|
+
#
|
353
|
+
# @overload get_blob(params = {})
|
354
|
+
# @param [Hash] params ({})
|
355
|
+
def get_blob(params = {}, options = {})
|
356
|
+
req = build_request(:get_blob, params)
|
357
|
+
req.send_request(options)
|
358
|
+
end
|
520
359
|
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
# resp.failed_executions[0].failure_message #=> String
|
554
|
-
# @overload test_repository_triggers(params = {})
|
555
|
-
# @param [Hash] params ({})
|
556
|
-
def test_repository_triggers(params = {}, options = {})
|
557
|
-
req = build_request(:test_repository_triggers, params)
|
558
|
-
req.send_request(options)
|
559
|
-
end
|
360
|
+
# Returns information about a repository branch, including its name and
|
361
|
+
# the last commit ID.
|
362
|
+
#
|
363
|
+
# @option params [String] :repository_name
|
364
|
+
# The name of the repository that contains the branch for which you want
|
365
|
+
# to retrieve information.
|
366
|
+
#
|
367
|
+
# @option params [String] :branch_name
|
368
|
+
# The name of the branch for which you want to retrieve information.
|
369
|
+
#
|
370
|
+
# @return [Types::GetBranchOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
371
|
+
#
|
372
|
+
# * {Types::GetBranchOutput#branch #branch} => Types::BranchInfo
|
373
|
+
#
|
374
|
+
# @example Request syntax with placeholder values
|
375
|
+
#
|
376
|
+
# resp = client.get_branch({
|
377
|
+
# repository_name: "RepositoryName",
|
378
|
+
# branch_name: "BranchName",
|
379
|
+
# })
|
380
|
+
#
|
381
|
+
# @example Response structure
|
382
|
+
#
|
383
|
+
# resp.branch.branch_name #=> String
|
384
|
+
# resp.branch.commit_id #=> String
|
385
|
+
#
|
386
|
+
# @overload get_branch(params = {})
|
387
|
+
# @param [Hash] params ({})
|
388
|
+
def get_branch(params = {}, options = {})
|
389
|
+
req = build_request(:get_branch, params)
|
390
|
+
req.send_request(options)
|
391
|
+
end
|
560
392
|
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
393
|
+
# Returns information about a commit, including commit message and
|
394
|
+
# committer information.
|
395
|
+
#
|
396
|
+
# @option params [required, String] :repository_name
|
397
|
+
# The name of the repository to which the commit was made.
|
398
|
+
#
|
399
|
+
# @option params [required, String] :commit_id
|
400
|
+
# The commit ID.
|
401
|
+
#
|
402
|
+
# @return [Types::GetCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
403
|
+
#
|
404
|
+
# * {Types::GetCommitOutput#commit #commit} => Types::Commit
|
405
|
+
#
|
406
|
+
# @example Request syntax with placeholder values
|
407
|
+
#
|
408
|
+
# resp = client.get_commit({
|
409
|
+
# repository_name: "RepositoryName", # required
|
410
|
+
# commit_id: "ObjectId", # required
|
411
|
+
# })
|
412
|
+
#
|
413
|
+
# @example Response structure
|
414
|
+
#
|
415
|
+
# resp.commit.tree_id #=> String
|
416
|
+
# resp.commit.parents #=> Array
|
417
|
+
# resp.commit.parents[0] #=> String
|
418
|
+
# resp.commit.message #=> String
|
419
|
+
# resp.commit.author.name #=> String
|
420
|
+
# resp.commit.author.email #=> String
|
421
|
+
# resp.commit.author.date #=> String
|
422
|
+
# resp.commit.committer.name #=> String
|
423
|
+
# resp.commit.committer.email #=> String
|
424
|
+
# resp.commit.committer.date #=> String
|
425
|
+
# resp.commit.additional_data #=> String
|
426
|
+
#
|
427
|
+
# @overload get_commit(params = {})
|
428
|
+
# @param [Hash] params ({})
|
429
|
+
def get_commit(params = {}, options = {})
|
430
|
+
req = build_request(:get_commit, params)
|
431
|
+
req.send_request(options)
|
432
|
+
end
|
585
433
|
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
434
|
+
# Returns information about the differences in a valid commit specifier
|
435
|
+
# (such as a branch, tag, HEAD, commit ID or other fully qualified
|
436
|
+
# reference). Results can be limited to a specified path.
|
437
|
+
#
|
438
|
+
# @option params [required, String] :repository_name
|
439
|
+
# The name of the repository where you want to get differences.
|
440
|
+
#
|
441
|
+
# @option params [String] :before_commit_specifier
|
442
|
+
# The branch, tag, HEAD, or other fully qualified reference used to
|
443
|
+
# identify a commit. For example, the full commit ID. Optional. If not
|
444
|
+
# specified, all changes prior to the `afterCommitSpecifier` value will
|
445
|
+
# be shown. If you do not use `beforeCommitSpecifier` in your request,
|
446
|
+
# consider limiting the results with `maxResults`.
|
447
|
+
#
|
448
|
+
# @option params [required, String] :after_commit_specifier
|
449
|
+
# The branch, tag, HEAD, or other fully qualified reference used to
|
450
|
+
# identify a commit.
|
451
|
+
#
|
452
|
+
# @option params [String] :before_path
|
453
|
+
# The file path in which to check for differences. Limits the results to
|
454
|
+
# this path. Can also be used to specify the previous name of a
|
455
|
+
# directory or folder. If `beforePath` and `afterPath` are not
|
456
|
+
# specified, differences will be shown for all paths.
|
457
|
+
#
|
458
|
+
# @option params [String] :after_path
|
459
|
+
# The file path in which to check differences. Limits the results to
|
460
|
+
# this path. Can also be used to specify the changed name of a directory
|
461
|
+
# or folder, if it has changed. If not specified, differences will be
|
462
|
+
# shown for all paths.
|
463
|
+
#
|
464
|
+
# @option params [Integer] :max_results
|
465
|
+
# A non-negative integer used to limit the number of returned results.
|
466
|
+
#
|
467
|
+
# @option params [String] :next_token
|
468
|
+
# An enumeration token that when provided in a request, returns the next
|
469
|
+
# batch of the results.
|
470
|
+
#
|
471
|
+
# @return [Types::GetDifferencesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
472
|
+
#
|
473
|
+
# * {Types::GetDifferencesOutput#differences #differences} => Array<Types::Difference>
|
474
|
+
# * {Types::GetDifferencesOutput#next_token #next_token} => String
|
475
|
+
#
|
476
|
+
# @example Request syntax with placeholder values
|
477
|
+
#
|
478
|
+
# resp = client.get_differences({
|
479
|
+
# repository_name: "RepositoryName", # required
|
480
|
+
# before_commit_specifier: "CommitName",
|
481
|
+
# after_commit_specifier: "CommitName", # required
|
482
|
+
# before_path: "Path",
|
483
|
+
# after_path: "Path",
|
484
|
+
# max_results: 1,
|
485
|
+
# next_token: "NextToken",
|
486
|
+
# })
|
487
|
+
#
|
488
|
+
# @example Response structure
|
489
|
+
#
|
490
|
+
# resp.differences #=> Array
|
491
|
+
# resp.differences[0].before_blob.blob_id #=> String
|
492
|
+
# resp.differences[0].before_blob.path #=> String
|
493
|
+
# resp.differences[0].before_blob.mode #=> String
|
494
|
+
# resp.differences[0].after_blob.blob_id #=> String
|
495
|
+
# resp.differences[0].after_blob.path #=> String
|
496
|
+
# resp.differences[0].after_blob.mode #=> String
|
497
|
+
# resp.differences[0].change_type #=> String, one of "A", "M", "D"
|
498
|
+
# resp.next_token #=> String
|
499
|
+
#
|
500
|
+
# @overload get_differences(params = {})
|
501
|
+
# @param [Hash] params ({})
|
502
|
+
def get_differences(params = {}, options = {})
|
503
|
+
req = build_request(:get_differences, params)
|
504
|
+
req.send_request(options)
|
505
|
+
end
|
615
506
|
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
507
|
+
# Returns information about a repository.
|
508
|
+
#
|
509
|
+
# <note markdown="1"> The description field for a repository accepts all HTML characters and
|
510
|
+
# all valid Unicode characters. Applications that do not HTML-encode the
|
511
|
+
# description and display it in a web page could expose users to
|
512
|
+
# potentially malicious code. Make sure that you HTML-encode the
|
513
|
+
# description field in any application that uses this API to display the
|
514
|
+
# repository description on a web page.
|
515
|
+
#
|
516
|
+
# </note>
|
517
|
+
#
|
518
|
+
# @option params [required, String] :repository_name
|
519
|
+
# The name of the repository to get information about.
|
520
|
+
#
|
521
|
+
# @return [Types::GetRepositoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
522
|
+
#
|
523
|
+
# * {Types::GetRepositoryOutput#repository_metadata #repository_metadata} => Types::RepositoryMetadata
|
524
|
+
#
|
525
|
+
# @example Request syntax with placeholder values
|
526
|
+
#
|
527
|
+
# resp = client.get_repository({
|
528
|
+
# repository_name: "RepositoryName", # required
|
529
|
+
# })
|
530
|
+
#
|
531
|
+
# @example Response structure
|
532
|
+
#
|
533
|
+
# resp.repository_metadata.account_id #=> String
|
534
|
+
# resp.repository_metadata.repository_id #=> String
|
535
|
+
# resp.repository_metadata.repository_name #=> String
|
536
|
+
# resp.repository_metadata.repository_description #=> String
|
537
|
+
# resp.repository_metadata.default_branch #=> String
|
538
|
+
# resp.repository_metadata.last_modified_date #=> Time
|
539
|
+
# resp.repository_metadata.creation_date #=> Time
|
540
|
+
# resp.repository_metadata.clone_url_http #=> String
|
541
|
+
# resp.repository_metadata.clone_url_ssh #=> String
|
542
|
+
# resp.repository_metadata.arn #=> String
|
543
|
+
#
|
544
|
+
# @overload get_repository(params = {})
|
545
|
+
# @param [Hash] params ({})
|
546
|
+
def get_repository(params = {}, options = {})
|
547
|
+
req = build_request(:get_repository, params)
|
548
|
+
req.send_request(options)
|
549
|
+
end
|
643
550
|
|
644
|
-
|
551
|
+
# Gets information about triggers configured for a repository.
|
552
|
+
#
|
553
|
+
# @option params [required, String] :repository_name
|
554
|
+
# The name of the repository for which the trigger is configured.
|
555
|
+
#
|
556
|
+
# @return [Types::GetRepositoryTriggersOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
557
|
+
#
|
558
|
+
# * {Types::GetRepositoryTriggersOutput#configuration_id #configuration_id} => String
|
559
|
+
# * {Types::GetRepositoryTriggersOutput#triggers #triggers} => Array<Types::RepositoryTrigger>
|
560
|
+
#
|
561
|
+
# @example Request syntax with placeholder values
|
562
|
+
#
|
563
|
+
# resp = client.get_repository_triggers({
|
564
|
+
# repository_name: "RepositoryName", # required
|
565
|
+
# })
|
566
|
+
#
|
567
|
+
# @example Response structure
|
568
|
+
#
|
569
|
+
# resp.configuration_id #=> String
|
570
|
+
# resp.triggers #=> Array
|
571
|
+
# resp.triggers[0].name #=> String
|
572
|
+
# resp.triggers[0].destination_arn #=> String
|
573
|
+
# resp.triggers[0].custom_data #=> String
|
574
|
+
# resp.triggers[0].branches #=> Array
|
575
|
+
# resp.triggers[0].branches[0] #=> String
|
576
|
+
# resp.triggers[0].events #=> Array
|
577
|
+
# resp.triggers[0].events[0] #=> String, one of "all", "updateReference", "createReference", "deleteReference"
|
578
|
+
#
|
579
|
+
# @overload get_repository_triggers(params = {})
|
580
|
+
# @param [Hash] params ({})
|
581
|
+
def get_repository_triggers(params = {}, options = {})
|
582
|
+
req = build_request(:get_repository_triggers, params)
|
583
|
+
req.send_request(options)
|
584
|
+
end
|
645
585
|
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
586
|
+
# Gets information about one or more branches in a repository.
|
587
|
+
#
|
588
|
+
# @option params [required, String] :repository_name
|
589
|
+
# The name of the repository that contains the branches.
|
590
|
+
#
|
591
|
+
# @option params [String] :next_token
|
592
|
+
# An enumeration token that allows the operation to batch the results.
|
593
|
+
#
|
594
|
+
# @return [Types::ListBranchesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
595
|
+
#
|
596
|
+
# * {Types::ListBranchesOutput#branches #branches} => Array<String>
|
597
|
+
# * {Types::ListBranchesOutput#next_token #next_token} => String
|
598
|
+
#
|
599
|
+
# @example Request syntax with placeholder values
|
600
|
+
#
|
601
|
+
# resp = client.list_branches({
|
602
|
+
# repository_name: "RepositoryName", # required
|
603
|
+
# next_token: "NextToken",
|
604
|
+
# })
|
605
|
+
#
|
606
|
+
# @example Response structure
|
607
|
+
#
|
608
|
+
# resp.branches #=> Array
|
609
|
+
# resp.branches[0] #=> String
|
610
|
+
# resp.next_token #=> String
|
611
|
+
#
|
612
|
+
# @overload list_branches(params = {})
|
613
|
+
# @param [Hash] params ({})
|
614
|
+
def list_branches(params = {}, options = {})
|
615
|
+
req = build_request(:list_branches, params)
|
616
|
+
req.send_request(options)
|
617
|
+
end
|
660
618
|
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
619
|
+
# Gets information about one or more repositories.
|
620
|
+
#
|
621
|
+
# @option params [String] :next_token
|
622
|
+
# An enumeration token that allows the operation to batch the results of
|
623
|
+
# the operation. Batch sizes are 1,000 for list repository operations.
|
624
|
+
# When the client sends the token back to AWS CodeCommit, another page
|
625
|
+
# of 1,000 records is retrieved.
|
626
|
+
#
|
627
|
+
# @option params [String] :sort_by
|
628
|
+
# The criteria used to sort the results of a list repositories
|
629
|
+
# operation.
|
630
|
+
#
|
631
|
+
# @option params [String] :order
|
632
|
+
# The order in which to sort the results of a list repositories
|
633
|
+
# operation.
|
634
|
+
#
|
635
|
+
# @return [Types::ListRepositoriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
636
|
+
#
|
637
|
+
# * {Types::ListRepositoriesOutput#repositories #repositories} => Array<Types::RepositoryNameIdPair>
|
638
|
+
# * {Types::ListRepositoriesOutput#next_token #next_token} => String
|
639
|
+
#
|
640
|
+
# @example Request syntax with placeholder values
|
641
|
+
#
|
642
|
+
# resp = client.list_repositories({
|
643
|
+
# next_token: "NextToken",
|
644
|
+
# sort_by: "repositoryName", # accepts repositoryName, lastModifiedDate
|
645
|
+
# order: "ascending", # accepts ascending, descending
|
646
|
+
# })
|
647
|
+
#
|
648
|
+
# @example Response structure
|
649
|
+
#
|
650
|
+
# resp.repositories #=> Array
|
651
|
+
# resp.repositories[0].repository_name #=> String
|
652
|
+
# resp.repositories[0].repository_id #=> String
|
653
|
+
# resp.next_token #=> String
|
654
|
+
#
|
655
|
+
# @overload list_repositories(params = {})
|
656
|
+
# @param [Hash] params ({})
|
657
|
+
def list_repositories(params = {}, options = {})
|
658
|
+
req = build_request(:list_repositories, params)
|
659
|
+
req.send_request(options)
|
660
|
+
end
|
661
|
+
|
662
|
+
# Replaces all triggers for a repository. This can be used to create or
|
663
|
+
# delete triggers.
|
664
|
+
#
|
665
|
+
# @option params [required, String] :repository_name
|
666
|
+
# The name of the repository where you want to create or update the
|
667
|
+
# trigger.
|
668
|
+
#
|
669
|
+
# @option params [required, Array<Types::RepositoryTrigger>] :triggers
|
670
|
+
# The JSON block of configuration information for each trigger.
|
671
|
+
#
|
672
|
+
# @return [Types::PutRepositoryTriggersOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
673
|
+
#
|
674
|
+
# * {Types::PutRepositoryTriggersOutput#configuration_id #configuration_id} => String
|
675
|
+
#
|
676
|
+
# @example Request syntax with placeholder values
|
677
|
+
#
|
678
|
+
# resp = client.put_repository_triggers({
|
679
|
+
# repository_name: "RepositoryName", # required
|
680
|
+
# triggers: [ # required
|
681
|
+
# {
|
682
|
+
# name: "RepositoryTriggerName", # required
|
683
|
+
# destination_arn: "Arn", # required
|
684
|
+
# custom_data: "RepositoryTriggerCustomData",
|
685
|
+
# branches: ["BranchName"],
|
686
|
+
# events: ["all"], # required, accepts all, updateReference, createReference, deleteReference
|
687
|
+
# },
|
688
|
+
# ],
|
689
|
+
# })
|
690
|
+
#
|
691
|
+
# @example Response structure
|
692
|
+
#
|
693
|
+
# resp.configuration_id #=> String
|
694
|
+
#
|
695
|
+
# @overload put_repository_triggers(params = {})
|
696
|
+
# @param [Hash] params ({})
|
697
|
+
def put_repository_triggers(params = {}, options = {})
|
698
|
+
req = build_request(:put_repository_triggers, params)
|
699
|
+
req.send_request(options)
|
700
|
+
end
|
666
701
|
|
667
|
-
|
702
|
+
# Tests the functionality of repository triggers by sending information
|
703
|
+
# to the trigger target. If real data is available in the repository,
|
704
|
+
# the test will send data from the last commit. If no data is available,
|
705
|
+
# sample data will be generated.
|
706
|
+
#
|
707
|
+
# @option params [required, String] :repository_name
|
708
|
+
# The name of the repository in which to test the triggers.
|
709
|
+
#
|
710
|
+
# @option params [required, Array<Types::RepositoryTrigger>] :triggers
|
711
|
+
# The list of triggers to test.
|
712
|
+
#
|
713
|
+
# @return [Types::TestRepositoryTriggersOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
714
|
+
#
|
715
|
+
# * {Types::TestRepositoryTriggersOutput#successful_executions #successful_executions} => Array<String>
|
716
|
+
# * {Types::TestRepositoryTriggersOutput#failed_executions #failed_executions} => Array<Types::RepositoryTriggerExecutionFailure>
|
717
|
+
#
|
718
|
+
# @example Request syntax with placeholder values
|
719
|
+
#
|
720
|
+
# resp = client.test_repository_triggers({
|
721
|
+
# repository_name: "RepositoryName", # required
|
722
|
+
# triggers: [ # required
|
723
|
+
# {
|
724
|
+
# name: "RepositoryTriggerName", # required
|
725
|
+
# destination_arn: "Arn", # required
|
726
|
+
# custom_data: "RepositoryTriggerCustomData",
|
727
|
+
# branches: ["BranchName"],
|
728
|
+
# events: ["all"], # required, accepts all, updateReference, createReference, deleteReference
|
729
|
+
# },
|
730
|
+
# ],
|
731
|
+
# })
|
732
|
+
#
|
733
|
+
# @example Response structure
|
734
|
+
#
|
735
|
+
# resp.successful_executions #=> Array
|
736
|
+
# resp.successful_executions[0] #=> String
|
737
|
+
# resp.failed_executions #=> Array
|
738
|
+
# resp.failed_executions[0].trigger #=> String
|
739
|
+
# resp.failed_executions[0].failure_message #=> String
|
740
|
+
#
|
741
|
+
# @overload test_repository_triggers(params = {})
|
742
|
+
# @param [Hash] params ({})
|
743
|
+
def test_repository_triggers(params = {}, options = {})
|
744
|
+
req = build_request(:test_repository_triggers, params)
|
745
|
+
req.send_request(options)
|
746
|
+
end
|
668
747
|
|
669
|
-
|
670
|
-
|
748
|
+
# Sets or changes the default branch name for the specified repository.
|
749
|
+
#
|
750
|
+
# <note markdown="1"> If you use this operation to change the default branch name to the
|
751
|
+
# current default branch name, a success message is returned even though
|
752
|
+
# the default branch did not change.
|
753
|
+
#
|
754
|
+
# </note>
|
755
|
+
#
|
756
|
+
# @option params [required, String] :repository_name
|
757
|
+
# The name of the repository to set or change the default branch for.
|
758
|
+
#
|
759
|
+
# @option params [required, String] :default_branch_name
|
760
|
+
# The name of the branch to set as the default.
|
761
|
+
#
|
762
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
763
|
+
#
|
764
|
+
# @example Request syntax with placeholder values
|
765
|
+
#
|
766
|
+
# resp = client.update_default_branch({
|
767
|
+
# repository_name: "RepositoryName", # required
|
768
|
+
# default_branch_name: "BranchName", # required
|
769
|
+
# })
|
770
|
+
#
|
771
|
+
# @overload update_default_branch(params = {})
|
772
|
+
# @param [Hash] params ({})
|
773
|
+
def update_default_branch(params = {}, options = {})
|
774
|
+
req = build_request(:update_default_branch, params)
|
775
|
+
req.send_request(options)
|
776
|
+
end
|
671
777
|
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
778
|
+
# Sets or changes the comment or description for a repository.
|
779
|
+
#
|
780
|
+
# <note markdown="1"> The description field for a repository accepts all HTML characters and
|
781
|
+
# all valid Unicode characters. Applications that do not HTML-encode the
|
782
|
+
# description and display it in a web page could expose users to
|
783
|
+
# potentially malicious code. Make sure that you HTML-encode the
|
784
|
+
# description field in any application that uses this API to display the
|
785
|
+
# repository description on a web page.
|
786
|
+
#
|
787
|
+
# </note>
|
788
|
+
#
|
789
|
+
# @option params [required, String] :repository_name
|
790
|
+
# The name of the repository to set or change the comment or description
|
791
|
+
# for.
|
792
|
+
#
|
793
|
+
# @option params [String] :repository_description
|
794
|
+
# The new comment or description for the specified repository.
|
795
|
+
# Repository descriptions are limited to 1,000 characters.
|
796
|
+
#
|
797
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
798
|
+
#
|
799
|
+
# @example Request syntax with placeholder values
|
800
|
+
#
|
801
|
+
# resp = client.update_repository_description({
|
802
|
+
# repository_name: "RepositoryName", # required
|
803
|
+
# repository_description: "RepositoryDescription",
|
804
|
+
# })
|
805
|
+
#
|
806
|
+
# @overload update_repository_description(params = {})
|
807
|
+
# @param [Hash] params ({})
|
808
|
+
def update_repository_description(params = {}, options = {})
|
809
|
+
req = build_request(:update_repository_description, params)
|
810
|
+
req.send_request(options)
|
811
|
+
end
|
676
812
|
|
813
|
+
# Renames a repository. The repository name must be unique across the
|
814
|
+
# calling AWS account. In addition, repository names are limited to 100
|
815
|
+
# alphanumeric, dash, and underscore characters, and cannot include
|
816
|
+
# certain characters. The suffix ".git" is prohibited. For a full
|
817
|
+
# description of the limits on repository names, see [Limits][1] in the
|
818
|
+
# AWS CodeCommit User Guide.
|
819
|
+
#
|
820
|
+
#
|
821
|
+
#
|
822
|
+
# [1]: http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html
|
823
|
+
#
|
824
|
+
# @option params [required, String] :old_name
|
825
|
+
# The existing name of the repository.
|
826
|
+
#
|
827
|
+
# @option params [required, String] :new_name
|
828
|
+
# The new name for the repository.
|
829
|
+
#
|
830
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
831
|
+
#
|
832
|
+
# @example Request syntax with placeholder values
|
833
|
+
#
|
834
|
+
# resp = client.update_repository_name({
|
835
|
+
# old_name: "RepositoryName", # required
|
836
|
+
# new_name: "RepositoryName", # required
|
837
|
+
# })
|
838
|
+
#
|
839
|
+
# @overload update_repository_name(params = {})
|
840
|
+
# @param [Hash] params ({})
|
841
|
+
def update_repository_name(params = {}, options = {})
|
842
|
+
req = build_request(:update_repository_name, params)
|
843
|
+
req.send_request(options)
|
844
|
+
end
|
845
|
+
|
846
|
+
# @!endgroup
|
847
|
+
|
848
|
+
# @param params ({})
|
849
|
+
# @api private
|
850
|
+
def build_request(operation_name, params = {})
|
851
|
+
handlers = @handlers.for(operation_name)
|
852
|
+
context = Seahorse::Client::RequestContext.new(
|
853
|
+
operation_name: operation_name,
|
854
|
+
operation: config.api.operation(operation_name),
|
855
|
+
client: self,
|
856
|
+
params: params,
|
857
|
+
config: config)
|
858
|
+
context[:gem_name] = 'aws-sdk-codecommit'
|
859
|
+
context[:gem_version] = '1.0.0.rc1'
|
860
|
+
Seahorse::Client::Request.new(handlers, context)
|
861
|
+
end
|
862
|
+
|
863
|
+
# @api private
|
864
|
+
# @deprecated
|
865
|
+
def waiter_names
|
866
|
+
[]
|
867
|
+
end
|
868
|
+
|
869
|
+
class << self
|
870
|
+
|
871
|
+
# @api private
|
872
|
+
attr_reader :identifier
|
873
|
+
|
874
|
+
# @api private
|
875
|
+
def errors_module
|
876
|
+
Errors
|
677
877
|
end
|
878
|
+
|
678
879
|
end
|
679
880
|
end
|
680
881
|
end
|