/* * 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 codeartifact-2018-09-22.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.CodeArtifact.Model; using Amazon.CodeArtifact.Model.Internal.MarshallTransformations; using Amazon.CodeArtifact.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CodeArtifact { /// /// Implementation for accessing CodeArtifact /// /// CodeArtifact is a fully managed artifact repository compatible with language-native /// package managers and build tools such as npm, Apache Maven, pip, and dotnet. You can /// use CodeArtifact to share packages with development teams and pull packages. Packages /// can be pulled from both public and CodeArtifact repositories. You can also create /// an upstream relationship between a CodeArtifact repository and another repository, /// which effectively merges their contents from the point of view of a package manager /// client. /// /// /// /// CodeArtifact Components /// /// /// /// Use the information in this guide to help you work with the following CodeArtifact /// components: /// /// /// /// CodeArtifact supports these operations: /// /// /// public partial class AmazonCodeArtifactClient : AmazonServiceClient, IAmazonCodeArtifact { private static IServiceMetadata serviceMetadata = new AmazonCodeArtifactMetadata(); private ICodeArtifactPaginatorFactory _paginators; /// /// Paginators for the service /// public ICodeArtifactPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CodeArtifactPaginatorFactory(this); } return this._paginators; } } #region Constructors /// /// Constructs AmazonCodeArtifactClient 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 AmazonCodeArtifactClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeArtifactConfig()) { } /// /// Constructs AmazonCodeArtifactClient 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 AmazonCodeArtifactClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeArtifactConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeArtifactClient 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 AmazonCodeArtifactClient Configuration Object public AmazonCodeArtifactClient(AmazonCodeArtifactConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonCodeArtifactClient with AWS Credentials /// /// AWS Credentials public AmazonCodeArtifactClient(AWSCredentials credentials) : this(credentials, new AmazonCodeArtifactConfig()) { } /// /// Constructs AmazonCodeArtifactClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCodeArtifactClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCodeArtifactConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeArtifactClient with AWS Credentials and an /// AmazonCodeArtifactClient Configuration object. /// /// AWS Credentials /// The AmazonCodeArtifactClient Configuration Object public AmazonCodeArtifactClient(AWSCredentials credentials, AmazonCodeArtifactConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCodeArtifactClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCodeArtifactClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeArtifactConfig()) { } /// /// Constructs AmazonCodeArtifactClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCodeArtifactClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeArtifactConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonCodeArtifactClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeArtifactClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCodeArtifactClient Configuration Object public AmazonCodeArtifactClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCodeArtifactConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCodeArtifactClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCodeArtifactClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeArtifactConfig()) { } /// /// Constructs AmazonCodeArtifactClient 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 AmazonCodeArtifactClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeArtifactConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeArtifactClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeArtifactClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCodeArtifactClient Configuration Object public AmazonCodeArtifactClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCodeArtifactConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonCodeArtifactEndpointResolver()); } /// /// 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 AssociateExternalConnection /// /// Adds an existing external connection to a repository. One external connection is allowed /// per repository. /// /// /// /// A repository can have one or more upstream repositories, or an external connection. /// /// /// /// Container for the necessary parameters to execute the AssociateExternalConnection service method. /// /// The response from the AssociateExternalConnection service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for AssociateExternalConnection Operation public virtual AssociateExternalConnectionResponse AssociateExternalConnection(AssociateExternalConnectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateExternalConnectionRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateExternalConnectionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds an existing external connection to a repository. One external connection is allowed /// per repository. /// /// /// /// A repository can have one or more upstream repositories, or an external connection. /// /// /// /// Container for the necessary parameters to execute the AssociateExternalConnection service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AssociateExternalConnection service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for AssociateExternalConnection Operation public virtual Task AssociateExternalConnectionAsync(AssociateExternalConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateExternalConnectionRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateExternalConnectionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CopyPackageVersions /// /// Copies package versions from one repository to another repository in the same domain. /// /// /// /// /// You must specify versions or versionRevisions. You cannot /// specify both. /// /// /// /// Container for the necessary parameters to execute the CopyPackageVersions service method. /// /// The response from the CopyPackageVersions service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for CopyPackageVersions Operation public virtual CopyPackageVersionsResponse CopyPackageVersions(CopyPackageVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CopyPackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = CopyPackageVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Copies package versions from one repository to another repository in the same domain. /// /// /// /// /// You must specify versions or versionRevisions. You cannot /// specify both. /// /// /// /// Container for the necessary parameters to execute the CopyPackageVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CopyPackageVersions service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for CopyPackageVersions Operation public virtual Task CopyPackageVersionsAsync(CopyPackageVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CopyPackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = CopyPackageVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDomain /// /// Creates a domain. CodeArtifact domains make it easier to manage multiple repositories /// across an organization. You can use a domain to apply permissions across many repositories /// owned by different Amazon Web Services accounts. An asset is stored only once in a /// domain, even if it's in multiple repositories. /// /// /// /// Although you can have multiple domains, we recommend a single production domain that /// contains all published artifacts so that your development teams can find and share /// packages. You can use a second pre-production domain to test changes to the production /// domain configuration. /// /// /// Container for the necessary parameters to execute the CreateDomain service method. /// /// The response from the CreateDomain service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for CreateDomain Operation public virtual CreateDomainResponse CreateDomain(CreateDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a domain. CodeArtifact domains make it easier to manage multiple repositories /// across an organization. You can use a domain to apply permissions across many repositories /// owned by different Amazon Web Services accounts. An asset is stored only once in a /// domain, even if it's in multiple repositories. /// /// /// /// Although you can have multiple domains, we recommend a single production domain that /// contains all published artifacts so that your development teams can find and share /// packages. You can use a second pre-production domain to test changes to the production /// domain configuration. /// /// /// Container for the necessary parameters to execute the CreateDomain service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDomain service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for CreateDomain Operation public virtual Task CreateDomainAsync(CreateDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateRepository /// /// Creates a repository. /// /// Container for the necessary parameters to execute the CreateRepository service method. /// /// The response from the CreateRepository service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for CreateRepository Operation public virtual CreateRepositoryResponse CreateRepository(CreateRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a 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 CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// 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 DeleteDomain /// /// Deletes a domain. You cannot delete a domain that contains repositories. If you want /// to delete a domain with repositories, first delete its repositories. /// /// Container for the necessary parameters to execute the DeleteDomain service method. /// /// The response from the DeleteDomain service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeleteDomain Operation public virtual DeleteDomainResponse DeleteDomain(DeleteDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a domain. You cannot delete a domain that contains repositories. If you want /// to delete a domain with repositories, first delete its repositories. /// /// Container for the necessary parameters to execute the DeleteDomain service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDomain service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeleteDomain Operation public virtual Task DeleteDomainAsync(DeleteDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDomainPermissionsPolicy /// /// Deletes the resource policy set on a domain. /// /// Container for the necessary parameters to execute the DeleteDomainPermissionsPolicy service method. /// /// The response from the DeleteDomainPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeleteDomainPermissionsPolicy Operation public virtual DeleteDomainPermissionsPolicyResponse DeleteDomainPermissionsPolicy(DeleteDomainPermissionsPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainPermissionsPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the resource policy set on a domain. /// /// Container for the necessary parameters to execute the DeleteDomainPermissionsPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDomainPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeleteDomainPermissionsPolicy Operation public virtual Task DeleteDomainPermissionsPolicyAsync(DeleteDomainPermissionsPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainPermissionsPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePackage /// /// Deletes a package and all associated package versions. A deleted package cannot be /// restored. To delete one or more package versions, use the DeletePackageVersions /// API. /// /// Container for the necessary parameters to execute the DeletePackage service method. /// /// The response from the DeletePackage service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeletePackage Operation public virtual DeletePackageResponse DeletePackage(DeletePackageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a package and all associated package versions. A deleted package cannot be /// restored. To delete one or more package versions, use the DeletePackageVersions /// API. /// /// Container for the necessary parameters to execute the DeletePackage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePackage service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeletePackage Operation public virtual Task DeletePackageAsync(DeletePackageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePackageVersions /// /// Deletes one or more versions of a package. A deleted package version cannot be restored /// in your repository. If you want to remove a package version from your repository and /// be able to restore it later, set its status to Archived. Archived packages /// cannot be downloaded from a repository and don't show up with list package APIs (for /// example, ListPackageVersions), /// but you can restore them using UpdatePackageVersionsStatus. /// /// Container for the necessary parameters to execute the DeletePackageVersions service method. /// /// The response from the DeletePackageVersions service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeletePackageVersions Operation public virtual DeletePackageVersionsResponse DeletePackageVersions(DeletePackageVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackageVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes one or more versions of a package. A deleted package version cannot be restored /// in your repository. If you want to remove a package version from your repository and /// be able to restore it later, set its status to Archived. Archived packages /// cannot be downloaded from a repository and don't show up with list package APIs (for /// example, ListPackageVersions), /// but you can restore them using UpdatePackageVersionsStatus. /// /// Container for the necessary parameters to execute the DeletePackageVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePackageVersions service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeletePackageVersions Operation public virtual Task DeletePackageVersionsAsync(DeletePackageVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackageVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteRepository /// /// Deletes a repository. /// /// Container for the necessary parameters to execute the DeleteRepository service method. /// /// The response from the DeleteRepository service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeleteRepository Operation public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a repository. /// /// 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 CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// 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 DeleteRepositoryPermissionsPolicy /// /// Deletes the resource policy that is set on a repository. After a resource policy /// is deleted, the permissions allowed and denied by the deleted policy are removed. /// The effect of deleting a resource policy might not be immediate. /// /// /// /// Use DeleteRepositoryPermissionsPolicy with caution. After a policy is /// deleted, Amazon Web Services users, roles, and accounts lose permissions to perform /// the repository actions granted by the deleted policy. /// /// /// /// Container for the necessary parameters to execute the DeleteRepositoryPermissionsPolicy service method. /// /// The response from the DeleteRepositoryPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeleteRepositoryPermissionsPolicy Operation public virtual DeleteRepositoryPermissionsPolicyResponse DeleteRepositoryPermissionsPolicy(DeleteRepositoryPermissionsPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryPermissionsPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the resource policy that is set on a repository. After a resource policy /// is deleted, the permissions allowed and denied by the deleted policy are removed. /// The effect of deleting a resource policy might not be immediate. /// /// /// /// Use DeleteRepositoryPermissionsPolicy with caution. After a policy is /// deleted, Amazon Web Services users, roles, and accounts lose permissions to perform /// the repository actions granted by the deleted policy. /// /// /// /// Container for the necessary parameters to execute the DeleteRepositoryPermissionsPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteRepositoryPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DeleteRepositoryPermissionsPolicy Operation public virtual Task DeleteRepositoryPermissionsPolicyAsync(DeleteRepositoryPermissionsPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryPermissionsPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDomain /// /// Returns a DomainDescription /// object that contains information about the requested domain. /// /// Container for the necessary parameters to execute the DescribeDomain service method. /// /// The response from the DescribeDomain service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DescribeDomain Operation public virtual DescribeDomainResponse DescribeDomain(DescribeDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a DomainDescription /// object that contains information about the requested domain. /// /// Container for the necessary parameters to execute the DescribeDomain service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDomain service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DescribeDomain Operation public virtual Task DescribeDomainAsync(DescribeDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDomainResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribePackage /// /// Returns a PackageDescription /// object that contains information about the requested package. /// /// Container for the necessary parameters to execute the DescribePackage service method. /// /// The response from the DescribePackage service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DescribePackage Operation public virtual DescribePackageResponse DescribePackage(DescribePackageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePackageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a PackageDescription /// object that contains information about the requested package. /// /// Container for the necessary parameters to execute the DescribePackage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribePackage service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DescribePackage Operation public virtual Task DescribePackageAsync(DescribePackageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePackageRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePackageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribePackageVersion /// /// Returns a PackageVersionDescription /// object that contains information about the requested package version. /// /// Container for the necessary parameters to execute the DescribePackageVersion service method. /// /// The response from the DescribePackageVersion service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DescribePackageVersion Operation public virtual DescribePackageVersionResponse DescribePackageVersion(DescribePackageVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePackageVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a PackageVersionDescription /// object that contains information about the requested package version. /// /// Container for the necessary parameters to execute the DescribePackageVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribePackageVersion service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DescribePackageVersion Operation public virtual Task DescribePackageVersionAsync(DescribePackageVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePackageVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeRepository /// /// Returns a RepositoryDescription object that contains detailed information /// about the requested repository. /// /// Container for the necessary parameters to execute the DescribeRepository service method. /// /// The response from the DescribeRepository service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DescribeRepository Operation public virtual DescribeRepositoryResponse DescribeRepository(DescribeRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a RepositoryDescription object that contains detailed information /// about the requested repository. /// /// Container for the necessary parameters to execute the DescribeRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeRepository service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DescribeRepository Operation public virtual Task DescribeRepositoryAsync(DescribeRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisassociateExternalConnection /// /// Removes an existing external connection from a repository. /// /// Container for the necessary parameters to execute the DisassociateExternalConnection service method. /// /// The response from the DisassociateExternalConnection service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DisassociateExternalConnection Operation public virtual DisassociateExternalConnectionResponse DisassociateExternalConnection(DisassociateExternalConnectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateExternalConnectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateExternalConnectionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes an existing external connection from a repository. /// /// Container for the necessary parameters to execute the DisassociateExternalConnection service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisassociateExternalConnection service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DisassociateExternalConnection Operation public virtual Task DisassociateExternalConnectionAsync(DisassociateExternalConnectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateExternalConnectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateExternalConnectionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DisposePackageVersions /// /// Deletes the assets in package versions and sets the package versions' status to Disposed. /// A disposed package version cannot be restored in your repository because its assets /// are deleted. /// /// /// /// To view all disposed package versions in a repository, use ListPackageVersions /// and set the status /// parameter to Disposed. /// /// /// /// To view information about a disposed package version, use DescribePackageVersion. /// /// /// /// Container for the necessary parameters to execute the DisposePackageVersions service method. /// /// The response from the DisposePackageVersions service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DisposePackageVersions Operation public virtual DisposePackageVersionsResponse DisposePackageVersions(DisposePackageVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisposePackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisposePackageVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the assets in package versions and sets the package versions' status to Disposed. /// A disposed package version cannot be restored in your repository because its assets /// are deleted. /// /// /// /// To view all disposed package versions in a repository, use ListPackageVersions /// and set the status /// parameter to Disposed. /// /// /// /// To view information about a disposed package version, use DescribePackageVersion. /// /// /// /// Container for the necessary parameters to execute the DisposePackageVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DisposePackageVersions service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for DisposePackageVersions Operation public virtual Task DisposePackageVersionsAsync(DisposePackageVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisposePackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DisposePackageVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetAuthorizationToken /// /// Generates a temporary authorization token for accessing repositories in the domain. /// This API requires the codeartifact:GetAuthorizationToken and sts:GetServiceBearerToken /// permissions. For more information about authorization tokens, see CodeArtifact /// authentication and tokens. /// /// /// /// CodeArtifact authorization tokens are valid for a period of 12 hours when created /// with the login command. You can call login periodically /// to refresh the token. When you create an authorization token with the GetAuthorizationToken /// API, you can set a custom authorization period, up to a maximum of 12 hours, with /// the durationSeconds parameter. /// /// /// /// The authorization period begins after login or GetAuthorizationToken /// is called. If login or GetAuthorizationToken is called while /// assuming a role, the token lifetime is independent of the maximum session duration /// of the role. For example, if you call sts assume-role and specify a session /// duration of 15 minutes, then generate a CodeArtifact authorization token, the token /// will be valid for the full authorization period even though this is longer than the /// 15-minute session duration. /// /// /// /// See Using /// IAM Roles for more information on controlling session duration. /// /// /// /// Container for the necessary parameters to execute the GetAuthorizationToken service method. /// /// The response from the GetAuthorizationToken service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetAuthorizationToken Operation public virtual GetAuthorizationTokenResponse GetAuthorizationToken(GetAuthorizationTokenRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAuthorizationTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAuthorizationTokenResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Generates a temporary authorization token for accessing repositories in the domain. /// This API requires the codeartifact:GetAuthorizationToken and sts:GetServiceBearerToken /// permissions. For more information about authorization tokens, see CodeArtifact /// authentication and tokens. /// /// /// /// CodeArtifact authorization tokens are valid for a period of 12 hours when created /// with the login command. You can call login periodically /// to refresh the token. When you create an authorization token with the GetAuthorizationToken /// API, you can set a custom authorization period, up to a maximum of 12 hours, with /// the durationSeconds parameter. /// /// /// /// The authorization period begins after login or GetAuthorizationToken /// is called. If login or GetAuthorizationToken is called while /// assuming a role, the token lifetime is independent of the maximum session duration /// of the role. For example, if you call sts assume-role and specify a session /// duration of 15 minutes, then generate a CodeArtifact authorization token, the token /// will be valid for the full authorization period even though this is longer than the /// 15-minute session duration. /// /// /// /// See Using /// IAM Roles for more information on controlling session duration. /// /// /// /// Container for the necessary parameters to execute the GetAuthorizationToken service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetAuthorizationToken service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetAuthorizationToken Operation public virtual Task GetAuthorizationTokenAsync(GetAuthorizationTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAuthorizationTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAuthorizationTokenResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDomainPermissionsPolicy /// /// Returns the resource policy attached to the specified domain. /// /// /// /// The policy is a resource-based policy, not an identity-based policy. For more information, /// see Identity-based /// policies and resource-based policies in the IAM User Guide. /// /// /// /// Container for the necessary parameters to execute the GetDomainPermissionsPolicy service method. /// /// The response from the GetDomainPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetDomainPermissionsPolicy Operation public virtual GetDomainPermissionsPolicyResponse GetDomainPermissionsPolicy(GetDomainPermissionsPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainPermissionsPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the resource policy attached to the specified domain. /// /// /// /// The policy is a resource-based policy, not an identity-based policy. For more information, /// see Identity-based /// policies and resource-based policies in the IAM User Guide. /// /// /// /// Container for the necessary parameters to execute the GetDomainPermissionsPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDomainPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetDomainPermissionsPolicy Operation public virtual Task GetDomainPermissionsPolicyAsync(GetDomainPermissionsPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainPermissionsPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPackageVersionAsset /// /// Returns an asset (or file) that is in a package. For example, for a Maven package /// version, use GetPackageVersionAsset to download a JAR file, /// a POM file, or any other assets in the package version. /// /// Container for the necessary parameters to execute the GetPackageVersionAsset service method. /// /// The response from the GetPackageVersionAsset service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetPackageVersionAsset Operation public virtual GetPackageVersionAssetResponse GetPackageVersionAsset(GetPackageVersionAssetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageVersionAssetRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageVersionAssetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns an asset (or file) that is in a package. For example, for a Maven package /// version, use GetPackageVersionAsset to download a JAR file, /// a POM file, or any other assets in the package version. /// /// Container for the necessary parameters to execute the GetPackageVersionAsset service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPackageVersionAsset service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetPackageVersionAsset Operation public virtual Task GetPackageVersionAssetAsync(GetPackageVersionAssetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageVersionAssetRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageVersionAssetResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPackageVersionReadme /// /// Gets the readme file or descriptive text for a package version. /// /// /// /// The returned text might contain formatting. For example, it might contain formatting /// for Markdown or reStructuredText. /// /// /// Container for the necessary parameters to execute the GetPackageVersionReadme service method. /// /// The response from the GetPackageVersionReadme service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetPackageVersionReadme Operation public virtual GetPackageVersionReadmeResponse GetPackageVersionReadme(GetPackageVersionReadmeRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageVersionReadmeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageVersionReadmeResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the readme file or descriptive text for a package version. /// /// /// /// The returned text might contain formatting. For example, it might contain formatting /// for Markdown or reStructuredText. /// /// /// Container for the necessary parameters to execute the GetPackageVersionReadme service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPackageVersionReadme service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetPackageVersionReadme Operation public virtual Task GetPackageVersionReadmeAsync(GetPackageVersionReadmeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPackageVersionReadmeRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPackageVersionReadmeResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetRepositoryEndpoint /// /// Returns the endpoint of a repository for a specific package format. A repository /// has one endpoint for each package format: /// ///
  • /// /// maven /// ///
  • /// /// npm /// ///
  • /// /// nuget /// ///
  • /// /// pypi /// ///
///
/// Container for the necessary parameters to execute the GetRepositoryEndpoint service method. /// /// The response from the GetRepositoryEndpoint service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetRepositoryEndpoint Operation public virtual GetRepositoryEndpointResponse GetRepositoryEndpoint(GetRepositoryEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the endpoint of a repository for a specific package format. A repository /// has one endpoint for each package format: /// ///
  • /// /// maven /// ///
  • /// /// npm /// ///
  • /// /// nuget /// ///
  • /// /// pypi /// ///
///
/// Container for the necessary parameters to execute the GetRepositoryEndpoint service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetRepositoryEndpoint service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetRepositoryEndpoint Operation public virtual Task GetRepositoryEndpointAsync(GetRepositoryEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryEndpointResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetRepositoryPermissionsPolicy /// /// Returns the resource policy that is set on a repository. /// /// Container for the necessary parameters to execute the GetRepositoryPermissionsPolicy service method. /// /// The response from the GetRepositoryPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetRepositoryPermissionsPolicy Operation public virtual GetRepositoryPermissionsPolicyResponse GetRepositoryPermissionsPolicy(GetRepositoryPermissionsPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryPermissionsPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the resource policy that is set on a repository. /// /// Container for the necessary parameters to execute the GetRepositoryPermissionsPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetRepositoryPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for GetRepositoryPermissionsPolicy Operation public virtual Task GetRepositoryPermissionsPolicyAsync(GetRepositoryPermissionsPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryPermissionsPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDomains /// /// Returns a list of DomainSummary /// objects for all domains owned by the Amazon Web Services account that makes this call. /// Each returned DomainSummary object contains information about a domain. /// /// Container for the necessary parameters to execute the ListDomains service method. /// /// The response from the ListDomains service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListDomains Operation public virtual ListDomainsResponse ListDomains(ListDomainsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of DomainSummary /// objects for all domains owned by the Amazon Web Services account that makes this call. /// Each returned DomainSummary object contains information about a domain. /// /// Container for the necessary parameters to execute the ListDomains service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDomains service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListDomains Operation public virtual Task ListDomainsAsync(ListDomainsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPackages /// /// Returns a list of PackageSummary /// objects for packages in a repository that match the request parameters. /// /// Container for the necessary parameters to execute the ListPackages service method. /// /// The response from the ListPackages service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListPackages Operation public virtual ListPackagesResponse ListPackages(ListPackagesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackagesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of PackageSummary /// objects for packages in a repository that match the request parameters. /// /// Container for the necessary parameters to execute the ListPackages service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPackages service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListPackages Operation public virtual Task ListPackagesAsync(ListPackagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackagesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPackageVersionAssets /// /// Returns a list of AssetSummary /// objects for assets in a package version. /// /// Container for the necessary parameters to execute the ListPackageVersionAssets service method. /// /// The response from the ListPackageVersionAssets service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListPackageVersionAssets Operation public virtual ListPackageVersionAssetsResponse ListPackageVersionAssets(ListPackageVersionAssetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackageVersionAssetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackageVersionAssetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of AssetSummary /// objects for assets in a package version. /// /// Container for the necessary parameters to execute the ListPackageVersionAssets service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPackageVersionAssets service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListPackageVersionAssets Operation public virtual Task ListPackageVersionAssetsAsync(ListPackageVersionAssetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackageVersionAssetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackageVersionAssetsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPackageVersionDependencies /// /// Returns the direct dependencies for a package version. The dependencies are returned /// as PackageDependency /// objects. CodeArtifact extracts the dependencies for a package version from the metadata /// file for the package format (for example, the package.json file for npm /// packages and the pom.xml file for Maven). Any package version dependencies /// that are not listed in the configuration file are not returned. /// /// Container for the necessary parameters to execute the ListPackageVersionDependencies service method. /// /// The response from the ListPackageVersionDependencies service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListPackageVersionDependencies Operation public virtual ListPackageVersionDependenciesResponse ListPackageVersionDependencies(ListPackageVersionDependenciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackageVersionDependenciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackageVersionDependenciesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the direct dependencies for a package version. The dependencies are returned /// as PackageDependency /// objects. CodeArtifact extracts the dependencies for a package version from the metadata /// file for the package format (for example, the package.json file for npm /// packages and the pom.xml file for Maven). Any package version dependencies /// that are not listed in the configuration file are not returned. /// /// Container for the necessary parameters to execute the ListPackageVersionDependencies service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPackageVersionDependencies service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListPackageVersionDependencies Operation public virtual Task ListPackageVersionDependenciesAsync(ListPackageVersionDependenciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackageVersionDependenciesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackageVersionDependenciesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPackageVersions /// /// Returns a list of PackageVersionSummary /// objects for package versions in a repository that match the request parameters. Package /// versions of all statuses will be returned by default when calling list-package-versions /// with no --status parameter. /// /// Container for the necessary parameters to execute the ListPackageVersions service method. /// /// The response from the ListPackageVersions service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListPackageVersions Operation public virtual ListPackageVersionsResponse ListPackageVersions(ListPackageVersionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackageVersionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of PackageVersionSummary /// objects for package versions in a repository that match the request parameters. Package /// versions of all statuses will be returned by default when calling list-package-versions /// with no --status parameter. /// /// Container for the necessary parameters to execute the ListPackageVersions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPackageVersions service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListPackageVersions Operation public virtual Task ListPackageVersionsAsync(ListPackageVersionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackageVersionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackageVersionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListRepositories /// /// Returns a list of RepositorySummary /// objects. Each RepositorySummary contains information about a repository /// in the specified Amazon Web Services account and that matches the input parameters. /// /// Container for the necessary parameters to execute the ListRepositories service method. /// /// The response from the ListRepositories service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListRepositories Operation public virtual ListRepositoriesResponse ListRepositories(ListRepositoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoriesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of RepositorySummary /// objects. Each RepositorySummary contains information about a repository /// in the specified Amazon Web Services account and that matches the input parameters. /// /// 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 CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// 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 ListRepositoriesInDomain /// /// Returns a list of RepositorySummary /// objects. Each RepositorySummary contains information about a repository /// in the specified domain and that matches the input parameters. /// /// Container for the necessary parameters to execute the ListRepositoriesInDomain service method. /// /// The response from the ListRepositoriesInDomain service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListRepositoriesInDomain Operation public virtual ListRepositoriesInDomainResponse ListRepositoriesInDomain(ListRepositoriesInDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoriesInDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoriesInDomainResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of RepositorySummary /// objects. Each RepositorySummary contains information about a repository /// in the specified domain and that matches the input parameters. /// /// Container for the necessary parameters to execute the ListRepositoriesInDomain service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListRepositoriesInDomain service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListRepositoriesInDomain Operation public virtual Task ListRepositoriesInDomainAsync(ListRepositoriesInDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListRepositoriesInDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRepositoriesInDomainResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource /// /// Gets information about Amazon Web Services tags for a specified Amazon Resource Name /// (ARN) in CodeArtifact. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about Amazon Web Services tags for a specified Amazon Resource Name /// (ARN) in CodeArtifact. /// /// 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 CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// 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 PublishPackageVersion /// /// Creates a new package version containing one or more assets (or files). /// /// /// /// The unfinished flag can be used to keep the package version in the Unfinished /// state until all of its assets have been uploaded (see Package /// version status in the CodeArtifact user guide). To set the package version’s /// status to Published, omit the unfinished flag when uploading /// the final asset, or set the status using UpdatePackageVersionStatus. /// Once a package version’s status is set to Published, it cannot change /// back to Unfinished. /// /// /// /// Only generic packages can be published using this API. For more information, see Using /// generic packages in the CodeArtifact User Guide. /// /// /// /// Container for the necessary parameters to execute the PublishPackageVersion service method. /// /// The response from the PublishPackageVersion service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for PublishPackageVersion Operation public virtual PublishPackageVersionResponse PublishPackageVersion(PublishPackageVersionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PublishPackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishPackageVersionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a new package version containing one or more assets (or files). /// /// /// /// The unfinished flag can be used to keep the package version in the Unfinished /// state until all of its assets have been uploaded (see Package /// version status in the CodeArtifact user guide). To set the package version’s /// status to Published, omit the unfinished flag when uploading /// the final asset, or set the status using UpdatePackageVersionStatus. /// Once a package version’s status is set to Published, it cannot change /// back to Unfinished. /// /// /// /// Only generic packages can be published using this API. For more information, see Using /// generic packages in the CodeArtifact User Guide. /// /// /// /// Container for the necessary parameters to execute the PublishPackageVersion service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PublishPackageVersion service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for PublishPackageVersion Operation public virtual Task PublishPackageVersionAsync(PublishPackageVersionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PublishPackageVersionRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishPackageVersionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutDomainPermissionsPolicy /// /// Sets a resource policy on a domain that specifies permissions to access it. /// /// /// /// When you call PutDomainPermissionsPolicy, the resource policy on the /// domain is ignored when evaluting permissions. This ensures that the owner of a domain /// cannot lock themselves out of the domain, which would prevent them from being able /// to update the resource policy. /// /// /// Container for the necessary parameters to execute the PutDomainPermissionsPolicy service method. /// /// The response from the PutDomainPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for PutDomainPermissionsPolicy Operation public virtual PutDomainPermissionsPolicyResponse PutDomainPermissionsPolicy(PutDomainPermissionsPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutDomainPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutDomainPermissionsPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets a resource policy on a domain that specifies permissions to access it. /// /// /// /// When you call PutDomainPermissionsPolicy, the resource policy on the /// domain is ignored when evaluting permissions. This ensures that the owner of a domain /// cannot lock themselves out of the domain, which would prevent them from being able /// to update the resource policy. /// /// /// Container for the necessary parameters to execute the PutDomainPermissionsPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutDomainPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for PutDomainPermissionsPolicy Operation public virtual Task PutDomainPermissionsPolicyAsync(PutDomainPermissionsPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutDomainPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutDomainPermissionsPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutPackageOriginConfiguration /// /// Sets the package origin configuration for a package. /// /// /// /// The package origin configuration determines how new versions of a package can be added /// to a repository. You can allow or block direct publishing of new package versions, /// or ingestion and retaining of new package versions from an external connection or /// upstream source. For more information about package origin controls and configuration, /// see Editing /// package origin controls in the CodeArtifact User Guide. /// /// /// /// PutPackageOriginConfiguration can be called on a package that doesn't /// yet exist in the repository. When called on a package that does not exist, a package /// is created in the repository with no versions and the requested restrictions are set /// on the package. This can be used to preemptively block ingesting or retaining any /// versions from external connections or upstream repositories, or to block publishing /// any versions of the package into the repository before connecting any package managers /// or publishers to the repository. /// /// /// Container for the necessary parameters to execute the PutPackageOriginConfiguration service method. /// /// The response from the PutPackageOriginConfiguration service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for PutPackageOriginConfiguration Operation public virtual PutPackageOriginConfigurationResponse PutPackageOriginConfiguration(PutPackageOriginConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutPackageOriginConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutPackageOriginConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the package origin configuration for a package. /// /// /// /// The package origin configuration determines how new versions of a package can be added /// to a repository. You can allow or block direct publishing of new package versions, /// or ingestion and retaining of new package versions from an external connection or /// upstream source. For more information about package origin controls and configuration, /// see Editing /// package origin controls in the CodeArtifact User Guide. /// /// /// /// PutPackageOriginConfiguration can be called on a package that doesn't /// yet exist in the repository. When called on a package that does not exist, a package /// is created in the repository with no versions and the requested restrictions are set /// on the package. This can be used to preemptively block ingesting or retaining any /// versions from external connections or upstream repositories, or to block publishing /// any versions of the package into the repository before connecting any package managers /// or publishers to the repository. /// /// /// Container for the necessary parameters to execute the PutPackageOriginConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutPackageOriginConfiguration service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for PutPackageOriginConfiguration Operation public virtual Task PutPackageOriginConfigurationAsync(PutPackageOriginConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutPackageOriginConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutPackageOriginConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutRepositoryPermissionsPolicy /// /// Sets the resource policy on a repository that specifies permissions to access it. /// /// /// /// /// When you call PutRepositoryPermissionsPolicy, the resource policy on /// the repository is ignored when evaluting permissions. This ensures that the owner /// of a repository cannot lock themselves out of the repository, which would prevent /// them from being able to update the resource policy. /// /// /// Container for the necessary parameters to execute the PutRepositoryPermissionsPolicy service method. /// /// The response from the PutRepositoryPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for PutRepositoryPermissionsPolicy Operation public virtual PutRepositoryPermissionsPolicyResponse PutRepositoryPermissionsPolicy(PutRepositoryPermissionsPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRepositoryPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRepositoryPermissionsPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Sets the resource policy on a repository that specifies permissions to access it. /// /// /// /// /// When you call PutRepositoryPermissionsPolicy, the resource policy on /// the repository is ignored when evaluting permissions. This ensures that the owner /// of a repository cannot lock themselves out of the repository, which would prevent /// them from being able to update the resource policy. /// /// /// Container for the necessary parameters to execute the PutRepositoryPermissionsPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutRepositoryPermissionsPolicy service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for PutRepositoryPermissionsPolicy Operation public virtual Task PutRepositoryPermissionsPolicyAsync(PutRepositoryPermissionsPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutRepositoryPermissionsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRepositoryPermissionsPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource /// /// Adds or updates tags for a resource in CodeArtifact. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds or updates tags for a resource in CodeArtifact. /// /// 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 CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource /// /// Removes tags from a resource in CodeArtifact. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes tags from a resource in CodeArtifact. /// /// 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 CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// 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 UpdatePackageVersionsStatus /// /// Updates the status of one or more versions of a package. Using UpdatePackageVersionsStatus, /// you can update the status of package versions to Archived, Published, /// or Unlisted. To set the status of a package version to Disposed, /// use DisposePackageVersions. /// /// Container for the necessary parameters to execute the UpdatePackageVersionsStatus service method. /// /// The response from the UpdatePackageVersionsStatus service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for UpdatePackageVersionsStatus Operation public virtual UpdatePackageVersionsStatusResponse UpdatePackageVersionsStatus(UpdatePackageVersionsStatusRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackageVersionsStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackageVersionsStatusResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the status of one or more versions of a package. Using UpdatePackageVersionsStatus, /// you can update the status of package versions to Archived, Published, /// or Unlisted. To set the status of a package version to Disposed, /// use DisposePackageVersions. /// /// Container for the necessary parameters to execute the UpdatePackageVersionsStatus service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdatePackageVersionsStatus service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for UpdatePackageVersionsStatus Operation public virtual Task UpdatePackageVersionsStatusAsync(UpdatePackageVersionsStatusRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackageVersionsStatusRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackageVersionsStatusResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateRepository /// /// Update the properties of a repository. /// /// Container for the necessary parameters to execute the UpdateRepository service method. /// /// The response from the UpdateRepository service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for UpdateRepository Operation public virtual UpdateRepositoryResponse UpdateRepository(UpdateRepositoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRepositoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Update the properties of a repository. /// /// Container for the necessary parameters to execute the UpdateRepository service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateRepository service method, as returned by CodeArtifact. /// /// The operation did not succeed because of an unauthorized access attempt. /// /// /// The operation did not succeed because prerequisites are not met. /// /// /// The operation did not succeed because of an error that occurred inside CodeArtifact. /// /// /// The operation did not succeed because the resource requested is not found in the /// service. /// /// /// The operation did not succeed because it would have exceeded a service limit for /// your account. /// /// /// The operation did not succeed because too many requests are sent to the service. /// /// /// The operation did not succeed because a parameter in the request was sent with an /// invalid value. /// /// REST API Reference for UpdateRepository Operation public virtual Task UpdateRepositoryAsync(UpdateRepositoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRepositoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }