//
// 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;
///
/// ObjectReference contains enough information to let you inspect or
/// modify the referred object.
///
public partial class Corev1ObjectReference
{
///
/// Initializes a new instance of the Corev1ObjectReference class.
///
public Corev1ObjectReference()
{
CustomInit();
}
///
/// Initializes a new instance of the Corev1ObjectReference class.
///
/// API version of the referent.
/// If referring to a piece of an object
/// instead of an entire object, this string should contain a valid
/// JSON/Go field access statement, such as
/// desiredState.manifest.containers[2]. For example, if the object
/// reference is to a container within a pod, this would take on a
/// value like: "spec.containers{name}" (where "name" refers to the
/// name of the container that triggered the event) or if no container
/// name is specified "spec.containers[2]" (container with index 2 in
/// this pod). This syntax is chosen only to have some well-defined way
/// of referencing a part of an object.
/// Kind of the referent. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
/// Name of the referent. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
/// Namespace of the referent. More
/// info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
/// Specific resourceVersion to which
/// this reference is made, if any. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
/// UID of the referent. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
public Corev1ObjectReference(string apiVersion = default(string), string fieldPath = default(string), string kind = default(string), string name = default(string), string namespaceProperty = default(string), string resourceVersion = default(string), string uid = default(string))
{
ApiVersion = apiVersion;
FieldPath = fieldPath;
Kind = kind;
Name = name;
NamespaceProperty = namespaceProperty;
ResourceVersion = resourceVersion;
Uid = uid;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets API version of the referent.
///
[JsonProperty(PropertyName = "apiVersion")]
public string ApiVersion { get; set; }
///
/// Gets or sets if referring to a piece of an object instead of an
/// entire object, this string should contain a valid JSON/Go field
/// access statement, such as desiredState.manifest.containers[2]. For
/// example, if the object reference is to a container within a pod,
/// this would take on a value like: "spec.containers{name}" (where
/// "name" refers to the name of the container that triggered the
/// event) or if no container name is specified "spec.containers[2]"
/// (container with index 2 in this pod). This syntax is chosen only to
/// have some well-defined way of referencing a part of an object.
///
[JsonProperty(PropertyName = "fieldPath")]
public string FieldPath { get; set; }
///
/// Gets or sets kind of the referent. 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 name of the referent. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
///
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
///
/// Gets or sets namespace of the referent. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
///
[JsonProperty(PropertyName = "namespace")]
public string NamespaceProperty { get; set; }
///
/// Gets or sets specific resourceVersion to which this reference is
/// made, if any. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
///
[JsonProperty(PropertyName = "resourceVersion")]
public string ResourceVersion { get; set; }
///
/// Gets or sets UID of the referent. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
///
[JsonProperty(PropertyName = "uid")]
public string Uid { get; set; }
}
}