/* * 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 ecr-public-2020-10-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.ECRPublic.Model; using Amazon.ECRPublic.Model.Internal.MarshallTransformations; using Amazon.ECRPublic.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ECRPublic { /// /// Implementation for accessing ECRPublic /// /// Amazon Elastic Container Registry Public /// /// Amazon Elastic Container Registry Public (Amazon ECR Public) is a managed container /// image registry service. Amazon ECR provides both public and private registries to /// host your container images. You can use the Docker CLI or your preferred client to /// push, pull, and manage images. Amazon ECR provides a secure, scalable, and reliable /// registry for your Docker or Open Container Initiative (OCI) images. Amazon ECR supports /// public repositories with this API. For information about the Amazon ECR API for private /// repositories, see Amazon /// Elastic Container Registry API Reference. /// /// public partial class AmazonECRPublicClient : AmazonServiceClient, IAmazonECRPublic { private static IServiceMetadata serviceMetadata = new AmazonECRPublicMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IECRPublicPaginatorFactory _paginators; /// /// Paginators for the service /// public IECRPublicPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ECRPublicPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonECRPublicClient 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 AmazonECRPublicClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonECRPublicConfig()) { } /// /// Constructs AmazonECRPublicClient 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 AmazonECRPublicClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonECRPublicConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonECRPublicClient 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 AmazonECRPublicClient Configuration Object public AmazonECRPublicClient(AmazonECRPublicConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonECRPublicClient with AWS Credentials /// /// AWS Credentials public AmazonECRPublicClient(AWSCredentials credentials) : this(credentials, new AmazonECRPublicConfig()) { } /// /// Constructs AmazonECRPublicClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonECRPublicClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonECRPublicConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonECRPublicClient with AWS Credentials and an /// AmazonECRPublicClient Configuration object. /// /// AWS Credentials /// The AmazonECRPublicClient Configuration Object public AmazonECRPublicClient(AWSCredentials credentials, AmazonECRPublicConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonECRPublicClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonECRPublicClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonECRPublicConfig()) { } /// /// Constructs AmazonECRPublicClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonECRPublicClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonECRPublicConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonECRPublicClient with AWS Access Key ID, AWS Secret Key and an /// AmazonECRPublicClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonECRPublicClient Configuration Object public AmazonECRPublicClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonECRPublicConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonECRPublicClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonECRPublicClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonECRPublicConfig()) { } /// /// Constructs AmazonECRPublicClient 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 AmazonECRPublicClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonECRPublicConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonECRPublicClient with AWS Access Key ID, AWS Secret Key and an /// AmazonECRPublicClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonECRPublicClient Configuration Object public AmazonECRPublicClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonECRPublicConfig 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 AmazonECRPublicEndpointResolver()); } /// /// 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 BatchCheckLayerAvailability /// /// Checks the availability of one or more image layers that are within a repository in /// a public registry. When an image is pushed to a repository, each image layer is checked /// to verify if it has been uploaded before. If it has been uploaded, then the image /// layer is skipped. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the BatchCheckLayerAvailability service method. /// /// The response from the BatchCheckLayerAvailability service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The registry doesn't exist. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for BatchCheckLayerAvailability Operation public virtual BatchCheckLayerAvailabilityResponse BatchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchCheckLayerAvailabilityRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchCheckLayerAvailabilityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchCheckLayerAvailability operation. /// /// /// Container for the necessary parameters to execute the BatchCheckLayerAvailability operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchCheckLayerAvailability /// operation. /// REST API Reference for BatchCheckLayerAvailability Operation public virtual IAsyncResult BeginBatchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchCheckLayerAvailabilityRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchCheckLayerAvailabilityResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchCheckLayerAvailability operation. /// /// /// The IAsyncResult returned by the call to BeginBatchCheckLayerAvailability. /// /// Returns a BatchCheckLayerAvailabilityResult from ECRPublic. /// REST API Reference for BatchCheckLayerAvailability Operation public virtual BatchCheckLayerAvailabilityResponse EndBatchCheckLayerAvailability(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region BatchDeleteImage /// /// Deletes a list of specified images that are within a repository in a public registry. /// Images are specified with either an imageTag or imageDigest. /// /// /// /// You can remove a tag from an image by specifying the image's tag in your request. /// When you remove the last tag from an image, the image is deleted from your repository. /// /// /// /// You can completely delete an image (and all of its tags) by specifying the digest /// of the image in your request. /// /// /// Container for the necessary parameters to execute the BatchDeleteImage service method. /// /// The response from the BatchDeleteImage service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for BatchDeleteImage Operation public virtual BatchDeleteImageResponse BatchDeleteImage(BatchDeleteImageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteImageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteImageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BatchDeleteImage operation. /// /// /// Container for the necessary parameters to execute the BatchDeleteImage operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDeleteImage /// operation. /// REST API Reference for BatchDeleteImage Operation public virtual IAsyncResult BeginBatchDeleteImage(BatchDeleteImageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteImageRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteImageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the BatchDeleteImage operation. /// /// /// The IAsyncResult returned by the call to BeginBatchDeleteImage. /// /// Returns a BatchDeleteImageResult from ECRPublic. /// REST API Reference for BatchDeleteImage Operation public virtual BatchDeleteImageResponse EndBatchDeleteImage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CompleteLayerUpload /// /// Informs Amazon ECR that the image layer upload is complete for a specified public /// registry, repository name, and upload ID. You can optionally provide a sha256 /// digest of the image layer for data validation purposes. /// /// /// /// When an image is pushed, the CompleteLayerUpload API is called once for each new image /// layer to verify that the upload is complete. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the CompleteLayerUpload service method. /// /// The response from the CompleteLayerUpload service method, as returned by ECRPublic. /// /// The specified layer upload doesn't contain any layer parts. /// /// /// The layer digest calculation performed by Amazon ECR when the image layer doesn't /// match the digest specified. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The image layer already exists in the associated repository. /// /// /// Layer parts must be at least 5 MiB in size. /// /// /// The registry doesn't exist. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// /// The upload can't be found, or the specified upload ID isn't valid for this repository. /// /// REST API Reference for CompleteLayerUpload Operation public virtual CompleteLayerUploadResponse CompleteLayerUpload(CompleteLayerUploadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLayerUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLayerUploadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CompleteLayerUpload operation. /// /// /// Container for the necessary parameters to execute the CompleteLayerUpload operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCompleteLayerUpload /// operation. /// REST API Reference for CompleteLayerUpload Operation public virtual IAsyncResult BeginCompleteLayerUpload(CompleteLayerUploadRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLayerUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLayerUploadResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CompleteLayerUpload operation. /// /// /// The IAsyncResult returned by the call to BeginCompleteLayerUpload. /// /// Returns a CompleteLayerUploadResult from ECRPublic. /// REST API Reference for CompleteLayerUpload Operation public virtual CompleteLayerUploadResponse EndCompleteLayerUpload(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateRepository /// /// Creates a repository in a public registry. For more information, see Amazon /// ECR repositories in the Amazon Elastic Container Registry User Guide. /// /// Container for the necessary parameters to execute the CreateRepository service method. /// /// The response from the CreateRepository service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// An invalid parameter has been specified. Tag keys can have a maximum character length /// of 128 characters, and tag values can have a maximum length of 256 characters. /// /// /// The operation didn't succeed because it would have exceeded a service limit for your /// account. For more information, see Amazon /// ECR Service Quotas in the Amazon Elastic Container Registry User Guide. /// /// /// The specified repository already exists in the specified registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The list of tags on the repository is over the limit. The maximum number of tags that /// can be applied to a repository is 50. /// /// /// The action isn't supported in this Region. /// /// 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); } /// /// Initiates the asynchronous execution of the CreateRepository operation. /// /// /// Container for the necessary parameters to execute the CreateRepository operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateRepository /// operation. /// REST API Reference for CreateRepository Operation public virtual IAsyncResult BeginCreateRepository(CreateRepositoryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRepositoryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateRepository operation. /// /// /// The IAsyncResult returned by the call to BeginCreateRepository. /// /// Returns a CreateRepositoryResult from ECRPublic. /// REST API Reference for CreateRepository Operation public virtual CreateRepositoryResponse EndCreateRepository(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteRepository /// /// Deletes a repository in a public registry. If the repository contains images, you /// must either manually delete all images in the repository or use the force /// option. This option deletes all images on your behalf before deleting the repository. /// /// Container for the necessary parameters to execute the DeleteRepository service method. /// /// The response from the DeleteRepository service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository contains images. To delete a repository that contains images, /// you must force the deletion with the force parameter. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// 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); } /// /// Initiates the asynchronous execution of the DeleteRepository operation. /// /// /// Container for the necessary parameters to execute the DeleteRepository operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRepository /// operation. /// REST API Reference for DeleteRepository Operation public virtual IAsyncResult BeginDeleteRepository(DeleteRepositoryRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteRepository operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteRepository. /// /// Returns a DeleteRepositoryResult from ECRPublic. /// REST API Reference for DeleteRepository Operation public virtual DeleteRepositoryResponse EndDeleteRepository(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteRepositoryPolicy /// /// Deletes the repository policy that's associated with the specified repository. /// /// Container for the necessary parameters to execute the DeleteRepositoryPolicy service method. /// /// The response from the DeleteRepositoryPolicy service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// The specified repository and registry combination doesn't have an associated repository /// policy. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for DeleteRepositoryPolicy Operation public virtual DeleteRepositoryPolicyResponse DeleteRepositoryPolicy(DeleteRepositoryPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteRepositoryPolicy operation. /// /// /// Container for the necessary parameters to execute the DeleteRepositoryPolicy operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteRepositoryPolicy /// operation. /// REST API Reference for DeleteRepositoryPolicy Operation public virtual IAsyncResult BeginDeleteRepositoryPolicy(DeleteRepositoryPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteRepositoryPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteRepositoryPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteRepositoryPolicy. /// /// Returns a DeleteRepositoryPolicyResult from ECRPublic. /// REST API Reference for DeleteRepositoryPolicy Operation public virtual DeleteRepositoryPolicyResponse EndDeleteRepositoryPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeImages /// /// Returns metadata that's related to the images in a repository in a public registry. /// /// /// /// Beginning with Docker version 1.9, the Docker client compresses image layers before /// pushing them to a V2 Docker registry. The output of the docker images /// command shows the uncompressed image size. Therefore, it might return a larger image /// size than the image sizes that are returned by DescribeImages. /// /// /// /// Container for the necessary parameters to execute the DescribeImages service method. /// /// The response from the DescribeImages service method, as returned by ECRPublic. /// /// The image requested doesn't exist in the specified repository. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for DescribeImages Operation public virtual DescribeImagesResponse DescribeImages(DescribeImagesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImagesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImagesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeImages operation. /// /// /// Container for the necessary parameters to execute the DescribeImages operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeImages /// operation. /// REST API Reference for DescribeImages Operation public virtual IAsyncResult BeginDescribeImages(DescribeImagesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImagesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImagesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeImages operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeImages. /// /// Returns a DescribeImagesResult from ECRPublic. /// REST API Reference for DescribeImages Operation public virtual DescribeImagesResponse EndDescribeImages(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeImageTags /// /// Returns the image tag details for a repository in a public registry. /// /// Container for the necessary parameters to execute the DescribeImageTags service method. /// /// The response from the DescribeImageTags service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for DescribeImageTags Operation public virtual DescribeImageTagsResponse DescribeImageTags(DescribeImageTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImageTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImageTagsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeImageTags operation. /// /// /// Container for the necessary parameters to execute the DescribeImageTags operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeImageTags /// operation. /// REST API Reference for DescribeImageTags Operation public virtual IAsyncResult BeginDescribeImageTags(DescribeImageTagsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeImageTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeImageTagsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeImageTags operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeImageTags. /// /// Returns a DescribeImageTagsResult from ECRPublic. /// REST API Reference for DescribeImageTags Operation public virtual DescribeImageTagsResponse EndDescribeImageTags(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeRegistries /// /// Returns details for a public registry. /// /// Container for the necessary parameters to execute the DescribeRegistries service method. /// /// The response from the DescribeRegistries service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for DescribeRegistries Operation public virtual DescribeRegistriesResponse DescribeRegistries(DescribeRegistriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRegistriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRegistriesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeRegistries operation. /// /// /// Container for the necessary parameters to execute the DescribeRegistries operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRegistries /// operation. /// REST API Reference for DescribeRegistries Operation public virtual IAsyncResult BeginDescribeRegistries(DescribeRegistriesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRegistriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRegistriesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeRegistries operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeRegistries. /// /// Returns a DescribeRegistriesResult from ECRPublic. /// REST API Reference for DescribeRegistries Operation public virtual DescribeRegistriesResponse EndDescribeRegistries(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeRepositories /// /// Describes repositories that are in a public registry. /// /// Container for the necessary parameters to execute the DescribeRepositories service method. /// /// The response from the DescribeRepositories service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for DescribeRepositories Operation public virtual DescribeRepositoriesResponse DescribeRepositories(DescribeRepositoriesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoriesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeRepositories operation. /// /// /// Container for the necessary parameters to execute the DescribeRepositories operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeRepositories /// operation. /// REST API Reference for DescribeRepositories Operation public virtual IAsyncResult BeginDescribeRepositories(DescribeRepositoriesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeRepositoriesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeRepositoriesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeRepositories operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeRepositories. /// /// Returns a DescribeRepositoriesResult from ECRPublic. /// REST API Reference for DescribeRepositories Operation public virtual DescribeRepositoriesResponse EndDescribeRepositories(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetAuthorizationToken /// /// Retrieves an authorization token. An authorization token represents your IAM authentication /// credentials. You can use it to access any Amazon ECR registry that your IAM principal /// has access to. The authorization token is valid for 12 hours. This API requires the /// ecr-public:GetAuthorizationToken and sts:GetServiceBearerToken /// permissions. /// /// Container for the necessary parameters to execute the GetAuthorizationToken service method. /// /// The response from the GetAuthorizationToken service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// 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); } /// /// Initiates the asynchronous execution of the GetAuthorizationToken operation. /// /// /// Container for the necessary parameters to execute the GetAuthorizationToken operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAuthorizationToken /// operation. /// REST API Reference for GetAuthorizationToken Operation public virtual IAsyncResult BeginGetAuthorizationToken(GetAuthorizationTokenRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAuthorizationTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAuthorizationTokenResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetAuthorizationToken operation. /// /// /// The IAsyncResult returned by the call to BeginGetAuthorizationToken. /// /// Returns a GetAuthorizationTokenResult from ECRPublic. /// REST API Reference for GetAuthorizationToken Operation public virtual GetAuthorizationTokenResponse EndGetAuthorizationToken(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetRegistryCatalogData /// /// Retrieves catalog metadata for a public registry. /// /// Container for the necessary parameters to execute the GetRegistryCatalogData service method. /// /// The response from the GetRegistryCatalogData service method, as returned by ECRPublic. /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for GetRegistryCatalogData Operation public virtual GetRegistryCatalogDataResponse GetRegistryCatalogData(GetRegistryCatalogDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRegistryCatalogDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRegistryCatalogDataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetRegistryCatalogData operation. /// /// /// Container for the necessary parameters to execute the GetRegistryCatalogData operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRegistryCatalogData /// operation. /// REST API Reference for GetRegistryCatalogData Operation public virtual IAsyncResult BeginGetRegistryCatalogData(GetRegistryCatalogDataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetRegistryCatalogDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRegistryCatalogDataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetRegistryCatalogData operation. /// /// /// The IAsyncResult returned by the call to BeginGetRegistryCatalogData. /// /// Returns a GetRegistryCatalogDataResult from ECRPublic. /// REST API Reference for GetRegistryCatalogData Operation public virtual GetRegistryCatalogDataResponse EndGetRegistryCatalogData(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetRepositoryCatalogData /// /// Retrieve catalog metadata for a repository in a public registry. This metadata is /// displayed publicly in the Amazon ECR Public Gallery. /// /// Container for the necessary parameters to execute the GetRepositoryCatalogData service method. /// /// The response from the GetRepositoryCatalogData service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The repository catalog data doesn't exist. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for GetRepositoryCatalogData Operation public virtual GetRepositoryCatalogDataResponse GetRepositoryCatalogData(GetRepositoryCatalogDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryCatalogDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryCatalogDataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetRepositoryCatalogData operation. /// /// /// Container for the necessary parameters to execute the GetRepositoryCatalogData operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRepositoryCatalogData /// operation. /// REST API Reference for GetRepositoryCatalogData Operation public virtual IAsyncResult BeginGetRepositoryCatalogData(GetRepositoryCatalogDataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryCatalogDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryCatalogDataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetRepositoryCatalogData operation. /// /// /// The IAsyncResult returned by the call to BeginGetRepositoryCatalogData. /// /// Returns a GetRepositoryCatalogDataResult from ECRPublic. /// REST API Reference for GetRepositoryCatalogData Operation public virtual GetRepositoryCatalogDataResponse EndGetRepositoryCatalogData(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetRepositoryPolicy /// /// Retrieves the repository policy for the specified repository. /// /// Container for the necessary parameters to execute the GetRepositoryPolicy service method. /// /// The response from the GetRepositoryPolicy service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// The specified repository and registry combination doesn't have an associated repository /// policy. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for GetRepositoryPolicy Operation public virtual GetRepositoryPolicyResponse GetRepositoryPolicy(GetRepositoryPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetRepositoryPolicy operation. /// /// /// Container for the necessary parameters to execute the GetRepositoryPolicy operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRepositoryPolicy /// operation. /// REST API Reference for GetRepositoryPolicy Operation public virtual IAsyncResult BeginGetRepositoryPolicy(GetRepositoryPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetRepositoryPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetRepositoryPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetRepositoryPolicy. /// /// Returns a GetRepositoryPolicyResult from ECRPublic. /// REST API Reference for GetRepositoryPolicy Operation public virtual GetRepositoryPolicyResponse EndGetRepositoryPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region InitiateLayerUpload /// /// Notifies Amazon ECR that you intend to upload an image layer. /// /// /// /// When an image is pushed, the InitiateLayerUpload API is called once for each image /// layer that hasn't already been uploaded. Whether an image layer uploads is determined /// by the BatchCheckLayerAvailability API action. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the InitiateLayerUpload service method. /// /// The response from the InitiateLayerUpload service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The registry doesn't exist. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for InitiateLayerUpload Operation public virtual InitiateLayerUploadResponse InitiateLayerUpload(InitiateLayerUploadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = InitiateLayerUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = InitiateLayerUploadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the InitiateLayerUpload operation. /// /// /// Container for the necessary parameters to execute the InitiateLayerUpload operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndInitiateLayerUpload /// operation. /// REST API Reference for InitiateLayerUpload Operation public virtual IAsyncResult BeginInitiateLayerUpload(InitiateLayerUploadRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = InitiateLayerUploadRequestMarshaller.Instance; options.ResponseUnmarshaller = InitiateLayerUploadResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the InitiateLayerUpload operation. /// /// /// The IAsyncResult returned by the call to BeginInitiateLayerUpload. /// /// Returns a InitiateLayerUploadResult from ECRPublic. /// REST API Reference for InitiateLayerUpload Operation public virtual InitiateLayerUploadResponse EndInitiateLayerUpload(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// List the tags for an Amazon ECR Public resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from ECRPublic. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutImage /// /// Creates or updates the image manifest and tags that are associated with an image. /// /// /// /// When an image is pushed and all new image layers have been uploaded, the PutImage /// API is called once to create or update the image manifest and the tags that are associated /// with the image. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the PutImage service method. /// /// The response from the PutImage service method, as returned by ECRPublic. /// /// The specified image has already been pushed, and there were no changes to the manifest /// or image tag after the last push. /// /// /// The specified image digest doesn't match the digest that Amazon ECR calculated for /// the image. /// /// /// The specified image is tagged with a tag that already exists. The repository is configured /// for tag immutability. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified layers can't be found, or the specified layer isn't valid for this repository. /// /// /// The operation didn't succeed because it would have exceeded a service limit for your /// account. For more information, see Amazon /// ECR Service Quotas in the Amazon Elastic Container Registry User Guide. /// /// /// The manifest list is referencing an image that doesn't exist. /// /// /// The registry doesn't exist. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for PutImage Operation public virtual PutImageResponse PutImage(PutImageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutImageRequestMarshaller.Instance; options.ResponseUnmarshaller = PutImageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutImage operation. /// /// /// Container for the necessary parameters to execute the PutImage operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutImage /// operation. /// REST API Reference for PutImage Operation public virtual IAsyncResult BeginPutImage(PutImageRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutImageRequestMarshaller.Instance; options.ResponseUnmarshaller = PutImageResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutImage operation. /// /// /// The IAsyncResult returned by the call to BeginPutImage. /// /// Returns a PutImageResult from ECRPublic. /// REST API Reference for PutImage Operation public virtual PutImageResponse EndPutImage(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutRegistryCatalogData /// /// Create or update the catalog data for a public registry. /// /// Container for the necessary parameters to execute the PutRegistryCatalogData service method. /// /// The response from the PutRegistryCatalogData service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for PutRegistryCatalogData Operation public virtual PutRegistryCatalogDataResponse PutRegistryCatalogData(PutRegistryCatalogDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRegistryCatalogDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRegistryCatalogDataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutRegistryCatalogData operation. /// /// /// Container for the necessary parameters to execute the PutRegistryCatalogData operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutRegistryCatalogData /// operation. /// REST API Reference for PutRegistryCatalogData Operation public virtual IAsyncResult BeginPutRegistryCatalogData(PutRegistryCatalogDataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutRegistryCatalogDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRegistryCatalogDataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutRegistryCatalogData operation. /// /// /// The IAsyncResult returned by the call to BeginPutRegistryCatalogData. /// /// Returns a PutRegistryCatalogDataResult from ECRPublic. /// REST API Reference for PutRegistryCatalogData Operation public virtual PutRegistryCatalogDataResponse EndPutRegistryCatalogData(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutRepositoryCatalogData /// /// Creates or updates the catalog data for a repository in a public registry. /// /// Container for the necessary parameters to execute the PutRepositoryCatalogData service method. /// /// The response from the PutRepositoryCatalogData service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for PutRepositoryCatalogData Operation public virtual PutRepositoryCatalogDataResponse PutRepositoryCatalogData(PutRepositoryCatalogDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutRepositoryCatalogDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRepositoryCatalogDataResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutRepositoryCatalogData operation. /// /// /// Container for the necessary parameters to execute the PutRepositoryCatalogData operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutRepositoryCatalogData /// operation. /// REST API Reference for PutRepositoryCatalogData Operation public virtual IAsyncResult BeginPutRepositoryCatalogData(PutRepositoryCatalogDataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutRepositoryCatalogDataRequestMarshaller.Instance; options.ResponseUnmarshaller = PutRepositoryCatalogDataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutRepositoryCatalogData operation. /// /// /// The IAsyncResult returned by the call to BeginPutRepositoryCatalogData. /// /// Returns a PutRepositoryCatalogDataResult from ECRPublic. /// REST API Reference for PutRepositoryCatalogData Operation public virtual PutRepositoryCatalogDataResponse EndPutRepositoryCatalogData(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region SetRepositoryPolicy /// /// Applies a repository policy to the specified public repository to control access permissions. /// For more information, see Amazon /// ECR Repository Policies in the Amazon Elastic Container Registry User Guide. /// /// Container for the necessary parameters to execute the SetRepositoryPolicy service method. /// /// The response from the SetRepositoryPolicy service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for SetRepositoryPolicy Operation public virtual SetRepositoryPolicyResponse SetRepositoryPolicy(SetRepositoryPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetRepositoryPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SetRepositoryPolicy operation. /// /// /// Container for the necessary parameters to execute the SetRepositoryPolicy operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetRepositoryPolicy /// operation. /// REST API Reference for SetRepositoryPolicy Operation public virtual IAsyncResult BeginSetRepositoryPolicy(SetRepositoryPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetRepositoryPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = SetRepositoryPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the SetRepositoryPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginSetRepositoryPolicy. /// /// Returns a SetRepositoryPolicyResult from ECRPublic. /// REST API Reference for SetRepositoryPolicy Operation public virtual SetRepositoryPolicyResponse EndSetRepositoryPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// Associates the specified tags to a resource with the specified resourceArn. /// If existing tags on a resource aren't specified in the request parameters, they aren't /// changed. When a resource is deleted, the tags associated with that resource are also /// deleted. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// An invalid parameter has been specified. Tag keys can have a maximum character length /// of 128 characters, and tag values can have a maximum length of 256 characters. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The list of tags on the repository is over the limit. The maximum number of tags that /// can be applied to a repository is 50. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from ECRPublic. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Deletes specified tags from a resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by ECRPublic. /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// An invalid parameter has been specified. Tag keys can have a maximum character length /// of 128 characters, and tag values can have a maximum length of 256 characters. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The list of tags on the repository is over the limit. The maximum number of tags that /// can be applied to a repository is 50. /// /// /// The action isn't supported in this Region. /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from ECRPublic. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UploadLayerPart /// /// Uploads an image layer part to Amazon ECR. /// /// /// /// When an image is pushed, each new image layer is uploaded in parts. The maximum size /// of each image layer part can be 20971520 bytes (about 20MB). The UploadLayerPart API /// is called once for each new image layer part. /// /// /// /// This operation is used by the Amazon ECR proxy and is not generally used by customers /// for pulling and pushing images. In most cases, you should use the docker /// CLI to pull, tag, and push images. /// /// /// /// Container for the necessary parameters to execute the UploadLayerPart service method. /// /// The response from the UploadLayerPart service method, as returned by ECRPublic. /// /// The layer part size isn't valid, or the first byte specified isn't consecutive to /// the last byte of a previous layer part upload. /// /// /// The specified parameter is invalid. Review the available parameters for the API request. /// /// /// The operation didn't succeed because it would have exceeded a service limit for your /// account. For more information, see Amazon /// ECR Service Quotas in the Amazon Elastic Container Registry User Guide. /// /// /// The registry doesn't exist. /// /// /// The specified repository can't be found. Check the spelling of the specified repository /// and ensure that you're performing operations on the correct registry. /// /// /// These errors are usually caused by a server-side issue. /// /// /// The action isn't supported in this Region. /// /// /// The upload can't be found, or the specified upload ID isn't valid for this repository. /// /// REST API Reference for UploadLayerPart Operation public virtual UploadLayerPartResponse UploadLayerPart(UploadLayerPartRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UploadLayerPartRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadLayerPartResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UploadLayerPart operation. /// /// /// Container for the necessary parameters to execute the UploadLayerPart operation on AmazonECRPublicClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUploadLayerPart /// operation. /// REST API Reference for UploadLayerPart Operation public virtual IAsyncResult BeginUploadLayerPart(UploadLayerPartRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UploadLayerPartRequestMarshaller.Instance; options.ResponseUnmarshaller = UploadLayerPartResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UploadLayerPart operation. /// /// /// The IAsyncResult returned by the call to BeginUploadLayerPart. /// /// Returns a UploadLayerPartResult from ECRPublic. /// REST API Reference for UploadLayerPart Operation public virtual UploadLayerPartResponse EndUploadLayerPart(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }