/*
* 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.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.ECRPublic.Model
{
///
/// Container for the parameters to the PutImage operation.
/// 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.
///
///
///
public partial class PutImageRequest : AmazonECRPublicRequest
{
private string _imageDigest;
private string _imageManifest;
private string _imageManifestMediaType;
private string _imageTag;
private string _registryId;
private string _repositoryName;
///
/// Gets and sets the property ImageDigest.
///
/// The image digest of the image manifest that corresponds to the image.
///
///
public string ImageDigest
{
get { return this._imageDigest; }
set { this._imageDigest = value; }
}
// Check to see if ImageDigest property is set
internal bool IsSetImageDigest()
{
return this._imageDigest != null;
}
///
/// Gets and sets the property ImageManifest.
///
/// The image manifest that corresponds to the image to be uploaded.
///
///
[AWSProperty(Required=true, Min=1, Max=4194304)]
public string ImageManifest
{
get { return this._imageManifest; }
set { this._imageManifest = value; }
}
// Check to see if ImageManifest property is set
internal bool IsSetImageManifest()
{
return this._imageManifest != null;
}
///
/// Gets and sets the property ImageManifestMediaType.
///
/// The media type of the image manifest. If you push an image manifest that doesn't contain
/// the mediaType
field, you must specify the imageManifestMediaType
/// in the request.
///
///
public string ImageManifestMediaType
{
get { return this._imageManifestMediaType; }
set { this._imageManifestMediaType = value; }
}
// Check to see if ImageManifestMediaType property is set
internal bool IsSetImageManifestMediaType()
{
return this._imageManifestMediaType != null;
}
///
/// Gets and sets the property ImageTag.
///
/// The tag to associate with the image. This parameter is required for images that use
/// the Docker Image Manifest V2 Schema 2 or Open Container Initiative (OCI) formats.
///
///
[AWSProperty(Min=1, Max=300)]
public string ImageTag
{
get { return this._imageTag; }
set { this._imageTag = value; }
}
// Check to see if ImageTag property is set
internal bool IsSetImageTag()
{
return this._imageTag != null;
}
///
/// Gets and sets the property RegistryId.
///
/// The Amazon Web Services account ID, or registry alias, that's associated with the
/// public registry that contains the repository where the image is put. If you do not
/// specify a registry, the default public registry is assumed.
///
///
[AWSProperty(Min=2, Max=50)]
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 where the image is put.
///
///
[AWSProperty(Required=true, Min=2, Max=205)]
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;
}
}
}