//
// 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 Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
///
/// VolumeAttachmentStatus is the status of a VolumeAttachment request.
///
public partial class V1beta1VolumeAttachmentStatus
{
///
/// Initializes a new instance of the V1beta1VolumeAttachmentStatus
/// class.
///
public V1beta1VolumeAttachmentStatus()
{
CustomInit();
}
///
/// Initializes a new instance of the V1beta1VolumeAttachmentStatus
/// class.
///
/// Indicates the volume is successfully
/// attached. This field must only be set by the entity completing the
/// attach operation, i.e. the external-attacher.
/// The last error encountered during attach
/// operation, if any. This field must only be set by the entity
/// completing the attach operation, i.e. the
/// external-attacher.
/// Upon successful attach, this field
/// is populated with any information returned by the attach operation
/// that must be passed into subsequent WaitForAttach or Mount calls.
/// This field must only be set by the entity completing the attach
/// operation, i.e. the external-attacher.
/// The last error encountered during detach
/// operation, if any. This field must only be set by the entity
/// completing the detach operation, i.e. the
/// external-attacher.
public V1beta1VolumeAttachmentStatus(bool attached, V1beta1VolumeError attachError = default(V1beta1VolumeError), IDictionary attachmentMetadata = default(IDictionary), V1beta1VolumeError detachError = default(V1beta1VolumeError))
{
AttachError = attachError;
Attached = attached;
AttachmentMetadata = attachmentMetadata;
DetachError = detachError;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets the last error encountered during attach operation, if
/// any. This field must only be set by the entity completing the
/// attach operation, i.e. the external-attacher.
///
[JsonProperty(PropertyName = "attachError")]
public V1beta1VolumeError AttachError { get; set; }
///
/// Gets or sets indicates the volume is successfully attached. This
/// field must only be set by the entity completing the attach
/// operation, i.e. the external-attacher.
///
[JsonProperty(PropertyName = "attached")]
public bool Attached { get; set; }
///
/// Gets or sets upon successful attach, this field is populated with
/// any information returned by the attach operation that must be
/// passed into subsequent WaitForAttach or Mount calls. This field
/// must only be set by the entity completing the attach operation,
/// i.e. the external-attacher.
///
[JsonProperty(PropertyName = "attachmentMetadata")]
public IDictionary AttachmentMetadata { get; set; }
///
/// Gets or sets the last error encountered during detach operation, if
/// any. This field must only be set by the entity completing the
/// detach operation, i.e. the external-attacher.
///
[JsonProperty(PropertyName = "detachError")]
public V1beta1VolumeError DetachError { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
}
}
}