Class: Aws::CodeCommit::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CodeCommit::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb
Overview
An API client for CodeCommit. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::CodeCommit::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#associate_approval_rule_template_with_repository(params = {}) ⇒ Struct
Creates an association between an approval rule template and a specified repository.
-
#batch_associate_approval_rule_template_with_repositories(params = {}) ⇒ Types::BatchAssociateApprovalRuleTemplateWithRepositoriesOutput
Creates an association between an approval rule template and one or more specified repositories.
-
#batch_describe_merge_conflicts(params = {}) ⇒ Types::BatchDescribeMergeConflictsOutput
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.
-
#batch_disassociate_approval_rule_template_from_repositories(params = {}) ⇒ Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput
Removes the association between an approval rule template and one or more specified repositories.
-
#batch_get_commits(params = {}) ⇒ Types::BatchGetCommitsOutput
Returns information about the contents of one or more commits in a repository.
-
#batch_get_repositories(params = {}) ⇒ Types::BatchGetRepositoriesOutput
Returns information about one or more repositories.
-
#create_approval_rule_template(params = {}) ⇒ Types::CreateApprovalRuleTemplateOutput
Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account.
-
#create_branch(params = {}) ⇒ Struct
Creates a branch in a repository and points the branch to a commit.
-
#create_commit(params = {}) ⇒ Types::CreateCommitOutput
Creates a commit for a repository on the tip of a specified branch.
-
#create_pull_request(params = {}) ⇒ Types::CreatePullRequestOutput
Creates a pull request in the specified repository.
-
#create_pull_request_approval_rule(params = {}) ⇒ Types::CreatePullRequestApprovalRuleOutput
Creates an approval rule for a pull request.
-
#create_repository(params = {}) ⇒ Types::CreateRepositoryOutput
Creates a new, empty repository.
-
#create_unreferenced_merge_commit(params = {}) ⇒ Types::CreateUnreferencedMergeCommitOutput
Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy.
-
#delete_approval_rule_template(params = {}) ⇒ Types::DeleteApprovalRuleTemplateOutput
Deletes a specified approval rule template.
-
#delete_branch(params = {}) ⇒ Types::DeleteBranchOutput
Deletes a branch from a repository, unless that branch is the default branch for the repository.
-
#delete_comment_content(params = {}) ⇒ Types::DeleteCommentContentOutput
Deletes the content of a comment made on a change, file, or commit in a repository.
-
#delete_file(params = {}) ⇒ Types::DeleteFileOutput
Deletes a specified file from a specified branch.
-
#delete_pull_request_approval_rule(params = {}) ⇒ Types::DeletePullRequestApprovalRuleOutput
Deletes an approval rule from a specified pull request.
-
#delete_repository(params = {}) ⇒ Types::DeleteRepositoryOutput
Deletes a repository.
-
#describe_merge_conflicts(params = {}) ⇒ Types::DescribeMergeConflictsOutput
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.
-
#describe_pull_request_events(params = {}) ⇒ Types::DescribePullRequestEventsOutput
Returns information about one or more pull request events.
-
#disassociate_approval_rule_template_from_repository(params = {}) ⇒ Struct
Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository.
-
#evaluate_pull_request_approval_rules(params = {}) ⇒ Types::EvaluatePullRequestApprovalRulesOutput
Evaluates whether a pull request has met all the conditions specified in its associated approval rules.
-
#get_approval_rule_template(params = {}) ⇒ Types::GetApprovalRuleTemplateOutput
Returns information about a specified approval rule template.
-
#get_blob(params = {}) ⇒ Types::GetBlobOutput
Returns the base-64 encoded content of an individual blob in a repository.
-
#get_branch(params = {}) ⇒ Types::GetBranchOutput
Returns information about a repository branch, including its name and the last commit ID.
-
#get_comment(params = {}) ⇒ Types::GetCommentOutput
Returns the content of a comment made on a change, file, or commit in a repository.
-
#get_comment_reactions(params = {}) ⇒ Types::GetCommentReactionsOutput
Returns information about reactions to a specified comment ID.
-
#get_comments_for_compared_commit(params = {}) ⇒ Types::GetCommentsForComparedCommitOutput
Returns information about comments made on the comparison between two commits.
-
#get_comments_for_pull_request(params = {}) ⇒ Types::GetCommentsForPullRequestOutput
Returns comments made on a pull request.
-
#get_commit(params = {}) ⇒ Types::GetCommitOutput
Returns information about a commit, including commit message and committer information.
-
#get_differences(params = {}) ⇒ Types::GetDifferencesOutput
Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference).
-
#get_file(params = {}) ⇒ Types::GetFileOutput
Returns the base-64 encoded contents of a specified file and its metadata.
-
#get_folder(params = {}) ⇒ Types::GetFolderOutput
Returns the contents of a specified folder in a repository.
-
#get_merge_commit(params = {}) ⇒ Types::GetMergeCommitOutput
Returns information about a specified merge commit.
-
#get_merge_conflicts(params = {}) ⇒ Types::GetMergeConflictsOutput
Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
-
#get_merge_options(params = {}) ⇒ Types::GetMergeOptionsOutput
Returns information about the merge options available for merging two specified branches.
-
#get_pull_request(params = {}) ⇒ Types::GetPullRequestOutput
Gets information about a pull request in a specified repository.
-
#get_pull_request_approval_states(params = {}) ⇒ Types::GetPullRequestApprovalStatesOutput
Gets information about the approval states for a specified pull request.
-
#get_pull_request_override_state(params = {}) ⇒ Types::GetPullRequestOverrideStateOutput
Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
-
#get_repository(params = {}) ⇒ Types::GetRepositoryOutput
Returns information about a repository.
-
#get_repository_triggers(params = {}) ⇒ Types::GetRepositoryTriggersOutput
Gets information about triggers configured for a repository.
-
#list_approval_rule_templates(params = {}) ⇒ Types::ListApprovalRuleTemplatesOutput
Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account.
-
#list_associated_approval_rule_templates_for_repository(params = {}) ⇒ Types::ListAssociatedApprovalRuleTemplatesForRepositoryOutput
Lists all approval rule templates that are associated with a specified repository.
-
#list_branches(params = {}) ⇒ Types::ListBranchesOutput
Gets information about one or more branches in a repository.
-
#list_file_commit_history(params = {}) ⇒ Types::ListFileCommitHistoryResponse
Retrieves a list of commits and changes to a specified file.
-
#list_pull_requests(params = {}) ⇒ Types::ListPullRequestsOutput
Returns a list of pull requests for a specified repository.
-
#list_repositories(params = {}) ⇒ Types::ListRepositoriesOutput
Gets information about one or more repositories.
-
#list_repositories_for_approval_rule_template(params = {}) ⇒ Types::ListRepositoriesForApprovalRuleTemplateOutput
Lists all repositories associated with the specified approval rule template.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit.
-
#merge_branches_by_fast_forward(params = {}) ⇒ Types::MergeBranchesByFastForwardOutput
Merges two branches using the fast-forward merge strategy.
-
#merge_branches_by_squash(params = {}) ⇒ Types::MergeBranchesBySquashOutput
Merges two branches using the squash merge strategy.
-
#merge_branches_by_three_way(params = {}) ⇒ Types::MergeBranchesByThreeWayOutput
Merges two specified branches using the three-way merge strategy.
-
#merge_pull_request_by_fast_forward(params = {}) ⇒ Types::MergePullRequestByFastForwardOutput
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy.
-
#merge_pull_request_by_squash(params = {}) ⇒ Types::MergePullRequestBySquashOutput
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy.
-
#merge_pull_request_by_three_way(params = {}) ⇒ Types::MergePullRequestByThreeWayOutput
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy.
-
#override_pull_request_approval_rules(params = {}) ⇒ Struct
Sets aside (overrides) all approval rule requirements for a specified pull request.
-
#post_comment_for_compared_commit(params = {}) ⇒ Types::PostCommentForComparedCommitOutput
Posts a comment on the comparison between two commits.
-
#post_comment_for_pull_request(params = {}) ⇒ Types::PostCommentForPullRequestOutput
Posts a comment on a pull request.
-
#post_comment_reply(params = {}) ⇒ Types::PostCommentReplyOutput
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
-
#put_comment_reaction(params = {}) ⇒ Struct
Adds or updates a reaction to a specified comment for the user whose identity is used to make the request.
-
#put_file(params = {}) ⇒ Types::PutFileOutput
Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.
-
#put_repository_triggers(params = {}) ⇒ Types::PutRepositoryTriggersOutput
Replaces all triggers for a repository.
-
#tag_resource(params = {}) ⇒ Struct
Adds or updates tags for a resource in CodeCommit.
-
#test_repository_triggers(params = {}) ⇒ Types::TestRepositoryTriggersOutput
Tests the functionality of repository triggers by sending information to the trigger target.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags for a resource in CodeCommit.
-
#update_approval_rule_template_content(params = {}) ⇒ Types::UpdateApprovalRuleTemplateContentOutput
Updates the content of an approval rule template.
-
#update_approval_rule_template_description(params = {}) ⇒ Types::UpdateApprovalRuleTemplateDescriptionOutput
Updates the description for a specified approval rule template.
-
#update_approval_rule_template_name(params = {}) ⇒ Types::UpdateApprovalRuleTemplateNameOutput
Updates the name of a specified approval rule template.
-
#update_comment(params = {}) ⇒ Types::UpdateCommentOutput
Replaces the contents of a comment.
-
#update_default_branch(params = {}) ⇒ Struct
Sets or changes the default branch name for the specified repository.
-
#update_pull_request_approval_rule_content(params = {}) ⇒ Types::UpdatePullRequestApprovalRuleContentOutput
Updates the structure of an approval rule created specifically for a pull request.
-
#update_pull_request_approval_state(params = {}) ⇒ Struct
Updates the state of a user's approval on a pull request.
-
#update_pull_request_description(params = {}) ⇒ Types::UpdatePullRequestDescriptionOutput
Replaces the contents of the description of a pull request.
-
#update_pull_request_status(params = {}) ⇒ Types::UpdatePullRequestStatusOutput
Updates the status of a pull request.
-
#update_pull_request_title(params = {}) ⇒ Types::UpdatePullRequestTitleOutput
Replaces the title of a pull request.
-
#update_repository_description(params = {}) ⇒ Struct
Sets or changes the comment or description for a repository.
-
#update_repository_encryption_key(params = {}) ⇒ Types::UpdateRepositoryEncryptionKeyOutput
Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.
-
#update_repository_name(params = {}) ⇒ Struct
Renames a repository.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from Aws::ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
474 475 476 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 474 def initialize(*args) super end |
Instance Method Details
#associate_approval_rule_template_with_repository(params = {}) ⇒ Struct
Creates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.
509 510 511 512 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 509 def associate_approval_rule_template_with_repository(params = {}, = {}) req = build_request(:associate_approval_rule_template_with_repository, params) req.send_request() end |
#batch_associate_approval_rule_template_with_repositories(params = {}) ⇒ Types::BatchAssociateApprovalRuleTemplateWithRepositoriesOutput
Creates an association between an approval rule template and one or more specified repositories.
554 555 556 557 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 554 def batch_associate_approval_rule_template_with_repositories(params = {}, = {}) req = build_request(:batch_associate_approval_rule_template_with_repositories, params) req.send_request() end |
#batch_describe_merge_conflicts(params = {}) ⇒ Types::BatchDescribeMergeConflictsOutput
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.
675 676 677 678 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 675 def batch_describe_merge_conflicts(params = {}, = {}) req = build_request(:batch_describe_merge_conflicts, params) req.send_request() end |
#batch_disassociate_approval_rule_template_from_repositories(params = {}) ⇒ Types::BatchDisassociateApprovalRuleTemplateFromRepositoriesOutput
Removes the association between an approval rule template and one or more specified repositories.
721 722 723 724 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 721 def batch_disassociate_approval_rule_template_from_repositories(params = {}, = {}) req = build_request(:batch_disassociate_approval_rule_template_from_repositories, params) req.send_request() end |
#batch_get_commits(params = {}) ⇒ Types::BatchGetCommitsOutput
Returns information about the contents of one or more commits in a repository.
776 777 778 779 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 776 def batch_get_commits(params = {}, = {}) req = build_request(:batch_get_commits, params) req.send_request() end |
#batch_get_repositories(params = {}) ⇒ Types::BatchGetRepositoriesOutput
Returns information about one or more repositories.
838 839 840 841 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 838 def batch_get_repositories(params = {}, = {}) req = build_request(:batch_get_repositories, params) req.send_request() end |
#create_approval_rule_template(params = {}) ⇒ Types::CreateApprovalRuleTemplateOutput
Creates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a template with a repository, CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the conditions of the template. For more information, see AssociateApprovalRuleTemplateWithRepository.
928 929 930 931 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 928 def create_approval_rule_template(params = {}, = {}) req = build_request(:create_approval_rule_template, params) req.send_request() end |
#create_branch(params = {}) ⇒ Struct
Creates a branch in a repository and points the branch to a commit.
963 964 965 966 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 963 def create_branch(params = {}, = {}) req = build_request(:create_branch, params) req.send_request() end |
#create_commit(params = {}) ⇒ Types::CreateCommitOutput
Creates a commit for a repository on the tip of a specified branch.
1070 1071 1072 1073 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1070 def create_commit(params = {}, = {}) req = build_request(:create_commit, params) req.send_request() end |
#create_pull_request(params = {}) ⇒ Types::CreatePullRequestOutput
Creates a pull request in the specified repository.
1162 1163 1164 1165 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1162 def create_pull_request(params = {}, = {}) req = build_request(:create_pull_request, params) req.send_request() end |
#create_pull_request_approval_rule(params = {}) ⇒ Types::CreatePullRequestApprovalRuleOutput
Creates an approval rule for a pull request.
1244 1245 1246 1247 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1244 def create_pull_request_approval_rule(params = {}, = {}) req = build_request(:create_pull_request_approval_rule, params) req.send_request() end |
#create_repository(params = {}) ⇒ Types::CreateRepositoryOutput
Creates a new, empty repository.
1329 1330 1331 1332 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1329 def create_repository(params = {}, = {}) req = build_request(:create_repository, params) req.send_request() end |
#create_unreferenced_merge_commit(params = {}) ⇒ Types::CreateUnreferencedMergeCommitOutput
Creates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit.
1444 1445 1446 1447 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1444 def create_unreferenced_merge_commit(params = {}, = {}) req = build_request(:create_unreferenced_merge_commit, params) req.send_request() end |
#delete_approval_rule_template(params = {}) ⇒ Types::DeleteApprovalRuleTemplateOutput
Deletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template.
1474 1475 1476 1477 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1474 def delete_approval_rule_template(params = {}, = {}) req = build_request(:delete_approval_rule_template, params) req.send_request() end |
#delete_branch(params = {}) ⇒ Types::DeleteBranchOutput
Deletes a branch from a repository, unless that branch is the default branch for the repository.
1508 1509 1510 1511 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1508 def delete_branch(params = {}, = {}) req = build_request(:delete_branch, params) req.send_request() end |
#delete_comment_content(params = {}) ⇒ Types::DeleteCommentContentOutput
Deletes the content of a comment made on a change, file, or commit in a repository.
1549 1550 1551 1552 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1549 def delete_comment_content(params = {}, = {}) req = build_request(:delete_comment_content, params) req.send_request() end |
#delete_file(params = {}) ⇒ Types::DeleteFileOutput
Deletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier to the commit that contains the deletion.
1629 1630 1631 1632 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1629 def delete_file(params = {}, = {}) req = build_request(:delete_file, params) req.send_request() end |
#delete_pull_request_approval_rule(params = {}) ⇒ Types::DeletePullRequestApprovalRuleOutput
Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.
1667 1668 1669 1670 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1667 def delete_pull_request_approval_rule(params = {}, = {}) req = build_request(:delete_pull_request_approval_rule, params) req.send_request() end |
#delete_repository(params = {}) ⇒ Types::DeleteRepositoryOutput
Deletes a repository. If a specified repository was already deleted, a null repository ID is returned.
Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail.
1700 1701 1702 1703 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1700 def delete_repository(params = {}, = {}) req = build_request(:delete_repository, params) req.send_request() end |
#describe_merge_conflicts(params = {}) ⇒ Types::DescribeMergeConflictsOutput
Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1814 1815 1816 1817 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1814 def describe_merge_conflicts(params = {}, = {}) req = build_request(:describe_merge_conflicts, params) req.send_request() end |
#describe_pull_request_events(params = {}) ⇒ Types::DescribePullRequestEventsOutput
Returns information about one or more pull request events.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1895 1896 1897 1898 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1895 def describe_pull_request_events(params = {}, = {}) req = build_request(:describe_pull_request_events, params) req.send_request() end |
#disassociate_approval_rule_template_from_repository(params = {}) ⇒ Struct
Removes the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template association.
1926 1927 1928 1929 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1926 def disassociate_approval_rule_template_from_repository(params = {}, = {}) req = build_request(:disassociate_approval_rule_template_from_repository, params) req.send_request() end |
#evaluate_pull_request_approval_rules(params = {}) ⇒ Types::EvaluatePullRequestApprovalRulesOutput
Evaluates whether a pull request has met all the conditions specified in its associated approval rules.
1965 1966 1967 1968 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 1965 def evaluate_pull_request_approval_rules(params = {}, = {}) req = build_request(:evaluate_pull_request_approval_rules, params) req.send_request() end |
#get_approval_rule_template(params = {}) ⇒ Types::GetApprovalRuleTemplateOutput
Returns information about a specified approval rule template.
2001 2002 2003 2004 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2001 def get_approval_rule_template(params = {}, = {}) req = build_request(:get_approval_rule_template, params) req.send_request() end |
#get_blob(params = {}) ⇒ Types::GetBlobOutput
Returns the base-64 encoded content of an individual blob in a repository.
2034 2035 2036 2037 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2034 def get_blob(params = {}, = {}) req = build_request(:get_blob, params) req.send_request() end |
#get_branch(params = {}) ⇒ Types::GetBranchOutput
Returns information about a repository branch, including its name and the last commit ID.
2069 2070 2071 2072 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2069 def get_branch(params = {}, = {}) req = build_request(:get_branch, params) req.send_request() end |
#get_comment(params = {}) ⇒ Types::GetCommentOutput
Returns the content of a comment made on a change, file, or commit in a repository.
2116 2117 2118 2119 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2116 def get_comment(params = {}, = {}) req = build_request(:get_comment, params) req.send_request() end |
#get_comment_reactions(params = {}) ⇒ Types::GetCommentReactionsOutput
Returns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2171 2172 2173 2174 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2171 def get_comment_reactions(params = {}, = {}) req = build_request(:get_comment_reactions, params) req.send_request() end |
#get_comments_for_compared_commit(params = {}) ⇒ Types::GetCommentsForComparedCommitOutput
Returns information about comments made on the comparison between two commits.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2251 2252 2253 2254 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2251 def get_comments_for_compared_commit(params = {}, = {}) req = build_request(:get_comments_for_compared_commit, params) req.send_request() end |
#get_comments_for_pull_request(params = {}) ⇒ Types::GetCommentsForPullRequestOutput
Returns comments made on a pull request.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2343 2344 2345 2346 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2343 def get_comments_for_pull_request(params = {}, = {}) req = build_request(:get_comments_for_pull_request, params) req.send_request() end |
#get_commit(params = {}) ⇒ Types::GetCommitOutput
Returns information about a commit, including commit message and committer information.
2387 2388 2389 2390 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2387 def get_commit(params = {}, = {}) req = build_request(:get_commit, params) req.send_request() end |
#get_differences(params = {}) ⇒ Types::GetDifferencesOutput
Returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2465 2466 2467 2468 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2465 def get_differences(params = {}, = {}) req = build_request(:get_differences, params) req.send_request() end |
#get_file(params = {}) ⇒ Types::GetFileOutput
Returns the base-64 encoded contents of a specified file and its metadata.
2517 2518 2519 2520 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2517 def get_file(params = {}, = {}) req = build_request(:get_file, params) req.send_request() end |
#get_folder(params = {}) ⇒ Types::GetFolderOutput
Returns the contents of a specified folder in a repository.
2586 2587 2588 2589 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2586 def get_folder(params = {}, = {}) req = build_request(:get_folder, params) req.send_request() end |
#get_merge_commit(params = {}) ⇒ Types::GetMergeCommitOutput
Returns information about a specified merge commit.
2646 2647 2648 2649 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2646 def get_merge_commit(params = {}, = {}) req = build_request(:get_merge_commit, params) req.send_request() end |
#get_merge_conflicts(params = {}) ⇒ Types::GetMergeConflictsOutput
Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
2744 2745 2746 2747 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2744 def get_merge_conflicts(params = {}, = {}) req = build_request(:get_merge_conflicts, params) req.send_request() end |
#get_merge_options(params = {}) ⇒ Types::GetMergeOptionsOutput
Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.
2807 2808 2809 2810 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2807 def (params = {}, = {}) req = build_request(:get_merge_options, params) req.send_request() end |
#get_pull_request(params = {}) ⇒ Types::GetPullRequestOutput
Gets information about a pull request in a specified repository.
2865 2866 2867 2868 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2865 def get_pull_request(params = {}, = {}) req = build_request(:get_pull_request, params) req.send_request() end |
#get_pull_request_approval_states(params = {}) ⇒ Types::GetPullRequestApprovalStatesOutput
Gets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them.
2901 2902 2903 2904 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2901 def get_pull_request_approval_states(params = {}, = {}) req = build_request(:get_pull_request_approval_states, params) req.send_request() end |
#get_pull_request_override_state(params = {}) ⇒ Types::GetPullRequestOverrideStateOutput
Returns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request.
2940 2941 2942 2943 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2940 def get_pull_request_override_state(params = {}, = {}) req = build_request(:get_pull_request_override_state, params) req.send_request() end |
#get_repository(params = {}) ⇒ Types::GetRepositoryOutput
Returns information about a repository.
2987 2988 2989 2990 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 2987 def get_repository(params = {}, = {}) req = build_request(:get_repository, params) req.send_request() end |
#get_repository_triggers(params = {}) ⇒ Types::GetRepositoryTriggersOutput
Gets information about triggers configured for a repository.
3024 3025 3026 3027 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3024 def get_repository_triggers(params = {}, = {}) req = build_request(:get_repository_triggers, params) req.send_request() end |
#list_approval_rule_templates(params = {}) ⇒ Types::ListApprovalRuleTemplatesOutput
Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not specified, the Amazon Web Services Region where you are signed in is used.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3066 3067 3068 3069 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3066 def list_approval_rule_templates(params = {}, = {}) req = build_request(:list_approval_rule_templates, params) req.send_request() end |
#list_associated_approval_rule_templates_for_repository(params = {}) ⇒ Types::ListAssociatedApprovalRuleTemplatesForRepositoryOutput
Lists all approval rule templates that are associated with a specified repository.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3111 3112 3113 3114 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3111 def list_associated_approval_rule_templates_for_repository(params = {}, = {}) req = build_request(:list_associated_approval_rule_templates_for_repository, params) req.send_request() end |
#list_branches(params = {}) ⇒ Types::ListBranchesOutput
Gets information about one or more branches in a repository.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3148 3149 3150 3151 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3148 def list_branches(params = {}, = {}) req = build_request(:list_branches, params) req.send_request() end |
#list_file_commit_history(params = {}) ⇒ Types::ListFileCommitHistoryResponse
Retrieves a list of commits and changes to a specified file.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3217 3218 3219 3220 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3217 def list_file_commit_history(params = {}, = {}) req = build_request(:list_file_commit_history, params) req.send_request() end |
#list_pull_requests(params = {}) ⇒ Types::ListPullRequestsOutput
Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3272 3273 3274 3275 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3272 def list_pull_requests(params = {}, = {}) req = build_request(:list_pull_requests, params) req.send_request() end |
#list_repositories(params = {}) ⇒ Types::ListRepositoriesOutput
Gets information about one or more repositories.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3319 3320 3321 3322 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3319 def list_repositories(params = {}, = {}) req = build_request(:list_repositories, params) req.send_request() end |
#list_repositories_for_approval_rule_template(params = {}) ⇒ Types::ListRepositoriesForApprovalRuleTemplateOutput
Lists all repositories associated with the specified approval rule template.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3364 3365 3366 3367 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3364 def list_repositories_for_approval_rule_template(params = {}, = {}) req = build_request(:list_repositories_for_approval_rule_template, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceOutput
Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
3408 3409 3410 3411 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3408 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#merge_branches_by_fast_forward(params = {}) ⇒ Types::MergeBranchesByFastForwardOutput
Merges two branches using the fast-forward merge strategy.
3452 3453 3454 3455 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3452 def merge_branches_by_fast_forward(params = {}, = {}) req = build_request(:merge_branches_by_fast_forward, params) req.send_request() end |
#merge_branches_by_squash(params = {}) ⇒ Types::MergeBranchesBySquashOutput
Merges two branches using the squash merge strategy.
3557 3558 3559 3560 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3557 def merge_branches_by_squash(params = {}, = {}) req = build_request(:merge_branches_by_squash, params) req.send_request() end |
#merge_branches_by_three_way(params = {}) ⇒ Types::MergeBranchesByThreeWayOutput
Merges two specified branches using the three-way merge strategy.
3661 3662 3663 3664 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3661 def merge_branches_by_three_way(params = {}, = {}) req = build_request(:merge_branches_by_three_way, params) req.send_request() end |
#merge_pull_request_by_fast_forward(params = {}) ⇒ Types::MergePullRequestByFastForwardOutput
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy. If the merge is successful, it closes the pull request.
3733 3734 3735 3736 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3733 def merge_pull_request_by_fast_forward(params = {}, = {}) req = build_request(:merge_pull_request_by_fast_forward, params) req.send_request() end |
#merge_pull_request_by_squash(params = {}) ⇒ Types::MergePullRequestBySquashOutput
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy. If the merge is successful, it closes the pull request.
3865 3866 3867 3868 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3865 def merge_pull_request_by_squash(params = {}, = {}) req = build_request(:merge_pull_request_by_squash, params) req.send_request() end |
#merge_pull_request_by_three_way(params = {}) ⇒ Types::MergePullRequestByThreeWayOutput
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy. If the merge is successful, it closes the pull request.
3997 3998 3999 4000 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 3997 def merge_pull_request_by_three_way(params = {}, = {}) req = build_request(:merge_pull_request_by_three_way, params) req.send_request() end |
#override_pull_request_approval_rules(params = {}) ⇒ Struct
Sets aside (overrides) all approval rule requirements for a specified pull request.
4035 4036 4037 4038 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4035 def override_pull_request_approval_rules(params = {}, = {}) req = build_request(:override_pull_request_approval_rules, params) req.send_request() end |
#post_comment_for_compared_commit(params = {}) ⇒ Types::PostCommentForComparedCommitOutput
Posts a comment on the comparison between two commits.
4123 4124 4125 4126 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4123 def post_comment_for_compared_commit(params = {}, = {}) req = build_request(:post_comment_for_compared_commit, params) req.send_request() end |
#post_comment_for_pull_request(params = {}) ⇒ Types::PostCommentForPullRequestOutput
Posts a comment on a pull request.
4221 4222 4223 4224 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4221 def post_comment_for_pull_request(params = {}, = {}) req = build_request(:post_comment_for_pull_request, params) req.send_request() end |
#post_comment_reply(params = {}) ⇒ Types::PostCommentReplyOutput
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
4278 4279 4280 4281 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4278 def post_comment_reply(params = {}, = {}) req = build_request(:post_comment_reply, params) req.send_request() end |
#put_comment_reaction(params = {}) ⇒ Struct
Adds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user.
4314 4315 4316 4317 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4314 def put_comment_reaction(params = {}, = {}) req = build_request(:put_comment_reaction, params) req.send_request() end |
#put_file(params = {}) ⇒ Types::PutFileOutput
Adds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch.
4398 4399 4400 4401 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4398 def put_file(params = {}, = {}) req = build_request(:put_file, params) req.send_request() end |
#put_repository_triggers(params = {}) ⇒ Types::PutRepositoryTriggersOutput
Replaces all triggers for a repository. Used to create or delete triggers.
4440 4441 4442 4443 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4440 def put_repository_triggers(params = {}, = {}) req = build_request(:put_repository_triggers, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
4475 4476 4477 4478 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4475 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#test_repository_triggers(params = {}) ⇒ Types::TestRepositoryTriggersOutput
Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated.
4523 4524 4525 4526 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4523 def test_repository_triggers(params = {}, = {}) req = build_request(:test_repository_triggers, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide.
4556 4557 4558 4559 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4556 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_approval_rule_template_content(params = {}) ⇒ Types::UpdateApprovalRuleTemplateContentOutput
Updates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined.
4604 4605 4606 4607 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4604 def update_approval_rule_template_content(params = {}, = {}) req = build_request(:update_approval_rule_template_content, params) req.send_request() end |
#update_approval_rule_template_description(params = {}) ⇒ Types::UpdateApprovalRuleTemplateDescriptionOutput
Updates the description for a specified approval rule template.
4643 4644 4645 4646 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4643 def update_approval_rule_template_description(params = {}, = {}) req = build_request(:update_approval_rule_template_description, params) req.send_request() end |
#update_approval_rule_template_name(params = {}) ⇒ Types::UpdateApprovalRuleTemplateNameOutput
Updates the name of a specified approval rule template.
4682 4683 4684 4685 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4682 def update_approval_rule_template_name(params = {}, = {}) req = build_request(:update_approval_rule_template_name, params) req.send_request() end |
#update_comment(params = {}) ⇒ Types::UpdateCommentOutput
Replaces the contents of a comment.
4726 4727 4728 4729 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4726 def update_comment(params = {}, = {}) req = build_request(:update_comment, params) req.send_request() end |
#update_default_branch(params = {}) ⇒ Struct
Sets or changes the default branch name for the specified repository.
4759 4760 4761 4762 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4759 def update_default_branch(params = {}, = {}) req = build_request(:update_default_branch, params) req.send_request() end |
#update_pull_request_approval_rule_content(params = {}) ⇒ Types::UpdatePullRequestApprovalRuleContentOutput
Updates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval pool for approvers.
4844 4845 4846 4847 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4844 def update_pull_request_approval_rule_content(params = {}, = {}) req = build_request(:update_pull_request_approval_rule_content, params) req.send_request() end |
#update_pull_request_approval_state(params = {}) ⇒ Struct
Updates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made.
4875 4876 4877 4878 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4875 def update_pull_request_approval_state(params = {}, = {}) req = build_request(:update_pull_request_approval_state, params) req.send_request() end |
#update_pull_request_description(params = {}) ⇒ Types::UpdatePullRequestDescriptionOutput
Replaces the contents of the description of a pull request.
4938 4939 4940 4941 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 4938 def update_pull_request_description(params = {}, = {}) req = build_request(:update_pull_request_description, params) req.send_request() end |
#update_pull_request_status(params = {}) ⇒ Types::UpdatePullRequestStatusOutput
Updates the status of a pull request.
5002 5003 5004 5005 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 5002 def update_pull_request_status(params = {}, = {}) req = build_request(:update_pull_request_status, params) req.send_request() end |
#update_pull_request_title(params = {}) ⇒ Types::UpdatePullRequestTitleOutput
Replaces the title of a pull request.
5065 5066 5067 5068 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 5065 def update_pull_request_title(params = {}, = {}) req = build_request(:update_pull_request_title, params) req.send_request() end |
#update_repository_description(params = {}) ⇒ Struct
Sets or changes the comment or description for a repository.
5102 5103 5104 5105 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 5102 def update_repository_description(params = {}, = {}) req = build_request(:update_repository_description, params) req.send_request() end |
#update_repository_encryption_key(params = {}) ⇒ Types::UpdateRepositoryEncryptionKeyOutput
Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.
5148 5149 5150 5151 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 5148 def update_repository_encryption_key(params = {}, = {}) req = build_request(:update_repository_encryption_key, params) req.send_request() end |
#update_repository_name(params = {}) ⇒ Struct
Renames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on repository names, see Quotas in the CodeCommit User Guide.
5183 5184 5185 5186 |
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/client.rb', line 5183 def update_repository_name(params = {}, = {}) req = build_request(:update_repository_name, params) req.send_request() end |