/* * 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.Collections.Generic; using System.Net; using Amazon.CodeGuruReviewer.Model; using Amazon.CodeGuruReviewer.Model.Internal.MarshallTransformations; using Amazon.CodeGuruReviewer.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CodeGuruReviewer { /// /// Implementation 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 class AmazonCodeGuruReviewerClient : AmazonServiceClient, IAmazonCodeGuruReviewer { private static IServiceMetadata serviceMetadata = new AmazonCodeGuruReviewerMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private ICodeGuruReviewerPaginatorFactory _paginators; /// /// Paginators for the service /// public ICodeGuruReviewerPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CodeGuruReviewerPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonCodeGuruReviewerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonCodeGuruReviewerClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeGuruReviewerConfig()) { } /// /// Constructs AmazonCodeGuruReviewerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonCodeGuruReviewerClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeGuruReviewerConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeGuruReviewerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonCodeGuruReviewerClient Configuration Object public AmazonCodeGuruReviewerClient(AmazonCodeGuruReviewerConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonCodeGuruReviewerClient with AWS Credentials /// /// AWS Credentials public AmazonCodeGuruReviewerClient(AWSCredentials credentials) : this(credentials, new AmazonCodeGuruReviewerConfig()) { } /// /// Constructs AmazonCodeGuruReviewerClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCodeGuruReviewerClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCodeGuruReviewerConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeGuruReviewerClient with AWS Credentials and an /// AmazonCodeGuruReviewerClient Configuration object. /// /// AWS Credentials /// The AmazonCodeGuruReviewerClient Configuration Object public AmazonCodeGuruReviewerClient(AWSCredentials credentials, AmazonCodeGuruReviewerConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCodeGuruReviewerClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCodeGuruReviewerClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeGuruReviewerConfig()) { } /// /// Constructs AmazonCodeGuruReviewerClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCodeGuruReviewerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeGuruReviewerConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonCodeGuruReviewerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeGuruReviewerClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCodeGuruReviewerClient Configuration Object public AmazonCodeGuruReviewerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCodeGuruReviewerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCodeGuruReviewerClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCodeGuruReviewerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeGuruReviewerConfig()) { } /// /// Constructs AmazonCodeGuruReviewerClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonCodeGuruReviewerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeGuruReviewerConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeGuruReviewerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeGuruReviewerClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCodeGuruReviewerClient Configuration Object public AmazonCodeGuruReviewerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCodeGuruReviewerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonCodeGuruReviewerEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #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 public virtual AssociateRepositoryResponse AssociateRepository(AssociateRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the AssociateRepository operation. /// /// /// Container for the necessary parameters to execute the AssociateRepository operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateRepository /// operation. /// REST API Reference for AssociateRepository Operation public virtual IAsyncResult BeginAssociateRepository(AssociateRepositoryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateRepositoryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AssociateRepository operation. /// /// /// The IAsyncResult returned by the call to BeginAssociateRepository. /// /// Returns a AssociateRepositoryResult from CodeGuruReviewer. /// REST API Reference for AssociateRepository Operation public virtual AssociateRepositoryResponse EndAssociateRepository(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual CreateCodeReviewResponse CreateCodeReview(CreateCodeReviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCodeReviewRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCodeReviewResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateCodeReview operation. /// /// /// Container for the necessary parameters to execute the CreateCodeReview operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCodeReview /// operation. /// REST API Reference for CreateCodeReview Operation public virtual IAsyncResult BeginCreateCodeReview(CreateCodeReviewRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCodeReviewRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCodeReviewResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateCodeReview operation. /// /// /// The IAsyncResult returned by the call to BeginCreateCodeReview. /// /// Returns a CreateCodeReviewResult from CodeGuruReviewer. /// REST API Reference for CreateCodeReview Operation public virtual CreateCodeReviewResponse EndCreateCodeReview(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual DescribeCodeReviewResponse DescribeCodeReview(DescribeCodeReviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCodeReviewRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCodeReviewResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeCodeReview operation. /// /// /// Container for the necessary parameters to execute the DescribeCodeReview operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCodeReview /// operation. /// REST API Reference for DescribeCodeReview Operation public virtual IAsyncResult BeginDescribeCodeReview(DescribeCodeReviewRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCodeReviewRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCodeReviewResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeCodeReview operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeCodeReview. /// /// Returns a DescribeCodeReviewResult from CodeGuruReviewer. /// REST API Reference for DescribeCodeReview Operation public virtual DescribeCodeReviewResponse EndDescribeCodeReview(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual DescribeRecommendationFeedbackResponse DescribeRecommendationFeedback(DescribeRecommendationFeedbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRecommendationFeedbackResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeRecommendationFeedback operation. /// /// /// Container for the necessary parameters to execute the DescribeRecommendationFeedback operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRecommendationFeedback /// operation. /// REST API Reference for DescribeRecommendationFeedback Operation public virtual IAsyncResult BeginDescribeRecommendationFeedback(DescribeRecommendationFeedbackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRecommendationFeedbackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeRecommendationFeedback operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeRecommendationFeedback. /// /// Returns a DescribeRecommendationFeedbackResult from CodeGuruReviewer. /// REST API Reference for DescribeRecommendationFeedback Operation public virtual DescribeRecommendationFeedbackResponse EndDescribeRecommendationFeedback(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual DescribeRepositoryAssociationResponse DescribeRepositoryAssociation(DescribeRepositoryAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoryAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoryAssociationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeRepositoryAssociation operation. /// /// /// Container for the necessary parameters to execute the DescribeRepositoryAssociation operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRepositoryAssociation /// operation. /// REST API Reference for DescribeRepositoryAssociation Operation public virtual IAsyncResult BeginDescribeRepositoryAssociation(DescribeRepositoryAssociationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoryAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoryAssociationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeRepositoryAssociation operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeRepositoryAssociation. /// /// Returns a DescribeRepositoryAssociationResult from CodeGuruReviewer. /// REST API Reference for DescribeRepositoryAssociation Operation public virtual DescribeRepositoryAssociationResponse EndDescribeRepositoryAssociation(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual DisassociateRepositoryResponse DisassociateRepository(DisassociateRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DisassociateRepository operation. /// /// /// Container for the necessary parameters to execute the DisassociateRepository operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateRepository /// operation. /// REST API Reference for DisassociateRepository Operation public virtual IAsyncResult BeginDisassociateRepository(DisassociateRepositoryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateRepositoryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DisassociateRepository operation. /// /// /// The IAsyncResult returned by the call to BeginDisassociateRepository. /// /// Returns a DisassociateRepositoryResult from CodeGuruReviewer. /// REST API Reference for DisassociateRepository Operation public virtual DisassociateRepositoryResponse EndDisassociateRepository(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual ListCodeReviewsResponse ListCodeReviews(ListCodeReviewsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCodeReviewsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCodeReviewsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListCodeReviews operation. /// /// /// Container for the necessary parameters to execute the ListCodeReviews operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCodeReviews /// operation. /// REST API Reference for ListCodeReviews Operation public virtual IAsyncResult BeginListCodeReviews(ListCodeReviewsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListCodeReviewsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCodeReviewsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListCodeReviews operation. /// /// /// The IAsyncResult returned by the call to BeginListCodeReviews. /// /// Returns a ListCodeReviewsResult from CodeGuruReviewer. /// REST API Reference for ListCodeReviews Operation public virtual ListCodeReviewsResponse EndListCodeReviews(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual ListRecommendationFeedbackResponse ListRecommendationFeedback(ListRecommendationFeedbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRecommendationFeedbackResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListRecommendationFeedback operation. /// /// /// Container for the necessary parameters to execute the ListRecommendationFeedback operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRecommendationFeedback /// operation. /// REST API Reference for ListRecommendationFeedback Operation public virtual IAsyncResult BeginListRecommendationFeedback(ListRecommendationFeedbackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRecommendationFeedbackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListRecommendationFeedback operation. /// /// /// The IAsyncResult returned by the call to BeginListRecommendationFeedback. /// /// Returns a ListRecommendationFeedbackResult from CodeGuruReviewer. /// REST API Reference for ListRecommendationFeedback Operation public virtual ListRecommendationFeedbackResponse EndListRecommendationFeedback(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual ListRecommendationsResponse ListRecommendations(ListRecommendationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRecommendationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRecommendationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListRecommendations operation. /// /// /// Container for the necessary parameters to execute the ListRecommendations operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRecommendations /// operation. /// REST API Reference for ListRecommendations Operation public virtual IAsyncResult BeginListRecommendations(ListRecommendationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListRecommendationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRecommendationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListRecommendations operation. /// /// /// The IAsyncResult returned by the call to BeginListRecommendations. /// /// Returns a ListRecommendationsResult from CodeGuruReviewer. /// REST API Reference for ListRecommendations Operation public virtual ListRecommendationsResponse EndListRecommendations(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual ListRepositoryAssociationsResponse ListRepositoryAssociations(ListRepositoryAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoryAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoryAssociationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListRepositoryAssociations operation. /// /// /// Container for the necessary parameters to execute the ListRepositoryAssociations operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListRepositoryAssociations /// operation. /// REST API Reference for ListRepositoryAssociations Operation public virtual IAsyncResult BeginListRepositoryAssociations(ListRepositoryAssociationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoryAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoryAssociationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListRepositoryAssociations operation. /// /// /// The IAsyncResult returned by the call to BeginListRepositoryAssociations. /// /// Returns a ListRepositoryAssociationsResult from CodeGuruReviewer. /// REST API Reference for ListRepositoryAssociations Operation public virtual ListRepositoryAssociationsResponse EndListRepositoryAssociations(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from CodeGuruReviewer. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual PutRecommendationFeedbackResponse PutRecommendationFeedback(PutRecommendationFeedbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRecommendationFeedbackResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutRecommendationFeedback operation. /// /// /// Container for the necessary parameters to execute the PutRecommendationFeedback operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutRecommendationFeedback /// operation. /// REST API Reference for PutRecommendationFeedback Operation public virtual IAsyncResult BeginPutRecommendationFeedback(PutRecommendationFeedbackRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRecommendationFeedbackResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutRecommendationFeedback operation. /// /// /// The IAsyncResult returned by the call to BeginPutRecommendationFeedback. /// /// Returns a PutRecommendationFeedbackResult from CodeGuruReviewer. /// REST API Reference for PutRecommendationFeedback Operation public virtual PutRecommendationFeedbackResponse EndPutRecommendationFeedback(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from CodeGuruReviewer. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #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 public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonCodeGuruReviewerClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from CodeGuruReviewer. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }