2017-10-19 19:53:02 +00:00
|
|
|
// <auto-generated>
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator.
|
2017-06-06 23:02:14 -07:00
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
2017-10-19 19:53:02 +00:00
|
|
|
// </auto-generated>
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
namespace k8s.Models
|
|
|
|
|
{
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ObjectReference contains enough information to let you inspect or
|
|
|
|
|
/// modify the referred object.
|
|
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public partial class V1ObjectReference
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1ObjectReference class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1ObjectReference()
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
2017-10-19 19:53:02 +00:00
|
|
|
CustomInit();
|
2017-06-06 23:02:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1ObjectReference class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="apiVersion">API version of the referent.</param>
|
|
|
|
|
/// <param name="fieldPath">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.</param>
|
|
|
|
|
/// <param name="kind">Kind of the referent. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="name">Name of the referent. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="namespaceProperty">Namespace of the referent. More
|
2017-10-19 19:53:02 +00:00
|
|
|
/// info:
|
|
|
|
|
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="resourceVersion">Specific resourceVersion to which
|
|
|
|
|
/// this reference is made, if any. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="uid">UID of the referent. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids</param>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1ObjectReference(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))
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
ApiVersion = apiVersion;
|
|
|
|
|
FieldPath = fieldPath;
|
|
|
|
|
Kind = kind;
|
|
|
|
|
Name = name;
|
|
|
|
|
NamespaceProperty = namespaceProperty;
|
|
|
|
|
ResourceVersion = resourceVersion;
|
|
|
|
|
Uid = uid;
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
|
|
|
/// </summary>
|
|
|
|
|
partial void CustomInit();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets API version of the referent.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "apiVersion")]
|
|
|
|
|
public string ApiVersion { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 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.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "fieldPath")]
|
|
|
|
|
public string FieldPath { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets kind of the referent. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "kind")]
|
|
|
|
|
public string Kind { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets name of the referent. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "name")]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets namespace of the referent. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "namespace")]
|
|
|
|
|
public string NamespaceProperty { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets specific resourceVersion to which this reference is
|
|
|
|
|
/// made, if any. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "resourceVersion")]
|
|
|
|
|
public string ResourceVersion { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets UID of the referent. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "uid")]
|
|
|
|
|
public string Uid { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|