/* * 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 { /// /// An object that describes an image returned by a DescribeImages operation. /// public partial class ImageDetail { private string _artifactMediaType; private string _imageDigest; private string _imageManifestMediaType; private DateTime? _imagePushedAt; private ImageScanFindingsSummary _imageScanFindingsSummary; private ImageScanStatus _imageScanStatus; private long? _imageSizeInBytes; private List _imageTags = new List(); private DateTime? _lastRecordedPullTime; private string _registryId; private string _repositoryName; /// /// Gets and sets the property ArtifactMediaType. /// /// The artifact media type of the image. /// /// public string ArtifactMediaType { get { return this._artifactMediaType; } set { this._artifactMediaType = value; } } // Check to see if ArtifactMediaType property is set internal bool IsSetArtifactMediaType() { return this._artifactMediaType != null; } /// /// Gets and sets the property ImageDigest. /// /// The sha256 digest of the image manifest. /// /// 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 ImageManifestMediaType. /// /// The media type of the image manifest. /// /// 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 ImagePushedAt. /// /// The date and time, expressed in standard JavaScript date format, at which the current /// image was pushed to the repository. /// /// public DateTime ImagePushedAt { get { return this._imagePushedAt.GetValueOrDefault(); } set { this._imagePushedAt = value; } } // Check to see if ImagePushedAt property is set internal bool IsSetImagePushedAt() { return this._imagePushedAt.HasValue; } /// /// Gets and sets the property ImageScanFindingsSummary. /// /// A summary of the last completed image scan. /// /// public ImageScanFindingsSummary ImageScanFindingsSummary { get { return this._imageScanFindingsSummary; } set { this._imageScanFindingsSummary = value; } } // Check to see if ImageScanFindingsSummary property is set internal bool IsSetImageScanFindingsSummary() { return this._imageScanFindingsSummary != null; } /// /// Gets and sets the property ImageScanStatus. /// /// The current state of the scan. /// /// public ImageScanStatus ImageScanStatus { get { return this._imageScanStatus; } set { this._imageScanStatus = value; } } // Check to see if ImageScanStatus property is set internal bool IsSetImageScanStatus() { return this._imageScanStatus != null; } /// /// Gets and sets the property ImageSizeInBytes. /// /// The size, in bytes, of the image in the repository. /// /// /// /// If the image is a manifest list, this will be the max size of all manifests in the /// list. /// /// /// /// 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, so it may return a larger image size than /// the image sizes returned by DescribeImages. /// /// /// public long ImageSizeInBytes { get { return this._imageSizeInBytes.GetValueOrDefault(); } set { this._imageSizeInBytes = value; } } // Check to see if ImageSizeInBytes property is set internal bool IsSetImageSizeInBytes() { return this._imageSizeInBytes.HasValue; } /// /// Gets and sets the property ImageTags. /// /// The list of tags associated with this image. /// /// public List ImageTags { get { return this._imageTags; } set { this._imageTags = value; } } // Check to see if ImageTags property is set internal bool IsSetImageTags() { return this._imageTags != null && this._imageTags.Count > 0; } /// /// Gets and sets the property LastRecordedPullTime. /// /// The date and time, expressed in standard JavaScript date format, when Amazon ECR recorded /// the last image pull. /// /// /// /// Amazon ECR refreshes the last image pull timestamp at least once every 24 hours. For /// example, if you pull an image once a day then the lastRecordedPullTime /// timestamp will indicate the exact time that the image was last pulled. However, if /// you pull an image once an hour, because Amazon ECR refreshes the lastRecordedPullTime /// timestamp at least once every 24 hours, the result may not be the exact time that /// the image was last pulled. /// /// /// public DateTime LastRecordedPullTime { get { return this._lastRecordedPullTime.GetValueOrDefault(); } set { this._lastRecordedPullTime = value; } } // Check to see if LastRecordedPullTime property is set internal bool IsSetLastRecordedPullTime() { return this._lastRecordedPullTime.HasValue; } /// /// Gets and sets the property RegistryId. /// /// The Amazon Web Services account ID associated with the registry to which this image /// belongs. /// /// 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 this image belongs. /// /// [AWSProperty(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; } } }