aws-sdk-codecommit 1.27.0 → 1.28.0
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 +56 -1
- data/lib/aws-sdk-codecommit/client_api.rb +47 -0
- data/lib/aws-sdk-codecommit/types.rb +75 -0
- 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: 9f1e1b2c66238f67e6004c7b8f58d3b7152b035d
|
4
|
+
data.tar.gz: 5b565ffb6085baa611ec643ac1615167f51365c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ebb12bbfdef15e21218de833f99a5725ab66e33ca779fbacaad3ebf3d188d4f7fab73589ed154eb128db1cb9d9188f5c74cdafe9e941433b1fdd95b15464551
|
7
|
+
data.tar.gz: 20c9937a2c8b7fb5e04cf5995f3d9f6a7c1b0dbfbed7acd65cea154f39391e605eff106660f962f7eab4c9c67768e3629746d56419c5c510034898e6b5a0d773
|
data/lib/aws-sdk-codecommit.rb
CHANGED
@@ -385,6 +385,61 @@ module Aws::CodeCommit
|
|
385
385
|
req.send_request(options)
|
386
386
|
end
|
387
387
|
|
388
|
+
# Returns information about the contents of one or more commits in a
|
389
|
+
# repository.
|
390
|
+
#
|
391
|
+
# @option params [required, Array<String>] :commit_ids
|
392
|
+
# The full commit IDs of the commits to get information about.
|
393
|
+
#
|
394
|
+
# <note markdown="1"> You must supply the full SHAs of each commit. You cannot use shortened
|
395
|
+
# SHAs.
|
396
|
+
#
|
397
|
+
# </note>
|
398
|
+
#
|
399
|
+
# @option params [required, String] :repository_name
|
400
|
+
# The name of the repository that contains the commits.
|
401
|
+
#
|
402
|
+
# @return [Types::BatchGetCommitsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
403
|
+
#
|
404
|
+
# * {Types::BatchGetCommitsOutput#commits #commits} => Array<Types::Commit>
|
405
|
+
# * {Types::BatchGetCommitsOutput#errors #errors} => Array<Types::BatchGetCommitsError>
|
406
|
+
#
|
407
|
+
# @example Request syntax with placeholder values
|
408
|
+
#
|
409
|
+
# resp = client.batch_get_commits({
|
410
|
+
# commit_ids: ["ObjectId"], # required
|
411
|
+
# repository_name: "RepositoryName", # required
|
412
|
+
# })
|
413
|
+
#
|
414
|
+
# @example Response structure
|
415
|
+
#
|
416
|
+
# resp.commits #=> Array
|
417
|
+
# resp.commits[0].commit_id #=> String
|
418
|
+
# resp.commits[0].tree_id #=> String
|
419
|
+
# resp.commits[0].parents #=> Array
|
420
|
+
# resp.commits[0].parents[0] #=> String
|
421
|
+
# resp.commits[0].message #=> String
|
422
|
+
# resp.commits[0].author.name #=> String
|
423
|
+
# resp.commits[0].author.email #=> String
|
424
|
+
# resp.commits[0].author.date #=> String
|
425
|
+
# resp.commits[0].committer.name #=> String
|
426
|
+
# resp.commits[0].committer.email #=> String
|
427
|
+
# resp.commits[0].committer.date #=> String
|
428
|
+
# resp.commits[0].additional_data #=> String
|
429
|
+
# resp.errors #=> Array
|
430
|
+
# resp.errors[0].commit_id #=> String
|
431
|
+
# resp.errors[0].error_code #=> String
|
432
|
+
# resp.errors[0].error_message #=> String
|
433
|
+
#
|
434
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetCommits AWS API Documentation
|
435
|
+
#
|
436
|
+
# @overload batch_get_commits(params = {})
|
437
|
+
# @param [Hash] params ({})
|
438
|
+
def batch_get_commits(params = {}, options = {})
|
439
|
+
req = build_request(:batch_get_commits, params)
|
440
|
+
req.send_request(options)
|
441
|
+
end
|
442
|
+
|
388
443
|
# Returns information about one or more repositories.
|
389
444
|
#
|
390
445
|
# <note markdown="1"> The description field for a repository accepts all HTML characters and
|
@@ -3578,7 +3633,7 @@ module Aws::CodeCommit
|
|
3578
3633
|
params: params,
|
3579
3634
|
config: config)
|
3580
3635
|
context[:gem_name] = 'aws-sdk-codecommit'
|
3581
|
-
context[:gem_version] = '1.
|
3636
|
+
context[:gem_version] = '1.28.0'
|
3582
3637
|
Seahorse::Client::Request.new(handlers, context)
|
3583
3638
|
end
|
3584
3639
|
|
@@ -20,6 +20,10 @@ module Aws::CodeCommit
|
|
20
20
|
BatchDescribeMergeConflictsErrors = Shapes::ListShape.new(name: 'BatchDescribeMergeConflictsErrors')
|
21
21
|
BatchDescribeMergeConflictsInput = Shapes::StructureShape.new(name: 'BatchDescribeMergeConflictsInput')
|
22
22
|
BatchDescribeMergeConflictsOutput = Shapes::StructureShape.new(name: 'BatchDescribeMergeConflictsOutput')
|
23
|
+
BatchGetCommitsError = Shapes::StructureShape.new(name: 'BatchGetCommitsError')
|
24
|
+
BatchGetCommitsErrorsList = Shapes::ListShape.new(name: 'BatchGetCommitsErrorsList')
|
25
|
+
BatchGetCommitsInput = Shapes::StructureShape.new(name: 'BatchGetCommitsInput')
|
26
|
+
BatchGetCommitsOutput = Shapes::StructureShape.new(name: 'BatchGetCommitsOutput')
|
23
27
|
BatchGetRepositoriesInput = Shapes::StructureShape.new(name: 'BatchGetRepositoriesInput')
|
24
28
|
BatchGetRepositoriesOutput = Shapes::StructureShape.new(name: 'BatchGetRepositoriesOutput')
|
25
29
|
BeforeCommitIdAndAfterCommitIdAreSameException = Shapes::StructureShape.new(name: 'BeforeCommitIdAndAfterCommitIdAreSameException')
|
@@ -57,8 +61,12 @@ module Aws::CodeCommit
|
|
57
61
|
CommitId = Shapes::StringShape.new(name: 'CommitId')
|
58
62
|
CommitIdDoesNotExistException = Shapes::StructureShape.new(name: 'CommitIdDoesNotExistException')
|
59
63
|
CommitIdRequiredException = Shapes::StructureShape.new(name: 'CommitIdRequiredException')
|
64
|
+
CommitIdsInputList = Shapes::ListShape.new(name: 'CommitIdsInputList')
|
65
|
+
CommitIdsLimitExceededException = Shapes::StructureShape.new(name: 'CommitIdsLimitExceededException')
|
66
|
+
CommitIdsListRequiredException = Shapes::StructureShape.new(name: 'CommitIdsListRequiredException')
|
60
67
|
CommitMessageLengthExceededException = Shapes::StructureShape.new(name: 'CommitMessageLengthExceededException')
|
61
68
|
CommitName = Shapes::StringShape.new(name: 'CommitName')
|
69
|
+
CommitObjectsList = Shapes::ListShape.new(name: 'CommitObjectsList')
|
62
70
|
CommitRequiredException = Shapes::StructureShape.new(name: 'CommitRequiredException')
|
63
71
|
ConcurrentReferenceUpdateException = Shapes::StructureShape.new(name: 'ConcurrentReferenceUpdateException')
|
64
72
|
Conflict = Shapes::StructureShape.new(name: 'Conflict')
|
@@ -105,6 +113,8 @@ module Aws::CodeCommit
|
|
105
113
|
EncryptionKeyDisabledException = Shapes::StructureShape.new(name: 'EncryptionKeyDisabledException')
|
106
114
|
EncryptionKeyNotFoundException = Shapes::StructureShape.new(name: 'EncryptionKeyNotFoundException')
|
107
115
|
EncryptionKeyUnavailableException = Shapes::StructureShape.new(name: 'EncryptionKeyUnavailableException')
|
116
|
+
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
117
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
108
118
|
EventDate = Shapes::TimestampShape.new(name: 'EventDate')
|
109
119
|
ExceptionName = Shapes::StringShape.new(name: 'ExceptionName')
|
110
120
|
File = Shapes::StructureShape.new(name: 'File')
|
@@ -435,6 +445,21 @@ module Aws::CodeCommit
|
|
435
445
|
BatchDescribeMergeConflictsOutput.add_member(:base_commit_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "baseCommitId"))
|
436
446
|
BatchDescribeMergeConflictsOutput.struct_class = Types::BatchDescribeMergeConflictsOutput
|
437
447
|
|
448
|
+
BatchGetCommitsError.add_member(:commit_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "commitId"))
|
449
|
+
BatchGetCommitsError.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
|
450
|
+
BatchGetCommitsError.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "errorMessage"))
|
451
|
+
BatchGetCommitsError.struct_class = Types::BatchGetCommitsError
|
452
|
+
|
453
|
+
BatchGetCommitsErrorsList.member = Shapes::ShapeRef.new(shape: BatchGetCommitsError)
|
454
|
+
|
455
|
+
BatchGetCommitsInput.add_member(:commit_ids, Shapes::ShapeRef.new(shape: CommitIdsInputList, required: true, location_name: "commitIds"))
|
456
|
+
BatchGetCommitsInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
457
|
+
BatchGetCommitsInput.struct_class = Types::BatchGetCommitsInput
|
458
|
+
|
459
|
+
BatchGetCommitsOutput.add_member(:commits, Shapes::ShapeRef.new(shape: CommitObjectsList, location_name: "commits"))
|
460
|
+
BatchGetCommitsOutput.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetCommitsErrorsList, location_name: "errors"))
|
461
|
+
BatchGetCommitsOutput.struct_class = Types::BatchGetCommitsOutput
|
462
|
+
|
438
463
|
BatchGetRepositoriesInput.add_member(:repository_names, Shapes::ShapeRef.new(shape: RepositoryNameList, required: true, location_name: "repositoryNames"))
|
439
464
|
BatchGetRepositoriesInput.struct_class = Types::BatchGetRepositoriesInput
|
440
465
|
|
@@ -497,6 +522,10 @@ module Aws::CodeCommit
|
|
497
522
|
Commit.add_member(:additional_data, Shapes::ShapeRef.new(shape: AdditionalData, location_name: "additionalData"))
|
498
523
|
Commit.struct_class = Types::Commit
|
499
524
|
|
525
|
+
CommitIdsInputList.member = Shapes::ShapeRef.new(shape: ObjectId)
|
526
|
+
|
527
|
+
CommitObjectsList.member = Shapes::ShapeRef.new(shape: Commit)
|
528
|
+
|
500
529
|
Conflict.add_member(:conflict_metadata, Shapes::ShapeRef.new(shape: ConflictMetadata, location_name: "conflictMetadata"))
|
501
530
|
Conflict.add_member(:merge_hunks, Shapes::ShapeRef.new(shape: MergeHunks, location_name: "mergeHunks"))
|
502
531
|
Conflict.struct_class = Types::Conflict
|
@@ -1332,6 +1361,24 @@ module Aws::CodeCommit
|
|
1332
1361
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
1333
1362
|
end)
|
1334
1363
|
|
1364
|
+
api.add_operation(:batch_get_commits, Seahorse::Model::Operation.new.tap do |o|
|
1365
|
+
o.name = "BatchGetCommits"
|
1366
|
+
o.http_method = "POST"
|
1367
|
+
o.http_request_uri = "/"
|
1368
|
+
o.input = Shapes::ShapeRef.new(shape: BatchGetCommitsInput)
|
1369
|
+
o.output = Shapes::ShapeRef.new(shape: BatchGetCommitsOutput)
|
1370
|
+
o.errors << Shapes::ShapeRef.new(shape: CommitIdsListRequiredException)
|
1371
|
+
o.errors << Shapes::ShapeRef.new(shape: CommitIdsLimitExceededException)
|
1372
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
|
1373
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
1374
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
1375
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
1376
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
1377
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
1378
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
1379
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
1380
|
+
end)
|
1381
|
+
|
1335
1382
|
api.add_operation(:batch_get_repositories, Seahorse::Model::Operation.new.tap do |o|
|
1336
1383
|
o.name = "BatchGetRepositories"
|
1337
1384
|
o.http_method = "POST"
|
@@ -156,6 +156,81 @@ module Aws::CodeCommit
|
|
156
156
|
include Aws::Structure
|
157
157
|
end
|
158
158
|
|
159
|
+
# Returns information about errors in a BatchGetCommits operation.
|
160
|
+
#
|
161
|
+
# @!attribute [rw] commit_id
|
162
|
+
# A commit ID that either could not be found or was not in a valid
|
163
|
+
# format.
|
164
|
+
# @return [String]
|
165
|
+
#
|
166
|
+
# @!attribute [rw] error_code
|
167
|
+
# An error code that specifies whether the commit ID was not valid or
|
168
|
+
# not found.
|
169
|
+
# @return [String]
|
170
|
+
#
|
171
|
+
# @!attribute [rw] error_message
|
172
|
+
# An error message that provides detail about why the commit ID either
|
173
|
+
# was not found or was not valid.
|
174
|
+
# @return [String]
|
175
|
+
#
|
176
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetCommitsError AWS API Documentation
|
177
|
+
#
|
178
|
+
class BatchGetCommitsError < Struct.new(
|
179
|
+
:commit_id,
|
180
|
+
:error_code,
|
181
|
+
:error_message)
|
182
|
+
include Aws::Structure
|
183
|
+
end
|
184
|
+
|
185
|
+
# @note When making an API call, you may pass BatchGetCommitsInput
|
186
|
+
# data as a hash:
|
187
|
+
#
|
188
|
+
# {
|
189
|
+
# commit_ids: ["ObjectId"], # required
|
190
|
+
# repository_name: "RepositoryName", # required
|
191
|
+
# }
|
192
|
+
#
|
193
|
+
# @!attribute [rw] commit_ids
|
194
|
+
# The full commit IDs of the commits to get information about.
|
195
|
+
#
|
196
|
+
# <note markdown="1"> You must supply the full SHAs of each commit. You cannot use
|
197
|
+
# shortened SHAs.
|
198
|
+
#
|
199
|
+
# </note>
|
200
|
+
# @return [Array<String>]
|
201
|
+
#
|
202
|
+
# @!attribute [rw] repository_name
|
203
|
+
# The name of the repository that contains the commits.
|
204
|
+
# @return [String]
|
205
|
+
#
|
206
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetCommitsInput AWS API Documentation
|
207
|
+
#
|
208
|
+
class BatchGetCommitsInput < Struct.new(
|
209
|
+
:commit_ids,
|
210
|
+
:repository_name)
|
211
|
+
include Aws::Structure
|
212
|
+
end
|
213
|
+
|
214
|
+
# @!attribute [rw] commits
|
215
|
+
# An array of commit data type objects, each of which contains
|
216
|
+
# information about a specified commit.
|
217
|
+
# @return [Array<Types::Commit>]
|
218
|
+
#
|
219
|
+
# @!attribute [rw] errors
|
220
|
+
# Returns any commit IDs for which information could not be found. For
|
221
|
+
# example, if one of the commit IDs was a shortened SHA or that commit
|
222
|
+
# was not found in the specified repository, the ID will return an
|
223
|
+
# error object with additional information.
|
224
|
+
# @return [Array<Types::BatchGetCommitsError>]
|
225
|
+
#
|
226
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetCommitsOutput AWS API Documentation
|
227
|
+
#
|
228
|
+
class BatchGetCommitsOutput < Struct.new(
|
229
|
+
:commits,
|
230
|
+
:errors)
|
231
|
+
include Aws::Structure
|
232
|
+
end
|
233
|
+
|
159
234
|
# Represents the input of a batch get repositories operation.
|
160
235
|
#
|
161
236
|
# @note When making an API call, you may pass BatchGetRepositoriesInput
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-codecommit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|