/* * 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 codecommit-2015-04-13.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.CodeCommit.Model; using Amazon.CodeCommit.Model.Internal.MarshallTransformations; using Amazon.CodeCommit.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CodeCommit { /// /// Implementation for accessing CodeCommit /// /// AWS CodeCommit /// /// This is the AWS CodeCommit API Reference. This reference provides descriptions /// of the operations and data types for AWS CodeCommit API along with usage examples. /// /// /// /// You can use the AWS CodeCommit API to work with the following objects: /// /// /// /// Repositories, by calling the following: /// /// /// /// Branches, by calling the following: /// /// /// /// Files, by calling the following: /// /// /// /// Commits, by calling the following: /// /// /// /// Merges, by calling the following: /// /// /// /// Pull requests, by calling the following: /// /// /// /// Approval rule templates, by calling the following: /// /// /// /// Comments in a repository, by calling the following: /// /// /// /// Tags used to tag resources in AWS CodeCommit (not Git tags), by calling the following: /// /// /// /// Triggers, by calling the following: /// /// /// /// For information about how to use AWS CodeCommit, see the AWS /// CodeCommit User Guide. /// /// public partial class AmazonCodeCommitClient : AmazonServiceClient, IAmazonCodeCommit { private static IServiceMetadata serviceMetadata = new AmazonCodeCommitMetadata(); #region Constructors /// /// Constructs AmazonCodeCommitClient 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 AmazonCodeCommitClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeCommitConfig()) { } /// /// Constructs AmazonCodeCommitClient 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 AmazonCodeCommitClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeCommitConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeCommitClient 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 AmazonCodeCommitClient Configuration Object public AmazonCodeCommitClient(AmazonCodeCommitConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonCodeCommitClient with AWS Credentials /// /// AWS Credentials public AmazonCodeCommitClient(AWSCredentials credentials) : this(credentials, new AmazonCodeCommitConfig()) { } /// /// Constructs AmazonCodeCommitClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCodeCommitClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCodeCommitConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeCommitClient with AWS Credentials and an /// AmazonCodeCommitClient Configuration object. /// /// AWS Credentials /// The AmazonCodeCommitClient Configuration Object public AmazonCodeCommitClient(AWSCredentials credentials, AmazonCodeCommitConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCodeCommitClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCodeCommitClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeCommitConfig()) { } /// /// Constructs AmazonCodeCommitClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCodeCommitClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeCommitConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonCodeCommitClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeCommitClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCodeCommitClient Configuration Object public AmazonCodeCommitClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCodeCommitConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCodeCommitClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCodeCommitClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeCommitConfig()) { } /// /// Constructs AmazonCodeCommitClient 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 AmazonCodeCommitClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeCommitConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeCommitClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeCommitClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCodeCommitClient Configuration Object public AmazonCodeCommitClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCodeCommitConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private ICodeCommitPaginatorFactory _paginators; /// /// Paginators for the service /// public ICodeCommitPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CodeCommitPaginatorFactory(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 AmazonCodeCommitEndpointResolver()); } /// /// 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 AssociateApprovalRuleTemplateWithRepository internal virtual AssociateApprovalRuleTemplateWithRepositoryResponse AssociateApprovalRuleTemplateWithRepository(AssociateApprovalRuleTemplateWithRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateApprovalRuleTemplateWithRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateApprovalRuleTemplateWithRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an association between an approval rule template and a specified repository. /// Then, the next time a pull request is created in the repository where the destination /// reference (if specified) matches the destination reference (branch) for the pull request, /// an approval rule that matches the template conditions is automatically created for /// that pull request. If no destination references are specified in the template, an /// approval rule that matches the template contents is created for all pull requests /// in that repository. /// /// Container for the necessary parameters to execute the AssociateApprovalRuleTemplateWithRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateApprovalRuleTemplateWithRepository service method, as returned by CodeCommit. /// /// The specified approval rule template does not exist. Verify that the name is correct /// and that you are signed in to the AWS Region where the template was created, and then /// try again. /// /// /// An approval rule template name is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The maximum number of approval rule templates for a repository has been exceeded. /// You cannot associate more than 25 approval rule templates with a repository. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for AssociateApprovalRuleTemplateWithRepository Operation public virtual Task AssociateApprovalRuleTemplateWithRepositoryAsync(AssociateApprovalRuleTemplateWithRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateApprovalRuleTemplateWithRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateApprovalRuleTemplateWithRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchAssociateApprovalRuleTemplateWithRepositories internal virtual BatchAssociateApprovalRuleTemplateWithRepositoriesResponse BatchAssociateApprovalRuleTemplateWithRepositories(BatchAssociateApprovalRuleTemplateWithRepositoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchAssociateApprovalRuleTemplateWithRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchAssociateApprovalRuleTemplateWithRepositoriesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an association between an approval rule template and one or more specified /// repositories. /// /// Container for the necessary parameters to execute the BatchAssociateApprovalRuleTemplateWithRepositories service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchAssociateApprovalRuleTemplateWithRepositories service method, as returned by CodeCommit. /// /// The specified approval rule template does not exist. Verify that the name is correct /// and that you are signed in to the AWS Region where the template was created, and then /// try again. /// /// /// An approval rule template name is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// /// The maximum number of allowed repository names was exceeded. Currently, this number /// is 100. /// /// /// At least one repository name object is required, but was not specified. /// /// REST API Reference for BatchAssociateApprovalRuleTemplateWithRepositories Operation public virtual Task BatchAssociateApprovalRuleTemplateWithRepositoriesAsync(BatchAssociateApprovalRuleTemplateWithRepositoriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchAssociateApprovalRuleTemplateWithRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchAssociateApprovalRuleTemplateWithRepositoriesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchDescribeMergeConflicts internal virtual BatchDescribeMergeConflictsResponse BatchDescribeMergeConflicts(BatchDescribeMergeConflictsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDescribeMergeConflictsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDescribeMergeConflictsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about one or more merge conflicts in the attempted merge of two /// commit specifiers using the squash or three-way merge strategy. /// /// Container for the necessary parameters to execute the BatchDescribeMergeConflicts service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchDescribeMergeConflicts service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified commit is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// The specified continuation token is not valid. /// /// /// The specified value for the number of conflict files to return is not valid. /// /// /// The specified value for the number of merge hunks to return is not valid. /// /// /// The specified merge option is not valid for this operation. Not all merge strategies /// are supported for all operations. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The number of files to load exceeds the allowed limit. /// /// /// The number of items to compare between the source or destination branches and the /// merge base has exceeded the maximum allowed. /// /// /// A merge option or stategy is required, and none was provided. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for BatchDescribeMergeConflicts Operation public virtual Task BatchDescribeMergeConflictsAsync(BatchDescribeMergeConflictsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDescribeMergeConflictsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDescribeMergeConflictsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchDisassociateApprovalRuleTemplateFromRepositories internal virtual BatchDisassociateApprovalRuleTemplateFromRepositoriesResponse BatchDisassociateApprovalRuleTemplateFromRepositories(BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisassociateApprovalRuleTemplateFromRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisassociateApprovalRuleTemplateFromRepositoriesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes the association between an approval rule template and one or more specified /// repositories. /// /// Container for the necessary parameters to execute the BatchDisassociateApprovalRuleTemplateFromRepositories service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchDisassociateApprovalRuleTemplateFromRepositories service method, as returned by CodeCommit. /// /// The specified approval rule template does not exist. Verify that the name is correct /// and that you are signed in to the AWS Region where the template was created, and then /// try again. /// /// /// An approval rule template name is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// /// The maximum number of allowed repository names was exceeded. Currently, this number /// is 100. /// /// /// At least one repository name object is required, but was not specified. /// /// REST API Reference for BatchDisassociateApprovalRuleTemplateFromRepositories Operation public virtual Task BatchDisassociateApprovalRuleTemplateFromRepositoriesAsync(BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDisassociateApprovalRuleTemplateFromRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDisassociateApprovalRuleTemplateFromRepositoriesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetCommits internal virtual BatchGetCommitsResponse BatchGetCommits(BatchGetCommitsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetCommitsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetCommitsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the contents of one or more commits in a repository. /// /// Container for the necessary parameters to execute the BatchGetCommits service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetCommits service method, as returned by CodeCommit. /// /// The maximum number of allowed commit IDs in a batch request is 100. Verify that your /// batch requests contains no more than 100 commit IDs, and then try again. /// /// /// A list of commit IDs is required, but was either not specified or the list was empty. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for BatchGetCommits Operation public virtual Task BatchGetCommitsAsync(BatchGetCommitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetCommitsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetCommitsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetRepositories internal virtual BatchGetRepositoriesResponse BatchGetRepositories(BatchGetRepositoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetRepositoriesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about one or more repositories. /// /// /// /// The description field for a repository accepts all HTML characters and all valid Unicode /// characters. Applications that do not HTML-encode the description and display it in /// a webpage can expose users to potentially malicious code. Make sure that you HTML-encode /// the description field in any application that uses this API to display the repository /// description on a webpage. /// /// /// /// Container for the necessary parameters to execute the BatchGetRepositories service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetRepositories service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The maximum number of allowed repository names was exceeded. Currently, this number /// is 100. /// /// /// At least one repository name object is required, but was not specified. /// /// REST API Reference for BatchGetRepositories Operation public virtual Task BatchGetRepositoriesAsync(BatchGetRepositoriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetRepositoriesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateApprovalRuleTemplate internal virtual CreateApprovalRuleTemplateResponse CreateApprovalRuleTemplate(CreateApprovalRuleTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApprovalRuleTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApprovalRuleTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a template for approval rules that can then be associated with one or more /// repositories in your AWS account. When you associate a template with a repository, /// AWS CodeCommit creates an approval rule that matches the conditions of the template /// for all pull requests that meet the conditions of the template. For more information, /// see AssociateApprovalRuleTemplateWithRepository. /// /// Container for the necessary parameters to execute the CreateApprovalRuleTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateApprovalRuleTemplate service method, as returned by CodeCommit. /// /// The content for the approval rule template is empty. You must provide some content /// for an approval rule template. The content cannot be null. /// /// /// You cannot create an approval rule template with that name because a template with /// that name already exists in this AWS Region for your AWS account. Approval rule template /// names must be unique. /// /// /// An approval rule template name is required, but was not specified. /// /// /// The content of the approval rule template is not valid. /// /// /// The description for the approval rule template is not valid because it exceeds the /// maximum characters allowed for a description. For more information about limits in /// AWS CodeCommit, see AWS /// CodeCommit User Guide. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// /// The maximum number of approval rule templates has been exceeded for this AWS Region. /// /// REST API Reference for CreateApprovalRuleTemplate Operation public virtual Task CreateApprovalRuleTemplateAsync(CreateApprovalRuleTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApprovalRuleTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApprovalRuleTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateBranch internal virtual CreateBranchResponse CreateBranch(CreateBranchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBranchResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a branch in a repository and points the branch to a commit. /// /// /// /// Calling the create branch operation does not set a repository's default branch. To /// do this, call the update default branch operation. /// /// /// /// Container for the necessary parameters to execute the CreateBranch service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateBranch service method, as returned by CodeCommit. /// /// Cannot create the branch with the specified name because the commit conflicts with /// an existing branch with the same name. Branch names must be unique. /// /// /// A branch name is required, but was not specified. /// /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit ID was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified reference name is not valid. /// /// /// The specified commit ID is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for CreateBranch Operation public virtual Task CreateBranchAsync(CreateBranchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateBranchResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateCommit internal virtual CreateCommitResponse CreateCommit(CreateCommitRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCommitResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a commit for a repository on the tip of a specified branch. /// /// Container for the necessary parameters to execute the CreateCommit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCommit service method, as returned by CodeCommit. /// /// The specified branch does not exist. /// /// /// The specified branch name is not valid because it is a tag name. Enter the name of /// a branch in the repository. For a list of valid branch names, use ListBranches. /// /// /// A branch name is required, but was not specified. /// /// /// The commit message is too long. Provide a shorter string. /// /// /// A file cannot be added to the repository because the specified path name has the same /// name as a file that already exists in this repository. Either provide a different /// name for the file, or specify a different path for the file. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The commit cannot be created because both a source file and file content have been /// specified for the same file. You cannot provide both. Either specify a source file /// or provide the file content directly. /// /// /// The file cannot be added because it is too large. The maximum file size is 6 MB, and /// the combined file content change size is 7 MB. Consider making these changes using /// a Git client. /// /// /// The specified file does not exist. Verify that you have used the correct file name, /// full path, and extension. /// /// /// The commit cannot be created because no files have been specified as added, updated, /// or changed (PutFile or DeleteFile) for the commit. /// /// /// The commit cannot be created because no file mode has been specified. A file mode /// is required to update mode permissions for a file. /// /// /// A file cannot be added to the repository because the specified file name has the same /// name as a directory in this repository. Either provide another name for the file, /// or add the file in a directory that does not match the file name. /// /// /// The commit cannot be created because a specified file path points to a submodule. /// Verify that the destination files have valid file paths that do not point to a submodule. /// /// /// The commit cannot be created because at least one of the overall changes in the commit /// results in a folder whose contents exceed the limit of 6 MB. Either reduce the number /// and size of your changes, or split the changes across multiple folders. /// /// /// The specified reference name is not valid. /// /// /// The specified deletion parameter is not valid. /// /// /// The specified email address either contains one or more characters that are not allowed, /// or it exceeds the maximum number of characters allowed for an email address. /// /// /// The specified file mode permission is not valid. For a list of valid file mode permissions, /// see PutFile. /// /// /// The parent commit ID is not valid. The commit ID cannot be empty, and must match the /// head commit ID for the branch of the repository where you want to add or update a /// file. /// /// /// The specified path is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The number of specified files to change as part of this commit exceeds the maximum /// number of files that can be changed in a single commit. Consider using a Git client /// for these changes. /// /// /// The user name is not valid because it has exceeded the character limit for author /// names. /// /// /// The commit cannot be created because no changes will be made to the repository as /// a result of this commit. A commit must contain at least one change. /// /// /// The parent commit ID is not valid because it does not exist. The specified parent /// commit ID does not exist in the specified branch of the repository. /// /// /// The file could not be added because the provided parent commit ID is not the current /// tip of the specified branch. To view the full commit ID of the current head of the /// branch, use GetBranch. /// /// /// A parent commit ID is required. To view the full commit ID of a branch in a repository, /// use GetBranch or a Git command (for example, git pull or git log). /// /// /// The folderPath for a location cannot be null. /// /// /// The commit cannot be created because one or more files specified in the commit reference /// both a file and a folder. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The commit cannot be created because one of the changes specifies copying or moving /// a .gitkeep file. /// /// /// The commit cannot be created because one or more changes in this commit duplicate /// actions in the same file path. For example, you cannot make the same delete request /// to the same file in the same file path twice, or make a delete request and a move /// request to the same file as part of the same commit. /// /// /// The commit cannot be created because no source files or file content have been specified /// for the commit. /// /// REST API Reference for CreateCommit Operation public virtual Task CreateCommitAsync(CreateCommitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCommitResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePullRequest internal virtual CreatePullRequestResponse CreatePullRequest(CreatePullRequestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePullRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePullRequestResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a pull request in the specified repository. /// /// Container for the necessary parameters to execute the CreatePullRequest service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePullRequest service method, as returned by CodeCommit. /// /// A client request token is required. A client request token is an unique, client-generated /// idempotency token that, when provided in a request, ensures the request cannot be /// repeated with a changed parameter. If a request is received with the same parameters /// and a token is included, the request returns information about the initial request /// that used that token. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The client request token is not valid. Either the token is not in a valid format, /// or the token has been used in a previous request and cannot be reused. /// /// /// The client request token is not valid. /// /// /// The pull request description is not valid. Descriptions cannot be more than 1,000 /// characters. /// /// /// The specified reference name format is not valid. Reference names must conform to /// the Git references format (for example, refs/heads/master). For more information, /// see Git Internals /// - Git References or consult your Git documentation. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The target for the pull request is not valid. A target must contain the full values /// for the repository name, source branch, and destination branch for the pull request. /// /// /// The targets for the pull request is not valid or not in a valid format. Targets are /// a list of target objects. Each target object must contain the full values for the /// repository name, source branch, and destination branch for a pull request. /// /// /// The title of the pull request is not valid. Pull request titles cannot exceed 100 /// characters in length. /// /// /// You cannot create the pull request because the repository has too many open pull requests. /// The maximum number of open pull requests for a repository is 1,000. Close one or more /// open pull requests, and then try again. /// /// /// You cannot include more than one repository in a pull request. Make sure you have /// specified only one repository name in your request, and then try again. /// /// /// The specified reference does not exist. You must provide a full commit ID. /// /// /// A reference name is required, but none was provided. /// /// /// The specified reference is not a supported type. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The source branch and destination branch for the pull request are the same. You must /// specify different branches for the source and destination. /// /// /// A pull request target is required. It cannot be empty or null. A pull request target /// must contain the full values for the repository name, source branch, and destination /// branch for the pull request. /// /// /// An array of target objects is required. It cannot be empty or null. /// /// /// A pull request title is required. It cannot be empty or null. /// /// REST API Reference for CreatePullRequest Operation public virtual Task CreatePullRequestAsync(CreatePullRequestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePullRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePullRequestResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePullRequestApprovalRule internal virtual CreatePullRequestApprovalRuleResponse CreatePullRequestApprovalRule(CreatePullRequestApprovalRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePullRequestApprovalRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePullRequestApprovalRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an approval rule for a pull request. /// /// Container for the necessary parameters to execute the CreatePullRequestApprovalRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePullRequestApprovalRule service method, as returned by CodeCommit. /// /// The content for the approval rule is empty. You must provide some content for an approval /// rule. The content cannot be null. /// /// /// An approval rule with that name already exists. Approval rule names must be unique /// within the scope of a pull request. /// /// /// An approval rule name is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The content for the approval rule is not valid. /// /// /// The name for the approval rule is not valid. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The approval rule cannot be added. The pull request has the maximum number of approval /// rules associated with it. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// REST API Reference for CreatePullRequestApprovalRule Operation public virtual Task CreatePullRequestApprovalRuleAsync(CreatePullRequestApprovalRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePullRequestApprovalRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePullRequestApprovalRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateRepository internal virtual CreateRepositoryResponse CreateRepository(CreateRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new, empty repository. /// /// Container for the necessary parameters to execute the CreateRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateRepository service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified repository description is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified tag is not valid. Key names cannot be prefixed with aws:. /// /// /// The map of tags is not valid. /// /// /// A repository resource limit was exceeded. /// /// /// The specified repository name already exists. /// /// /// A repository name is required, but was not specified. /// /// /// The tag policy is not valid. /// /// /// The maximum number of tags for an AWS CodeCommit resource has been exceeded. /// /// REST API Reference for CreateRepository Operation public virtual Task CreateRepositoryAsync(CreateRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateUnreferencedMergeCommit internal virtual CreateUnreferencedMergeCommitResponse CreateUnreferencedMergeCommit(CreateUnreferencedMergeCommitRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateUnreferencedMergeCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUnreferencedMergeCommitResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an unreferenced commit that represents the result of merging two branches /// using a specified merge strategy. This can help you determine the outcome of a potential /// merge. This API cannot be used with the fast-forward merge strategy because that strategy /// does not create a merge commit. /// /// /// /// This unreferenced merge commit can only be accessed using the GetCommit API or through /// git commands such as git fetch. To retrieve this commit, you must specify its commit /// ID or otherwise reference it. /// /// /// /// Container for the necessary parameters to execute the CreateUnreferencedMergeCommit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateUnreferencedMergeCommit service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// The commit message is too long. Provide a shorter string. /// /// /// A commit was not specified. /// /// /// The merge cannot be completed because the target branch has been modified. Another /// user might have modified the target branch while the merge was in progress. Wait a /// few minutes, and then try again. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The file cannot be added because it is too large. The maximum file size is 6 MB, and /// the combined file content change size is 7 MB. Consider making these changes using /// a Git client. /// /// /// The commit cannot be created because no file mode has been specified. A file mode /// is required to update mode permissions for a file. /// /// /// The commit cannot be created because at least one of the overall changes in the commit /// results in a folder whose contents exceed the limit of 6 MB. Either reduce the number /// and size of your changes, or split the changes across multiple folders. /// /// /// The specified commit is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution list is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// The specified email address either contains one or more characters that are not allowed, /// or it exceeds the maximum number of characters allowed for an email address. /// /// /// The specified file mode permission is not valid. For a list of valid file mode permissions, /// see PutFile. /// /// /// The specified merge option is not valid for this operation. Not all merge strategies /// are supported for all operations. /// /// /// The specified path is not valid. /// /// /// Automerge was specified for resolving the conflict, but the replacement type is not /// valid or content is missing. /// /// /// Automerge was specified for resolving the conflict, but the specified replacement /// type is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The pull request cannot be merged automatically into the destination branch. You must /// manually merge the branches and resolve any conflicts. /// /// /// The number of allowed conflict resolution entries was exceeded. /// /// /// The number of files to load exceeds the allowed limit. /// /// /// The number of items to compare between the source or destination branches and the /// merge base has exceeded the maximum allowed. /// /// /// A merge option or stategy is required, and none was provided. /// /// /// More than one conflict resolution entries exists for the conflict. A conflict can /// have only one conflict resolution entry. /// /// /// The user name is not valid because it has exceeded the character limit for author /// names. /// /// /// The folderPath for a location cannot be null. /// /// /// USE_NEW_CONTENT was specified, but no replacement content has been provided. /// /// /// A replacement type is required. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for CreateUnreferencedMergeCommit Operation public virtual Task CreateUnreferencedMergeCommitAsync(CreateUnreferencedMergeCommitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateUnreferencedMergeCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUnreferencedMergeCommitResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteApprovalRuleTemplate internal virtual DeleteApprovalRuleTemplateResponse DeleteApprovalRuleTemplate(DeleteApprovalRuleTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApprovalRuleTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApprovalRuleTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a specified approval rule template. Deleting a template does not remove approval /// rules on pull requests already created with the template. /// /// Container for the necessary parameters to execute the DeleteApprovalRuleTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteApprovalRuleTemplate service method, as returned by CodeCommit. /// /// The approval rule template is associated with one or more repositories. You cannot /// delete a template that is associated with a repository. Remove all associations, and /// then try again. /// /// /// An approval rule template name is required, but was not specified. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// REST API Reference for DeleteApprovalRuleTemplate Operation public virtual Task DeleteApprovalRuleTemplateAsync(DeleteApprovalRuleTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApprovalRuleTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApprovalRuleTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteBranch internal virtual DeleteBranchResponse DeleteBranch(DeleteBranchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBranchResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a branch from a repository, unless that branch is the default branch for the /// repository. /// /// Container for the necessary parameters to execute the DeleteBranch service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteBranch service method, as returned by CodeCommit. /// /// A branch name is required, but was not specified. /// /// /// The specified branch is the default branch for the repository, and cannot be deleted. /// To delete this branch, you must first set another branch as the default branch. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified reference name is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for DeleteBranch Operation public virtual Task DeleteBranchAsync(DeleteBranchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBranchResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteCommentContent internal virtual DeleteCommentContentResponse DeleteCommentContent(DeleteCommentContentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCommentContentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCommentContentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the content of a comment made on a change, file, or commit in a repository. /// /// Container for the necessary parameters to execute the DeleteCommentContent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteCommentContent service method, as returned by CodeCommit. /// /// This comment has already been deleted. You cannot edit or delete a deleted comment. /// /// /// No comment exists with the provided ID. Verify that you have used the correct ID, /// and then try again. /// /// /// The comment ID is missing or null. A comment ID is required. /// /// /// The comment ID is not in a valid format. Make sure that you have provided the full /// comment ID. /// /// REST API Reference for DeleteCommentContent Operation public virtual Task DeleteCommentContentAsync(DeleteCommentContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCommentContentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCommentContentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteFile internal virtual DeleteFileResponse DeleteFile(DeleteFileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a specified file from a specified branch. A commit is created on the branch /// that contains the revision. The file still exists in the commits earlier to the commit /// that contains the deletion. /// /// Container for the necessary parameters to execute the DeleteFile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteFile service method, as returned by CodeCommit. /// /// The specified branch does not exist. /// /// /// The specified branch name is not valid because it is a tag name. Enter the name of /// a branch in the repository. For a list of valid branch names, use ListBranches. /// /// /// A branch name is required, but was not specified. /// /// /// The commit message is too long. Provide a shorter string. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified file does not exist. Verify that you have used the correct file name, /// full path, and extension. /// /// /// The specified reference name is not valid. /// /// /// The specified email address either contains one or more characters that are not allowed, /// or it exceeds the maximum number of characters allowed for an email address. /// /// /// The parent commit ID is not valid. The commit ID cannot be empty, and must match the /// head commit ID for the branch of the repository where you want to add or update a /// file. /// /// /// The specified path is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The user name is not valid because it has exceeded the character limit for author /// names. /// /// /// The parent commit ID is not valid because it does not exist. The specified parent /// commit ID does not exist in the specified branch of the repository. /// /// /// The file could not be added because the provided parent commit ID is not the current /// tip of the specified branch. To view the full commit ID of the current head of the /// branch, use GetBranch. /// /// /// A parent commit ID is required. To view the full commit ID of a branch in a repository, /// use GetBranch or a Git command (for example, git pull or git log). /// /// /// The folderPath for a location cannot be null. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for DeleteFile Operation public virtual Task DeleteFileAsync(DeleteFileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteFileRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteFileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePullRequestApprovalRule internal virtual DeletePullRequestApprovalRuleResponse DeletePullRequestApprovalRule(DeletePullRequestApprovalRuleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePullRequestApprovalRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePullRequestApprovalRuleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an approval rule from a specified pull request. Approval rules can be deleted /// from a pull request only if the pull request is open, and if the approval rule was /// created specifically for a pull request and not generated from an approval rule template /// associated with the repository where the pull request was created. You cannot delete /// an approval rule from a merged or closed pull request. /// /// Container for the necessary parameters to execute the DeletePullRequestApprovalRule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePullRequestApprovalRule service method, as returned by CodeCommit. /// /// An approval rule name is required, but was not specified. /// /// /// The approval rule cannot be deleted from the pull request because it was created by /// an approval rule template and applied to the pull request automatically. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The name for the approval rule is not valid. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// REST API Reference for DeletePullRequestApprovalRule Operation public virtual Task DeletePullRequestApprovalRuleAsync(DeletePullRequestApprovalRuleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePullRequestApprovalRuleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePullRequestApprovalRuleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteRepository internal virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a repository. If a specified repository was already deleted, a null repository /// ID is returned. /// /// /// /// Deleting a repository also deletes all associated objects and metadata. After a repository /// is deleted, all future push calls to the deleted repository fail. /// /// /// /// Container for the necessary parameters to execute the DeleteRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteRepository service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for DeleteRepository Operation public virtual Task DeleteRepositoryAsync(DeleteRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeMergeConflicts internal virtual DescribeMergeConflictsResponse DescribeMergeConflicts(DescribeMergeConflictsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMergeConflictsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMergeConflictsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about one or more merge conflicts in the attempted merge of two /// commit specifiers using the squash or three-way merge strategy. If the merge option /// for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown. /// /// Container for the necessary parameters to execute the DescribeMergeConflicts service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeMergeConflicts service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified file does not exist. Verify that you have used the correct file name, /// full path, and extension. /// /// /// The specified commit is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// The specified continuation token is not valid. /// /// /// The specified value for the number of merge hunks to return is not valid. /// /// /// The specified merge option is not valid for this operation. Not all merge strategies /// are supported for all operations. /// /// /// The specified path is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The number of files to load exceeds the allowed limit. /// /// /// The number of items to compare between the source or destination branches and the /// merge base has exceeded the maximum allowed. /// /// /// A merge option or stategy is required, and none was provided. /// /// /// The folderPath for a location cannot be null. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for DescribeMergeConflicts Operation public virtual Task DescribeMergeConflictsAsync(DescribeMergeConflictsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMergeConflictsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMergeConflictsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribePullRequestEvents internal virtual DescribePullRequestEventsResponse DescribePullRequestEvents(DescribePullRequestEventsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePullRequestEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePullRequestEventsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about one or more pull request events. /// /// Container for the necessary parameters to execute the DescribePullRequestEvents service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribePullRequestEvents service method, as returned by CodeCommit. /// /// The specified Amazon Resource Name (ARN) does not exist in the AWS account. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the /// full ARN for the user who initiated the change for the pull request, and then try /// again. /// /// /// The specified continuation token is not valid. /// /// /// The specified number of maximum results is not valid. /// /// /// The pull request event type is not valid. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// REST API Reference for DescribePullRequestEvents Operation public virtual Task DescribePullRequestEventsAsync(DescribePullRequestEventsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePullRequestEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePullRequestEventsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateApprovalRuleTemplateFromRepository internal virtual DisassociateApprovalRuleTemplateFromRepositoryResponse DisassociateApprovalRuleTemplateFromRepository(DisassociateApprovalRuleTemplateFromRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateApprovalRuleTemplateFromRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateApprovalRuleTemplateFromRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes the association between a template and a repository so that approval rules /// based on the template are not automatically created when pull requests are created /// in the specified repository. This does not delete any approval rules previously created /// for pull requests through the template association. /// /// Container for the necessary parameters to execute the DisassociateApprovalRuleTemplateFromRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateApprovalRuleTemplateFromRepository service method, as returned by CodeCommit. /// /// The specified approval rule template does not exist. Verify that the name is correct /// and that you are signed in to the AWS Region where the template was created, and then /// try again. /// /// /// An approval rule template name is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for DisassociateApprovalRuleTemplateFromRepository Operation public virtual Task DisassociateApprovalRuleTemplateFromRepositoryAsync(DisassociateApprovalRuleTemplateFromRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateApprovalRuleTemplateFromRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateApprovalRuleTemplateFromRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region EvaluatePullRequestApprovalRules internal virtual EvaluatePullRequestApprovalRulesResponse EvaluatePullRequestApprovalRules(EvaluatePullRequestApprovalRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluatePullRequestApprovalRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluatePullRequestApprovalRulesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Evaluates whether a pull request has met all the conditions specified in its associated /// approval rules. /// /// Container for the necessary parameters to execute the EvaluatePullRequestApprovalRules service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the EvaluatePullRequestApprovalRules service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The revision ID is not valid. Use GetPullRequest to determine the value. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// A revision ID is required, but was not provided. /// /// /// The revision ID provided in the request does not match the current revision ID. Use /// GetPullRequest to retrieve the current revision ID. /// /// REST API Reference for EvaluatePullRequestApprovalRules Operation public virtual Task EvaluatePullRequestApprovalRulesAsync(EvaluatePullRequestApprovalRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EvaluatePullRequestApprovalRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = EvaluatePullRequestApprovalRulesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetApprovalRuleTemplate internal virtual GetApprovalRuleTemplateResponse GetApprovalRuleTemplate(GetApprovalRuleTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetApprovalRuleTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApprovalRuleTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a specified approval rule template. /// /// Container for the necessary parameters to execute the GetApprovalRuleTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetApprovalRuleTemplate service method, as returned by CodeCommit. /// /// The specified approval rule template does not exist. Verify that the name is correct /// and that you are signed in to the AWS Region where the template was created, and then /// try again. /// /// /// An approval rule template name is required, but was not specified. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// REST API Reference for GetApprovalRuleTemplate Operation public virtual Task GetApprovalRuleTemplateAsync(GetApprovalRuleTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetApprovalRuleTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetApprovalRuleTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetBlob internal virtual GetBlobResponse GetBlob(GetBlobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBlobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBlobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the base-64 encoded content of an individual blob in a repository. /// /// Container for the necessary parameters to execute the GetBlob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetBlob service method, as returned by CodeCommit. /// /// The specified blob does not exist. /// /// /// A blob ID is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified file exceeds the file size limit for AWS CodeCommit. For more information /// about limits in AWS CodeCommit, see AWS /// CodeCommit User Guide. /// /// /// The specified blob is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetBlob Operation public virtual Task GetBlobAsync(GetBlobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetBlobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBlobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetBranch internal virtual GetBranchResponse GetBranch(GetBranchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBranchResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a repository branch, including its name and the last commit /// ID. /// /// Container for the necessary parameters to execute the GetBranch service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetBranch service method, as returned by CodeCommit. /// /// The specified branch does not exist. /// /// /// A branch name is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified reference name is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetBranch Operation public virtual Task GetBranchAsync(GetBranchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBranchResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetComment internal virtual GetCommentResponse GetComment(GetCommentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the content of a comment made on a change, file, or commit in a repository. /// /// /// /// /// Reaction counts might include numbers from user identities who were deleted after /// the reaction was made. For a count of reactions from active identities, use GetCommentReactions. /// /// /// /// Container for the necessary parameters to execute the GetComment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetComment service method, as returned by CodeCommit. /// /// This comment has already been deleted. You cannot edit or delete a deleted comment. /// /// /// No comment exists with the provided ID. Verify that you have used the correct ID, /// and then try again. /// /// /// The comment ID is missing or null. A comment ID is required. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The comment ID is not in a valid format. Make sure that you have provided the full /// comment ID. /// /// REST API Reference for GetComment Operation public virtual Task GetCommentAsync(GetCommentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCommentReactions internal virtual GetCommentReactionsResponse GetCommentReactions(GetCommentReactionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommentReactionsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommentReactionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about reactions to a specified comment ID. Reactions from users /// who have been deleted will not be included in the count. /// /// Container for the necessary parameters to execute the GetCommentReactions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCommentReactions service method, as returned by CodeCommit. /// /// This comment has already been deleted. You cannot edit or delete a deleted comment. /// /// /// No comment exists with the provided ID. Verify that you have used the correct ID, /// and then try again. /// /// /// The comment ID is missing or null. A comment ID is required. /// /// /// The comment ID is not in a valid format. Make sure that you have provided the full /// comment ID. /// /// /// The specified continuation token is not valid. /// /// /// The specified number of maximum results is not valid. /// /// /// The Amazon Resource Name (ARN) of the user or identity is not valid. /// /// REST API Reference for GetCommentReactions Operation public virtual Task GetCommentReactionsAsync(GetCommentReactionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommentReactionsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommentReactionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCommentsForComparedCommit internal virtual GetCommentsForComparedCommitResponse GetCommentsForComparedCommit(GetCommentsForComparedCommitRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommentsForComparedCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommentsForComparedCommitResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about comments made on the comparison between two commits. /// /// /// /// Reaction counts might include numbers from user identities who were deleted after /// the reaction was made. For a count of reactions from active identities, use GetCommentReactions. /// /// /// /// Container for the necessary parameters to execute the GetCommentsForComparedCommit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCommentsForComparedCommit service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit ID was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified commit ID is not valid. /// /// /// The specified continuation token is not valid. /// /// /// The specified number of maximum results is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetCommentsForComparedCommit Operation public virtual Task GetCommentsForComparedCommitAsync(GetCommentsForComparedCommitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommentsForComparedCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommentsForComparedCommitResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCommentsForPullRequest internal virtual GetCommentsForPullRequestResponse GetCommentsForPullRequest(GetCommentsForPullRequestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommentsForPullRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommentsForPullRequestResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns comments made on a pull request. /// /// /// /// Reaction counts might include numbers from user identities who were deleted after /// the reaction was made. For a count of reactions from active identities, use GetCommentReactions. /// /// /// /// Container for the necessary parameters to execute the GetCommentsForPullRequest service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCommentsForPullRequest service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit ID was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified commit ID is not valid. /// /// /// The specified continuation token is not valid. /// /// /// The specified number of maximum results is not valid. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The repository does not contain any pull requests with that pull request ID. Use GetPullRequest /// to verify the correct repository name for the pull request ID. /// /// REST API Reference for GetCommentsForPullRequest Operation public virtual Task GetCommentsForPullRequestAsync(GetCommentsForPullRequestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommentsForPullRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommentsForPullRequestResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCommit internal virtual GetCommitResponse GetCommit(GetCommitRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommitResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a commit, including commit message and committer information. /// /// Container for the necessary parameters to execute the GetCommit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCommit service method, as returned by CodeCommit. /// /// The specified commit ID does not exist. /// /// /// A commit ID was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified commit ID is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetCommit Operation public virtual Task GetCommitAsync(GetCommitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCommitResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDifferences internal virtual GetDifferencesResponse GetDifferences(GetDifferencesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDifferencesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDifferencesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the differences in a valid commit specifier (such as a branch, /// tag, HEAD, commit ID, or other fully qualified reference). Results can be limited /// to a specified path. /// /// Container for the necessary parameters to execute the GetDifferences service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDifferences service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified commit is not valid. /// /// /// The specified commit ID is not valid. /// /// /// The specified continuation token is not valid. /// /// /// The specified number of maximum results is not valid. /// /// /// The specified path is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified path does not exist. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetDifferences Operation public virtual Task GetDifferencesAsync(GetDifferencesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDifferencesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDifferencesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetFile internal virtual GetFileResponse GetFile(GetFileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFileRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the base-64 encoded contents of a specified file and its metadata. /// /// Container for the necessary parameters to execute the GetFile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetFile service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified file does not exist. Verify that you have used the correct file name, /// full path, and extension. /// /// /// The specified file exceeds the file size limit for AWS CodeCommit. For more information /// about limits in AWS CodeCommit, see AWS /// CodeCommit User Guide. /// /// /// The specified commit is not valid. /// /// /// The specified path is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The folderPath for a location cannot be null. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetFile Operation public virtual Task GetFileAsync(GetFileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFileRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetFolder internal virtual GetFolderResponse GetFolder(GetFolderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the contents of a specified folder in a repository. /// /// Container for the necessary parameters to execute the GetFolder service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetFolder service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified folder does not exist. Either the folder name is not correct, or you /// did not enter the full path to the folder. /// /// /// The specified commit is not valid. /// /// /// The specified path is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The folderPath for a location cannot be null. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetFolder Operation public virtual Task GetFolderAsync(GetFolderRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetFolderRequestMarshaller.Instance; options.ResponseUnmarshaller = GetFolderResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMergeCommit internal virtual GetMergeCommitResponse GetMergeCommit(GetMergeCommitRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMergeCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMergeCommitResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a specified merge commit. /// /// Container for the necessary parameters to execute the GetMergeCommit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMergeCommit service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified commit is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetMergeCommit Operation public virtual Task GetMergeCommitAsync(GetMergeCommitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMergeCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMergeCommitResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMergeConflicts internal virtual GetMergeConflictsResponse GetMergeConflicts(GetMergeConflictsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMergeConflictsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMergeConflictsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about merge conflicts between the before and after commit IDs /// for a pull request in a repository. /// /// Container for the necessary parameters to execute the GetMergeConflicts service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMergeConflicts service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified commit is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// The specified continuation token is not valid. /// /// /// The destination commit specifier is not valid. You must provide a valid branch name, /// tag, or full commit ID. /// /// /// The specified value for the number of conflict files to return is not valid. /// /// /// The specified merge option is not valid for this operation. Not all merge strategies /// are supported for all operations. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The source commit specifier is not valid. You must provide a valid branch name, tag, /// or full commit ID. /// /// /// The number of files to load exceeds the allowed limit. /// /// /// The number of items to compare between the source or destination branches and the /// merge base has exceeded the maximum allowed. /// /// /// A merge option or stategy is required, and none was provided. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for GetMergeConflicts Operation public virtual Task GetMergeConflictsAsync(GetMergeConflictsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMergeConflictsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMergeConflictsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetMergeOptions internal virtual GetMergeOptionsResponse GetMergeOptions(GetMergeOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMergeOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMergeOptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about the merge options available for merging two specified branches. /// For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts. /// /// Container for the necessary parameters to execute the GetMergeOptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetMergeOptions service method, as returned by CodeCommit. /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified commit is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The number of files to load exceeds the allowed limit. /// /// /// The number of items to compare between the source or destination branches and the /// merge base has exceeded the maximum allowed. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for GetMergeOptions Operation public virtual Task GetMergeOptionsAsync(GetMergeOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetMergeOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMergeOptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPullRequest internal virtual GetPullRequestResponse GetPullRequest(GetPullRequestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPullRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPullRequestResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about a pull request in a specified repository. /// /// Container for the necessary parameters to execute the GetPullRequest service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPullRequest service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// REST API Reference for GetPullRequest Operation public virtual Task GetPullRequestAsync(GetPullRequestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPullRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPullRequestResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPullRequestApprovalStates internal virtual GetPullRequestApprovalStatesResponse GetPullRequestApprovalStates(GetPullRequestApprovalStatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPullRequestApprovalStatesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPullRequestApprovalStatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about the approval states for a specified pull request. Approval /// states only apply to pull requests that have one or more approval rules applied to /// them. /// /// Container for the necessary parameters to execute the GetPullRequestApprovalStates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPullRequestApprovalStates service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The revision ID is not valid. Use GetPullRequest to determine the value. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// A revision ID is required, but was not provided. /// /// REST API Reference for GetPullRequestApprovalStates Operation public virtual Task GetPullRequestApprovalStatesAsync(GetPullRequestApprovalStatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPullRequestApprovalStatesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPullRequestApprovalStatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPullRequestOverrideState internal virtual GetPullRequestOverrideStateResponse GetPullRequestOverrideState(GetPullRequestOverrideStateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPullRequestOverrideStateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPullRequestOverrideStateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about whether approval rules have been set aside (overridden) /// for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity /// that overrode the rules and their requirements for the pull request. /// /// Container for the necessary parameters to execute the GetPullRequestOverrideState service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPullRequestOverrideState service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The revision ID is not valid. Use GetPullRequest to determine the value. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// A revision ID is required, but was not provided. /// /// REST API Reference for GetPullRequestOverrideState Operation public virtual Task GetPullRequestOverrideStateAsync(GetPullRequestOverrideStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPullRequestOverrideStateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPullRequestOverrideStateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetRepository internal virtual GetRepositoryResponse GetRepository(GetRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a repository. /// /// /// /// The description field for a repository accepts all HTML characters and all valid Unicode /// characters. Applications that do not HTML-encode the description and display it in /// a webpage can expose users to potentially malicious code. Make sure that you HTML-encode /// the description field in any application that uses this API to display the repository /// description on a webpage. /// /// /// /// Container for the necessary parameters to execute the GetRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetRepository service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetRepository Operation public virtual Task GetRepositoryAsync(GetRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetRepositoryTriggers internal virtual GetRepositoryTriggersResponse GetRepositoryTriggers(GetRepositoryTriggersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryTriggersRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryTriggersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about triggers configured for a repository. /// /// Container for the necessary parameters to execute the GetRepositoryTriggers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetRepositoryTriggers service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for GetRepositoryTriggers Operation public virtual Task GetRepositoryTriggersAsync(GetRepositoryTriggersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryTriggersRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryTriggersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApprovalRuleTemplates internal virtual ListApprovalRuleTemplatesResponse ListApprovalRuleTemplates(ListApprovalRuleTemplatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApprovalRuleTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApprovalRuleTemplatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all approval rule templates in the specified AWS Region in your AWS account. /// If an AWS Region is not specified, the AWS Region where you are signed in is used. /// /// Container for the necessary parameters to execute the ListApprovalRuleTemplates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApprovalRuleTemplates service method, as returned by CodeCommit. /// /// The specified continuation token is not valid. /// /// /// The specified number of maximum results is not valid. /// /// REST API Reference for ListApprovalRuleTemplates Operation public virtual Task ListApprovalRuleTemplatesAsync(ListApprovalRuleTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApprovalRuleTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApprovalRuleTemplatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAssociatedApprovalRuleTemplatesForRepository internal virtual ListAssociatedApprovalRuleTemplatesForRepositoryResponse ListAssociatedApprovalRuleTemplatesForRepository(ListAssociatedApprovalRuleTemplatesForRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssociatedApprovalRuleTemplatesForRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssociatedApprovalRuleTemplatesForRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all approval rule templates that are associated with a specified repository. /// /// Container for the necessary parameters to execute the ListAssociatedApprovalRuleTemplatesForRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAssociatedApprovalRuleTemplatesForRepository service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified continuation token is not valid. /// /// /// The specified number of maximum results is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for ListAssociatedApprovalRuleTemplatesForRepository Operation public virtual Task ListAssociatedApprovalRuleTemplatesForRepositoryAsync(ListAssociatedApprovalRuleTemplatesForRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssociatedApprovalRuleTemplatesForRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssociatedApprovalRuleTemplatesForRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListBranches internal virtual ListBranchesResponse ListBranches(ListBranchesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBranchesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBranchesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about one or more branches in a repository. /// /// Container for the necessary parameters to execute the ListBranches service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListBranches service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified continuation token is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for ListBranches Operation public virtual Task ListBranchesAsync(ListBranchesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBranchesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBranchesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPullRequests internal virtual ListPullRequestsResponse ListPullRequests(ListPullRequestsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPullRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPullRequestsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of pull requests for a specified repository. The return list can be /// refined by pull request status or pull request author ARN. /// /// Container for the necessary parameters to execute the ListPullRequests service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPullRequests service method, as returned by CodeCommit. /// /// The specified Amazon Resource Name (ARN) does not exist in the AWS account. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the /// full ARN for the author of the pull request, and then try again. /// /// /// The specified continuation token is not valid. /// /// /// The specified number of maximum results is not valid. /// /// /// The pull request status is not valid. The only valid values are OPEN /// and CLOSED. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for ListPullRequests Operation public virtual Task ListPullRequestsAsync(ListPullRequestsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPullRequestsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPullRequestsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRepositories internal virtual ListRepositoriesResponse ListRepositories(ListRepositoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoriesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about one or more repositories. /// /// Container for the necessary parameters to execute the ListRepositories service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRepositories service method, as returned by CodeCommit. /// /// The specified continuation token is not valid. /// /// /// The specified sort order is not valid. /// /// /// The specified sort by value is not valid. /// /// REST API Reference for ListRepositories Operation public virtual Task ListRepositoriesAsync(ListRepositoriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoriesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRepositoriesForApprovalRuleTemplate internal virtual ListRepositoriesForApprovalRuleTemplateResponse ListRepositoriesForApprovalRuleTemplate(ListRepositoriesForApprovalRuleTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoriesForApprovalRuleTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoriesForApprovalRuleTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all repositories associated with the specified approval rule template. /// /// Container for the necessary parameters to execute the ListRepositoriesForApprovalRuleTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRepositoriesForApprovalRuleTemplate service method, as returned by CodeCommit. /// /// The specified approval rule template does not exist. Verify that the name is correct /// and that you are signed in to the AWS Region where the template was created, and then /// try again. /// /// /// An approval rule template name is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// /// The specified continuation token is not valid. /// /// /// The specified number of maximum results is not valid. /// /// REST API Reference for ListRepositoriesForApprovalRuleTemplate Operation public virtual Task ListRepositoriesForApprovalRuleTemplateAsync(ListRepositoriesForApprovalRuleTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoriesForApprovalRuleTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoriesForApprovalRuleTemplateResponseUnmarshaller.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); } /// /// Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS /// CodeCommit. For a list of valid resources in AWS CodeCommit, see CodeCommit /// Resources and Operations in the AWS CodeCommit User Guide. /// /// 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 CodeCommit. /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The value for the resource ARN is not valid. For more information about resources /// in AWS CodeCommit, see CodeCommit /// Resources and Operations in the AWS CodeCommit User Guide. /// /// /// The specified repository does not exist. /// /// /// A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. For /// a list of valid resources in AWS CodeCommit, see CodeCommit /// Resources and Operations in the AWS CodeCommit User Guide. /// /// 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 MergeBranchesByFastForward internal virtual MergeBranchesByFastForwardResponse MergeBranchesByFastForward(MergeBranchesByFastForwardRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = MergeBranchesByFastForwardRequestMarshaller.Instance; options.ResponseUnmarshaller = MergeBranchesByFastForwardResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Merges two branches using the fast-forward merge strategy. /// /// Container for the necessary parameters to execute the MergeBranchesByFastForward service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the MergeBranchesByFastForward service method, as returned by CodeCommit. /// /// The specified branch does not exist. /// /// /// The specified branch name is not valid because it is a tag name. Enter the name of /// a branch in the repository. For a list of valid branch names, use ListBranches. /// /// /// A branch name is required, but was not specified. /// /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit was not specified. /// /// /// The merge cannot be completed because the target branch has been modified. Another /// user might have modified the target branch while the merge was in progress. Wait a /// few minutes, and then try again. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified reference name is not valid. /// /// /// The specified commit is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified target branch is not valid. /// /// /// The pull request cannot be merged automatically into the destination branch. You must /// manually merge the branches and resolve any conflicts. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for MergeBranchesByFastForward Operation public virtual Task MergeBranchesByFastForwardAsync(MergeBranchesByFastForwardRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = MergeBranchesByFastForwardRequestMarshaller.Instance; options.ResponseUnmarshaller = MergeBranchesByFastForwardResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region MergeBranchesBySquash internal virtual MergeBranchesBySquashResponse MergeBranchesBySquash(MergeBranchesBySquashRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = MergeBranchesBySquashRequestMarshaller.Instance; options.ResponseUnmarshaller = MergeBranchesBySquashResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Merges two branches using the squash merge strategy. /// /// Container for the necessary parameters to execute the MergeBranchesBySquash service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the MergeBranchesBySquash service method, as returned by CodeCommit. /// /// The specified branch does not exist. /// /// /// The specified branch name is not valid because it is a tag name. Enter the name of /// a branch in the repository. For a list of valid branch names, use ListBranches. /// /// /// A branch name is required, but was not specified. /// /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// The commit message is too long. Provide a shorter string. /// /// /// A commit was not specified. /// /// /// The merge cannot be completed because the target branch has been modified. Another /// user might have modified the target branch while the merge was in progress. Wait a /// few minutes, and then try again. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The file cannot be added because it is too large. The maximum file size is 6 MB, and /// the combined file content change size is 7 MB. Consider making these changes using /// a Git client. /// /// /// The commit cannot be created because no file mode has been specified. A file mode /// is required to update mode permissions for a file. /// /// /// The commit cannot be created because at least one of the overall changes in the commit /// results in a folder whose contents exceed the limit of 6 MB. Either reduce the number /// and size of your changes, or split the changes across multiple folders. /// /// /// The specified reference name is not valid. /// /// /// The specified commit is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution list is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// The specified email address either contains one or more characters that are not allowed, /// or it exceeds the maximum number of characters allowed for an email address. /// /// /// The specified file mode permission is not valid. For a list of valid file mode permissions, /// see PutFile. /// /// /// The specified path is not valid. /// /// /// Automerge was specified for resolving the conflict, but the replacement type is not /// valid or content is missing. /// /// /// Automerge was specified for resolving the conflict, but the specified replacement /// type is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified target branch is not valid. /// /// /// The pull request cannot be merged automatically into the destination branch. You must /// manually merge the branches and resolve any conflicts. /// /// /// The number of allowed conflict resolution entries was exceeded. /// /// /// The number of files to load exceeds the allowed limit. /// /// /// The number of items to compare between the source or destination branches and the /// merge base has exceeded the maximum allowed. /// /// /// More than one conflict resolution entries exists for the conflict. A conflict can /// have only one conflict resolution entry. /// /// /// The user name is not valid because it has exceeded the character limit for author /// names. /// /// /// The folderPath for a location cannot be null. /// /// /// USE_NEW_CONTENT was specified, but no replacement content has been provided. /// /// /// A replacement type is required. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for MergeBranchesBySquash Operation public virtual Task MergeBranchesBySquashAsync(MergeBranchesBySquashRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = MergeBranchesBySquashRequestMarshaller.Instance; options.ResponseUnmarshaller = MergeBranchesBySquashResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region MergeBranchesByThreeWay internal virtual MergeBranchesByThreeWayResponse MergeBranchesByThreeWay(MergeBranchesByThreeWayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = MergeBranchesByThreeWayRequestMarshaller.Instance; options.ResponseUnmarshaller = MergeBranchesByThreeWayResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Merges two specified branches using the three-way merge strategy. /// /// Container for the necessary parameters to execute the MergeBranchesByThreeWay service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the MergeBranchesByThreeWay service method, as returned by CodeCommit. /// /// The specified branch does not exist. /// /// /// The specified branch name is not valid because it is a tag name. Enter the name of /// a branch in the repository. For a list of valid branch names, use ListBranches. /// /// /// A branch name is required, but was not specified. /// /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// The commit message is too long. Provide a shorter string. /// /// /// A commit was not specified. /// /// /// The merge cannot be completed because the target branch has been modified. Another /// user might have modified the target branch while the merge was in progress. Wait a /// few minutes, and then try again. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The file cannot be added because it is too large. The maximum file size is 6 MB, and /// the combined file content change size is 7 MB. Consider making these changes using /// a Git client. /// /// /// The commit cannot be created because no file mode has been specified. A file mode /// is required to update mode permissions for a file. /// /// /// The commit cannot be created because at least one of the overall changes in the commit /// results in a folder whose contents exceed the limit of 6 MB. Either reduce the number /// and size of your changes, or split the changes across multiple folders. /// /// /// The specified reference name is not valid. /// /// /// The specified commit is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution list is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// The specified email address either contains one or more characters that are not allowed, /// or it exceeds the maximum number of characters allowed for an email address. /// /// /// The specified file mode permission is not valid. For a list of valid file mode permissions, /// see PutFile. /// /// /// The specified path is not valid. /// /// /// Automerge was specified for resolving the conflict, but the replacement type is not /// valid or content is missing. /// /// /// Automerge was specified for resolving the conflict, but the specified replacement /// type is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified target branch is not valid. /// /// /// The pull request cannot be merged automatically into the destination branch. You must /// manually merge the branches and resolve any conflicts. /// /// /// The number of allowed conflict resolution entries was exceeded. /// /// /// The number of files to load exceeds the allowed limit. /// /// /// The number of items to compare between the source or destination branches and the /// merge base has exceeded the maximum allowed. /// /// /// More than one conflict resolution entries exists for the conflict. A conflict can /// have only one conflict resolution entry. /// /// /// The user name is not valid because it has exceeded the character limit for author /// names. /// /// /// The folderPath for a location cannot be null. /// /// /// USE_NEW_CONTENT was specified, but no replacement content has been provided. /// /// /// A replacement type is required. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for MergeBranchesByThreeWay Operation public virtual Task MergeBranchesByThreeWayAsync(MergeBranchesByThreeWayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = MergeBranchesByThreeWayRequestMarshaller.Instance; options.ResponseUnmarshaller = MergeBranchesByThreeWayResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region MergePullRequestByFastForward internal virtual MergePullRequestByFastForwardResponse MergePullRequestByFastForward(MergePullRequestByFastForwardRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = MergePullRequestByFastForwardRequestMarshaller.Instance; options.ResponseUnmarshaller = MergePullRequestByFastForwardResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Attempts to merge the source commit of a pull request into the specified destination /// branch for that pull request at the specified commit using the fast-forward merge /// strategy. If the merge is successful, it closes the pull request. /// /// Container for the necessary parameters to execute the MergePullRequestByFastForward service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the MergePullRequestByFastForward service method, as returned by CodeCommit. /// /// The merge cannot be completed because the target branch has been modified. Another /// user might have modified the target branch while the merge was in progress. Wait a /// few minutes, and then try again. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified commit ID is not valid. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The pull request cannot be merged automatically into the destination branch. You must /// manually merge the branches and resolve any conflicts. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The pull request cannot be merged because one or more approval rules applied to the /// pull request have conditions that have not been met. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// The specified reference does not exist. You must provide a full commit ID. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The repository does not contain any pull requests with that pull request ID. Use GetPullRequest /// to verify the correct repository name for the pull request ID. /// /// /// The tip of the source branch in the destination repository does not match the tip /// of the source branch specified in your request. The pull request might have been updated. /// Make sure that you have the latest changes. /// /// REST API Reference for MergePullRequestByFastForward Operation public virtual Task MergePullRequestByFastForwardAsync(MergePullRequestByFastForwardRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = MergePullRequestByFastForwardRequestMarshaller.Instance; options.ResponseUnmarshaller = MergePullRequestByFastForwardResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region MergePullRequestBySquash internal virtual MergePullRequestBySquashResponse MergePullRequestBySquash(MergePullRequestBySquashRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = MergePullRequestBySquashRequestMarshaller.Instance; options.ResponseUnmarshaller = MergePullRequestBySquashResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Attempts to merge the source commit of a pull request into the specified destination /// branch for that pull request at the specified commit using the squash merge strategy. /// If the merge is successful, it closes the pull request. /// /// Container for the necessary parameters to execute the MergePullRequestBySquash service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the MergePullRequestBySquash service method, as returned by CodeCommit. /// /// The commit message is too long. Provide a shorter string. /// /// /// The merge cannot be completed because the target branch has been modified. Another /// user might have modified the target branch while the merge was in progress. Wait a /// few minutes, and then try again. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The file cannot be added because it is too large. The maximum file size is 6 MB, and /// the combined file content change size is 7 MB. Consider making these changes using /// a Git client. /// /// /// The commit cannot be created because at least one of the overall changes in the commit /// results in a folder whose contents exceed the limit of 6 MB. Either reduce the number /// and size of your changes, or split the changes across multiple folders. /// /// /// The specified commit ID is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution list is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// The specified email address either contains one or more characters that are not allowed, /// or it exceeds the maximum number of characters allowed for an email address. /// /// /// The specified file mode permission is not valid. For a list of valid file mode permissions, /// see PutFile. /// /// /// The specified path is not valid. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// Automerge was specified for resolving the conflict, but the replacement type is not /// valid or content is missing. /// /// /// Automerge was specified for resolving the conflict, but the specified replacement /// type is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The pull request cannot be merged automatically into the destination branch. You must /// manually merge the branches and resolve any conflicts. /// /// /// The number of allowed conflict resolution entries was exceeded. /// /// /// The number of files to load exceeds the allowed limit. /// /// /// The number of items to compare between the source or destination branches and the /// merge base has exceeded the maximum allowed. /// /// /// More than one conflict resolution entries exists for the conflict. A conflict can /// have only one conflict resolution entry. /// /// /// The user name is not valid because it has exceeded the character limit for author /// names. /// /// /// The folderPath for a location cannot be null. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The pull request cannot be merged because one or more approval rules applied to the /// pull request have conditions that have not been met. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// USE_NEW_CONTENT was specified, but no replacement content has been provided. /// /// /// A replacement type is required. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The repository does not contain any pull requests with that pull request ID. Use GetPullRequest /// to verify the correct repository name for the pull request ID. /// /// /// The tip of the source branch in the destination repository does not match the tip /// of the source branch specified in your request. The pull request might have been updated. /// Make sure that you have the latest changes. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for MergePullRequestBySquash Operation public virtual Task MergePullRequestBySquashAsync(MergePullRequestBySquashRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = MergePullRequestBySquashRequestMarshaller.Instance; options.ResponseUnmarshaller = MergePullRequestBySquashResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region MergePullRequestByThreeWay internal virtual MergePullRequestByThreeWayResponse MergePullRequestByThreeWay(MergePullRequestByThreeWayRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = MergePullRequestByThreeWayRequestMarshaller.Instance; options.ResponseUnmarshaller = MergePullRequestByThreeWayResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Attempts to merge the source commit of a pull request into the specified destination /// branch for that pull request at the specified commit using the three-way merge strategy. /// If the merge is successful, it closes the pull request. /// /// Container for the necessary parameters to execute the MergePullRequestByThreeWay service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the MergePullRequestByThreeWay service method, as returned by CodeCommit. /// /// The commit message is too long. Provide a shorter string. /// /// /// The merge cannot be completed because the target branch has been modified. Another /// user might have modified the target branch while the merge was in progress. Wait a /// few minutes, and then try again. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The file cannot be added because it is too large. The maximum file size is 6 MB, and /// the combined file content change size is 7 MB. Consider making these changes using /// a Git client. /// /// /// The commit cannot be created because at least one of the overall changes in the commit /// results in a folder whose contents exceed the limit of 6 MB. Either reduce the number /// and size of your changes, or split the changes across multiple folders. /// /// /// The specified commit ID is not valid. /// /// /// The specified conflict detail level is not valid. /// /// /// The specified conflict resolution list is not valid. /// /// /// The specified conflict resolution strategy is not valid. /// /// /// The specified email address either contains one or more characters that are not allowed, /// or it exceeds the maximum number of characters allowed for an email address. /// /// /// The specified file mode permission is not valid. For a list of valid file mode permissions, /// see PutFile. /// /// /// The specified path is not valid. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// Automerge was specified for resolving the conflict, but the replacement type is not /// valid or content is missing. /// /// /// Automerge was specified for resolving the conflict, but the specified replacement /// type is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The pull request cannot be merged automatically into the destination branch. You must /// manually merge the branches and resolve any conflicts. /// /// /// The number of allowed conflict resolution entries was exceeded. /// /// /// The number of files to load exceeds the allowed limit. /// /// /// The number of items to compare between the source or destination branches and the /// merge base has exceeded the maximum allowed. /// /// /// More than one conflict resolution entries exists for the conflict. A conflict can /// have only one conflict resolution entry. /// /// /// The user name is not valid because it has exceeded the character limit for author /// names. /// /// /// The folderPath for a location cannot be null. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The pull request cannot be merged because one or more approval rules applied to the /// pull request have conditions that have not been met. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// USE_NEW_CONTENT was specified, but no replacement content has been provided. /// /// /// A replacement type is required. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The repository does not contain any pull requests with that pull request ID. Use GetPullRequest /// to verify the correct repository name for the pull request ID. /// /// /// The tip of the source branch in the destination repository does not match the tip /// of the source branch specified in your request. The pull request might have been updated. /// Make sure that you have the latest changes. /// /// /// The divergence between the tips of the provided commit specifiers is too great to /// determine whether there might be any merge conflicts. Locally compare the specifiers /// using git diff or a diff tool. /// /// REST API Reference for MergePullRequestByThreeWay Operation public virtual Task MergePullRequestByThreeWayAsync(MergePullRequestByThreeWayRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = MergePullRequestByThreeWayRequestMarshaller.Instance; options.ResponseUnmarshaller = MergePullRequestByThreeWayResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region OverridePullRequestApprovalRules internal virtual OverridePullRequestApprovalRulesResponse OverridePullRequestApprovalRules(OverridePullRequestApprovalRulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = OverridePullRequestApprovalRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = OverridePullRequestApprovalRulesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets aside (overrides) all approval rule requirements for a specified pull request. /// /// Container for the necessary parameters to execute the OverridePullRequestApprovalRules service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the OverridePullRequestApprovalRules service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The override status is not valid. Valid statuses are OVERRIDE and REVOKE. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The revision ID is not valid. Use GetPullRequest to determine the value. /// /// /// The pull request has already had its approval rules set to override. /// /// /// An override status is required, but no value was provided. Valid values include OVERRIDE /// and REVOKE. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// A revision ID is required, but was not provided. /// /// /// The revision ID provided in the request does not match the current revision ID. Use /// GetPullRequest to retrieve the current revision ID. /// /// REST API Reference for OverridePullRequestApprovalRules Operation public virtual Task OverridePullRequestApprovalRulesAsync(OverridePullRequestApprovalRulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = OverridePullRequestApprovalRulesRequestMarshaller.Instance; options.ResponseUnmarshaller = OverridePullRequestApprovalRulesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PostCommentForComparedCommit internal virtual PostCommentForComparedCommitResponse PostCommentForComparedCommit(PostCommentForComparedCommitRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PostCommentForComparedCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = PostCommentForComparedCommitResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Posts a comment on the comparison between two commits. /// /// Container for the necessary parameters to execute the PostCommentForComparedCommit service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PostCommentForComparedCommit service method, as returned by CodeCommit. /// /// The before commit ID and the after commit ID are the same, which is not valid. The /// before commit ID and the after commit ID must be different commit IDs. /// /// /// A client request token is required. A client request token is an unique, client-generated /// idempotency token that, when provided in a request, ensures the request cannot be /// repeated with a changed parameter. If a request is received with the same parameters /// and a token is included, the request returns information about the initial request /// that used that token. /// /// /// The comment is empty. You must provide some content for a comment. The content cannot /// be null. /// /// /// The comment is too large. Comments are limited to 1,000 characters. /// /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit ID was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The client request token is not valid. Either the token is not in a valid format, /// or the token has been used in a previous request and cannot be reused. /// /// /// The client request token is not valid. /// /// /// The specified commit ID is not valid. /// /// /// The location of the file is not valid. Make sure that you include the file name and /// extension. /// /// /// The position is not valid. Make sure that the line number exists in the version of /// the file you want to comment on. /// /// /// The specified path is not valid. /// /// /// Either the enum is not in a valid format, or the specified file version enum is not /// valid in respect to the current file version. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified path does not exist. /// /// /// The folderPath for a location cannot be null. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for PostCommentForComparedCommit Operation public virtual Task PostCommentForComparedCommitAsync(PostCommentForComparedCommitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PostCommentForComparedCommitRequestMarshaller.Instance; options.ResponseUnmarshaller = PostCommentForComparedCommitResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PostCommentForPullRequest internal virtual PostCommentForPullRequestResponse PostCommentForPullRequest(PostCommentForPullRequestRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PostCommentForPullRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = PostCommentForPullRequestResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Posts a comment on a pull request. /// /// Container for the necessary parameters to execute the PostCommentForPullRequest service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PostCommentForPullRequest service method, as returned by CodeCommit. /// /// The before commit ID and the after commit ID are the same, which is not valid. The /// before commit ID and the after commit ID must be different commit IDs. /// /// /// A client request token is required. A client request token is an unique, client-generated /// idempotency token that, when provided in a request, ensures the request cannot be /// repeated with a changed parameter. If a request is received with the same parameters /// and a token is included, the request returns information about the initial request /// that used that token. /// /// /// The comment is empty. You must provide some content for a comment. The content cannot /// be null. /// /// /// The comment is too large. Comments are limited to 1,000 characters. /// /// /// The specified commit does not exist or no commit was specified, and the specified /// repository has no default branch. /// /// /// A commit ID was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The client request token is not valid. Either the token is not in a valid format, /// or the token has been used in a previous request and cannot be reused. /// /// /// The client request token is not valid. /// /// /// The specified commit ID is not valid. /// /// /// The location of the file is not valid. Make sure that you include the file name and /// extension. /// /// /// The position is not valid. Make sure that the line number exists in the version of /// the file you want to comment on. /// /// /// The specified path is not valid. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// Either the enum is not in a valid format, or the specified file version enum is not /// valid in respect to the current file version. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified path does not exist. /// /// /// The folderPath for a location cannot be null. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The repository does not contain any pull requests with that pull request ID. Use GetPullRequest /// to verify the correct repository name for the pull request ID. /// /// REST API Reference for PostCommentForPullRequest Operation public virtual Task PostCommentForPullRequestAsync(PostCommentForPullRequestRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PostCommentForPullRequestRequestMarshaller.Instance; options.ResponseUnmarshaller = PostCommentForPullRequestResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PostCommentReply internal virtual PostCommentReplyResponse PostCommentReply(PostCommentReplyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PostCommentReplyRequestMarshaller.Instance; options.ResponseUnmarshaller = PostCommentReplyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Posts a comment in reply to an existing comment on a comparison between commits or /// a pull request. /// /// Container for the necessary parameters to execute the PostCommentReply service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PostCommentReply service method, as returned by CodeCommit. /// /// A client request token is required. A client request token is an unique, client-generated /// idempotency token that, when provided in a request, ensures the request cannot be /// repeated with a changed parameter. If a request is received with the same parameters /// and a token is included, the request returns information about the initial request /// that used that token. /// /// /// The comment is empty. You must provide some content for a comment. The content cannot /// be null. /// /// /// The comment is too large. Comments are limited to 1,000 characters. /// /// /// No comment exists with the provided ID. Verify that you have used the correct ID, /// and then try again. /// /// /// The comment ID is missing or null. A comment ID is required. /// /// /// The client request token is not valid. Either the token is not in a valid format, /// or the token has been used in a previous request and cannot be reused. /// /// /// The client request token is not valid. /// /// /// The comment ID is not in a valid format. Make sure that you have provided the full /// comment ID. /// /// REST API Reference for PostCommentReply Operation public virtual Task PostCommentReplyAsync(PostCommentReplyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PostCommentReplyRequestMarshaller.Instance; options.ResponseUnmarshaller = PostCommentReplyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutCommentReaction internal virtual PutCommentReactionResponse PutCommentReaction(PutCommentReactionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCommentReactionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCommentReactionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds or updates a reaction to a specified comment for the user whose identity is used /// to make the request. You can only add or update a reaction for yourself. You cannot /// add, modify, or delete a reaction for another user. /// /// Container for the necessary parameters to execute the PutCommentReaction service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutCommentReaction service method, as returned by CodeCommit. /// /// This comment has already been deleted. You cannot edit or delete a deleted comment. /// /// /// No comment exists with the provided ID. Verify that you have used the correct ID, /// and then try again. /// /// /// The comment ID is missing or null. A comment ID is required. /// /// /// The comment ID is not in a valid format. Make sure that you have provided the full /// comment ID. /// /// /// The value of the reaction is not valid. For more information, see the AWS /// CodeCommit User Guide. /// /// /// The number of reactions has been exceeded. Reactions are limited to one reaction per /// user for each individual comment ID. /// /// /// A reaction value is required. /// /// REST API Reference for PutCommentReaction Operation public virtual Task PutCommentReactionAsync(PutCommentReactionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutCommentReactionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCommentReactionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutFile internal virtual PutFileResponse PutFile(PutFileRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutFileRequestMarshaller.Instance; options.ResponseUnmarshaller = PutFileResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds or updates a file in a branch in an AWS CodeCommit repository, and generates /// a commit for the addition in the specified branch. /// /// Container for the necessary parameters to execute the PutFile service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutFile service method, as returned by CodeCommit. /// /// The specified branch does not exist. /// /// /// The specified branch name is not valid because it is a tag name. Enter the name of /// a branch in the repository. For a list of valid branch names, use ListBranches. /// /// /// A branch name is required, but was not specified. /// /// /// The commit message is too long. Provide a shorter string. /// /// /// A file cannot be added to the repository because the specified path name has the same /// name as a file that already exists in this repository. Either provide a different /// name for the file, or specify a different path for the file. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The file cannot be added because it is empty. Empty files cannot be added to the repository /// with this API. /// /// /// The file cannot be added because it is too large. The maximum file size is 6 MB, and /// the combined file content change size is 7 MB. Consider making these changes using /// a Git client. /// /// /// A file cannot be added to the repository because the specified file name has the same /// name as a directory in this repository. Either provide another name for the file, /// or add the file in a directory that does not match the file name. /// /// /// The commit cannot be created because a specified file path points to a submodule. /// Verify that the destination files have valid file paths that do not point to a submodule. /// /// /// The commit cannot be created because at least one of the overall changes in the commit /// results in a folder whose contents exceed the limit of 6 MB. Either reduce the number /// and size of your changes, or split the changes across multiple folders. /// /// /// The specified reference name is not valid. /// /// /// The specified deletion parameter is not valid. /// /// /// The specified email address either contains one or more characters that are not allowed, /// or it exceeds the maximum number of characters allowed for an email address. /// /// /// The specified file mode permission is not valid. For a list of valid file mode permissions, /// see PutFile. /// /// /// The parent commit ID is not valid. The commit ID cannot be empty, and must match the /// head commit ID for the branch of the repository where you want to add or update a /// file. /// /// /// The specified path is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The user name is not valid because it has exceeded the character limit for author /// names. /// /// /// The parent commit ID is not valid because it does not exist. The specified parent /// commit ID does not exist in the specified branch of the repository. /// /// /// The file could not be added because the provided parent commit ID is not the current /// tip of the specified branch. To view the full commit ID of the current head of the /// branch, use GetBranch. /// /// /// A parent commit ID is required. To view the full commit ID of a branch in a repository, /// use GetBranch or a Git command (for example, git pull or git log). /// /// /// The folderPath for a location cannot be null. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// The file was not added or updated because the content of the file is exactly the same /// as the content of that file in the repository and branch that you specified. /// /// REST API Reference for PutFile Operation public virtual Task PutFileAsync(PutFileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutFileRequestMarshaller.Instance; options.ResponseUnmarshaller = PutFileResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutRepositoryTriggers internal virtual PutRepositoryTriggersResponse PutRepositoryTriggers(PutRepositoryTriggersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRepositoryTriggersRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRepositoryTriggersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Replaces all triggers for a repository. Used to create or delete triggers. /// /// Container for the necessary parameters to execute the PutRepositoryTriggers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutRepositoryTriggers service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// One or more branch names specified for the trigger is not valid. /// /// /// The custom data provided for the trigger is not valid. /// /// /// The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. /// The most common reason for this error is that the ARN does not meet the requirements /// for the service type. /// /// /// One or more events specified for the trigger is not valid. Check to make sure that /// all events specified match the requirements for allowed events. /// /// /// The name of the trigger is not valid. /// /// /// The AWS Region for the trigger target does not match the AWS Region for the repository. /// Triggers must be created in the same Region as the target for the trigger. /// /// /// The number of branches for the trigger was exceeded. /// /// /// The number of triggers allowed for the repository was exceeded. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// At least one branch name is required, but was not specified in the trigger configuration. /// /// /// A destination ARN for the target service for the trigger is required, but was not /// specified. /// /// /// At least one event for the trigger is required, but was not specified. /// /// /// A name for the trigger is required, but was not specified. /// /// /// The list of triggers for the repository is required, but was not specified. /// /// REST API Reference for PutRepositoryTriggers Operation public virtual Task PutRepositoryTriggersAsync(PutRepositoryTriggersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutRepositoryTriggersRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRepositoryTriggersResponseUnmarshaller.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 or updates tags for a resource in AWS CodeCommit. For a list of valid resources /// in AWS CodeCommit, see CodeCommit /// Resources and Operations in the AWS CodeCommit User Guide. /// /// 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 CodeCommit. /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The value for the resource ARN is not valid. For more information about resources /// in AWS CodeCommit, see CodeCommit /// Resources and Operations in the AWS CodeCommit User Guide. /// /// /// The specified tag is not valid. Key names cannot be prefixed with aws:. /// /// /// The map of tags is not valid. /// /// /// The specified repository does not exist. /// /// /// A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. For /// a list of valid resources in AWS CodeCommit, see CodeCommit /// Resources and Operations in the AWS CodeCommit User Guide. /// /// /// The tag policy is not valid. /// /// /// A map of tags is required. /// /// /// The maximum number of tags for an AWS CodeCommit resource has been exceeded. /// /// 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 TestRepositoryTriggers internal virtual TestRepositoryTriggersResponse TestRepositoryTriggers(TestRepositoryTriggersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestRepositoryTriggersRequestMarshaller.Instance; options.ResponseUnmarshaller = TestRepositoryTriggersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Tests the functionality of repository triggers by sending information to the trigger /// target. If real data is available in the repository, the test sends data from the /// last commit. If no data is available, sample data is generated. /// /// Container for the necessary parameters to execute the TestRepositoryTriggers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TestRepositoryTriggers service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// One or more branch names specified for the trigger is not valid. /// /// /// The custom data provided for the trigger is not valid. /// /// /// The Amazon Resource Name (ARN) for the trigger is not valid for the specified destination. /// The most common reason for this error is that the ARN does not meet the requirements /// for the service type. /// /// /// One or more events specified for the trigger is not valid. Check to make sure that /// all events specified match the requirements for allowed events. /// /// /// The name of the trigger is not valid. /// /// /// The AWS Region for the trigger target does not match the AWS Region for the repository. /// Triggers must be created in the same Region as the target for the trigger. /// /// /// The number of branches for the trigger was exceeded. /// /// /// The number of triggers allowed for the repository was exceeded. /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// /// At least one branch name is required, but was not specified in the trigger configuration. /// /// /// A destination ARN for the target service for the trigger is required, but was not /// specified. /// /// /// At least one event for the trigger is required, but was not specified. /// /// /// A name for the trigger is required, but was not specified. /// /// /// The list of triggers for the repository is required, but was not specified. /// /// REST API Reference for TestRepositoryTriggers Operation public virtual Task TestRepositoryTriggersAsync(TestRepositoryTriggersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TestRepositoryTriggersRequestMarshaller.Instance; options.ResponseUnmarshaller = TestRepositoryTriggersResponseUnmarshaller.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 tags for a resource in AWS CodeCommit. For a list of valid resources in AWS /// CodeCommit, see CodeCommit /// Resources and Operations in the AWS CodeCommit User Guide. /// /// 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 CodeCommit. /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The value for the resource ARN is not valid. For more information about resources /// in AWS CodeCommit, see CodeCommit /// Resources and Operations in the AWS CodeCommit User Guide. /// /// /// The specified tag is not valid. Key names cannot be prefixed with aws:. /// /// /// The list of tags is not valid. /// /// /// The specified repository does not exist. /// /// /// A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. For /// a list of valid resources in AWS CodeCommit, see CodeCommit /// Resources and Operations in the AWS CodeCommit User Guide. /// /// /// A list of tag keys is required. The list cannot be empty or null. /// /// /// The tag policy is not valid. /// /// /// The maximum number of tags for an AWS CodeCommit resource has been exceeded. /// /// 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 #region UpdateApprovalRuleTemplateContent internal virtual UpdateApprovalRuleTemplateContentResponse UpdateApprovalRuleTemplateContent(UpdateApprovalRuleTemplateContentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApprovalRuleTemplateContentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApprovalRuleTemplateContentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the content of an approval rule template. You can change the number of required /// approvals, the membership of the approval rule, and whether an approval pool is defined. /// /// Container for the necessary parameters to execute the UpdateApprovalRuleTemplateContent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateApprovalRuleTemplateContent service method, as returned by CodeCommit. /// /// The content for the approval rule template is empty. You must provide some content /// for an approval rule template. The content cannot be null. /// /// /// The specified approval rule template does not exist. Verify that the name is correct /// and that you are signed in to the AWS Region where the template was created, and then /// try again. /// /// /// An approval rule template name is required, but was not specified. /// /// /// The content of the approval rule template is not valid. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// /// The SHA-256 hash signature for the rule content is not valid. /// /// REST API Reference for UpdateApprovalRuleTemplateContent Operation public virtual Task UpdateApprovalRuleTemplateContentAsync(UpdateApprovalRuleTemplateContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApprovalRuleTemplateContentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApprovalRuleTemplateContentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateApprovalRuleTemplateDescription internal virtual UpdateApprovalRuleTemplateDescriptionResponse UpdateApprovalRuleTemplateDescription(UpdateApprovalRuleTemplateDescriptionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApprovalRuleTemplateDescriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApprovalRuleTemplateDescriptionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the description for a specified approval rule template. /// /// Container for the necessary parameters to execute the UpdateApprovalRuleTemplateDescription service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateApprovalRuleTemplateDescription service method, as returned by CodeCommit. /// /// The specified approval rule template does not exist. Verify that the name is correct /// and that you are signed in to the AWS Region where the template was created, and then /// try again. /// /// /// An approval rule template name is required, but was not specified. /// /// /// The description for the approval rule template is not valid because it exceeds the /// maximum characters allowed for a description. For more information about limits in /// AWS CodeCommit, see AWS /// CodeCommit User Guide. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// REST API Reference for UpdateApprovalRuleTemplateDescription Operation public virtual Task UpdateApprovalRuleTemplateDescriptionAsync(UpdateApprovalRuleTemplateDescriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApprovalRuleTemplateDescriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApprovalRuleTemplateDescriptionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateApprovalRuleTemplateName internal virtual UpdateApprovalRuleTemplateNameResponse UpdateApprovalRuleTemplateName(UpdateApprovalRuleTemplateNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApprovalRuleTemplateNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApprovalRuleTemplateNameResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the name of a specified approval rule template. /// /// Container for the necessary parameters to execute the UpdateApprovalRuleTemplateName service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateApprovalRuleTemplateName service method, as returned by CodeCommit. /// /// The specified approval rule template does not exist. Verify that the name is correct /// and that you are signed in to the AWS Region where the template was created, and then /// try again. /// /// /// You cannot create an approval rule template with that name because a template with /// that name already exists in this AWS Region for your AWS account. Approval rule template /// names must be unique. /// /// /// An approval rule template name is required, but was not specified. /// /// /// The name of the approval rule template is not valid. Template names must be between /// 1 and 100 valid characters in length. For more information about limits in AWS CodeCommit, /// see AWS /// CodeCommit User Guide. /// /// REST API Reference for UpdateApprovalRuleTemplateName Operation public virtual Task UpdateApprovalRuleTemplateNameAsync(UpdateApprovalRuleTemplateNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApprovalRuleTemplateNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApprovalRuleTemplateNameResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateComment internal virtual UpdateCommentResponse UpdateComment(UpdateCommentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCommentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Replaces the contents of a comment. /// /// Container for the necessary parameters to execute the UpdateComment service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateComment service method, as returned by CodeCommit. /// /// The comment is empty. You must provide some content for a comment. The content cannot /// be null. /// /// /// The comment is too large. Comments are limited to 1,000 characters. /// /// /// This comment has already been deleted. You cannot edit or delete a deleted comment. /// /// /// No comment exists with the provided ID. Verify that you have used the correct ID, /// and then try again. /// /// /// The comment ID is missing or null. A comment ID is required. /// /// /// You cannot modify or delete this comment. Only comment authors can modify or delete /// their comments. /// /// /// The comment ID is not in a valid format. Make sure that you have provided the full /// comment ID. /// /// REST API Reference for UpdateComment Operation public virtual Task UpdateCommentAsync(UpdateCommentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCommentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCommentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDefaultBranch internal virtual UpdateDefaultBranchResponse UpdateDefaultBranch(UpdateDefaultBranchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDefaultBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDefaultBranchResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets or changes the default branch name for the specified repository. /// /// /// /// If you use this operation to change the default branch name to the current default /// branch name, a success message is returned even though the default branch did not /// change. /// /// /// /// Container for the necessary parameters to execute the UpdateDefaultBranch service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDefaultBranch service method, as returned by CodeCommit. /// /// The specified branch does not exist. /// /// /// A branch name is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified reference name is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for UpdateDefaultBranch Operation public virtual Task UpdateDefaultBranchAsync(UpdateDefaultBranchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDefaultBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDefaultBranchResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePullRequestApprovalRuleContent internal virtual UpdatePullRequestApprovalRuleContentResponse UpdatePullRequestApprovalRuleContent(UpdatePullRequestApprovalRuleContentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestApprovalRuleContentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestApprovalRuleContentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the structure of an approval rule created specifically for a pull request. /// For example, you can change the number of required approvers and the approval pool /// for approvers. /// /// Container for the necessary parameters to execute the UpdatePullRequestApprovalRuleContent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePullRequestApprovalRuleContent service method, as returned by CodeCommit. /// /// The content for the approval rule is empty. You must provide some content for an approval /// rule. The content cannot be null. /// /// /// The specified approval rule does not exist. /// /// /// An approval rule name is required, but was not specified. /// /// /// The approval rule cannot be modified for the pull request because it was created by /// an approval rule template and applied to the pull request automatically. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The content for the approval rule is not valid. /// /// /// The name for the approval rule is not valid. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The SHA-256 hash signature for the rule content is not valid. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// REST API Reference for UpdatePullRequestApprovalRuleContent Operation public virtual Task UpdatePullRequestApprovalRuleContentAsync(UpdatePullRequestApprovalRuleContentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestApprovalRuleContentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestApprovalRuleContentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePullRequestApprovalState internal virtual UpdatePullRequestApprovalStateResponse UpdatePullRequestApprovalState(UpdatePullRequestApprovalStateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestApprovalStateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestApprovalStateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the state of a user's approval on a pull request. The user is derived from /// the signed-in account when the request is made. /// /// Container for the necessary parameters to execute the UpdatePullRequestApprovalState service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePullRequestApprovalState service method, as returned by CodeCommit. /// /// An approval state is required, but was not specified. /// /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The state for the approval is not valid. Valid values include APPROVE and REVOKE. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The revision ID is not valid. Use GetPullRequest to determine the value. /// /// /// The number of approvals required for the approval rule exceeds the maximum number /// allowed. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The approval cannot be applied because the user approving the pull request matches /// the user who created the pull request. You cannot approve a pull request that you /// created. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// A revision ID is required, but was not provided. /// /// /// The revision ID provided in the request does not match the current revision ID. Use /// GetPullRequest to retrieve the current revision ID. /// /// REST API Reference for UpdatePullRequestApprovalState Operation public virtual Task UpdatePullRequestApprovalStateAsync(UpdatePullRequestApprovalStateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestApprovalStateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestApprovalStateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePullRequestDescription internal virtual UpdatePullRequestDescriptionResponse UpdatePullRequestDescription(UpdatePullRequestDescriptionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestDescriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestDescriptionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Replaces the contents of the description of a pull request. /// /// Container for the necessary parameters to execute the UpdatePullRequestDescription service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePullRequestDescription service method, as returned by CodeCommit. /// /// The pull request description is not valid. Descriptions cannot be more than 1,000 /// characters. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// REST API Reference for UpdatePullRequestDescription Operation public virtual Task UpdatePullRequestDescriptionAsync(UpdatePullRequestDescriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestDescriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestDescriptionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePullRequestStatus internal virtual UpdatePullRequestStatusResponse UpdatePullRequestStatus(UpdatePullRequestStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestStatusResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the status of a pull request. /// /// Container for the necessary parameters to execute the UpdatePullRequestStatus service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePullRequestStatus service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The pull request status is not valid. The only valid values are OPEN /// and CLOSED. /// /// /// The pull request status update is not valid. The only valid update is from OPEN /// to CLOSED. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// A pull request status is required, but none was provided. /// /// REST API Reference for UpdatePullRequestStatus Operation public virtual Task UpdatePullRequestStatusAsync(UpdatePullRequestStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestStatusResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdatePullRequestTitle internal virtual UpdatePullRequestTitleResponse UpdatePullRequestTitle(UpdatePullRequestTitleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestTitleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestTitleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Replaces the title of a pull request. /// /// Container for the necessary parameters to execute the UpdatePullRequestTitle service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePullRequestTitle service method, as returned by CodeCommit. /// /// The pull request ID is not valid. Make sure that you have provided the full ID and /// that the pull request is in the specified repository, and then try again. /// /// /// The title of the pull request is not valid. Pull request titles cannot exceed 100 /// characters in length. /// /// /// The pull request status cannot be updated because it is already closed. /// /// /// The pull request ID could not be found. Make sure that you have specified the correct /// repository name and pull request ID, and then try again. /// /// /// A pull request ID is required, but none was provided. /// /// /// A pull request title is required. It cannot be empty or null. /// /// REST API Reference for UpdatePullRequestTitle Operation public virtual Task UpdatePullRequestTitleAsync(UpdatePullRequestTitleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePullRequestTitleRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePullRequestTitleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateRepositoryDescription internal virtual UpdateRepositoryDescriptionResponse UpdateRepositoryDescription(UpdateRepositoryDescriptionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRepositoryDescriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRepositoryDescriptionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets or changes the comment or description for a repository. /// /// /// /// The description field for a repository accepts all HTML characters and all valid Unicode /// characters. Applications that do not HTML-encode the description and display it in /// a webpage can expose users to potentially malicious code. Make sure that you HTML-encode /// the description field in any application that uses this API to display the repository /// description on a webpage. /// /// /// /// Container for the necessary parameters to execute the UpdateRepositoryDescription service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateRepositoryDescription service method, as returned by CodeCommit. /// /// An encryption integrity check failed. /// /// /// An encryption key could not be accessed. /// /// /// The encryption key is disabled. /// /// /// No encryption key was found. /// /// /// The encryption key is not available. /// /// /// The specified repository description is not valid. /// /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for UpdateRepositoryDescription Operation public virtual Task UpdateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRepositoryDescriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRepositoryDescriptionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateRepositoryName internal virtual UpdateRepositoryNameResponse UpdateRepositoryName(UpdateRepositoryNameRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRepositoryNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRepositoryNameResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Renames a repository. The repository name must be unique across the calling AWS account. /// Repository names are limited to 100 alphanumeric, dash, and underscore characters, /// and cannot include certain characters. The suffix .git is prohibited. For more information /// about the limits on repository names, see Limits /// in the AWS CodeCommit User Guide. /// /// Container for the necessary parameters to execute the UpdateRepositoryName service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateRepositoryName service method, as returned by CodeCommit. /// /// A specified repository name is not valid. /// /// /// /// This exception occurs only when a specified repository name is not valid. Other exceptions /// occur when a required repository parameter is missing, or when a specified repository /// does not exist. /// /// /// /// /// The specified repository does not exist. /// /// /// The specified repository name already exists. /// /// /// A repository name is required, but was not specified. /// /// REST API Reference for UpdateRepositoryName Operation public virtual Task UpdateRepositoryNameAsync(UpdateRepositoryNameRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRepositoryNameRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRepositoryNameResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }