lib/aws-sdk-codecommit/client.rb in aws-sdk-codecommit-1.0.0 vs lib/aws-sdk-codecommit/client.rb in aws-sdk-codecommit-1.1.0

- old
+ new

@@ -301,10 +301,44 @@ def create_repository(params = {}, options = {}) req = build_request(:create_repository, params) req.send_request(options) end + # Deletes a branch from a repository, unless that branch is the default + # branch for the repository. + # + # @option params [required, String] :repository_name + # The name of the repository that contains the branch to be deleted. + # + # @option params [required, String] :branch_name + # The name of the branch to delete. + # + # @return [Types::DeleteBranchOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: + # + # * {Types::DeleteBranchOutput#deleted_branch #deleted_branch} => Types::BranchInfo + # + # @example Request syntax with placeholder values + # + # resp = client.delete_branch({ + # repository_name: "RepositoryName", # required + # branch_name: "BranchName", # required + # }) + # + # @example Response structure + # + # resp.deleted_branch.branch_name #=> String + # resp.deleted_branch.commit_id #=> String + # + # @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch AWS API Documentation + # + # @overload delete_branch(params = {}) + # @param [Hash] params ({}) + def delete_branch(params = {}, options = {}) + req = build_request(:delete_branch, 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 @@ -409,11 +443,11 @@ # # @option params [required, String] :repository_name # The name of the repository to which the commit was made. # # @option params [required, String] :commit_id - # The commit ID. + # The commit ID. Commit IDs are the full SHA of the commit. # # @return [Types::GetCommitOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods: # # * {Types::GetCommitOutput#commit #commit} => Types::Commit # @@ -424,10 +458,11 @@ # commit_id: "ObjectId", # required # }) # # @example Response structure # + # resp.commit.commit_id #=> String # resp.commit.tree_id #=> String # resp.commit.parents #=> Array # resp.commit.parents[0] #=> String # resp.commit.message #=> String # resp.commit.author.name #=> String @@ -890,10 +925,10 @@ operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-codecommit' - context[:gem_version] = '1.0.0' + context[:gem_version] = '1.1.0' Seahorse::Client::Request.new(handlers, context) end # @api private # @deprecated