//
// 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.Linq;
///
/// Status is a return value for calls that don't return other objects.
///
public partial class V1Status
{
///
/// Initializes a new instance of the V1Status class.
///
public V1Status()
{
CustomInit();
}
///
/// Initializes a new instance of the V1Status class.
///
/// APIVersion defines the versioned schema of
/// this representation of an object. Servers should convert recognized
/// schemas to the latest internal value, and may reject unrecognized
/// values. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
/// Suggested HTTP return code for this status, 0 if
/// not set.
/// Extended data associated with the reason.
/// Each reason may define its own extended details. This field is
/// optional and the data returned is not guaranteed to conform to any
/// schema except that defined by the reason type.
/// Kind is a string value representing the REST
/// resource this object represents. Servers may infer this from the
/// endpoint the client submits requests to. Cannot be updated. In
/// CamelCase. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
/// A human-readable description of the status of
/// this operation.
/// Standard list metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
/// A machine-readable description of why this
/// operation is in the "Failure" status. If this value is empty there
/// is no information available. A Reason clarifies an HTTP status code
/// but does not override it.
/// Status of the operation. One of: "Success" or
/// "Failure". More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
public V1Status(string apiVersion = default(string), int? code = default(int?), V1StatusDetails details = default(V1StatusDetails), string kind = default(string), string message = default(string), V1ListMeta metadata = default(V1ListMeta), string reason = default(string), string status = default(string))
{
ApiVersion = apiVersion;
Code = code;
Details = details;
Kind = kind;
Message = message;
Metadata = metadata;
Reason = reason;
Status = status;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets aPIVersion defines the versioned schema of this
/// representation of an object. Servers should convert recognized
/// schemas to the latest internal value, and may reject unrecognized
/// values. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
///
[JsonProperty(PropertyName = "apiVersion")]
public string ApiVersion { get; set; }
///
/// Gets or sets suggested HTTP return code for this status, 0 if not
/// set.
///
[JsonProperty(PropertyName = "code")]
public int? Code { get; set; }
///
/// Gets or sets extended data associated with the reason. Each reason
/// may define its own extended details. This field is optional and the
/// data returned is not guaranteed to conform to any schema except
/// that defined by the reason type.
///
[JsonProperty(PropertyName = "details")]
public V1StatusDetails Details { get; set; }
///
/// Gets or sets kind is a string value representing the REST resource
/// this object represents. Servers may infer this from the endpoint
/// the client submits requests to. Cannot be updated. In CamelCase.
/// More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
///
[JsonProperty(PropertyName = "kind")]
public string Kind { get; set; }
///
/// Gets or sets a human-readable description of the status of this
/// operation.
///
[JsonProperty(PropertyName = "message")]
public string Message { get; set; }
///
/// Gets or sets standard list metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
///
[JsonProperty(PropertyName = "metadata")]
public V1ListMeta Metadata { get; set; }
///
/// Gets or sets a machine-readable description of why this operation
/// is in the "Failure" status. If this value is empty there is no
/// information available. A Reason clarifies an HTTP status code but
/// does not override it.
///
[JsonProperty(PropertyName = "reason")]
public string Reason { get; set; }
///
/// Gets or sets status of the operation. One of: "Success" or
/// "Failure". More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
///
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }
}
}