/* * 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-2015-09-21.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ECR.Model { /// /// Container for the parameters to the UploadLayerPart operation. /// 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 (or about 20MB). The UploadLayerPart /// API is called once per 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. /// /// /// public partial class UploadLayerPartRequest : AmazonECRRequest { private MemoryStream _layerPartBlob; private long? _partFirstByte; private long? _partLastByte; private string _registryId; private string _repositoryName; private string _uploadId; /// /// Gets and sets the property LayerPartBlob. /// /// The base64-encoded layer part payload. /// /// [AWSProperty(Required=true, Min=0, Max=20971520)] public MemoryStream LayerPartBlob { get { return this._layerPartBlob; } set { this._layerPartBlob = value; } } // Check to see if LayerPartBlob property is set internal bool IsSetLayerPartBlob() { return this._layerPartBlob != null; } /// /// Gets and sets the property PartFirstByte. /// /// The position of the first byte of the layer part witin the overall image layer. /// /// [AWSProperty(Required=true, Min=0)] public long PartFirstByte { get { return this._partFirstByte.GetValueOrDefault(); } set { this._partFirstByte = value; } } // Check to see if PartFirstByte property is set internal bool IsSetPartFirstByte() { return this._partFirstByte.HasValue; } /// /// Gets and sets the property PartLastByte. /// /// The position of the last byte of the layer part within the overall image layer. /// /// [AWSProperty(Required=true, Min=0)] public long PartLastByte { get { return this._partLastByte.GetValueOrDefault(); } set { this._partLastByte = value; } } // Check to see if PartLastByte property is set internal bool IsSetPartLastByte() { return this._partLastByte.HasValue; } /// /// Gets and sets the property RegistryId. /// /// The Amazon Web Services account ID associated with the registry to which you are uploading /// layer parts. If you do not specify a registry, the default registry is assumed. /// /// public string RegistryId { get { return this._registryId; } set { this._registryId = value; } } // Check to see if RegistryId property is set internal bool IsSetRegistryId() { return this._registryId != null; } /// /// Gets and sets the property RepositoryName. /// /// The name of the repository to which you are uploading layer parts. /// /// [AWSProperty(Required=true, Min=2, Max=256)] public string RepositoryName { get { return this._repositoryName; } set { this._repositoryName = value; } } // Check to see if RepositoryName property is set internal bool IsSetRepositoryName() { return this._repositoryName != null; } /// /// Gets and sets the property UploadId. /// /// The upload ID from a previous InitiateLayerUpload operation to associate with /// the layer part upload. /// /// [AWSProperty(Required=true)] public string UploadId { get { return this._uploadId; } set { this._uploadId = value; } } // Check to see if UploadId property is set internal bool IsSetUploadId() { return this._uploadId != null; } } }