aws-sdk-codecommit 1.7.0 → 1.8.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 +211 -7
- data/lib/aws-sdk-codecommit/client_api.rb +167 -1
- data/lib/aws-sdk-codecommit/types.rb +388 -6
- 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: 69086c091aaca936afd81dd72df233ed9b3849a8
|
4
|
+
data.tar.gz: 1edd73ac49610f26e43e55ffdc43044babded774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 304e765660c99e8175fbd69d5b26d4e40c37e6e718f1759227b02eaec6bf664975959eb6c3fbe48fd3f72995eb0788acd46803f8459b10dca41364477e75e446
|
7
|
+
data.tar.gz: 408cb91e1f3982fa920e4b00580b096a9351df72d928c2457d9f97fbd207e0a795482cc6294cd7e6b940017d1d5c58b572cdc18d61e47288302d3effa86c9871
|
data/lib/aws-sdk-codecommit.rb
CHANGED
@@ -336,8 +336,8 @@ module Aws::CodeCommit
|
|
336
336
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
337
337
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
338
338
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
339
|
-
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
340
339
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
340
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
341
341
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
342
342
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
343
343
|
# resp.pull_request.client_request_token #=> String
|
@@ -484,6 +484,88 @@ module Aws::CodeCommit
|
|
484
484
|
req.send_request(options)
|
485
485
|
end
|
486
486
|
|
487
|
+
# Deletes a specified file from a specified branch. A commit is created
|
488
|
+
# on the branch that contains the revision. The file will still exist in
|
489
|
+
# the commits prior to the commit that contains the deletion.
|
490
|
+
#
|
491
|
+
# @option params [required, String] :repository_name
|
492
|
+
# The name of the repository that contains the file to delete.
|
493
|
+
#
|
494
|
+
# @option params [required, String] :branch_name
|
495
|
+
# The name of the branch where the commit will be made deleting the
|
496
|
+
# file.
|
497
|
+
#
|
498
|
+
# @option params [required, String] :file_path
|
499
|
+
# The fully-qualified path to the file that will be deleted, including
|
500
|
+
# the full name and extension of that file. For example,
|
501
|
+
# /examples/file.md is a fully qualified path to a file named file.md in
|
502
|
+
# a folder named examples.
|
503
|
+
#
|
504
|
+
# @option params [required, String] :parent_commit_id
|
505
|
+
# The ID of the commit that is the tip of the branch where you want to
|
506
|
+
# create the commit that will delete the file. This must be the HEAD
|
507
|
+
# commit for the branch. The commit that deletes the file will be
|
508
|
+
# created from this commit ID.
|
509
|
+
#
|
510
|
+
# @option params [Boolean] :keep_empty_folders
|
511
|
+
# Specifies whether to delete the folder or directory that contains the
|
512
|
+
# file you want to delete if that file is the only object in the folder
|
513
|
+
# or directory. By default, empty folders will be deleted. This includes
|
514
|
+
# empty folders that are part of the directory structure. For example,
|
515
|
+
# if the path to a file is dir1/dir2/dir3/dir4, and dir2 and dir3 are
|
516
|
+
# empty, deleting the last file in dir4 will also delete the empty
|
517
|
+
# folders dir4, dir3, and dir2.
|
518
|
+
#
|
519
|
+
# @option params [String] :commit_message
|
520
|
+
# The commit message you want to include as part of deleting the file.
|
521
|
+
# Commit messages are limited to 256 KB. If no message is specified, a
|
522
|
+
# default message will be used.
|
523
|
+
#
|
524
|
+
# @option params [String] :name
|
525
|
+
# The name of the author of the commit that deletes the file. If no name
|
526
|
+
# is specified, the user's ARN will be used as the author name and
|
527
|
+
# committer name.
|
528
|
+
#
|
529
|
+
# @option params [String] :email
|
530
|
+
# The email address for the commit that deletes the file. If no email
|
531
|
+
# address is specified, the email address will be left blank.
|
532
|
+
#
|
533
|
+
# @return [Types::DeleteFileOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
534
|
+
#
|
535
|
+
# * {Types::DeleteFileOutput#commit_id #commit_id} => String
|
536
|
+
# * {Types::DeleteFileOutput#blob_id #blob_id} => String
|
537
|
+
# * {Types::DeleteFileOutput#tree_id #tree_id} => String
|
538
|
+
# * {Types::DeleteFileOutput#file_path #file_path} => String
|
539
|
+
#
|
540
|
+
# @example Request syntax with placeholder values
|
541
|
+
#
|
542
|
+
# resp = client.delete_file({
|
543
|
+
# repository_name: "RepositoryName", # required
|
544
|
+
# branch_name: "BranchName", # required
|
545
|
+
# file_path: "Path", # required
|
546
|
+
# parent_commit_id: "CommitId", # required
|
547
|
+
# keep_empty_folders: false,
|
548
|
+
# commit_message: "Message",
|
549
|
+
# name: "Name",
|
550
|
+
# email: "Email",
|
551
|
+
# })
|
552
|
+
#
|
553
|
+
# @example Response structure
|
554
|
+
#
|
555
|
+
# resp.commit_id #=> String
|
556
|
+
# resp.blob_id #=> String
|
557
|
+
# resp.tree_id #=> String
|
558
|
+
# resp.file_path #=> String
|
559
|
+
#
|
560
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile AWS API Documentation
|
561
|
+
#
|
562
|
+
# @overload delete_file(params = {})
|
563
|
+
# @param [Hash] params ({})
|
564
|
+
def delete_file(params = {}, options = {})
|
565
|
+
req = build_request(:delete_file, params)
|
566
|
+
req.send_request(options)
|
567
|
+
end
|
568
|
+
|
487
569
|
# Deletes a repository. If a specified repository was already deleted, a
|
488
570
|
# null repository ID will be returned.
|
489
571
|
#
|
@@ -953,6 +1035,128 @@ module Aws::CodeCommit
|
|
953
1035
|
req.send_request(options)
|
954
1036
|
end
|
955
1037
|
|
1038
|
+
# Returns the base-64 encoded contents of a specified file and its
|
1039
|
+
# metadata.
|
1040
|
+
#
|
1041
|
+
# @option params [required, String] :repository_name
|
1042
|
+
# The name of the repository that contains the file.
|
1043
|
+
#
|
1044
|
+
# @option params [String] :commit_specifier
|
1045
|
+
# The fully-quaified reference that identifies the commit that contains
|
1046
|
+
# the file. For example, you could specify a full commit ID, a tag, a
|
1047
|
+
# branch name, or a reference such as refs/heads/master. If none is
|
1048
|
+
# provided, then the head commit will be used.
|
1049
|
+
#
|
1050
|
+
# @option params [required, String] :file_path
|
1051
|
+
# The fully-qualified path to the file, including the full name and
|
1052
|
+
# extension of the file. For example, /examples/file.md is the
|
1053
|
+
# fully-qualified path to a file named file.md in a folder named
|
1054
|
+
# examples.
|
1055
|
+
#
|
1056
|
+
# @return [Types::GetFileOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1057
|
+
#
|
1058
|
+
# * {Types::GetFileOutput#commit_id #commit_id} => String
|
1059
|
+
# * {Types::GetFileOutput#blob_id #blob_id} => String
|
1060
|
+
# * {Types::GetFileOutput#file_path #file_path} => String
|
1061
|
+
# * {Types::GetFileOutput#file_mode #file_mode} => String
|
1062
|
+
# * {Types::GetFileOutput#file_size #file_size} => Integer
|
1063
|
+
# * {Types::GetFileOutput#file_content #file_content} => String
|
1064
|
+
#
|
1065
|
+
# @example Request syntax with placeholder values
|
1066
|
+
#
|
1067
|
+
# resp = client.get_file({
|
1068
|
+
# repository_name: "RepositoryName", # required
|
1069
|
+
# commit_specifier: "CommitName",
|
1070
|
+
# file_path: "Path", # required
|
1071
|
+
# })
|
1072
|
+
#
|
1073
|
+
# @example Response structure
|
1074
|
+
#
|
1075
|
+
# resp.commit_id #=> String
|
1076
|
+
# resp.blob_id #=> String
|
1077
|
+
# resp.file_path #=> String
|
1078
|
+
# resp.file_mode #=> String, one of "EXECUTABLE", "NORMAL", "SYMLINK"
|
1079
|
+
# resp.file_size #=> Integer
|
1080
|
+
# resp.file_content #=> String
|
1081
|
+
#
|
1082
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile AWS API Documentation
|
1083
|
+
#
|
1084
|
+
# @overload get_file(params = {})
|
1085
|
+
# @param [Hash] params ({})
|
1086
|
+
def get_file(params = {}, options = {})
|
1087
|
+
req = build_request(:get_file, params)
|
1088
|
+
req.send_request(options)
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
# Returns the contents of a specified folder in a repository.
|
1092
|
+
#
|
1093
|
+
# @option params [required, String] :repository_name
|
1094
|
+
# The name of the repository.
|
1095
|
+
#
|
1096
|
+
# @option params [String] :commit_specifier
|
1097
|
+
# A fully-qualified reference used to identify a commit that contains
|
1098
|
+
# the version of the folder's content to return. A fully-qualified
|
1099
|
+
# reference can be a commit ID, branch name, tag, or reference such as
|
1100
|
+
# HEAD. If no specifier is provided, the folder content will be returned
|
1101
|
+
# as it exists in the HEAD commit.
|
1102
|
+
#
|
1103
|
+
# @option params [required, String] :folder_path
|
1104
|
+
# The fully-qualified path to the folder whose contents will be
|
1105
|
+
# returned, including the folder name. For example, /examples is a
|
1106
|
+
# fully-qualified path to a folder named examples that was created off
|
1107
|
+
# of the root directory (/) of a repository.
|
1108
|
+
#
|
1109
|
+
# @return [Types::GetFolderOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1110
|
+
#
|
1111
|
+
# * {Types::GetFolderOutput#commit_id #commit_id} => String
|
1112
|
+
# * {Types::GetFolderOutput#folder_path #folder_path} => String
|
1113
|
+
# * {Types::GetFolderOutput#tree_id #tree_id} => String
|
1114
|
+
# * {Types::GetFolderOutput#sub_folders #sub_folders} => Array<Types::Folder>
|
1115
|
+
# * {Types::GetFolderOutput#files #files} => Array<Types::File>
|
1116
|
+
# * {Types::GetFolderOutput#symbolic_links #symbolic_links} => Array<Types::SymbolicLink>
|
1117
|
+
# * {Types::GetFolderOutput#sub_modules #sub_modules} => Array<Types::SubModule>
|
1118
|
+
#
|
1119
|
+
# @example Request syntax with placeholder values
|
1120
|
+
#
|
1121
|
+
# resp = client.get_folder({
|
1122
|
+
# repository_name: "RepositoryName", # required
|
1123
|
+
# commit_specifier: "CommitName",
|
1124
|
+
# folder_path: "Path", # required
|
1125
|
+
# })
|
1126
|
+
#
|
1127
|
+
# @example Response structure
|
1128
|
+
#
|
1129
|
+
# resp.commit_id #=> String
|
1130
|
+
# resp.folder_path #=> String
|
1131
|
+
# resp.tree_id #=> String
|
1132
|
+
# resp.sub_folders #=> Array
|
1133
|
+
# resp.sub_folders[0].tree_id #=> String
|
1134
|
+
# resp.sub_folders[0].absolute_path #=> String
|
1135
|
+
# resp.sub_folders[0].relative_path #=> String
|
1136
|
+
# resp.files #=> Array
|
1137
|
+
# resp.files[0].blob_id #=> String
|
1138
|
+
# resp.files[0].absolute_path #=> String
|
1139
|
+
# resp.files[0].relative_path #=> String
|
1140
|
+
# resp.files[0].file_mode #=> String, one of "EXECUTABLE", "NORMAL", "SYMLINK"
|
1141
|
+
# resp.symbolic_links #=> Array
|
1142
|
+
# resp.symbolic_links[0].blob_id #=> String
|
1143
|
+
# resp.symbolic_links[0].absolute_path #=> String
|
1144
|
+
# resp.symbolic_links[0].relative_path #=> String
|
1145
|
+
# resp.symbolic_links[0].file_mode #=> String, one of "EXECUTABLE", "NORMAL", "SYMLINK"
|
1146
|
+
# resp.sub_modules #=> Array
|
1147
|
+
# resp.sub_modules[0].commit_id #=> String
|
1148
|
+
# resp.sub_modules[0].absolute_path #=> String
|
1149
|
+
# resp.sub_modules[0].relative_path #=> String
|
1150
|
+
#
|
1151
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder AWS API Documentation
|
1152
|
+
#
|
1153
|
+
# @overload get_folder(params = {})
|
1154
|
+
# @param [Hash] params ({})
|
1155
|
+
def get_folder(params = {}, options = {})
|
1156
|
+
req = build_request(:get_folder, params)
|
1157
|
+
req.send_request(options)
|
1158
|
+
end
|
1159
|
+
|
956
1160
|
# Returns information about merge conflicts between the before and after
|
957
1161
|
# commit IDs for a pull request in a repository.
|
958
1162
|
#
|
@@ -1031,8 +1235,8 @@ module Aws::CodeCommit
|
|
1031
1235
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1032
1236
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1033
1237
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1034
|
-
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1035
1238
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
1239
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1036
1240
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1037
1241
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
1038
1242
|
# resp.pull_request.client_request_token #=> String
|
@@ -1304,8 +1508,8 @@ module Aws::CodeCommit
|
|
1304
1508
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1305
1509
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1306
1510
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1307
|
-
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1308
1511
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
1512
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1309
1513
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1310
1514
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
1311
1515
|
# resp.pull_request.client_request_token #=> String
|
@@ -1831,8 +2035,8 @@ module Aws::CodeCommit
|
|
1831
2035
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1832
2036
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1833
2037
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1834
|
-
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1835
2038
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
2039
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1836
2040
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1837
2041
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
1838
2042
|
# resp.pull_request.client_request_token #=> String
|
@@ -1882,8 +2086,8 @@ module Aws::CodeCommit
|
|
1882
2086
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1883
2087
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1884
2088
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1885
|
-
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1886
2089
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
2090
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1887
2091
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1888
2092
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
1889
2093
|
# resp.pull_request.client_request_token #=> String
|
@@ -1932,8 +2136,8 @@ module Aws::CodeCommit
|
|
1932
2136
|
# resp.pull_request.pull_request_targets[0].source_reference #=> String
|
1933
2137
|
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
|
1934
2138
|
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
|
1935
|
-
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1936
2139
|
# resp.pull_request.pull_request_targets[0].source_commit #=> String
|
2140
|
+
# resp.pull_request.pull_request_targets[0].merge_base #=> String
|
1937
2141
|
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
|
1938
2142
|
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
|
1939
2143
|
# resp.pull_request.client_request_token #=> String
|
@@ -2032,7 +2236,7 @@ module Aws::CodeCommit
|
|
2032
2236
|
params: params,
|
2033
2237
|
config: config)
|
2034
2238
|
context[:gem_name] = 'aws-sdk-codecommit'
|
2035
|
-
context[:gem_version] = '1.
|
2239
|
+
context[:gem_version] = '1.8.0'
|
2036
2240
|
Seahorse::Client::Request.new(handlers, context)
|
2037
2241
|
end
|
2038
2242
|
|
@@ -68,6 +68,8 @@ module Aws::CodeCommit
|
|
68
68
|
DeleteBranchOutput = Shapes::StructureShape.new(name: 'DeleteBranchOutput')
|
69
69
|
DeleteCommentContentInput = Shapes::StructureShape.new(name: 'DeleteCommentContentInput')
|
70
70
|
DeleteCommentContentOutput = Shapes::StructureShape.new(name: 'DeleteCommentContentOutput')
|
71
|
+
DeleteFileInput = Shapes::StructureShape.new(name: 'DeleteFileInput')
|
72
|
+
DeleteFileOutput = Shapes::StructureShape.new(name: 'DeleteFileOutput')
|
71
73
|
DeleteRepositoryInput = Shapes::StructureShape.new(name: 'DeleteRepositoryInput')
|
72
74
|
DeleteRepositoryOutput = Shapes::StructureShape.new(name: 'DeleteRepositoryOutput')
|
73
75
|
DescribePullRequestEventsInput = Shapes::StructureShape.new(name: 'DescribePullRequestEventsInput')
|
@@ -83,12 +85,18 @@ module Aws::CodeCommit
|
|
83
85
|
EncryptionKeyNotFoundException = Shapes::StructureShape.new(name: 'EncryptionKeyNotFoundException')
|
84
86
|
EncryptionKeyUnavailableException = Shapes::StructureShape.new(name: 'EncryptionKeyUnavailableException')
|
85
87
|
EventDate = Shapes::TimestampShape.new(name: 'EventDate')
|
88
|
+
File = Shapes::StructureShape.new(name: 'File')
|
86
89
|
FileContent = Shapes::BlobShape.new(name: 'FileContent')
|
87
90
|
FileContentRequiredException = Shapes::StructureShape.new(name: 'FileContentRequiredException')
|
88
91
|
FileContentSizeLimitExceededException = Shapes::StructureShape.new(name: 'FileContentSizeLimitExceededException')
|
92
|
+
FileDoesNotExistException = Shapes::StructureShape.new(name: 'FileDoesNotExistException')
|
93
|
+
FileList = Shapes::ListShape.new(name: 'FileList')
|
89
94
|
FileModeTypeEnum = Shapes::StringShape.new(name: 'FileModeTypeEnum')
|
90
95
|
FileNameConflictsWithDirectoryNameException = Shapes::StructureShape.new(name: 'FileNameConflictsWithDirectoryNameException')
|
91
96
|
FileTooLargeException = Shapes::StructureShape.new(name: 'FileTooLargeException')
|
97
|
+
Folder = Shapes::StructureShape.new(name: 'Folder')
|
98
|
+
FolderDoesNotExistException = Shapes::StructureShape.new(name: 'FolderDoesNotExistException')
|
99
|
+
FolderList = Shapes::ListShape.new(name: 'FolderList')
|
92
100
|
GetBlobInput = Shapes::StructureShape.new(name: 'GetBlobInput')
|
93
101
|
GetBlobOutput = Shapes::StructureShape.new(name: 'GetBlobOutput')
|
94
102
|
GetBranchInput = Shapes::StructureShape.new(name: 'GetBranchInput')
|
@@ -103,6 +111,10 @@ module Aws::CodeCommit
|
|
103
111
|
GetCommitOutput = Shapes::StructureShape.new(name: 'GetCommitOutput')
|
104
112
|
GetDifferencesInput = Shapes::StructureShape.new(name: 'GetDifferencesInput')
|
105
113
|
GetDifferencesOutput = Shapes::StructureShape.new(name: 'GetDifferencesOutput')
|
114
|
+
GetFileInput = Shapes::StructureShape.new(name: 'GetFileInput')
|
115
|
+
GetFileOutput = Shapes::StructureShape.new(name: 'GetFileOutput')
|
116
|
+
GetFolderInput = Shapes::StructureShape.new(name: 'GetFolderInput')
|
117
|
+
GetFolderOutput = Shapes::StructureShape.new(name: 'GetFolderOutput')
|
106
118
|
GetMergeConflictsInput = Shapes::StructureShape.new(name: 'GetMergeConflictsInput')
|
107
119
|
GetMergeConflictsOutput = Shapes::StructureShape.new(name: 'GetMergeConflictsOutput')
|
108
120
|
GetPullRequestInput = Shapes::StructureShape.new(name: 'GetPullRequestInput')
|
@@ -121,6 +133,7 @@ module Aws::CodeCommit
|
|
121
133
|
InvalidCommitException = Shapes::StructureShape.new(name: 'InvalidCommitException')
|
122
134
|
InvalidCommitIdException = Shapes::StructureShape.new(name: 'InvalidCommitIdException')
|
123
135
|
InvalidContinuationTokenException = Shapes::StructureShape.new(name: 'InvalidContinuationTokenException')
|
136
|
+
InvalidDeletionParameterException = Shapes::StructureShape.new(name: 'InvalidDeletionParameterException')
|
124
137
|
InvalidDescriptionException = Shapes::StructureShape.new(name: 'InvalidDescriptionException')
|
125
138
|
InvalidDestinationCommitSpecifierException = Shapes::StructureShape.new(name: 'InvalidDestinationCommitSpecifierException')
|
126
139
|
InvalidEmailException = Shapes::StructureShape.new(name: 'InvalidEmailException')
|
@@ -154,6 +167,7 @@ module Aws::CodeCommit
|
|
154
167
|
IsCommentDeleted = Shapes::BooleanShape.new(name: 'IsCommentDeleted')
|
155
168
|
IsMergeable = Shapes::BooleanShape.new(name: 'IsMergeable')
|
156
169
|
IsMerged = Shapes::BooleanShape.new(name: 'IsMerged')
|
170
|
+
KeepEmptyFolders = Shapes::BooleanShape.new(name: 'KeepEmptyFolders')
|
157
171
|
LastModifiedDate = Shapes::TimestampShape.new(name: 'LastModifiedDate')
|
158
172
|
Limit = Shapes::IntegerShape.new(name: 'Limit')
|
159
173
|
ListBranchesInput = Shapes::StructureShape.new(name: 'ListBranchesInput')
|
@@ -181,6 +195,7 @@ module Aws::CodeCommit
|
|
181
195
|
NameLengthExceededException = Shapes::StructureShape.new(name: 'NameLengthExceededException')
|
182
196
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
183
197
|
ObjectId = Shapes::StringShape.new(name: 'ObjectId')
|
198
|
+
ObjectSize = Shapes::IntegerShape.new(name: 'ObjectSize')
|
184
199
|
OrderEnum = Shapes::StringShape.new(name: 'OrderEnum')
|
185
200
|
ParentCommitDoesNotExistException = Shapes::StructureShape.new(name: 'ParentCommitDoesNotExistException')
|
186
201
|
ParentCommitIdOutdatedException = Shapes::StructureShape.new(name: 'ParentCommitIdOutdatedException')
|
@@ -256,6 +271,10 @@ module Aws::CodeCommit
|
|
256
271
|
SameFileContentException = Shapes::StructureShape.new(name: 'SameFileContentException')
|
257
272
|
SortByEnum = Shapes::StringShape.new(name: 'SortByEnum')
|
258
273
|
SourceAndDestinationAreSameException = Shapes::StructureShape.new(name: 'SourceAndDestinationAreSameException')
|
274
|
+
SubModule = Shapes::StructureShape.new(name: 'SubModule')
|
275
|
+
SubModuleList = Shapes::ListShape.new(name: 'SubModuleList')
|
276
|
+
SymbolicLink = Shapes::StructureShape.new(name: 'SymbolicLink')
|
277
|
+
SymbolicLinkList = Shapes::ListShape.new(name: 'SymbolicLinkList')
|
259
278
|
Target = Shapes::StructureShape.new(name: 'Target')
|
260
279
|
TargetList = Shapes::ListShape.new(name: 'TargetList')
|
261
280
|
TargetRequiredException = Shapes::StructureShape.new(name: 'TargetRequiredException')
|
@@ -376,6 +395,22 @@ module Aws::CodeCommit
|
|
376
395
|
DeleteCommentContentOutput.add_member(:comment, Shapes::ShapeRef.new(shape: Comment, location_name: "comment"))
|
377
396
|
DeleteCommentContentOutput.struct_class = Types::DeleteCommentContentOutput
|
378
397
|
|
398
|
+
DeleteFileInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
399
|
+
DeleteFileInput.add_member(:branch_name, Shapes::ShapeRef.new(shape: BranchName, required: true, location_name: "branchName"))
|
400
|
+
DeleteFileInput.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
401
|
+
DeleteFileInput.add_member(:parent_commit_id, Shapes::ShapeRef.new(shape: CommitId, required: true, location_name: "parentCommitId"))
|
402
|
+
DeleteFileInput.add_member(:keep_empty_folders, Shapes::ShapeRef.new(shape: KeepEmptyFolders, location_name: "keepEmptyFolders"))
|
403
|
+
DeleteFileInput.add_member(:commit_message, Shapes::ShapeRef.new(shape: Message, location_name: "commitMessage"))
|
404
|
+
DeleteFileInput.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
|
405
|
+
DeleteFileInput.add_member(:email, Shapes::ShapeRef.new(shape: Email, location_name: "email"))
|
406
|
+
DeleteFileInput.struct_class = Types::DeleteFileInput
|
407
|
+
|
408
|
+
DeleteFileOutput.add_member(:commit_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "commitId"))
|
409
|
+
DeleteFileOutput.add_member(:blob_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "blobId"))
|
410
|
+
DeleteFileOutput.add_member(:tree_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "treeId"))
|
411
|
+
DeleteFileOutput.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
412
|
+
DeleteFileOutput.struct_class = Types::DeleteFileOutput
|
413
|
+
|
379
414
|
DeleteRepositoryInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
380
415
|
DeleteRepositoryInput.struct_class = Types::DeleteRepositoryInput
|
381
416
|
|
@@ -400,6 +435,21 @@ module Aws::CodeCommit
|
|
400
435
|
|
401
436
|
DifferenceList.member = Shapes::ShapeRef.new(shape: Difference)
|
402
437
|
|
438
|
+
File.add_member(:blob_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "blobId"))
|
439
|
+
File.add_member(:absolute_path, Shapes::ShapeRef.new(shape: Path, location_name: "absolutePath"))
|
440
|
+
File.add_member(:relative_path, Shapes::ShapeRef.new(shape: Path, location_name: "relativePath"))
|
441
|
+
File.add_member(:file_mode, Shapes::ShapeRef.new(shape: FileModeTypeEnum, location_name: "fileMode"))
|
442
|
+
File.struct_class = Types::File
|
443
|
+
|
444
|
+
FileList.member = Shapes::ShapeRef.new(shape: File)
|
445
|
+
|
446
|
+
Folder.add_member(:tree_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "treeId"))
|
447
|
+
Folder.add_member(:absolute_path, Shapes::ShapeRef.new(shape: Path, location_name: "absolutePath"))
|
448
|
+
Folder.add_member(:relative_path, Shapes::ShapeRef.new(shape: Path, location_name: "relativePath"))
|
449
|
+
Folder.struct_class = Types::Folder
|
450
|
+
|
451
|
+
FolderList.member = Shapes::ShapeRef.new(shape: Folder)
|
452
|
+
|
403
453
|
GetBlobInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
404
454
|
GetBlobInput.add_member(:blob_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "blobId"))
|
405
455
|
GetBlobInput.struct_class = Types::GetBlobInput
|
@@ -463,6 +513,33 @@ module Aws::CodeCommit
|
|
463
513
|
GetDifferencesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
464
514
|
GetDifferencesOutput.struct_class = Types::GetDifferencesOutput
|
465
515
|
|
516
|
+
GetFileInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
517
|
+
GetFileInput.add_member(:commit_specifier, Shapes::ShapeRef.new(shape: CommitName, location_name: "commitSpecifier"))
|
518
|
+
GetFileInput.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
519
|
+
GetFileInput.struct_class = Types::GetFileInput
|
520
|
+
|
521
|
+
GetFileOutput.add_member(:commit_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "commitId"))
|
522
|
+
GetFileOutput.add_member(:blob_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "blobId"))
|
523
|
+
GetFileOutput.add_member(:file_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "filePath"))
|
524
|
+
GetFileOutput.add_member(:file_mode, Shapes::ShapeRef.new(shape: FileModeTypeEnum, required: true, location_name: "fileMode"))
|
525
|
+
GetFileOutput.add_member(:file_size, Shapes::ShapeRef.new(shape: ObjectSize, required: true, location_name: "fileSize"))
|
526
|
+
GetFileOutput.add_member(:file_content, Shapes::ShapeRef.new(shape: FileContent, required: true, location_name: "fileContent"))
|
527
|
+
GetFileOutput.struct_class = Types::GetFileOutput
|
528
|
+
|
529
|
+
GetFolderInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
530
|
+
GetFolderInput.add_member(:commit_specifier, Shapes::ShapeRef.new(shape: CommitName, location_name: "commitSpecifier"))
|
531
|
+
GetFolderInput.add_member(:folder_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "folderPath"))
|
532
|
+
GetFolderInput.struct_class = Types::GetFolderInput
|
533
|
+
|
534
|
+
GetFolderOutput.add_member(:commit_id, Shapes::ShapeRef.new(shape: ObjectId, required: true, location_name: "commitId"))
|
535
|
+
GetFolderOutput.add_member(:folder_path, Shapes::ShapeRef.new(shape: Path, required: true, location_name: "folderPath"))
|
536
|
+
GetFolderOutput.add_member(:tree_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "treeId"))
|
537
|
+
GetFolderOutput.add_member(:sub_folders, Shapes::ShapeRef.new(shape: FolderList, location_name: "subFolders"))
|
538
|
+
GetFolderOutput.add_member(:files, Shapes::ShapeRef.new(shape: FileList, location_name: "files"))
|
539
|
+
GetFolderOutput.add_member(:symbolic_links, Shapes::ShapeRef.new(shape: SymbolicLinkList, location_name: "symbolicLinks"))
|
540
|
+
GetFolderOutput.add_member(:sub_modules, Shapes::ShapeRef.new(shape: SubModuleList, location_name: "subModules"))
|
541
|
+
GetFolderOutput.struct_class = Types::GetFolderOutput
|
542
|
+
|
466
543
|
GetMergeConflictsInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
467
544
|
GetMergeConflictsInput.add_member(:destination_commit_specifier, Shapes::ShapeRef.new(shape: CommitName, required: true, location_name: "destinationCommitSpecifier"))
|
468
545
|
GetMergeConflictsInput.add_member(:source_commit_specifier, Shapes::ShapeRef.new(shape: CommitName, required: true, location_name: "sourceCommitSpecifier"))
|
@@ -633,8 +710,8 @@ module Aws::CodeCommit
|
|
633
710
|
PullRequestTarget.add_member(:source_reference, Shapes::ShapeRef.new(shape: ReferenceName, location_name: "sourceReference"))
|
634
711
|
PullRequestTarget.add_member(:destination_reference, Shapes::ShapeRef.new(shape: ReferenceName, location_name: "destinationReference"))
|
635
712
|
PullRequestTarget.add_member(:destination_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "destinationCommit"))
|
636
|
-
PullRequestTarget.add_member(:merge_base, Shapes::ShapeRef.new(shape: CommitId, location_name: "mergeBase"))
|
637
713
|
PullRequestTarget.add_member(:source_commit, Shapes::ShapeRef.new(shape: CommitId, location_name: "sourceCommit"))
|
714
|
+
PullRequestTarget.add_member(:merge_base, Shapes::ShapeRef.new(shape: CommitId, location_name: "mergeBase"))
|
638
715
|
PullRequestTarget.add_member(:merge_metadata, Shapes::ShapeRef.new(shape: MergeMetadata, location_name: "mergeMetadata"))
|
639
716
|
PullRequestTarget.struct_class = Types::PullRequestTarget
|
640
717
|
|
@@ -706,6 +783,21 @@ module Aws::CodeCommit
|
|
706
783
|
|
707
784
|
RepositoryTriggersList.member = Shapes::ShapeRef.new(shape: RepositoryTrigger)
|
708
785
|
|
786
|
+
SubModule.add_member(:commit_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "commitId"))
|
787
|
+
SubModule.add_member(:absolute_path, Shapes::ShapeRef.new(shape: Path, location_name: "absolutePath"))
|
788
|
+
SubModule.add_member(:relative_path, Shapes::ShapeRef.new(shape: Path, location_name: "relativePath"))
|
789
|
+
SubModule.struct_class = Types::SubModule
|
790
|
+
|
791
|
+
SubModuleList.member = Shapes::ShapeRef.new(shape: SubModule)
|
792
|
+
|
793
|
+
SymbolicLink.add_member(:blob_id, Shapes::ShapeRef.new(shape: ObjectId, location_name: "blobId"))
|
794
|
+
SymbolicLink.add_member(:absolute_path, Shapes::ShapeRef.new(shape: Path, location_name: "absolutePath"))
|
795
|
+
SymbolicLink.add_member(:relative_path, Shapes::ShapeRef.new(shape: Path, location_name: "relativePath"))
|
796
|
+
SymbolicLink.add_member(:file_mode, Shapes::ShapeRef.new(shape: FileModeTypeEnum, location_name: "fileMode"))
|
797
|
+
SymbolicLink.struct_class = Types::SymbolicLink
|
798
|
+
|
799
|
+
SymbolicLinkList.member = Shapes::ShapeRef.new(shape: SymbolicLink)
|
800
|
+
|
709
801
|
Target.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
710
802
|
Target.add_member(:source_reference, Shapes::ShapeRef.new(shape: ReferenceName, required: true, location_name: "sourceReference"))
|
711
803
|
Target.add_member(:destination_reference, Shapes::ShapeRef.new(shape: ReferenceName, location_name: "destinationReference"))
|
@@ -905,6 +997,36 @@ module Aws::CodeCommit
|
|
905
997
|
o.errors << Shapes::ShapeRef.new(shape: CommentDeletedException)
|
906
998
|
end)
|
907
999
|
|
1000
|
+
api.add_operation(:delete_file, Seahorse::Model::Operation.new.tap do |o|
|
1001
|
+
o.name = "DeleteFile"
|
1002
|
+
o.http_method = "POST"
|
1003
|
+
o.http_request_uri = "/"
|
1004
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteFileInput)
|
1005
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteFileOutput)
|
1006
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
|
1007
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
1008
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
1009
|
+
o.errors << Shapes::ShapeRef.new(shape: ParentCommitIdRequiredException)
|
1010
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParentCommitIdException)
|
1011
|
+
o.errors << Shapes::ShapeRef.new(shape: ParentCommitDoesNotExistException)
|
1012
|
+
o.errors << Shapes::ShapeRef.new(shape: ParentCommitIdOutdatedException)
|
1013
|
+
o.errors << Shapes::ShapeRef.new(shape: PathRequiredException)
|
1014
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPathException)
|
1015
|
+
o.errors << Shapes::ShapeRef.new(shape: FileDoesNotExistException)
|
1016
|
+
o.errors << Shapes::ShapeRef.new(shape: BranchNameRequiredException)
|
1017
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidBranchNameException)
|
1018
|
+
o.errors << Shapes::ShapeRef.new(shape: BranchDoesNotExistException)
|
1019
|
+
o.errors << Shapes::ShapeRef.new(shape: BranchNameIsTagNameException)
|
1020
|
+
o.errors << Shapes::ShapeRef.new(shape: NameLengthExceededException)
|
1021
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEmailException)
|
1022
|
+
o.errors << Shapes::ShapeRef.new(shape: CommitMessageLengthExceededException)
|
1023
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
1024
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
1025
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
1026
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
1027
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
1028
|
+
end)
|
1029
|
+
|
908
1030
|
api.add_operation(:delete_repository, Seahorse::Model::Operation.new.tap do |o|
|
909
1031
|
o.name = "DeleteRepository"
|
910
1032
|
o.http_method = "POST"
|
@@ -1105,6 +1227,49 @@ module Aws::CodeCommit
|
|
1105
1227
|
)
|
1106
1228
|
end)
|
1107
1229
|
|
1230
|
+
api.add_operation(:get_file, Seahorse::Model::Operation.new.tap do |o|
|
1231
|
+
o.name = "GetFile"
|
1232
|
+
o.http_method = "POST"
|
1233
|
+
o.http_request_uri = "/"
|
1234
|
+
o.input = Shapes::ShapeRef.new(shape: GetFileInput)
|
1235
|
+
o.output = Shapes::ShapeRef.new(shape: GetFileOutput)
|
1236
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
|
1237
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
1238
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
1239
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidCommitException)
|
1240
|
+
o.errors << Shapes::ShapeRef.new(shape: CommitDoesNotExistException)
|
1241
|
+
o.errors << Shapes::ShapeRef.new(shape: PathRequiredException)
|
1242
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPathException)
|
1243
|
+
o.errors << Shapes::ShapeRef.new(shape: FileDoesNotExistException)
|
1244
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
1245
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
1246
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
1247
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
1248
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
1249
|
+
o.errors << Shapes::ShapeRef.new(shape: FileTooLargeException)
|
1250
|
+
end)
|
1251
|
+
|
1252
|
+
api.add_operation(:get_folder, Seahorse::Model::Operation.new.tap do |o|
|
1253
|
+
o.name = "GetFolder"
|
1254
|
+
o.http_method = "POST"
|
1255
|
+
o.http_request_uri = "/"
|
1256
|
+
o.input = Shapes::ShapeRef.new(shape: GetFolderInput)
|
1257
|
+
o.output = Shapes::ShapeRef.new(shape: GetFolderOutput)
|
1258
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
|
1259
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
1260
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
1261
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidCommitException)
|
1262
|
+
o.errors << Shapes::ShapeRef.new(shape: CommitDoesNotExistException)
|
1263
|
+
o.errors << Shapes::ShapeRef.new(shape: PathRequiredException)
|
1264
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidPathException)
|
1265
|
+
o.errors << Shapes::ShapeRef.new(shape: FolderDoesNotExistException)
|
1266
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
1267
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
1268
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
1269
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
1270
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
1271
|
+
end)
|
1272
|
+
|
1108
1273
|
api.add_operation(:get_merge_conflicts, Seahorse::Model::Operation.new.tap do |o|
|
1109
1274
|
o.name = "GetMergeConflicts"
|
1110
1275
|
o.http_method = "POST"
|
@@ -1374,6 +1539,7 @@ module Aws::CodeCommit
|
|
1374
1539
|
o.errors << Shapes::ShapeRef.new(shape: NameLengthExceededException)
|
1375
1540
|
o.errors << Shapes::ShapeRef.new(shape: InvalidEmailException)
|
1376
1541
|
o.errors << Shapes::ShapeRef.new(shape: CommitMessageLengthExceededException)
|
1542
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidDeletionParameterException)
|
1377
1543
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
1378
1544
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
1379
1545
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
@@ -552,6 +552,113 @@ module Aws::CodeCommit
|
|
552
552
|
include Aws::Structure
|
553
553
|
end
|
554
554
|
|
555
|
+
# @note When making an API call, you may pass DeleteFileInput
|
556
|
+
# data as a hash:
|
557
|
+
#
|
558
|
+
# {
|
559
|
+
# repository_name: "RepositoryName", # required
|
560
|
+
# branch_name: "BranchName", # required
|
561
|
+
# file_path: "Path", # required
|
562
|
+
# parent_commit_id: "CommitId", # required
|
563
|
+
# keep_empty_folders: false,
|
564
|
+
# commit_message: "Message",
|
565
|
+
# name: "Name",
|
566
|
+
# email: "Email",
|
567
|
+
# }
|
568
|
+
#
|
569
|
+
# @!attribute [rw] repository_name
|
570
|
+
# The name of the repository that contains the file to delete.
|
571
|
+
# @return [String]
|
572
|
+
#
|
573
|
+
# @!attribute [rw] branch_name
|
574
|
+
# The name of the branch where the commit will be made deleting the
|
575
|
+
# file.
|
576
|
+
# @return [String]
|
577
|
+
#
|
578
|
+
# @!attribute [rw] file_path
|
579
|
+
# The fully-qualified path to the file that will be deleted, including
|
580
|
+
# the full name and extension of that file. For example,
|
581
|
+
# /examples/file.md is a fully qualified path to a file named file.md
|
582
|
+
# in a folder named examples.
|
583
|
+
# @return [String]
|
584
|
+
#
|
585
|
+
# @!attribute [rw] parent_commit_id
|
586
|
+
# The ID of the commit that is the tip of the branch where you want to
|
587
|
+
# create the commit that will delete the file. This must be the HEAD
|
588
|
+
# commit for the branch. The commit that deletes the file will be
|
589
|
+
# created from this commit ID.
|
590
|
+
# @return [String]
|
591
|
+
#
|
592
|
+
# @!attribute [rw] keep_empty_folders
|
593
|
+
# Specifies whether to delete the folder or directory that contains
|
594
|
+
# the file you want to delete if that file is the only object in the
|
595
|
+
# folder or directory. By default, empty folders will be deleted. This
|
596
|
+
# includes empty folders that are part of the directory structure. For
|
597
|
+
# example, if the path to a file is dir1/dir2/dir3/dir4, and dir2 and
|
598
|
+
# dir3 are empty, deleting the last file in dir4 will also delete the
|
599
|
+
# empty folders dir4, dir3, and dir2.
|
600
|
+
# @return [Boolean]
|
601
|
+
#
|
602
|
+
# @!attribute [rw] commit_message
|
603
|
+
# The commit message you want to include as part of deleting the file.
|
604
|
+
# Commit messages are limited to 256 KB. If no message is specified, a
|
605
|
+
# default message will be used.
|
606
|
+
# @return [String]
|
607
|
+
#
|
608
|
+
# @!attribute [rw] name
|
609
|
+
# The name of the author of the commit that deletes the file. If no
|
610
|
+
# name is specified, the user's ARN will be used as the author name
|
611
|
+
# and committer name.
|
612
|
+
# @return [String]
|
613
|
+
#
|
614
|
+
# @!attribute [rw] email
|
615
|
+
# The email address for the commit that deletes the file. If no email
|
616
|
+
# address is specified, the email address will be left blank.
|
617
|
+
# @return [String]
|
618
|
+
#
|
619
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFileInput AWS API Documentation
|
620
|
+
#
|
621
|
+
class DeleteFileInput < Struct.new(
|
622
|
+
:repository_name,
|
623
|
+
:branch_name,
|
624
|
+
:file_path,
|
625
|
+
:parent_commit_id,
|
626
|
+
:keep_empty_folders,
|
627
|
+
:commit_message,
|
628
|
+
:name,
|
629
|
+
:email)
|
630
|
+
include Aws::Structure
|
631
|
+
end
|
632
|
+
|
633
|
+
# @!attribute [rw] commit_id
|
634
|
+
# The full commit ID of the commit that contains the change that
|
635
|
+
# deletes the file.
|
636
|
+
# @return [String]
|
637
|
+
#
|
638
|
+
# @!attribute [rw] blob_id
|
639
|
+
# The blob ID removed from the tree as part of deleting the file.
|
640
|
+
# @return [String]
|
641
|
+
#
|
642
|
+
# @!attribute [rw] tree_id
|
643
|
+
# The full SHA-1 pointer of the tree information for the commit that
|
644
|
+
# contains the delete file change.
|
645
|
+
# @return [String]
|
646
|
+
#
|
647
|
+
# @!attribute [rw] file_path
|
648
|
+
# The fully-qualified path to the file that will be deleted, including
|
649
|
+
# the full name and extension of that file.
|
650
|
+
# @return [String]
|
651
|
+
#
|
652
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFileOutput AWS API Documentation
|
653
|
+
#
|
654
|
+
class DeleteFileOutput < Struct.new(
|
655
|
+
:commit_id,
|
656
|
+
:blob_id,
|
657
|
+
:tree_id,
|
658
|
+
:file_path)
|
659
|
+
include Aws::Structure
|
660
|
+
end
|
661
|
+
|
555
662
|
# Represents the input of a delete repository operation.
|
556
663
|
#
|
557
664
|
# @note When making an API call, you may pass DeleteRepositoryInput
|
@@ -677,6 +784,61 @@ module Aws::CodeCommit
|
|
677
784
|
include Aws::Structure
|
678
785
|
end
|
679
786
|
|
787
|
+
# Returns information about a file in a repository.
|
788
|
+
#
|
789
|
+
# @!attribute [rw] blob_id
|
790
|
+
# The blob ID that contains the file information.
|
791
|
+
# @return [String]
|
792
|
+
#
|
793
|
+
# @!attribute [rw] absolute_path
|
794
|
+
# The fully-qualified path to the file in the repository.
|
795
|
+
# @return [String]
|
796
|
+
#
|
797
|
+
# @!attribute [rw] relative_path
|
798
|
+
# The relative path of the file from the folder where the query
|
799
|
+
# originated.
|
800
|
+
# @return [String]
|
801
|
+
#
|
802
|
+
# @!attribute [rw] file_mode
|
803
|
+
# The extrapolated file mode permissions for the file. Valid values
|
804
|
+
# include EXECUTABLE and NORMAL.
|
805
|
+
# @return [String]
|
806
|
+
#
|
807
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/File AWS API Documentation
|
808
|
+
#
|
809
|
+
class File < Struct.new(
|
810
|
+
:blob_id,
|
811
|
+
:absolute_path,
|
812
|
+
:relative_path,
|
813
|
+
:file_mode)
|
814
|
+
include Aws::Structure
|
815
|
+
end
|
816
|
+
|
817
|
+
# Returns information about a folder in a repository.
|
818
|
+
#
|
819
|
+
# @!attribute [rw] tree_id
|
820
|
+
# The full SHA-1 pointer of the tree information for the commit that
|
821
|
+
# contains the folder.
|
822
|
+
# @return [String]
|
823
|
+
#
|
824
|
+
# @!attribute [rw] absolute_path
|
825
|
+
# The fully-qualified path of the folder in the repository.
|
826
|
+
# @return [String]
|
827
|
+
#
|
828
|
+
# @!attribute [rw] relative_path
|
829
|
+
# The relative path of the specified folder from the folder where the
|
830
|
+
# query originated.
|
831
|
+
# @return [String]
|
832
|
+
#
|
833
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/Folder AWS API Documentation
|
834
|
+
#
|
835
|
+
class Folder < Struct.new(
|
836
|
+
:tree_id,
|
837
|
+
:absolute_path,
|
838
|
+
:relative_path)
|
839
|
+
include Aws::Structure
|
840
|
+
end
|
841
|
+
|
680
842
|
# Represents the input of a get blob operation.
|
681
843
|
#
|
682
844
|
# @note When making an API call, you may pass GetBlobInput
|
@@ -1045,6 +1207,169 @@ module Aws::CodeCommit
|
|
1045
1207
|
include Aws::Structure
|
1046
1208
|
end
|
1047
1209
|
|
1210
|
+
# @note When making an API call, you may pass GetFileInput
|
1211
|
+
# data as a hash:
|
1212
|
+
#
|
1213
|
+
# {
|
1214
|
+
# repository_name: "RepositoryName", # required
|
1215
|
+
# commit_specifier: "CommitName",
|
1216
|
+
# file_path: "Path", # required
|
1217
|
+
# }
|
1218
|
+
#
|
1219
|
+
# @!attribute [rw] repository_name
|
1220
|
+
# The name of the repository that contains the file.
|
1221
|
+
# @return [String]
|
1222
|
+
#
|
1223
|
+
# @!attribute [rw] commit_specifier
|
1224
|
+
# The fully-quaified reference that identifies the commit that
|
1225
|
+
# contains the file. For example, you could specify a full commit ID,
|
1226
|
+
# a tag, a branch name, or a reference such as refs/heads/master. If
|
1227
|
+
# none is provided, then the head commit will be used.
|
1228
|
+
# @return [String]
|
1229
|
+
#
|
1230
|
+
# @!attribute [rw] file_path
|
1231
|
+
# The fully-qualified path to the file, including the full name and
|
1232
|
+
# extension of the file. For example, /examples/file.md is the
|
1233
|
+
# fully-qualified path to a file named file.md in a folder named
|
1234
|
+
# examples.
|
1235
|
+
# @return [String]
|
1236
|
+
#
|
1237
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFileInput AWS API Documentation
|
1238
|
+
#
|
1239
|
+
class GetFileInput < Struct.new(
|
1240
|
+
:repository_name,
|
1241
|
+
:commit_specifier,
|
1242
|
+
:file_path)
|
1243
|
+
include Aws::Structure
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
# @!attribute [rw] commit_id
|
1247
|
+
# The full commit ID of the commit that contains the content returned
|
1248
|
+
# by GetFile.
|
1249
|
+
# @return [String]
|
1250
|
+
#
|
1251
|
+
# @!attribute [rw] blob_id
|
1252
|
+
# The blob ID of the object that represents the file content.
|
1253
|
+
# @return [String]
|
1254
|
+
#
|
1255
|
+
# @!attribute [rw] file_path
|
1256
|
+
# The fully qualified path to the specified file. This returns the
|
1257
|
+
# name and extension of the file.
|
1258
|
+
# @return [String]
|
1259
|
+
#
|
1260
|
+
# @!attribute [rw] file_mode
|
1261
|
+
# The extrapolated file mode permissions of the blob. Valid values
|
1262
|
+
# include strings such as EXECUTABLE and not numeric values.
|
1263
|
+
#
|
1264
|
+
# <note markdown="1"> The file mode permissions returned by this API are not the standard
|
1265
|
+
# file mode permission values, such as 100644, but rather extrapolated
|
1266
|
+
# values. See below for a full list of supported return values.
|
1267
|
+
#
|
1268
|
+
# </note>
|
1269
|
+
# @return [String]
|
1270
|
+
#
|
1271
|
+
# @!attribute [rw] file_size
|
1272
|
+
# The size of the contents of the file, in bytes.
|
1273
|
+
# @return [Integer]
|
1274
|
+
#
|
1275
|
+
# @!attribute [rw] file_content
|
1276
|
+
# The base-64 encoded binary data object that represents the content
|
1277
|
+
# of the file.
|
1278
|
+
# @return [String]
|
1279
|
+
#
|
1280
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFileOutput AWS API Documentation
|
1281
|
+
#
|
1282
|
+
class GetFileOutput < Struct.new(
|
1283
|
+
:commit_id,
|
1284
|
+
:blob_id,
|
1285
|
+
:file_path,
|
1286
|
+
:file_mode,
|
1287
|
+
:file_size,
|
1288
|
+
:file_content)
|
1289
|
+
include Aws::Structure
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
# @note When making an API call, you may pass GetFolderInput
|
1293
|
+
# data as a hash:
|
1294
|
+
#
|
1295
|
+
# {
|
1296
|
+
# repository_name: "RepositoryName", # required
|
1297
|
+
# commit_specifier: "CommitName",
|
1298
|
+
# folder_path: "Path", # required
|
1299
|
+
# }
|
1300
|
+
#
|
1301
|
+
# @!attribute [rw] repository_name
|
1302
|
+
# The name of the repository.
|
1303
|
+
# @return [String]
|
1304
|
+
#
|
1305
|
+
# @!attribute [rw] commit_specifier
|
1306
|
+
# A fully-qualified reference used to identify a commit that contains
|
1307
|
+
# the version of the folder's content to return. A fully-qualified
|
1308
|
+
# reference can be a commit ID, branch name, tag, or reference such as
|
1309
|
+
# HEAD. If no specifier is provided, the folder content will be
|
1310
|
+
# returned as it exists in the HEAD commit.
|
1311
|
+
# @return [String]
|
1312
|
+
#
|
1313
|
+
# @!attribute [rw] folder_path
|
1314
|
+
# The fully-qualified path to the folder whose contents will be
|
1315
|
+
# returned, including the folder name. For example, /examples is a
|
1316
|
+
# fully-qualified path to a folder named examples that was created off
|
1317
|
+
# of the root directory (/) of a repository.
|
1318
|
+
# @return [String]
|
1319
|
+
#
|
1320
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolderInput AWS API Documentation
|
1321
|
+
#
|
1322
|
+
class GetFolderInput < Struct.new(
|
1323
|
+
:repository_name,
|
1324
|
+
:commit_specifier,
|
1325
|
+
:folder_path)
|
1326
|
+
include Aws::Structure
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
# @!attribute [rw] commit_id
|
1330
|
+
# The full commit ID used as a reference for which version of the
|
1331
|
+
# folder content is returned.
|
1332
|
+
# @return [String]
|
1333
|
+
#
|
1334
|
+
# @!attribute [rw] folder_path
|
1335
|
+
# The fully-qualified path of the folder whose contents are returned.
|
1336
|
+
# @return [String]
|
1337
|
+
#
|
1338
|
+
# @!attribute [rw] tree_id
|
1339
|
+
# The full SHA-1 pointer of the tree information for the commit that
|
1340
|
+
# contains the folder.
|
1341
|
+
# @return [String]
|
1342
|
+
#
|
1343
|
+
# @!attribute [rw] sub_folders
|
1344
|
+
# The list of folders that exist beneath the specified folder, if any.
|
1345
|
+
# @return [Array<Types::Folder>]
|
1346
|
+
#
|
1347
|
+
# @!attribute [rw] files
|
1348
|
+
# The list of files that exist in the specified folder, if any.
|
1349
|
+
# @return [Array<Types::File>]
|
1350
|
+
#
|
1351
|
+
# @!attribute [rw] symbolic_links
|
1352
|
+
# The list of symbolic links to other files and folders that exist in
|
1353
|
+
# the specified folder, if any.
|
1354
|
+
# @return [Array<Types::SymbolicLink>]
|
1355
|
+
#
|
1356
|
+
# @!attribute [rw] sub_modules
|
1357
|
+
# The list of submodules that exist in the specified folder, if any.
|
1358
|
+
# @return [Array<Types::SubModule>]
|
1359
|
+
#
|
1360
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolderOutput AWS API Documentation
|
1361
|
+
#
|
1362
|
+
class GetFolderOutput < Struct.new(
|
1363
|
+
:commit_id,
|
1364
|
+
:folder_path,
|
1365
|
+
:tree_id,
|
1366
|
+
:sub_folders,
|
1367
|
+
:files,
|
1368
|
+
:symbolic_links,
|
1369
|
+
:sub_modules)
|
1370
|
+
include Aws::Structure
|
1371
|
+
end
|
1372
|
+
|
1048
1373
|
# @note When making an API call, you may pass GetMergeConflictsInput
|
1049
1374
|
# data as a hash:
|
1050
1375
|
#
|
@@ -2001,11 +2326,6 @@ module Aws::CodeCommit
|
|
2001
2326
|
# is the commit where the pull request was or will be merged.
|
2002
2327
|
# @return [String]
|
2003
2328
|
#
|
2004
|
-
# @!attribute [rw] merge_base
|
2005
|
-
# The commit ID of the most recent commit that the source branch and
|
2006
|
-
# the destination branch have in common.
|
2007
|
-
# @return [String]
|
2008
|
-
#
|
2009
2329
|
# @!attribute [rw] source_commit
|
2010
2330
|
# The full commit ID of the tip of the source branch used to create
|
2011
2331
|
# the pull request. If the pull request branch is updated by a push
|
@@ -2013,6 +2333,11 @@ module Aws::CodeCommit
|
|
2013
2333
|
# the new tip of the branch.
|
2014
2334
|
# @return [String]
|
2015
2335
|
#
|
2336
|
+
# @!attribute [rw] merge_base
|
2337
|
+
# The commit ID of the most recent commit that the source branch and
|
2338
|
+
# the destination branch have in common.
|
2339
|
+
# @return [String]
|
2340
|
+
#
|
2016
2341
|
# @!attribute [rw] merge_metadata
|
2017
2342
|
# Returns metadata about the state of the merge, including whether the
|
2018
2343
|
# merge has been made.
|
@@ -2025,8 +2350,8 @@ module Aws::CodeCommit
|
|
2025
2350
|
:source_reference,
|
2026
2351
|
:destination_reference,
|
2027
2352
|
:destination_commit,
|
2028
|
-
:merge_base,
|
2029
2353
|
:source_commit,
|
2354
|
+
:merge_base,
|
2030
2355
|
:merge_metadata)
|
2031
2356
|
include Aws::Structure
|
2032
2357
|
end
|
@@ -2340,6 +2665,63 @@ module Aws::CodeCommit
|
|
2340
2665
|
include Aws::Structure
|
2341
2666
|
end
|
2342
2667
|
|
2668
|
+
# Returns information about a submodule reference in a repository
|
2669
|
+
# folder.
|
2670
|
+
#
|
2671
|
+
# @!attribute [rw] commit_id
|
2672
|
+
# The commit ID that contains the reference to the submodule.
|
2673
|
+
# @return [String]
|
2674
|
+
#
|
2675
|
+
# @!attribute [rw] absolute_path
|
2676
|
+
# The fully qualified path to the folder that contains the reference
|
2677
|
+
# to the submodule.
|
2678
|
+
# @return [String]
|
2679
|
+
#
|
2680
|
+
# @!attribute [rw] relative_path
|
2681
|
+
# The relative path of the submodule from the folder where the query
|
2682
|
+
# originated.
|
2683
|
+
# @return [String]
|
2684
|
+
#
|
2685
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/SubModule AWS API Documentation
|
2686
|
+
#
|
2687
|
+
class SubModule < Struct.new(
|
2688
|
+
:commit_id,
|
2689
|
+
:absolute_path,
|
2690
|
+
:relative_path)
|
2691
|
+
include Aws::Structure
|
2692
|
+
end
|
2693
|
+
|
2694
|
+
# Returns information about a symbolic link in a repository folder.
|
2695
|
+
#
|
2696
|
+
# @!attribute [rw] blob_id
|
2697
|
+
# The blob ID that contains the information about the symbolic link.
|
2698
|
+
# @return [String]
|
2699
|
+
#
|
2700
|
+
# @!attribute [rw] absolute_path
|
2701
|
+
# The fully-qualified path to the folder that contains the symbolic
|
2702
|
+
# link.
|
2703
|
+
# @return [String]
|
2704
|
+
#
|
2705
|
+
# @!attribute [rw] relative_path
|
2706
|
+
# The relative path of the symbolic link from the folder where the
|
2707
|
+
# query originated.
|
2708
|
+
# @return [String]
|
2709
|
+
#
|
2710
|
+
# @!attribute [rw] file_mode
|
2711
|
+
# The file mode permissions of the blob that cotains information about
|
2712
|
+
# the symbolic link.
|
2713
|
+
# @return [String]
|
2714
|
+
#
|
2715
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/SymbolicLink AWS API Documentation
|
2716
|
+
#
|
2717
|
+
class SymbolicLink < Struct.new(
|
2718
|
+
:blob_id,
|
2719
|
+
:absolute_path,
|
2720
|
+
:relative_path,
|
2721
|
+
:file_mode)
|
2722
|
+
include Aws::Structure
|
2723
|
+
end
|
2724
|
+
|
2343
2725
|
# Returns information about a target for a pull request.
|
2344
2726
|
#
|
2345
2727
|
# @note When making an API call, you may pass Target
|
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.8.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: 2018-09-
|
11
|
+
date: 2018-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|