lib/aws-sdk-codecommit/client.rb in aws-sdk-codecommit-1.7.0 vs lib/aws-sdk-codecommit/client.rb in aws-sdk-codecommit-1.8.0
- old
+ new
@@ -334,12 +334,12 @@
# resp.pull_request.pull_request_targets #=> Array
# resp.pull_request.pull_request_targets[0].repository_name #=> String
# resp.pull_request.pull_request_targets[0].source_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
- # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].source_commit #=> String
+ # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
# resp.pull_request.client_request_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequest AWS API Documentation
@@ -482,10 +482,92 @@
def delete_comment_content(params = {}, options = {})
req = build_request(:delete_comment_content, params)
req.send_request(options)
end
+ # Deletes a specified file from a specified branch. A commit is created
+ # on the branch that contains the revision. The file will still exist in
+ # the commits prior to the commit that contains the deletion.
+ #
+ # @option params [required, String] :repository_name
+ # The name of the repository that contains the file to delete.
+ #
+ # @option params [required, String] :branch_name
+ # The name of the branch where the commit will be made deleting the
+ # file.
+ #
+ # @option params [required, String] :file_path
+ # The fully-qualified path to the file that will be deleted, including
+ # the full name and extension of that file. For example,
+ # /examples/file.md is a fully qualified path to a file named file.md in
+ # a folder named examples.
+ #
+ # @option params [required, String] :parent_commit_id
+ # The ID of the commit that is the tip of the branch where you want to
+ # create the commit that will delete the file. This must be the HEAD
+ # commit for the branch. The commit that deletes the file will be
+ # created from this commit ID.
+ #
+ # @option params [Boolean] :keep_empty_folders
+ # Specifies whether to delete the folder or directory that contains the
+ # file you want to delete if that file is the only object in the folder
+ # or directory. By default, empty folders will be deleted. This includes
+ # empty folders that are part of the directory structure. For example,
+ # if the path to a file is dir1/dir2/dir3/dir4, and dir2 and dir3 are
+ # empty, deleting the last file in dir4 will also delete the empty
+ # folders dir4, dir3, and dir2.
+ #
+ # @option params [String] :commit_message
+ # The commit message you want to include as part of deleting the file.
+ # Commit messages are limited to 256 KB. If no message is specified, a
+ # default message will be used.
+ #
+ # @option params [String] :name
+ # The name of the author of the commit that deletes the file. If no name
+ # is specified, the user's ARN will be used as the author name and
+ # committer name.
+ #
+ # @option params [String] :email
+ # The email address for the commit that deletes the file. If no email
+ # address is specified, the email address will be left blank.
+ #
+ # @return [Types::DeleteFileOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::DeleteFileOutput#commit_id #commit_id} => String
+ # * {Types::DeleteFileOutput#blob_id #blob_id} => String
+ # * {Types::DeleteFileOutput#tree_id #tree_id} => String
+ # * {Types::DeleteFileOutput#file_path #file_path} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.delete_file({
+ # repository_name: "RepositoryName", # required
+ # branch_name: "BranchName", # required
+ # file_path: "Path", # required
+ # parent_commit_id: "CommitId", # required
+ # keep_empty_folders: false,
+ # commit_message: "Message",
+ # name: "Name",
+ # email: "Email",
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.commit_id #=> String
+ # resp.blob_id #=> String
+ # resp.tree_id #=> String
+ # resp.file_path #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile AWS API Documentation
+ #
+ # @overload delete_file(params = {})
+ # @param [Hash] params ({})
+ def delete_file(params = {}, options = {})
+ req = build_request(:delete_file, params)
+ req.send_request(options)
+ end
+
# Deletes a repository. If a specified repository was already deleted, a
# null repository ID will be returned.
#
# Deleting a repository also deletes all associated objects and
# metadata. After a repository is deleted, all future push calls to the
@@ -951,10 +1033,132 @@
def get_differences(params = {}, options = {})
req = build_request(:get_differences, params)
req.send_request(options)
end
+ # Returns the base-64 encoded contents of a specified file and its
+ # metadata.
+ #
+ # @option params [required, String] :repository_name
+ # The name of the repository that contains the file.
+ #
+ # @option params [String] :commit_specifier
+ # The fully-quaified reference that identifies the commit that contains
+ # the file. For example, you could specify a full commit ID, a tag, a
+ # branch name, or a reference such as refs/heads/master. If none is
+ # provided, then the head commit will be used.
+ #
+ # @option params [required, String] :file_path
+ # The fully-qualified path to the file, including the full name and
+ # extension of the file. For example, /examples/file.md is the
+ # fully-qualified path to a file named file.md in a folder named
+ # examples.
+ #
+ # @return [Types::GetFileOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetFileOutput#commit_id #commit_id} => String
+ # * {Types::GetFileOutput#blob_id #blob_id} => String
+ # * {Types::GetFileOutput#file_path #file_path} => String
+ # * {Types::GetFileOutput#file_mode #file_mode} => String
+ # * {Types::GetFileOutput#file_size #file_size} => Integer
+ # * {Types::GetFileOutput#file_content #file_content} => String
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.get_file({
+ # repository_name: "RepositoryName", # required
+ # commit_specifier: "CommitName",
+ # file_path: "Path", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.commit_id #=> String
+ # resp.blob_id #=> String
+ # resp.file_path #=> String
+ # resp.file_mode #=> String, one of "EXECUTABLE", "NORMAL", "SYMLINK"
+ # resp.file_size #=> Integer
+ # resp.file_content #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFile AWS API Documentation
+ #
+ # @overload get_file(params = {})
+ # @param [Hash] params ({})
+ def get_file(params = {}, options = {})
+ req = build_request(:get_file, params)
+ req.send_request(options)
+ end
+
+ # Returns the contents of a specified folder in a repository.
+ #
+ # @option params [required, String] :repository_name
+ # The name of the repository.
+ #
+ # @option params [String] :commit_specifier
+ # A fully-qualified reference used to identify a commit that contains
+ # the version of the folder's content to return. A fully-qualified
+ # reference can be a commit ID, branch name, tag, or reference such as
+ # HEAD. If no specifier is provided, the folder content will be returned
+ # as it exists in the HEAD commit.
+ #
+ # @option params [required, String] :folder_path
+ # The fully-qualified path to the folder whose contents will be
+ # returned, including the folder name. For example, /examples is a
+ # fully-qualified path to a folder named examples that was created off
+ # of the root directory (/) of a repository.
+ #
+ # @return [Types::GetFolderOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::GetFolderOutput#commit_id #commit_id} => String
+ # * {Types::GetFolderOutput#folder_path #folder_path} => String
+ # * {Types::GetFolderOutput#tree_id #tree_id} => String
+ # * {Types::GetFolderOutput#sub_folders #sub_folders} => Array<Types::Folder>
+ # * {Types::GetFolderOutput#files #files} => Array<Types::File>
+ # * {Types::GetFolderOutput#symbolic_links #symbolic_links} => Array<Types::SymbolicLink>
+ # * {Types::GetFolderOutput#sub_modules #sub_modules} => Array<Types::SubModule>
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.get_folder({
+ # repository_name: "RepositoryName", # required
+ # commit_specifier: "CommitName",
+ # folder_path: "Path", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.commit_id #=> String
+ # resp.folder_path #=> String
+ # resp.tree_id #=> String
+ # resp.sub_folders #=> Array
+ # resp.sub_folders[0].tree_id #=> String
+ # resp.sub_folders[0].absolute_path #=> String
+ # resp.sub_folders[0].relative_path #=> String
+ # resp.files #=> Array
+ # resp.files[0].blob_id #=> String
+ # resp.files[0].absolute_path #=> String
+ # resp.files[0].relative_path #=> String
+ # resp.files[0].file_mode #=> String, one of "EXECUTABLE", "NORMAL", "SYMLINK"
+ # resp.symbolic_links #=> Array
+ # resp.symbolic_links[0].blob_id #=> String
+ # resp.symbolic_links[0].absolute_path #=> String
+ # resp.symbolic_links[0].relative_path #=> String
+ # resp.symbolic_links[0].file_mode #=> String, one of "EXECUTABLE", "NORMAL", "SYMLINK"
+ # resp.sub_modules #=> Array
+ # resp.sub_modules[0].commit_id #=> String
+ # resp.sub_modules[0].absolute_path #=> String
+ # resp.sub_modules[0].relative_path #=> String
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder AWS API Documentation
+ #
+ # @overload get_folder(params = {})
+ # @param [Hash] params ({})
+ def get_folder(params = {}, options = {})
+ req = build_request(:get_folder, params)
+ req.send_request(options)
+ end
+
# Returns information about merge conflicts between the before and after
# commit IDs for a pull request in a repository.
#
# @option params [required, String] :repository_name
# The name of the repository where the pull request was created.
@@ -1029,12 +1233,12 @@
# resp.pull_request.pull_request_targets #=> Array
# resp.pull_request.pull_request_targets[0].repository_name #=> String
# resp.pull_request.pull_request_targets[0].source_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
- # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].source_commit #=> String
+ # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
# resp.pull_request.client_request_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest AWS API Documentation
@@ -1302,12 +1506,12 @@
# resp.pull_request.pull_request_targets #=> Array
# resp.pull_request.pull_request_targets[0].repository_name #=> String
# resp.pull_request.pull_request_targets[0].source_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
- # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].source_commit #=> String
+ # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
# resp.pull_request.client_request_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward AWS API Documentation
@@ -1829,12 +2033,12 @@
# resp.pull_request.pull_request_targets #=> Array
# resp.pull_request.pull_request_targets[0].repository_name #=> String
# resp.pull_request.pull_request_targets[0].source_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
- # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].source_commit #=> String
+ # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
# resp.pull_request.client_request_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription AWS API Documentation
@@ -1880,12 +2084,12 @@
# resp.pull_request.pull_request_targets #=> Array
# resp.pull_request.pull_request_targets[0].repository_name #=> String
# resp.pull_request.pull_request_targets[0].source_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
- # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].source_commit #=> String
+ # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
# resp.pull_request.client_request_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus AWS API Documentation
@@ -1930,12 +2134,12 @@
# resp.pull_request.pull_request_targets #=> Array
# resp.pull_request.pull_request_targets[0].repository_name #=> String
# resp.pull_request.pull_request_targets[0].source_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_reference #=> String
# resp.pull_request.pull_request_targets[0].destination_commit #=> String
- # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].source_commit #=> String
+ # resp.pull_request.pull_request_targets[0].merge_base #=> String
# resp.pull_request.pull_request_targets[0].merge_metadata.is_merged #=> Boolean
# resp.pull_request.pull_request_targets[0].merge_metadata.merged_by #=> String
# resp.pull_request.client_request_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle AWS API Documentation
@@ -2030,10 +2234,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-codecommit'
- context[:gem_version] = '1.7.0'
+ context[:gem_version] = '1.8.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated