//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
//
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
///
/// Describe a container image
///
public partial class V1ContainerImage
{
///
/// Initializes a new instance of the V1ContainerImage class.
///
public V1ContainerImage()
{
CustomInit();
}
///
/// Initializes a new instance of the V1ContainerImage class.
///
/// Names by which this image is known. e.g.
/// ["k8s.gcr.io/hyperkube:v1.0.7",
/// "dockerhub.io/google_containers/hyperkube:v1.0.7"]
/// The size of the image in bytes.
public V1ContainerImage(IList names, long? sizeBytes = default(long?))
{
Names = names;
SizeBytes = sizeBytes;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets names by which this image is known. e.g.
/// ["k8s.gcr.io/hyperkube:v1.0.7",
/// "dockerhub.io/google_containers/hyperkube:v1.0.7"]
///
[JsonProperty(PropertyName = "names")]
public IList Names { get; set; }
///
/// Gets or sets the size of the image in bytes.
///
[JsonProperty(PropertyName = "sizeBytes")]
public long? SizeBytes { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
if (Names == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Names");
}
}
}
}