aws-sdk-codecommit 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-codecommit.rb +1 -1
- data/lib/aws-sdk-codecommit/client.rb +108 -1
- data/lib/aws-sdk-codecommit/client_api.rb +116 -1
- data/lib/aws-sdk-codecommit/types.rb +277 -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: 0265156f41aa6a55d0d26c83729d7ab539c12b1b
|
4
|
+
data.tar.gz: 48530136a9cbe49a4f88a9b4914d8eb29ab5f4a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87a0e60e600b6d05525f9d23d9236f683e2d46f4c342692b9c6461d22147c3241607f239e335c073ef676dc1aab1cd6234b41faa961ffd0aab92ec5e52b9f9f9
|
7
|
+
data.tar.gz: af3880a51bcc1b9ff4c2286395125cc47e7690ae0e5dde956fc78572b8942d5ad55178372662b4ecb943804de0f63f7f7165a90dc65177f092b69c44c5266c7f
|
data/lib/aws-sdk-codecommit.rb
CHANGED
@@ -301,6 +301,113 @@ module Aws::CodeCommit
|
|
301
301
|
req.send_request(options)
|
302
302
|
end
|
303
303
|
|
304
|
+
# Creates a commit for a repository on the tip of a specified branch.
|
305
|
+
#
|
306
|
+
# @option params [required, String] :repository_name
|
307
|
+
# The name of the repository where you will create the commit.
|
308
|
+
#
|
309
|
+
# @option params [required, String] :branch_name
|
310
|
+
# The name of the branch where you will create the commit.
|
311
|
+
#
|
312
|
+
# @option params [String] :parent_commit_id
|
313
|
+
# The ID of the commit that is the parent of the commit you will create.
|
314
|
+
# If this is an empty repository, this is not required.
|
315
|
+
#
|
316
|
+
# @option params [String] :author_name
|
317
|
+
# The name of the author who created the commit. This information will
|
318
|
+
# be used as both the author and committer for the commit.
|
319
|
+
#
|
320
|
+
# @option params [String] :email
|
321
|
+
# The email address of the person who created the commit.
|
322
|
+
#
|
323
|
+
# @option params [String] :commit_message
|
324
|
+
# The commit message you want to include as part of creating the commit.
|
325
|
+
# Commit messages are limited to 256 KB. If no message is specified, a
|
326
|
+
# default message will be used.
|
327
|
+
#
|
328
|
+
# @option params [Boolean] :keep_empty_folders
|
329
|
+
# If the commit contains deletions, whether to keep a folder or folder
|
330
|
+
# structure if the changes leave the folders empty. If this is specified
|
331
|
+
# as true, a .gitkeep file will be created for empty folders.
|
332
|
+
#
|
333
|
+
# @option params [Array<Types::PutFileEntry>] :put_files
|
334
|
+
# The files to add or update in this commit.
|
335
|
+
#
|
336
|
+
# @option params [Array<Types::DeleteFileEntry>] :delete_files
|
337
|
+
# The files to delete in this commit. These files will still exist in
|
338
|
+
# prior commits.
|
339
|
+
#
|
340
|
+
# @option params [Array<Types::SetFileModeEntry>] :set_file_modes
|
341
|
+
# The file modes to update for files in this commit.
|
342
|
+
#
|
343
|
+
# @return [Types::CreateCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
344
|
+
#
|
345
|
+
# * {Types::CreateCommitOutput#commit_id #commit_id} => String
|
346
|
+
# * {Types::CreateCommitOutput#tree_id #tree_id} => String
|
347
|
+
# * {Types::CreateCommitOutput#files_added #files_added} => Array<Types::FileMetadata>
|
348
|
+
# * {Types::CreateCommitOutput#files_updated #files_updated} => Array<Types::FileMetadata>
|
349
|
+
# * {Types::CreateCommitOutput#files_deleted #files_deleted} => Array<Types::FileMetadata>
|
350
|
+
#
|
351
|
+
# @example Request syntax with placeholder values
|
352
|
+
#
|
353
|
+
# resp = client.create_commit({
|
354
|
+
# repository_name: "RepositoryName", # required
|
355
|
+
# branch_name: "BranchName", # required
|
356
|
+
# parent_commit_id: "CommitId",
|
357
|
+
# author_name: "Name",
|
358
|
+
# email: "Email",
|
359
|
+
# commit_message: "Message",
|
360
|
+
# keep_empty_folders: false,
|
361
|
+
# put_files: [
|
362
|
+
# {
|
363
|
+
# file_path: "Path", # required
|
364
|
+
# file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
|
365
|
+
# file_content: "data",
|
366
|
+
# source_file: {
|
367
|
+
# file_path: "Path", # required
|
368
|
+
# is_move: false,
|
369
|
+
# },
|
370
|
+
# },
|
371
|
+
# ],
|
372
|
+
# delete_files: [
|
373
|
+
# {
|
374
|
+
# file_path: "Path", # required
|
375
|
+
# },
|
376
|
+
# ],
|
377
|
+
# set_file_modes: [
|
378
|
+
# {
|
379
|
+
# file_path: "Path", # required
|
380
|
+
# file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
|
381
|
+
# },
|
382
|
+
# ],
|
383
|
+
# })
|
384
|
+
#
|
385
|
+
# @example Response structure
|
386
|
+
#
|
387
|
+
# resp.commit_id #=> String
|
388
|
+
# resp.tree_id #=> String
|
389
|
+
# resp.files_added #=> Array
|
390
|
+
# resp.files_added[0].absolute_path #=> String
|
391
|
+
# resp.files_added[0].blob_id #=> String
|
392
|
+
# resp.files_added[0].file_mode #=> String, one of "EXECUTABLE", "NORMAL", "SYMLINK"
|
393
|
+
# resp.files_updated #=> Array
|
394
|
+
# resp.files_updated[0].absolute_path #=> String
|
395
|
+
# resp.files_updated[0].blob_id #=> String
|
396
|
+
# resp.files_updated[0].file_mode #=> String, one of "EXECUTABLE", "NORMAL", "SYMLINK"
|
397
|
+
# resp.files_deleted #=> Array
|
398
|
+
# resp.files_deleted[0].absolute_path #=> String
|
399
|
+
# resp.files_deleted[0].blob_id #=> String
|
400
|
+
# resp.files_deleted[0].file_mode #=> String, one of "EXECUTABLE", "NORMAL", "SYMLINK"
|
401
|
+
#
|
402
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateCommit AWS API Documentation
|
403
|
+
#
|
404
|
+
# @overload create_commit(params = {})
|
405
|
+
# @param [Hash] params ({})
|
406
|
+
def create_commit(params = {}, options = {})
|
407
|
+
req = build_request(:create_commit, params)
|
408
|
+
req.send_request(options)
|
409
|
+
end
|
410
|
+
|
304
411
|
# Creates a pull request in the specified repository.
|
305
412
|
#
|
306
413
|
# @option params [required, String] :title
|
@@ -2265,7 +2372,7 @@ module Aws::CodeCommit
|
|
2265
2372
|
params: params,
|
2266
2373
|
config: config)
|
2267
2374
|
context[:gem_name] = 'aws-sdk-codecommit'
|
2268
|
-
context[:gem_version] = '1.
|
2375
|
+
context[:gem_version] = '1.14.0'
|
2269
2376
|
Seahorse::Client::Request.new(handlers, context)
|
2270
2377
|
end
|
2271
2378
|
|
@@ -57,6 +57,8 @@ module Aws::CodeCommit
|
|
57
57
|
CommitRequiredException = Shapes::StructureShape.new(name: 'CommitRequiredException')
|
58
58
|
Content = Shapes::StringShape.new(name: 'Content')
|
59
59
|
CreateBranchInput = Shapes::StructureShape.new(name: 'CreateBranchInput')
|
60
|
+
CreateCommitInput = Shapes::StructureShape.new(name: 'CreateCommitInput')
|
61
|
+
CreateCommitOutput = Shapes::StructureShape.new(name: 'CreateCommitOutput')
|
60
62
|
CreatePullRequestInput = Shapes::StructureShape.new(name: 'CreatePullRequestInput')
|
61
63
|
CreatePullRequestOutput = Shapes::StructureShape.new(name: 'CreatePullRequestOutput')
|
62
64
|
CreateRepositoryInput = Shapes::StructureShape.new(name: 'CreateRepositoryInput')
|
@@ -68,6 +70,8 @@ module Aws::CodeCommit
|
|
68
70
|
DeleteBranchOutput = Shapes::StructureShape.new(name: 'DeleteBranchOutput')
|
69
71
|
DeleteCommentContentInput = Shapes::StructureShape.new(name: 'DeleteCommentContentInput')
|
70
72
|
DeleteCommentContentOutput = Shapes::StructureShape.new(name: 'DeleteCommentContentOutput')
|
73
|
+
DeleteFileEntries = Shapes::ListShape.new(name: 'DeleteFileEntries')
|
74
|
+
DeleteFileEntry = Shapes::StructureShape.new(name: 'DeleteFileEntry')
|
71
75
|
DeleteFileInput = Shapes::StructureShape.new(name: 'DeleteFileInput')
|
72
76
|
DeleteFileOutput = Shapes::StructureShape.new(name: 'DeleteFileOutput')
|
73
77
|
DeleteRepositoryInput = Shapes::StructureShape.new(name: 'DeleteRepositoryInput')
|
@@ -87,14 +91,19 @@ module Aws::CodeCommit
|
|
87
91
|
EventDate = Shapes::TimestampShape.new(name: 'EventDate')
|
88
92
|
File = Shapes::StructureShape.new(name: 'File')
|
89
93
|
FileContent = Shapes::BlobShape.new(name: 'FileContent')
|
94
|
+
FileContentAndSourceFileSpecifiedException = Shapes::StructureShape.new(name: 'FileContentAndSourceFileSpecifiedException')
|
90
95
|
FileContentRequiredException = Shapes::StructureShape.new(name: 'FileContentRequiredException')
|
91
96
|
FileContentSizeLimitExceededException = Shapes::StructureShape.new(name: 'FileContentSizeLimitExceededException')
|
92
97
|
FileDoesNotExistException = Shapes::StructureShape.new(name: 'FileDoesNotExistException')
|
98
|
+
FileEntryRequiredException = Shapes::StructureShape.new(name: 'FileEntryRequiredException')
|
93
99
|
FileList = Shapes::ListShape.new(name: 'FileList')
|
100
|
+
FileMetadata = Shapes::StructureShape.new(name: 'FileMetadata')
|
101
|
+
FileModeRequiredException = Shapes::StructureShape.new(name: 'FileModeRequiredException')
|
94
102
|
FileModeTypeEnum = Shapes::StringShape.new(name: 'FileModeTypeEnum')
|
95
103
|
FileNameConflictsWithDirectoryNameException = Shapes::StructureShape.new(name: 'FileNameConflictsWithDirectoryNameException')
|
96
104
|
FilePathConflictsWithSubmodulePathException = Shapes::StructureShape.new(name: 'FilePathConflictsWithSubmodulePathException')
|
97
105
|
FileTooLargeException = Shapes::StructureShape.new(name: 'FileTooLargeException')
|
106
|
+
FilesMetadata = Shapes::ListShape.new(name: 'FilesMetadata')
|
98
107
|
Folder = Shapes::StructureShape.new(name: 'Folder')
|
99
108
|
FolderContentSizeLimitExceededException = Shapes::StructureShape.new(name: 'FolderContentSizeLimitExceededException')
|
100
109
|
FolderDoesNotExistException = Shapes::StructureShape.new(name: 'FolderDoesNotExistException')
|
@@ -169,6 +178,7 @@ module Aws::CodeCommit
|
|
169
178
|
IsCommentDeleted = Shapes::BooleanShape.new(name: 'IsCommentDeleted')
|
170
179
|
IsMergeable = Shapes::BooleanShape.new(name: 'IsMergeable')
|
171
180
|
IsMerged = Shapes::BooleanShape.new(name: 'IsMerged')
|
181
|
+
IsMove = Shapes::BooleanShape.new(name: 'IsMove')
|
172
182
|
KeepEmptyFolders = Shapes::BooleanShape.new(name: 'KeepEmptyFolders')
|
173
183
|
LastModifiedDate = Shapes::TimestampShape.new(name: 'LastModifiedDate')
|
174
184
|
Limit = Shapes::IntegerShape.new(name: 'Limit')
|
@@ -182,6 +192,7 @@ module Aws::CodeCommit
|
|
182
192
|
ManualMergeRequiredException = Shapes::StructureShape.new(name: 'ManualMergeRequiredException')
|
183
193
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
184
194
|
MaximumBranchesExceededException = Shapes::StructureShape.new(name: 'MaximumBranchesExceededException')
|
195
|
+
MaximumFileEntriesExceededException = Shapes::StructureShape.new(name: 'MaximumFileEntriesExceededException')
|
185
196
|
MaximumOpenPullRequestsExceededException = Shapes::StructureShape.new(name: 'MaximumOpenPullRequestsExceededException')
|
186
197
|
MaximumRepositoryNamesExceededException = Shapes::StructureShape.new(name: 'MaximumRepositoryNamesExceededException')
|
187
198
|
MaximumRepositoryTriggersExceededException = Shapes::StructureShape.new(name: 'MaximumRepositoryTriggersExceededException')
|
@@ -196,6 +207,7 @@ module Aws::CodeCommit
|
|
196
207
|
Name = Shapes::StringShape.new(name: 'Name')
|
197
208
|
NameLengthExceededException = Shapes::StructureShape.new(name: 'NameLengthExceededException')
|
198
209
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
210
|
+
NoChangeException = Shapes::StructureShape.new(name: 'NoChangeException')
|
199
211
|
ObjectId = Shapes::StringShape.new(name: 'ObjectId')
|
200
212
|
ObjectSize = Shapes::IntegerShape.new(name: 'ObjectSize')
|
201
213
|
OrderEnum = Shapes::StringShape.new(name: 'OrderEnum')
|
@@ -230,6 +242,9 @@ module Aws::CodeCommit
|
|
230
242
|
PullRequestStatusRequiredException = Shapes::StructureShape.new(name: 'PullRequestStatusRequiredException')
|
231
243
|
PullRequestTarget = Shapes::StructureShape.new(name: 'PullRequestTarget')
|
232
244
|
PullRequestTargetList = Shapes::ListShape.new(name: 'PullRequestTargetList')
|
245
|
+
PutFileEntries = Shapes::ListShape.new(name: 'PutFileEntries')
|
246
|
+
PutFileEntry = Shapes::StructureShape.new(name: 'PutFileEntry')
|
247
|
+
PutFileEntryConflictException = Shapes::StructureShape.new(name: 'PutFileEntryConflictException')
|
233
248
|
PutFileInput = Shapes::StructureShape.new(name: 'PutFileInput')
|
234
249
|
PutFileOutput = Shapes::StructureShape.new(name: 'PutFileOutput')
|
235
250
|
PutRepositoryTriggersInput = Shapes::StructureShape.new(name: 'PutRepositoryTriggersInput')
|
@@ -270,9 +285,15 @@ module Aws::CodeCommit
|
|
270
285
|
RepositoryTriggersConfigurationId = Shapes::StringShape.new(name: 'RepositoryTriggersConfigurationId')
|
271
286
|
RepositoryTriggersList = Shapes::ListShape.new(name: 'RepositoryTriggersList')
|
272
287
|
RepositoryTriggersListRequiredException = Shapes::StructureShape.new(name: 'RepositoryTriggersListRequiredException')
|
288
|
+
RestrictedSourceFileException = Shapes::StructureShape.new(name: 'RestrictedSourceFileException')
|
273
289
|
SameFileContentException = Shapes::StructureShape.new(name: 'SameFileContentException')
|
290
|
+
SamePathRequestException = Shapes::StructureShape.new(name: 'SamePathRequestException')
|
291
|
+
SetFileModeEntries = Shapes::ListShape.new(name: 'SetFileModeEntries')
|
292
|
+
SetFileModeEntry = Shapes::StructureShape.new(name: 'SetFileModeEntry')
|
274
293
|
SortByEnum = Shapes::StringShape.new(name: 'SortByEnum')
|
275
294
|
SourceAndDestinationAreSameException = Shapes::StructureShape.new(name: 'SourceAndDestinationAreSameException')
|
295
|
+
SourceFileOrContentRequiredException = Shapes::StructureShape.new(name: 'SourceFileOrContentRequiredException')
|
296
|
+
SourceFileSpecifier = Shapes::StructureShape.new(name: 'SourceFileSpecifier')
|
276
297
|
SubModule = Shapes::StructureShape.new(name: 'SubModule')
|
277
298
|
SubModuleList = Shapes::ListShape.new(name: 'SubModuleList')
|
278
299
|
SymbolicLink = Shapes::StructureShape.new(name: 'SymbolicLink')
|
@@ -368,6 +389,25 @@ module Aws::CodeCommit
|
|
368
389
|
CreateBranchInput.add_member(:commit_id, Shapes::ShapeRef.new(shape: CommitId, required: true, location_name: "commitId"))
|
369
390
|
CreateBranchInput.struct_class = Types::CreateBranchInput
|
370
391
|
|
392
|
+
CreateCommitInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
393
|
+
CreateCommitInput.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "branchName"))
|
394
|
+
CreateCommitInput.add_member(:parent_commit_id, Shapes::ShapeRef.new(shape: CommitId, location_name: "parentCommitId"))
|
395
|
+
CreateCommitInput.add_member(:author_name, Shapes::ShapeRef.new(shape: Name, location_name: "authorName"))
|
396
|
+
CreateCommitInput.add_member(:email, Shapes::ShapeRef.new(shape: Email, location_name: "email"))
|
397
|
+
CreateCommitInput.add_member(:commit_message, Shapes::ShapeRef.new(shape: Message, location_name: "commitMessage"))
|
398
|
+
CreateCommitInput.add_member(:keep_empty_folders, Shapes::ShapeRef.new(shape: KeepEmptyFolders, location_name: "keepEmptyFolders"))
|
399
|
+
CreateCommitInput.add_member(:put_files, Shapes::ShapeRef.new(shape: PutFileEntries, location_name: "putFiles"))
|
400
|
+
CreateCommitInput.add_member(:delete_files, Shapes::ShapeRef.new(shape: DeleteFileEntries, location_name: "deleteFiles"))
|
401
|
+
CreateCommitInput.add_member(:set_file_modes, Shapes::ShapeRef.new(shape: SetFileModeEntries, location_name: "setFileModes"))
|
402
|
+
CreateCommitInput.struct_class = Types::CreateCommitInput
|
403
|
+
|
404
|
+
CreateCommitOutput.add_member(:commit_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "commitId"))
|
405
|
+
CreateCommitOutput.add_member(:tree_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "treeId"))
|
406
|
+
CreateCommitOutput.add_member(:files_added, Shapes::ShapeRef.new(shape: FilesMetadata, location_name: "filesAdded"))
|
407
|
+
CreateCommitOutput.add_member(:files_updated, Shapes::ShapeRef.new(shape: FilesMetadata, location_name: "filesUpdated"))
|
408
|
+
CreateCommitOutput.add_member(:files_deleted, Shapes::ShapeRef.new(shape: FilesMetadata, location_name: "filesDeleted"))
|
409
|
+
CreateCommitOutput.struct_class = Types::CreateCommitOutput
|
410
|
+
|
371
411
|
CreatePullRequestInput.add_member(:title, Shapes::ShapeRef.new(shape: Title, required: true, location_name: "title"))
|
372
412
|
CreatePullRequestInput.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
|
373
413
|
CreatePullRequestInput.add_member(:targets, Shapes::ShapeRef.new(shape: TargetList, required: true, location_name: "targets"))
|
@@ -397,6 +437,11 @@ module Aws::CodeCommit
|
|
397
437
|
DeleteCommentContentOutput.add_member(:comment, Shapes::ShapeRef.new(shape: Comment, location_name: "comment"))
|
398
438
|
DeleteCommentContentOutput.struct_class = Types::DeleteCommentContentOutput
|
399
439
|
|
440
|
+
DeleteFileEntries.member = Shapes::ShapeRef.new(shape: DeleteFileEntry)
|
441
|
+
|
442
|
+
DeleteFileEntry.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
443
|
+
DeleteFileEntry.struct_class = Types::DeleteFileEntry
|
444
|
+
|
400
445
|
DeleteFileInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
401
446
|
DeleteFileInput.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "branchName"))
|
402
447
|
DeleteFileInput.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
@@ -445,6 +490,13 @@ module Aws::CodeCommit
|
|
445
490
|
|
446
491
|
FileList.member = Shapes::ShapeRef.new(shape: File)
|
447
492
|
|
493
|
+
FileMetadata.add_member(:absolute_path, Shapes::ShapeRef.new(shape: Path, location_name: "absolutePath"))
|
494
|
+
FileMetadata.add_member(:blob_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "blobId"))
|
495
|
+
FileMetadata.add_member(:file_mode, Shapes::ShapeRef.new(shape: FileModeTypeEnum, location_name: "fileMode"))
|
496
|
+
FileMetadata.struct_class = Types::FileMetadata
|
497
|
+
|
498
|
+
FilesMetadata.member = Shapes::ShapeRef.new(shape: FileMetadata)
|
499
|
+
|
448
500
|
Folder.add_member(:tree_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "treeId"))
|
449
501
|
Folder.add_member(:absolute_path, Shapes::ShapeRef.new(shape: Path, location_name: "absolutePath"))
|
450
502
|
Folder.add_member(:relative_path, Shapes::ShapeRef.new(shape: Path, location_name: "relativePath"))
|
@@ -719,6 +771,14 @@ module Aws::CodeCommit
|
|
719
771
|
|
720
772
|
PullRequestTargetList.member = Shapes::ShapeRef.new(shape: PullRequestTarget)
|
721
773
|
|
774
|
+
PutFileEntries.member = Shapes::ShapeRef.new(shape: PutFileEntry)
|
775
|
+
|
776
|
+
PutFileEntry.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
777
|
+
PutFileEntry.add_member(:file_mode, Shapes::ShapeRef.new(shape: FileModeTypeEnum, location_name: "fileMode"))
|
778
|
+
PutFileEntry.add_member(:file_content, Shapes::ShapeRef.new(shape: FileContent, location_name: "fileContent"))
|
779
|
+
PutFileEntry.add_member(:source_file, Shapes::ShapeRef.new(shape: SourceFileSpecifier, location_name: "sourceFile"))
|
780
|
+
PutFileEntry.struct_class = Types::PutFileEntry
|
781
|
+
|
722
782
|
PutFileInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
723
783
|
PutFileInput.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "branchName"))
|
724
784
|
PutFileInput.add_member(:file_content, Shapes::ShapeRef.new(shape: FileContent, required: true, location_name: "fileContent"))
|
@@ -785,6 +845,16 @@ module Aws::CodeCommit
|
|
785
845
|
|
786
846
|
RepositoryTriggersList.member = Shapes::ShapeRef.new(shape: RepositoryTrigger)
|
787
847
|
|
848
|
+
SetFileModeEntries.member = Shapes::ShapeRef.new(shape: SetFileModeEntry)
|
849
|
+
|
850
|
+
SetFileModeEntry.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
851
|
+
SetFileModeEntry.add_member(:file_mode, Shapes::ShapeRef.new(shape: FileModeTypeEnum, required: true, location_name: "fileMode"))
|
852
|
+
SetFileModeEntry.struct_class = Types::SetFileModeEntry
|
853
|
+
|
854
|
+
SourceFileSpecifier.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
855
|
+
SourceFileSpecifier.add_member(:is_move, Shapes::ShapeRef.new(shape: IsMove, location_name: "isMove"))
|
856
|
+
SourceFileSpecifier.struct_class = Types::SourceFileSpecifier
|
857
|
+
|
788
858
|
SubModule.add_member(:commit_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "commitId"))
|
789
859
|
SubModule.add_member(:absolute_path, Shapes::ShapeRef.new(shape: Path, location_name: "absolutePath"))
|
790
860
|
SubModule.add_member(:relative_path, Shapes::ShapeRef.new(shape: Path, location_name: "relativePath"))
|
@@ -917,6 +987,52 @@ module Aws::CodeCommit
|
|
917
987
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
918
988
|
end)
|
919
989
|
|
990
|
+
api.add_operation(:create_commit, Seahorse::Model::Operation.new.tap do |o|
|
991
|
+
o.name = "CreateCommit"
|
992
|
+
o.http_method = "POST"
|
993
|
+
o.http_request_uri = "/"
|
994
|
+
o.input = Shapes::ShapeRef.new(shape: CreateCommitInput)
|
995
|
+
o.output = Shapes::ShapeRef.new(shape: CreateCommitOutput)
|
996
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
|
997
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
998
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
999
|
+
o.errors << Shapes::ShapeRef.new(shape: ParentCommitIdRequiredException)
|
1000
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParentCommitIdException)
|
1001
|
+
o.errors << Shapes::ShapeRef.new(shape: ParentCommitDoesNotExistException)
|
1002
|
+
o.errors << Shapes::ShapeRef.new(shape: ParentCommitIdOutdatedException)
|
1003
|
+
o.errors << Shapes::ShapeRef.new(shape: BranchNameRequiredException)
|
1004
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidBranchNameException)
|
1005
|
+
o.errors << Shapes::ShapeRef.new(shape: BranchDoesNotExistException)
|
1006
|
+
o.errors << Shapes::ShapeRef.new(shape: BranchNameIsTagNameException)
|
1007
|
+
o.errors << Shapes::ShapeRef.new(shape: FileEntryRequiredException)
|
1008
|
+
o.errors << Shapes::ShapeRef.new(shape: MaximumFileEntriesExceededException)
|
1009
|
+
o.errors << Shapes::ShapeRef.new(shape: PutFileEntryConflictException)
|
1010
|
+
o.errors << Shapes::ShapeRef.new(shape: SourceFileOrContentRequiredException)
|
1011
|
+
o.errors << Shapes::ShapeRef.new(shape: FileContentAndSourceFileSpecifiedException)
|
1012
|
+
o.errors << Shapes::ShapeRef.new(shape: PathRequiredException)
|
1013
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPathException)
|
1014
|
+
o.errors << Shapes::ShapeRef.new(shape: SamePathRequestException)
|
1015
|
+
o.errors << Shapes::ShapeRef.new(shape: FileDoesNotExistException)
|
1016
|
+
o.errors << Shapes::ShapeRef.new(shape: FileContentSizeLimitExceededException)
|
1017
|
+
o.errors << Shapes::ShapeRef.new(shape: FolderContentSizeLimitExceededException)
|
1018
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidDeletionParameterException)
|
1019
|
+
o.errors << Shapes::ShapeRef.new(shape: RestrictedSourceFileException)
|
1020
|
+
o.errors << Shapes::ShapeRef.new(shape: FileModeRequiredException)
|
1021
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidFileModeException)
|
1022
|
+
o.errors << Shapes::ShapeRef.new(shape: NameLengthExceededException)
|
1023
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEmailException)
|
1024
|
+
o.errors << Shapes::ShapeRef.new(shape: CommitMessageLengthExceededException)
|
1025
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
1026
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
1027
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
1028
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
1029
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
1030
|
+
o.errors << Shapes::ShapeRef.new(shape: NoChangeException)
|
1031
|
+
o.errors << Shapes::ShapeRef.new(shape: FileNameConflictsWithDirectoryNameException)
|
1032
|
+
o.errors << Shapes::ShapeRef.new(shape: DirectoryNameConflictsWithFileNameException)
|
1033
|
+
o.errors << Shapes::ShapeRef.new(shape: FilePathConflictsWithSubmodulePathException)
|
1034
|
+
end)
|
1035
|
+
|
920
1036
|
api.add_operation(:create_pull_request, Seahorse::Model::Operation.new.tap do |o|
|
921
1037
|
o.name = "CreatePullRequest"
|
922
1038
|
o.http_method = "POST"
|
@@ -1423,7 +1539,6 @@ module Aws::CodeCommit
|
|
1423
1539
|
o.errors << Shapes::ShapeRef.new(shape: TipOfSourceReferenceIsDifferentException)
|
1424
1540
|
o.errors << Shapes::ShapeRef.new(shape: ReferenceDoesNotExistException)
|
1425
1541
|
o.errors << Shapes::ShapeRef.new(shape: InvalidCommitIdException)
|
1426
|
-
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotAssociatedWithPullRequestException)
|
1427
1542
|
o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
|
1428
1543
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
1429
1544
|
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
@@ -351,6 +351,138 @@ module Aws::CodeCommit
|
|
351
351
|
include Aws::Structure
|
352
352
|
end
|
353
353
|
|
354
|
+
# @note When making an API call, you may pass CreateCommitInput
|
355
|
+
# data as a hash:
|
356
|
+
#
|
357
|
+
# {
|
358
|
+
# repository_name: "RepositoryName", # required
|
359
|
+
# branch_name: "BranchName", # required
|
360
|
+
# parent_commit_id: "CommitId",
|
361
|
+
# author_name: "Name",
|
362
|
+
# email: "Email",
|
363
|
+
# commit_message: "Message",
|
364
|
+
# keep_empty_folders: false,
|
365
|
+
# put_files: [
|
366
|
+
# {
|
367
|
+
# file_path: "Path", # required
|
368
|
+
# file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
|
369
|
+
# file_content: "data",
|
370
|
+
# source_file: {
|
371
|
+
# file_path: "Path", # required
|
372
|
+
# is_move: false,
|
373
|
+
# },
|
374
|
+
# },
|
375
|
+
# ],
|
376
|
+
# delete_files: [
|
377
|
+
# {
|
378
|
+
# file_path: "Path", # required
|
379
|
+
# },
|
380
|
+
# ],
|
381
|
+
# set_file_modes: [
|
382
|
+
# {
|
383
|
+
# file_path: "Path", # required
|
384
|
+
# file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
|
385
|
+
# },
|
386
|
+
# ],
|
387
|
+
# }
|
388
|
+
#
|
389
|
+
# @!attribute [rw] repository_name
|
390
|
+
# The name of the repository where you will create the commit.
|
391
|
+
# @return [String]
|
392
|
+
#
|
393
|
+
# @!attribute [rw] branch_name
|
394
|
+
# The name of the branch where you will create the commit.
|
395
|
+
# @return [String]
|
396
|
+
#
|
397
|
+
# @!attribute [rw] parent_commit_id
|
398
|
+
# The ID of the commit that is the parent of the commit you will
|
399
|
+
# create. If this is an empty repository, this is not required.
|
400
|
+
# @return [String]
|
401
|
+
#
|
402
|
+
# @!attribute [rw] author_name
|
403
|
+
# The name of the author who created the commit. This information will
|
404
|
+
# be used as both the author and committer for the commit.
|
405
|
+
# @return [String]
|
406
|
+
#
|
407
|
+
# @!attribute [rw] email
|
408
|
+
# The email address of the person who created the commit.
|
409
|
+
# @return [String]
|
410
|
+
#
|
411
|
+
# @!attribute [rw] commit_message
|
412
|
+
# The commit message you want to include as part of creating the
|
413
|
+
# commit. Commit messages are limited to 256 KB. If no message is
|
414
|
+
# specified, a default message will be used.
|
415
|
+
# @return [String]
|
416
|
+
#
|
417
|
+
# @!attribute [rw] keep_empty_folders
|
418
|
+
# If the commit contains deletions, whether to keep a folder or folder
|
419
|
+
# structure if the changes leave the folders empty. If this is
|
420
|
+
# specified as true, a .gitkeep file will be created for empty
|
421
|
+
# folders.
|
422
|
+
# @return [Boolean]
|
423
|
+
#
|
424
|
+
# @!attribute [rw] put_files
|
425
|
+
# The files to add or update in this commit.
|
426
|
+
# @return [Array<Types::PutFileEntry>]
|
427
|
+
#
|
428
|
+
# @!attribute [rw] delete_files
|
429
|
+
# The files to delete in this commit. These files will still exist in
|
430
|
+
# prior commits.
|
431
|
+
# @return [Array<Types::DeleteFileEntry>]
|
432
|
+
#
|
433
|
+
# @!attribute [rw] set_file_modes
|
434
|
+
# The file modes to update for files in this commit.
|
435
|
+
# @return [Array<Types::SetFileModeEntry>]
|
436
|
+
#
|
437
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateCommitInput AWS API Documentation
|
438
|
+
#
|
439
|
+
class CreateCommitInput < Struct.new(
|
440
|
+
:repository_name,
|
441
|
+
:branch_name,
|
442
|
+
:parent_commit_id,
|
443
|
+
:author_name,
|
444
|
+
:email,
|
445
|
+
:commit_message,
|
446
|
+
:keep_empty_folders,
|
447
|
+
:put_files,
|
448
|
+
:delete_files,
|
449
|
+
:set_file_modes)
|
450
|
+
include Aws::Structure
|
451
|
+
end
|
452
|
+
|
453
|
+
# @!attribute [rw] commit_id
|
454
|
+
# The full commit ID of the commit that contains your committed file
|
455
|
+
# changes.
|
456
|
+
# @return [String]
|
457
|
+
#
|
458
|
+
# @!attribute [rw] tree_id
|
459
|
+
# The full SHA-1 pointer of the tree information for the commit that
|
460
|
+
# contains the commited file changes.
|
461
|
+
# @return [String]
|
462
|
+
#
|
463
|
+
# @!attribute [rw] files_added
|
464
|
+
# The files added as part of the committed file changes.
|
465
|
+
# @return [Array<Types::FileMetadata>]
|
466
|
+
#
|
467
|
+
# @!attribute [rw] files_updated
|
468
|
+
# The files updated as part of the commited file changes.
|
469
|
+
# @return [Array<Types::FileMetadata>]
|
470
|
+
#
|
471
|
+
# @!attribute [rw] files_deleted
|
472
|
+
# The files deleted as part of the committed file changes.
|
473
|
+
# @return [Array<Types::FileMetadata>]
|
474
|
+
#
|
475
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateCommitOutput AWS API Documentation
|
476
|
+
#
|
477
|
+
class CreateCommitOutput < Struct.new(
|
478
|
+
:commit_id,
|
479
|
+
:tree_id,
|
480
|
+
:files_added,
|
481
|
+
:files_updated,
|
482
|
+
:files_deleted)
|
483
|
+
include Aws::Structure
|
484
|
+
end
|
485
|
+
|
354
486
|
# @note When making an API call, you may pass CreatePullRequestInput
|
355
487
|
# data as a hash:
|
356
488
|
#
|
@@ -552,6 +684,27 @@ module Aws::CodeCommit
|
|
552
684
|
include Aws::Structure
|
553
685
|
end
|
554
686
|
|
687
|
+
# A file that will be deleted as part of a commit.
|
688
|
+
#
|
689
|
+
# @note When making an API call, you may pass DeleteFileEntry
|
690
|
+
# data as a hash:
|
691
|
+
#
|
692
|
+
# {
|
693
|
+
# file_path: "Path", # required
|
694
|
+
# }
|
695
|
+
#
|
696
|
+
# @!attribute [rw] file_path
|
697
|
+
# The full path of the file that will be deleted, including the name
|
698
|
+
# of the file.
|
699
|
+
# @return [String]
|
700
|
+
#
|
701
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFileEntry AWS API Documentation
|
702
|
+
#
|
703
|
+
class DeleteFileEntry < Struct.new(
|
704
|
+
:file_path)
|
705
|
+
include Aws::Structure
|
706
|
+
end
|
707
|
+
|
555
708
|
# @note When making an API call, you may pass DeleteFileInput
|
556
709
|
# data as a hash:
|
557
710
|
#
|
@@ -814,6 +967,31 @@ module Aws::CodeCommit
|
|
814
967
|
include Aws::Structure
|
815
968
|
end
|
816
969
|
|
970
|
+
# A file that will be added, updated, or deleted as part of a commit.
|
971
|
+
#
|
972
|
+
# @!attribute [rw] absolute_path
|
973
|
+
# The full path to the file that will be added or updated, including
|
974
|
+
# the name of the file.
|
975
|
+
# @return [String]
|
976
|
+
#
|
977
|
+
# @!attribute [rw] blob_id
|
978
|
+
# The blob ID that contains the file information.
|
979
|
+
# @return [String]
|
980
|
+
#
|
981
|
+
# @!attribute [rw] file_mode
|
982
|
+
# The extrapolated file mode permissions for the file. Valid values
|
983
|
+
# include EXECUTABLE and NORMAL.
|
984
|
+
# @return [String]
|
985
|
+
#
|
986
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/FileMetadata AWS API Documentation
|
987
|
+
#
|
988
|
+
class FileMetadata < Struct.new(
|
989
|
+
:absolute_path,
|
990
|
+
:blob_id,
|
991
|
+
:file_mode)
|
992
|
+
include Aws::Structure
|
993
|
+
end
|
994
|
+
|
817
995
|
# Returns information about a folder in a repository.
|
818
996
|
#
|
819
997
|
# @!attribute [rw] tree_id
|
@@ -2356,6 +2534,52 @@ module Aws::CodeCommit
|
|
2356
2534
|
include Aws::Structure
|
2357
2535
|
end
|
2358
2536
|
|
2537
|
+
# Information about a file that will be added or updated as part of a
|
2538
|
+
# commit.
|
2539
|
+
#
|
2540
|
+
# @note When making an API call, you may pass PutFileEntry
|
2541
|
+
# data as a hash:
|
2542
|
+
#
|
2543
|
+
# {
|
2544
|
+
# file_path: "Path", # required
|
2545
|
+
# file_mode: "EXECUTABLE", # accepts EXECUTABLE, NORMAL, SYMLINK
|
2546
|
+
# file_content: "data",
|
2547
|
+
# source_file: {
|
2548
|
+
# file_path: "Path", # required
|
2549
|
+
# is_move: false,
|
2550
|
+
# },
|
2551
|
+
# }
|
2552
|
+
#
|
2553
|
+
# @!attribute [rw] file_path
|
2554
|
+
# The full path to the file in the repository, including the name of
|
2555
|
+
# the file.
|
2556
|
+
# @return [String]
|
2557
|
+
#
|
2558
|
+
# @!attribute [rw] file_mode
|
2559
|
+
# The extrapolated file mode permissions for the file. Valid values
|
2560
|
+
# include EXECUTABLE and NORMAL.
|
2561
|
+
# @return [String]
|
2562
|
+
#
|
2563
|
+
# @!attribute [rw] file_content
|
2564
|
+
# The content of the file, if a source file is not specified.
|
2565
|
+
# @return [String]
|
2566
|
+
#
|
2567
|
+
# @!attribute [rw] source_file
|
2568
|
+
# The name and full path of the file that contains the changes you
|
2569
|
+
# want to make as part of the commit, if you are not providing the
|
2570
|
+
# file content directly.
|
2571
|
+
# @return [Types::SourceFileSpecifier]
|
2572
|
+
#
|
2573
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutFileEntry AWS API Documentation
|
2574
|
+
#
|
2575
|
+
class PutFileEntry < Struct.new(
|
2576
|
+
:file_path,
|
2577
|
+
:file_mode,
|
2578
|
+
:file_content,
|
2579
|
+
:source_file)
|
2580
|
+
include Aws::Structure
|
2581
|
+
end
|
2582
|
+
|
2359
2583
|
# @note When making an API call, you may pass PutFileInput
|
2360
2584
|
# data as a hash:
|
2361
2585
|
#
|
@@ -2665,6 +2889,59 @@ module Aws::CodeCommit
|
|
2665
2889
|
include Aws::Structure
|
2666
2890
|
end
|
2667
2891
|
|
2892
|
+
# Information about the file mode changes.
|
2893
|
+
#
|
2894
|
+
# @note When making an API call, you may pass SetFileModeEntry
|
2895
|
+
# data as a hash:
|
2896
|
+
#
|
2897
|
+
# {
|
2898
|
+
# file_path: "Path", # required
|
2899
|
+
# file_mode: "EXECUTABLE", # required, accepts EXECUTABLE, NORMAL, SYMLINK
|
2900
|
+
# }
|
2901
|
+
#
|
2902
|
+
# @!attribute [rw] file_path
|
2903
|
+
# The full path to the file, including the name of the file.
|
2904
|
+
# @return [String]
|
2905
|
+
#
|
2906
|
+
# @!attribute [rw] file_mode
|
2907
|
+
# The file mode for the file.
|
2908
|
+
# @return [String]
|
2909
|
+
#
|
2910
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/SetFileModeEntry AWS API Documentation
|
2911
|
+
#
|
2912
|
+
class SetFileModeEntry < Struct.new(
|
2913
|
+
:file_path,
|
2914
|
+
:file_mode)
|
2915
|
+
include Aws::Structure
|
2916
|
+
end
|
2917
|
+
|
2918
|
+
# Information about a source file that is part of changes made in a
|
2919
|
+
# commit.
|
2920
|
+
#
|
2921
|
+
# @note When making an API call, you may pass SourceFileSpecifier
|
2922
|
+
# data as a hash:
|
2923
|
+
#
|
2924
|
+
# {
|
2925
|
+
# file_path: "Path", # required
|
2926
|
+
# is_move: false,
|
2927
|
+
# }
|
2928
|
+
#
|
2929
|
+
# @!attribute [rw] file_path
|
2930
|
+
# The full path to the file, including the name of the file.
|
2931
|
+
# @return [String]
|
2932
|
+
#
|
2933
|
+
# @!attribute [rw] is_move
|
2934
|
+
# Whether to remove the source file from the parent commit.
|
2935
|
+
# @return [Boolean]
|
2936
|
+
#
|
2937
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/SourceFileSpecifier AWS API Documentation
|
2938
|
+
#
|
2939
|
+
class SourceFileSpecifier < Struct.new(
|
2940
|
+
:file_path,
|
2941
|
+
:is_move)
|
2942
|
+
include Aws::Structure
|
2943
|
+
end
|
2944
|
+
|
2668
2945
|
# Returns information about a submodule reference in a repository
|
2669
2946
|
# folder.
|
2670
2947
|
#
|
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.14.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-02-
|
11
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|