/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the codeguru-reviewer-2019-09-19.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CodeGuruReviewer.Model; namespace Amazon.CodeGuruReviewer { /// /// Interface for accessing CodeGuruReviewer /// /// This section provides documentation for the Amazon CodeGuru Reviewer API operations. /// CodeGuru Reviewer is a service that uses program analysis and machine learning to /// detect potential defects that are difficult for developers to find and recommends /// fixes in your Java and Python code. /// /// /// /// By proactively detecting and providing recommendations for addressing code defects /// and implementing best practices, CodeGuru Reviewer improves the overall quality and /// maintainability of your code base during the code review stage. For more information /// about CodeGuru Reviewer, see the Amazon /// CodeGuru Reviewer User Guide. /// /// /// /// To improve the security of your CodeGuru Reviewer API calls, you can establish a private /// connection between your VPC and CodeGuru Reviewer by creating an interface VPC /// endpoint. For more information, see CodeGuru /// Reviewer and interface VPC endpoints (Amazon Web Services PrivateLink) in the /// Amazon CodeGuru Reviewer User Guide. /// /// public partial interface IAmazonCodeGuruReviewer : IAmazonService, IDisposable { /// /// Paginators for the service /// ICodeGuruReviewerPaginatorFactory Paginators { get; } #region AssociateRepository /// /// Use to associate an Amazon Web Services CodeCommit repository or a repository managed /// by Amazon Web Services 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 in the Amazon CodeGuru Reviewer User Guide. /// /// /// /// /// If you associate a CodeCommit or S3 repository, it must be in the same Amazon Web /// Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews /// are configured. /// /// /// /// Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services /// CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Associate /// a repository in the Amazon CodeGuru Reviewer User Guide. /// /// /// /// You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services 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 in the CodeGuru Reviewer User Guide. /// /// /// /// Container for the necessary parameters to execute the AssociateRepository service method. /// /// The response from the AssociateRepository service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for AssociateRepository Operation AssociateRepositoryResponse AssociateRepository(AssociateRepositoryRequest request); /// /// Use to associate an Amazon Web Services CodeCommit repository or a repository managed /// by Amazon Web Services 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 in the Amazon CodeGuru Reviewer User Guide. /// /// /// /// /// If you associate a CodeCommit or S3 repository, it must be in the same Amazon Web /// Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews /// are configured. /// /// /// /// Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services /// CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Associate /// a repository in the Amazon CodeGuru Reviewer User Guide. /// /// /// /// You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services 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 in the CodeGuru Reviewer User Guide. /// /// /// /// Container for the necessary parameters to execute the AssociateRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateRepository service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for AssociateRepository Operation Task AssociateRepositoryAsync(AssociateRepositoryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateCodeReview /// /// Use to create a code review with a CodeReviewType /// of RepositoryAnalysis. This type of code review analyzes all code under /// a specified branch in an associated repository. PullRequest code reviews /// are automatically triggered by a pull request. /// /// Container for the necessary parameters to execute the CreateCodeReview service method. /// /// The response from the CreateCodeReview service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for CreateCodeReview Operation CreateCodeReviewResponse CreateCodeReview(CreateCodeReviewRequest request); /// /// Use to create a code review with a CodeReviewType /// of RepositoryAnalysis. This type of code review analyzes all code under /// a specified branch in an associated repository. PullRequest code reviews /// are automatically triggered by a pull request. /// /// Container for the necessary parameters to execute the CreateCodeReview service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCodeReview service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for CreateCodeReview Operation Task CreateCodeReviewAsync(CreateCodeReviewRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeCodeReview /// /// Returns the metadata associated with the code review along with its status. /// /// Container for the necessary parameters to execute the DescribeCodeReview service method. /// /// The response from the DescribeCodeReview service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for DescribeCodeReview Operation DescribeCodeReviewResponse DescribeCodeReview(DescribeCodeReviewRequest request); /// /// Returns the metadata associated with the code review along with its status. /// /// Container for the necessary parameters to execute the DescribeCodeReview service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeCodeReview service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for DescribeCodeReview Operation Task DescribeCodeReviewAsync(DescribeCodeReviewRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeRecommendationFeedback /// /// Describes the customer feedback for a CodeGuru Reviewer recommendation. /// /// Container for the necessary parameters to execute the DescribeRecommendationFeedback service method. /// /// The response from the DescribeRecommendationFeedback service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for DescribeRecommendationFeedback Operation DescribeRecommendationFeedbackResponse DescribeRecommendationFeedback(DescribeRecommendationFeedbackRequest request); /// /// Describes the customer feedback for a CodeGuru Reviewer recommendation. /// /// Container for the necessary parameters to execute the DescribeRecommendationFeedback service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeRecommendationFeedback service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for DescribeRecommendationFeedback Operation Task DescribeRecommendationFeedbackAsync(DescribeRecommendationFeedbackRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeRepositoryAssociation /// /// Returns a RepositoryAssociation /// object that contains information about the requested repository association. /// /// Container for the necessary parameters to execute the DescribeRepositoryAssociation service method. /// /// The response from the DescribeRepositoryAssociation service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for DescribeRepositoryAssociation Operation DescribeRepositoryAssociationResponse DescribeRepositoryAssociation(DescribeRepositoryAssociationRequest request); /// /// Returns a RepositoryAssociation /// object that contains information about the requested repository association. /// /// Container for the necessary parameters to execute the DescribeRepositoryAssociation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeRepositoryAssociation service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for DescribeRepositoryAssociation Operation Task DescribeRepositoryAssociationAsync(DescribeRepositoryAssociationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisassociateRepository /// /// Removes the association between Amazon CodeGuru Reviewer and a repository. /// /// Container for the necessary parameters to execute the DisassociateRepository service method. /// /// The response from the DisassociateRepository service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for DisassociateRepository Operation DisassociateRepositoryResponse DisassociateRepository(DisassociateRepositoryRequest request); /// /// Removes the association between Amazon CodeGuru Reviewer and a repository. /// /// Container for the necessary parameters to execute the DisassociateRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateRepository service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for DisassociateRepository Operation Task DisassociateRepositoryAsync(DisassociateRepositoryRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCodeReviews /// /// Lists all the code reviews that the customer has created in the past 90 days. /// /// Container for the necessary parameters to execute the ListCodeReviews service method. /// /// The response from the ListCodeReviews service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListCodeReviews Operation ListCodeReviewsResponse ListCodeReviews(ListCodeReviewsRequest request); /// /// Lists all the code reviews that the customer has created in the past 90 days. /// /// Container for the necessary parameters to execute the ListCodeReviews service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCodeReviews service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListCodeReviews Operation Task ListCodeReviewsAsync(ListCodeReviewsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListRecommendationFeedback /// /// Returns a list of RecommendationFeedbackSummary /// objects that contain customer recommendation feedback for all CodeGuru Reviewer users. /// /// Container for the necessary parameters to execute the ListRecommendationFeedback service method. /// /// The response from the ListRecommendationFeedback service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListRecommendationFeedback Operation ListRecommendationFeedbackResponse ListRecommendationFeedback(ListRecommendationFeedbackRequest request); /// /// Returns a list of RecommendationFeedbackSummary /// objects that contain customer recommendation feedback for all CodeGuru Reviewer users. /// /// Container for the necessary parameters to execute the ListRecommendationFeedback service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRecommendationFeedback service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListRecommendationFeedback Operation Task ListRecommendationFeedbackAsync(ListRecommendationFeedbackRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListRecommendations /// /// Returns the list of all recommendations for a completed code review. /// /// Container for the necessary parameters to execute the ListRecommendations service method. /// /// The response from the ListRecommendations service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListRecommendations Operation ListRecommendationsResponse ListRecommendations(ListRecommendationsRequest request); /// /// Returns the list of all recommendations for a completed code review. /// /// Container for the necessary parameters to execute the ListRecommendations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRecommendations service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListRecommendations Operation Task ListRecommendationsAsync(ListRecommendationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListRepositoryAssociations /// /// Returns a list of RepositoryAssociationSummary /// objects that contain summary information about a repository association. You can filter /// the returned list by ProviderType, /// Name, /// State, /// and Owner. /// /// Container for the necessary parameters to execute the ListRepositoryAssociations service method. /// /// The response from the ListRepositoryAssociations service method, as returned by CodeGuruReviewer. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListRepositoryAssociations Operation ListRepositoryAssociationsResponse ListRepositoryAssociations(ListRepositoryAssociationsRequest request); /// /// Returns a list of RepositoryAssociationSummary /// objects that contain summary information about a repository association. You can filter /// the returned list by ProviderType, /// Name, /// State, /// and Owner. /// /// Container for the necessary parameters to execute the ListRepositoryAssociations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRepositoryAssociations service method, as returned by CodeGuruReviewer. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListRepositoryAssociations Operation Task ListRepositoryAssociationsAsync(ListRepositoryAssociationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// /// Returns the list of tags associated with an associated repository resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by CodeGuruReviewer. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListTagsForResource Operation ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// /// Returns the list of tags associated with an associated repository resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by CodeGuruReviewer. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for ListTagsForResource Operation Task ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutRecommendationFeedback /// /// Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is /// called again with different reactions the previous feedback is overwritten. /// /// Container for the necessary parameters to execute the PutRecommendationFeedback service method. /// /// The response from the PutRecommendationFeedback service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for PutRecommendationFeedback Operation PutRecommendationFeedbackResponse PutRecommendationFeedback(PutRecommendationFeedbackRequest request); /// /// Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is /// called again with different reactions the previous feedback is overwritten. /// /// Container for the necessary parameters to execute the PutRecommendationFeedback service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutRecommendationFeedback service method, as returned by CodeGuruReviewer. /// /// You do not have sufficient access to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The request was denied due to request throttling. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for PutRecommendationFeedback Operation Task PutRecommendationFeedbackAsync(PutRecommendationFeedbackRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// /// Adds one or more tags to an associated repository. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by CodeGuruReviewer. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for TagResource Operation TagResourceResponse TagResource(TagResourceRequest request); /// /// Adds one or more tags to an associated repository. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by CodeGuruReviewer. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for TagResource Operation Task TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// /// Removes a tag from an associated repository. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by CodeGuruReviewer. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for UntagResource Operation UntagResourceResponse UntagResource(UntagResourceRequest request); /// /// Removes a tag from an associated repository. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by CodeGuruReviewer. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource specified in the request was not found. /// /// /// The input fails to satisfy the specified constraints. /// /// REST API Reference for UntagResource Operation Task UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }