Class: Aws::CodeCommit::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::CodeCommit::Client
- Includes:
- Aws::ClientStubs
- Defined in:
- lib/aws-sdk-codecommit/client.rb
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#batch_get_repositories(params = {}) ⇒ Types::BatchGetRepositoriesOutput
Returns information about one or more repositories.
-
#create_branch(params = {}) ⇒ Struct
Creates a new branch in a repository and points the branch to a commit.
-
#create_repository(params = {}) ⇒ Types::CreateRepositoryOutput
Creates a new, empty repository.
-
#delete_repository(params = {}) ⇒ Types::DeleteRepositoryOutput
Deletes a repository.
-
#get_blob(params = {}) ⇒ Types::GetBlobOutput
Returns the base-64 encoded content of an individual blob within a repository.
-
#get_branch(params = {}) ⇒ Types::GetBranchOutput
Returns information about a repository branch, including its name and the last commit ID.
-
#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_repository(params = {}) ⇒ Types::GetRepositoryOutput
Returns information about a repository.
-
#get_repository_triggers(params = {}) ⇒ Types::GetRepositoryTriggersOutput
Gets information about triggers configured for a repository.
-
#list_branches(params = {}) ⇒ Types::ListBranchesOutput
Gets information about one or more branches in a repository.
-
#list_repositories(params = {}) ⇒ Types::ListRepositoriesOutput
Gets information about one or more repositories.
-
#put_repository_triggers(params = {}) ⇒ Types::PutRepositoryTriggersOutput
Replaces all triggers for a repository.
-
#test_repository_triggers(params = {}) ⇒ Types::TestRepositoryTriggersOutput
Tests the functionality of repository triggers by sending information to the trigger target.
-
#update_default_branch(params = {}) ⇒ Struct
Sets or changes the default branch name for the specified repository.
-
#update_repository_description(params = {}) ⇒ Struct
Sets or changes the comment or description for a repository.
-
#update_repository_name(params = {}) ⇒ Struct
Renames a repository.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(*args) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(*args) ⇒ Client
Returns a new instance of Client.
152 153 154 |
# File 'lib/aws-sdk-codecommit/client.rb', line 152 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
908 909 910 |
# File 'lib/aws-sdk-codecommit/client.rb', line 908 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
911 912 913 |
# File 'lib/aws-sdk-codecommit/client.rb', line 911 def errors_module Errors end |
Instance Method Details
#batch_get_repositories(params = {}) ⇒ Types::BatchGetRepositoriesOutput
Returns information about one or more repositories.
<note markdown=“1”> The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
</note>
203 204 205 206 |
# File 'lib/aws-sdk-codecommit/client.rb', line 203 def batch_get_repositories(params = {}, = {}) req = build_request(:batch_get_repositories, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
886 887 888 889 890 891 892 893 894 895 896 897 |
# File 'lib/aws-sdk-codecommit/client.rb', line 886 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-codecommit' context[:gem_version] = '1.0.0' Seahorse::Client::Request.new(handlers, context) end |
#create_branch(params = {}) ⇒ Struct
Creates a new branch in a repository and points the branch to a commit.
<note markdown=“1”> Calling the create branch operation does not set a repository’s default branch. To do this, call the update default branch operation.
</note>
239 240 241 242 |
# File 'lib/aws-sdk-codecommit/client.rb', line 239 def create_branch(params = {}, = {}) req = build_request(:create_branch, params) req.send_request() end |
#create_repository(params = {}) ⇒ Types::CreateRepositoryOutput
Creates a new, empty repository.
301 302 303 304 |
# File 'lib/aws-sdk-codecommit/client.rb', line 301 def create_repository(params = {}, = {}) req = build_request(:create_repository, params) req.send_request() end |
#delete_repository(params = {}) ⇒ Types::DeleteRepositoryOutput
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 deleted repository will fail.
334 335 336 337 |
# File 'lib/aws-sdk-codecommit/client.rb', line 334 def delete_repository(params = {}, = {}) req = build_request(:delete_repository, params) req.send_request() end |
#get_blob(params = {}) ⇒ Types::GetBlobOutput
Returns the base-64 encoded content of an individual blob within a repository.
367 368 369 370 |
# File 'lib/aws-sdk-codecommit/client.rb', line 367 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.
402 403 404 405 |
# File 'lib/aws-sdk-codecommit/client.rb', line 402 def get_branch(params = {}, = {}) req = build_request(:get_branch, params) req.send_request() end |
#get_commit(params = {}) ⇒ Types::GetCommitOutput
Returns information about a commit, including commit message and committer information.
445 446 447 448 |
# File 'lib/aws-sdk-codecommit/client.rb', line 445 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.
520 521 522 523 |
# File 'lib/aws-sdk-codecommit/client.rb', line 520 def get_differences(params = {}, = {}) req = build_request(:get_differences, params) req.send_request() end |
#get_repository(params = {}) ⇒ Types::GetRepositoryOutput
Returns information about a repository.
<note markdown=“1”> The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
</note>
566 567 568 569 |
# File 'lib/aws-sdk-codecommit/client.rb', line 566 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.
603 604 605 606 |
# File 'lib/aws-sdk-codecommit/client.rb', line 603 def get_repository_triggers(params = {}, = {}) req = build_request(:get_repository_triggers, params) req.send_request() end |
#list_branches(params = {}) ⇒ Types::ListBranchesOutput
Gets information about one or more branches in a repository.
638 639 640 641 |
# File 'lib/aws-sdk-codecommit/client.rb', line 638 def list_branches(params = {}, = {}) req = build_request(:list_branches, params) req.send_request() end |
#list_repositories(params = {}) ⇒ Types::ListRepositoriesOutput
Gets information about one or more repositories.
683 684 685 686 |
# File 'lib/aws-sdk-codecommit/client.rb', line 683 def list_repositories(params = {}, = {}) req = build_request(:list_repositories, params) req.send_request() end |
#put_repository_triggers(params = {}) ⇒ Types::PutRepositoryTriggersOutput
Replaces all triggers for a repository. This can be used to create or delete triggers.
725 726 727 728 |
# File 'lib/aws-sdk-codecommit/client.rb', line 725 def put_repository_triggers(params = {}, = {}) req = build_request(:put_repository_triggers, 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 will send data from the last commit. If no data is available, sample data will be generated.
773 774 775 776 |
# File 'lib/aws-sdk-codecommit/client.rb', line 773 def test_repository_triggers(params = {}, = {}) req = build_request(:test_repository_triggers, params) req.send_request() end |
#update_default_branch(params = {}) ⇒ Struct
Sets or changes the default branch name for the specified repository.
<note markdown=“1”> If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
</note>
805 806 807 808 |
# File 'lib/aws-sdk-codecommit/client.rb', line 805 def update_default_branch(params = {}, = {}) req = build_request(:update_default_branch, params) req.send_request() end |
#update_repository_description(params = {}) ⇒ Struct
Sets or changes the comment or description for a repository.
<note markdown=“1”> The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
</note>
842 843 844 845 |
# File 'lib/aws-sdk-codecommit/client.rb', line 842 def update_repository_description(params = {}, = {}) req = build_request(:update_repository_description, params) req.send_request() end |
#update_repository_name(params = {}) ⇒ Struct
Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix “.git” is prohibited. For a full description of the limits on repository names, see [Limits] in the AWS CodeCommit User Guide.
[1]: docs.aws.amazon.com/codecommit/latest/userguide/limits.html
877 878 879 880 |
# File 'lib/aws-sdk-codecommit/client.rb', line 877 def update_repository_name(params = {}, = {}) req = build_request(:update_repository_name, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
901 902 903 |
# File 'lib/aws-sdk-codecommit/client.rb', line 901 def waiter_names [] end |