lib/aws-sdk-codegurureviewer/client.rb in aws-sdk-codegurureviewer-1.8.0 vs lib/aws-sdk-codegurureviewer/client.rb in aws-sdk-codegurureviewer-1.9.0
- old
+ new
@@ -310,19 +310,41 @@
super
end
# @!group API Operations
- # Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer.
- # When you associate an AWS CodeCommit repository with Amazon CodeGuru
- # Reviewer, Amazon CodeGuru Reviewer will provide recommendations for
- # each pull request raised within the repository. You can view
- # recommendations in the AWS CodeCommit repository.
+ # Use to associate an AWS CodeCommit repository or a repostory managed
+ # by AWS CodeStar Connections with Amazon CodeGuru Reviewer. When you
+ # associate a repository, CodeGuru Reviewer reviews source code changes
+ # in the repository's pull requests and provides automatic
+ # recommendations. You can view recommendations using the CodeGuru
+ # Reviewer console. For more information, see [Recommendations in Amazon
+ # CodeGuru Reviewer][1] in the *Amazon CodeGuru Reviewer User Guide.*
#
- # You can associate a GitHub repository using the Amazon CodeGuru
- # Reviewer console.
+ # If you associate a CodeCommit repository, it must be in the same AWS
+ # Region and AWS account where its CodeGuru Reviewer code reviews are
+ # configured.
#
+ # Bitbucket and GitHub Enterprise Server repositories are managed by AWS
+ # CodeStar Connections to connect to CodeGuru Reviewer. For more
+ # information, see [Connect to a repository source provider][2] in the
+ # *Amazon CodeGuru Reviewer User Guide.*
+ #
+ # <note markdown="1"> You cannot use the CodeGuru Reviewer SDK or the AWS CLI to associate a
+ # GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub
+ # repository, use the console. For more information, see [Getting
+ # started with CodeGuru Reviewer][3] in the *CodeGuru Reviewer User
+ # Guide.*
+ #
+ # </note>
+ #
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/recommendations.html
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/reviewer-ug/step-one.html#select-repository-source-provider
+ # [3]: https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/getting-started-with-guru.html
+ #
# @option params [required, Types::Repository] :repository
# The repository to associate.
#
# @option params [String] :client_request_token
# Unique, case-sensitive identifier that you provide to ensure the
@@ -365,10 +387,15 @@
# bitbucket: {
# name: "Name", # required
# connection_arn: "ConnectionArn", # required
# owner: "Owner", # required
# },
+ # git_hub_enterprise_server: {
+ # name: "Name", # required
+ # connection_arn: "ConnectionArn", # required
+ # owner: "Owner", # required
+ # },
# },
# client_request_token: "ClientRequestToken",
# })
#
# @example Response structure
@@ -376,11 +403,11 @@
# resp.repository_association.association_id #=> String
# resp.repository_association.association_arn #=> String
# resp.repository_association.connection_arn #=> String
# resp.repository_association.name #=> String
# resp.repository_association.owner #=> String
- # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
+ # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
# resp.repository_association.state_reason #=> String
# resp.repository_association.last_updated_time_stamp #=> Time
# resp.repository_association.created_time_stamp #=> Time
#
@@ -391,16 +418,20 @@
def associate_repository(params = {}, options = {})
req = build_request(:associate_repository, params)
req.send_request(options)
end
- # Returns the metadaata associated with the code review along with its
+ # Returns the metadata associated with the code review along with its
# status.
#
# @option params [required, String] :code_review_arn
- # The Amazon Resource Name (ARN) of the code review to describe.
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
+ #
# @return [Types::DescribeCodeReviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::DescribeCodeReviewResponse#code_review #code_review} => Types::CodeReview
#
# @example Request syntax with placeholder values
@@ -413,11 +444,11 @@
#
# resp.code_review.name #=> String
# resp.code_review.code_review_arn #=> String
# resp.code_review.repository_name #=> String
# resp.code_review.owner #=> String
- # resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
+ # resp.code_review.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
# resp.code_review.state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
# resp.code_review.state_reason #=> String
# resp.code_review.created_time_stamp #=> Time
# resp.code_review.last_updated_time_stamp #=> Time
# resp.code_review.type #=> String, one of "PullRequest"
@@ -438,20 +469,33 @@
# Describes the customer feedback for a CodeGuru Reviewer
# recommendation.
#
# @option params [required, String] :code_review_arn
- # The Amazon Resource Name (ARN) that identifies the code review.
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
+ #
# @option params [required, String] :recommendation_id
# The recommendation ID that can be used to track the provided
# recommendations and then to collect the feedback.
#
# @option params [String] :user_id
# Optional parameter to describe the feedback for a given user. If this
# is not supplied, it defaults to the user making the request.
#
+ # The `UserId` is an IAM principal that can be specified as an AWS
+ # account ID or an Amazon Resource Name (ARN). For more information, see
+ # [ Specifying a Principal][1] in the *AWS Identity and Access
+ # Management User Guide*.
+ #
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
+ #
# @return [Types::DescribeRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::DescribeRecommendationFeedbackResponse#recommendation_feedback #recommendation_feedback} => Types::RecommendationFeedback
#
# @example Request syntax with placeholder values
@@ -479,16 +523,25 @@
def describe_recommendation_feedback(params = {}, options = {})
req = build_request(:describe_recommendation_feedback, params)
req.send_request(options)
end
- # Describes a repository association.
+ # Returns a [ `RepositoryAssociation` ][1] object that contains
+ # information about the requested repository association.
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
+ #
# @option params [required, String] :association_arn
- # The Amazon Resource Name (ARN) identifying the association. You can
- # retrieve this ARN by calling `ListRepositories`.
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
+ # object. You can retrieve this ARN by calling `ListRepositories`.
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
+ #
# @return [Types::DescribeRepositoryAssociationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::DescribeRepositoryAssociationResponse#repository_association #repository_association} => Types::RepositoryAssociation
#
# @example Request syntax with placeholder values
@@ -502,11 +555,11 @@
# resp.repository_association.association_id #=> String
# resp.repository_association.association_arn #=> String
# resp.repository_association.connection_arn #=> String
# resp.repository_association.name #=> String
# resp.repository_association.owner #=> String
- # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
+ # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
# resp.repository_association.state_reason #=> String
# resp.repository_association.last_updated_time_stamp #=> Time
# resp.repository_association.created_time_stamp #=> Time
#
@@ -521,12 +574,17 @@
# Removes the association between Amazon CodeGuru Reviewer and a
# repository.
#
# @option params [required, String] :association_arn
- # The Amazon Resource Name (ARN) identifying the association.
+ # The Amazon Resource Name (ARN) of the [ `RepositoryAssociation` ][1]
+ # object.
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html
+ #
# @return [Types::DisassociateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::DisassociateRepositoryResponse#repository_association #repository_association} => Types::RepositoryAssociation
#
# @example Request syntax with placeholder values
@@ -540,11 +598,11 @@
# resp.repository_association.association_id #=> String
# resp.repository_association.association_arn #=> String
# resp.repository_association.connection_arn #=> String
# resp.repository_association.name #=> String
# resp.repository_association.owner #=> String
- # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
+ # resp.repository_association.provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
# resp.repository_association.state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
# resp.repository_association.state_reason #=> String
# resp.repository_association.last_updated_time_stamp #=> Time
# resp.repository_association.created_time_stamp #=> Time
#
@@ -560,18 +618,28 @@
# Lists all the code reviews that the customer has created in the past
# 90 days.
#
# @option params [Array<String>] :provider_types
# List of provider types for filtering that needs to be applied before
- # displaying the result. For example, "providerTypes=\[GitHub\]" will
- # list code reviews from GitHub.
+ # displaying the result. For example, `providerTypes=[GitHub]` lists
+ # code reviews from GitHub.
#
# @option params [Array<String>] :states
# List of states for filtering that needs to be applied before
- # displaying the result. For example, "states=\[Pending\]" will list
- # code reviews in the Pending state.
+ # displaying the result. For example, `states=[Pending]` lists code
+ # reviews in the Pending state.
#
+ # The valid code review states are:
+ #
+ # * `Completed`\: The code review is complete.
+ #
+ # * `Pending`\: The code review started and has not completed or failed.
+ #
+ # * `Failed`\: The code review failed.
+ #
+ # * `Deleting`\: The code review is being deleted.
+ #
# @option params [Array<String>] :repository_names
# List of repository names for filtering that needs to be applied before
# displaying the result.
#
# @option params [required, String] :type
@@ -595,11 +663,11 @@
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
#
# @example Request syntax with placeholder values
#
# resp = client.list_code_reviews({
- # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
# states: ["Completed"], # accepts Completed, Pending, Failed, Deleting
# repository_names: ["Name"],
# type: "PullRequest", # required, accepts PullRequest
# max_results: 1,
# next_token: "NextToken",
@@ -610,11 +678,11 @@
# resp.code_review_summaries #=> Array
# resp.code_review_summaries[0].name #=> String
# resp.code_review_summaries[0].code_review_arn #=> String
# resp.code_review_summaries[0].repository_name #=> String
# resp.code_review_summaries[0].owner #=> String
- # resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
+ # resp.code_review_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
# resp.code_review_summaries[0].state #=> String, one of "Completed", "Pending", "Failed", "Deleting"
# resp.code_review_summaries[0].created_time_stamp #=> Time
# resp.code_review_summaries[0].last_updated_time_stamp #=> Time
# resp.code_review_summaries[0].type #=> String, one of "PullRequest"
# resp.code_review_summaries[0].pull_request_id #=> String
@@ -629,37 +697,50 @@
def list_code_reviews(params = {}, options = {})
req = build_request(:list_code_reviews, params)
req.send_request(options)
end
- # Lists the customer feedback for a CodeGuru Reviewer recommendation for
- # all users. This API will be used from the console to extract the
- # previously given feedback by the user to pre-populate the feedback
- # emojis for all recommendations.
+ # Returns a list of [ `RecommendationFeedbackSummary` ][1] objects that
+ # contain customer recommendation feedback for all CodeGuru Reviewer
+ # users.
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RecommendationFeedbackSummary.html
+ #
# @option params [String] :next_token
- # If nextToken is returned, there are more results available. The value
- # of nextToken is a unique pagination token for each page. Make the call
- # again using the returned token to retrieve the next page. Keep all
- # other arguments unchanged.
+ # If `nextToken` is returned, there are more results available. The
+ # value of nextToken is a unique pagination token for each page. Make
+ # the call again using the returned token to retrieve the next page.
+ # Keep all other arguments unchanged.
#
# @option params [Integer] :max_results
# The maximum number of results that are returned per call. The default
# is 100.
#
# @option params [required, String] :code_review_arn
- # The Amazon Resource Name (ARN) that identifies the code review.
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
+ #
# @option params [Array<String>] :user_ids
- # Filter on userIds that need to be applied before displaying the
- # result. This can be used to query all the recommendation feedback for
- # a code review from a given user.
+ # An AWS user's account ID or Amazon Resource Name (ARN). Use this ID
+ # to query the recommendation feedback for a code review from that user.
#
+ # The `UserId` is an IAM principal that can be specified as an AWS
+ # account ID or an Amazon Resource Name (ARN). For more information, see
+ # [ Specifying a Principal][1] in the *AWS Identity and Access
+ # Management User Guide*.
+ #
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#Principal_specifying
+ #
# @option params [Array<String>] :recommendation_ids
- # Filter on recommendationIds that need to be applied before displaying
- # the result. This can be used to query all the recommendation feedback
- # for a given recommendation.
+ # Used to query the recommendation feedback for a given recommendation.
#
# @return [Types::ListRecommendationFeedbackResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListRecommendationFeedbackResponse#recommendation_feedback_summaries #recommendation_feedback_summaries} => Array<Types::RecommendationFeedbackSummary>
# * {Types::ListRecommendationFeedbackResponse#next_token #next_token} => String
@@ -702,12 +783,16 @@
# @option params [Integer] :max_results
# The maximum number of results that are returned per call. The default
# is 100.
#
# @option params [required, String] :code_review_arn
- # The Amazon Resource Name (ARN) of the code review to describe.
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
+ #
# @return [Types::ListRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::ListRecommendationsResponse#recommendation_summaries #recommendation_summaries} => Array<Types::RecommendationSummary>
# * {Types::ListRecommendationsResponse#next_token #next_token} => String
#
@@ -738,38 +823,71 @@
def list_recommendations(params = {}, options = {})
req = build_request(:list_recommendations, params)
req.send_request(options)
end
- # Lists repository associations. You can optionally filter on one or
- # more of the following recommendation properties: provider types,
- # states, names, and owners.
+ # Returns a list of [ `RepositoryAssociationSummary` ][1] objects that
+ # contain summary information about a repository association. You can
+ # filter the returned list by [ `ProviderType` ][2], [ `Name` ][3], [
+ # `State` ][4], and [ `Owner` ][5].
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html
+ # [2]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-ProviderType
+ # [3]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Name
+ # [4]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-State
+ # [5]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociationSummary.html#reviewer-Type-RepositoryAssociationSummary-Owner
+ #
# @option params [Array<String>] :provider_types
# List of provider types to use as a filter.
#
# @option params [Array<String>] :states
- # List of states to use as a filter.
+ # List of repository association states to use as a filter.
#
+ # The valid repository association states are:
+ #
+ # * **Associated**\: The repository association is complete.
+ #
+ # * **Associating**\: CodeGuru Reviewer is:
+ #
+ # * Setting up pull request notifications. This is required for pull
+ # requests to trigger a CodeGuru Reviewer review.
+ #
+ # <note markdown="1"> If your repository `ProviderType` is `GitHub` or `Bitbucket`,
+ # CodeGuru Reviewer creates webhooks in your repository to trigger
+ # CodeGuru Reviewer reviews. If you delete these webhooks, reviews
+ # of code in your repository cannot be triggered.
+ #
+ # </note>
+ #
+ # * Setting up source code access. This is required for CodeGuru
+ # Reviewer to securely clone code in your repository.
+ #
+ # * **Failed**\: The repository failed to associate or disassociate.
+ #
+ # * **Disassociating**\: CodeGuru Reviewer is removing the repository's
+ # pull request notifications and source code access.
+ #
# @option params [Array<String>] :names
# List of repository names to use as a filter.
#
# @option params [Array<String>] :owners
- # List of owners to use as a filter. For GitHub, this is name of the
- # GitHub account that was used to associate the repository. For AWS
- # CodeCommit, it is the name of the CodeCommit account that was used to
- # associate the repository.
+ # List of owners to use as a filter. For AWS CodeCommit, it is the name
+ # of the CodeCommit account that was used to associate the repository.
+ # For other repository source providers, such as Bitbucket, this is name
+ # of the account that was used to associate the repository.
#
# @option params [Integer] :max_results
# The maximum number of repository association results returned by
# `ListRepositoryAssociations` in paginated output. When this parameter
# is used, `ListRepositoryAssociations` only returns `maxResults`
# results in a single page with a `nextToken` response element. The
# remaining results of the initial request can be seen by sending
# another `ListRepositoryAssociations` request with the returned
- # `nextToken` value. This value can be between 1 and 25. If this
- # parameter is not used, `ListRepositoryAssociations` returns up to 25
+ # `nextToken` value. This value can be between 1 and 100. If this
+ # parameter is not used, `ListRepositoryAssociations` returns up to 100
# results and a `nextToken` value if applicable.
#
# @option params [String] :next_token
# The `nextToken` value returned from a previous paginated
# `ListRepositoryAssociations` request where `maxResults` was used and
@@ -790,11 +908,11 @@
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
#
# @example Request syntax with placeholder values
#
# resp = client.list_repository_associations({
- # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket
+ # provider_types: ["CodeCommit"], # accepts CodeCommit, GitHub, Bitbucket, GitHubEnterpriseServer
# states: ["Associated"], # accepts Associated, Associating, Failed, Disassociating
# names: ["Name"],
# owners: ["Owner"],
# max_results: 1,
# next_token: "NextToken",
@@ -807,11 +925,11 @@
# resp.repository_association_summaries[0].connection_arn #=> String
# resp.repository_association_summaries[0].last_updated_time_stamp #=> Time
# resp.repository_association_summaries[0].association_id #=> String
# resp.repository_association_summaries[0].name #=> String
# resp.repository_association_summaries[0].owner #=> String
- # resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket"
+ # resp.repository_association_summaries[0].provider_type #=> String, one of "CodeCommit", "GitHub", "Bitbucket", "GitHubEnterpriseServer"
# resp.repository_association_summaries[0].state #=> String, one of "Associated", "Associating", "Failed", "Disassociating"
# resp.next_token #=> String
#
# @see http://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations AWS API Documentation
#
@@ -820,17 +938,21 @@
def list_repository_associations(params = {}, options = {})
req = build_request(:list_repository_associations, params)
req.send_request(options)
end
- # Stores customer feedback for a CodeGuru-Reviewer recommendation. When
+ # Stores customer feedback for a CodeGuru Reviewer recommendation. When
# this API is called again with different reactions the previous
# feedback is overwritten.
#
# @option params [required, String] :code_review_arn
- # The Amazon Resource Name (ARN) that identifies the code review.
+ # The Amazon Resource Name (ARN) of the [ `CodeReview` ][1] object.
#
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html
+ #
# @option params [required, String] :recommendation_id
# The recommendation ID that can be used to track the provided
# recommendations and then to collect the feedback.
#
# @option params [required, Array<String>] :reactions
@@ -867,10 +989,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-codegurureviewer'
- context[:gem_version] = '1.8.0'
+ context[:gem_version] = '1.9.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated