/* * 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.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; 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(); #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 #if 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 Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. 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 internal virtual AssociateRepositoryResponse AssociateRepository(AssociateRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task AssociateRepositoryAsync(AssociateRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateCodeReview internal virtual CreateCodeReviewResponse CreateCodeReview(CreateCodeReviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCodeReviewRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCodeReviewResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task CreateCodeReviewAsync(CreateCodeReviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCodeReviewRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCodeReviewResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeCodeReview internal virtual DescribeCodeReviewResponse DescribeCodeReview(DescribeCodeReviewRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCodeReviewRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCodeReviewResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task DescribeCodeReviewAsync(DescribeCodeReviewRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCodeReviewRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCodeReviewResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeRecommendationFeedback internal virtual DescribeRecommendationFeedbackResponse DescribeRecommendationFeedback(DescribeRecommendationFeedbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRecommendationFeedbackResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task DescribeRecommendationFeedbackAsync(DescribeRecommendationFeedbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRecommendationFeedbackResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeRepositoryAssociation internal virtual DescribeRepositoryAssociationResponse DescribeRepositoryAssociation(DescribeRepositoryAssociationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoryAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoryAssociationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task DescribeRepositoryAssociationAsync(DescribeRepositoryAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoryAssociationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoryAssociationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateRepository internal virtual DisassociateRepositoryResponse DisassociateRepository(DisassociateRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task DisassociateRepositoryAsync(DisassociateRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCodeReviews internal virtual ListCodeReviewsResponse ListCodeReviews(ListCodeReviewsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCodeReviewsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCodeReviewsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListCodeReviewsAsync(ListCodeReviewsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCodeReviewsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCodeReviewsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRecommendationFeedback internal virtual ListRecommendationFeedbackResponse ListRecommendationFeedback(ListRecommendationFeedbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRecommendationFeedbackResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListRecommendationFeedbackAsync(ListRecommendationFeedbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRecommendationFeedbackResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRecommendations internal virtual ListRecommendationsResponse ListRecommendations(ListRecommendationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRecommendationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRecommendationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListRecommendationsAsync(ListRecommendationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRecommendationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRecommendationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRepositoryAssociations internal virtual ListRepositoryAssociationsResponse ListRepositoryAssociations(ListRepositoryAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoryAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoryAssociationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListRepositoryAssociationsAsync(ListRepositoryAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoryAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoryAssociationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutRecommendationFeedback internal virtual PutRecommendationFeedbackResponse PutRecommendationFeedback(PutRecommendationFeedbackRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRecommendationFeedbackResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task PutRecommendationFeedbackAsync(PutRecommendationFeedbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutRecommendationFeedbackRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRecommendationFeedbackResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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 public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }