Merge pull request #60 from tg123/v1.8

generate from V1.8.4
This commit is contained in:
Brendan Burns
2017-12-03 21:02:17 -08:00
committed by GitHub
461 changed files with 91030 additions and 28592 deletions

View File

@@ -1,3 +1,3 @@
export KUBERNETES_BRANCH=master
export KUBERNETES_BRANCH=v1.8.4
export CLIENT_VERSION=0.0.1
export PACKAGE_NAME=k8s

View File

@@ -54,7 +54,7 @@ namespace @namespace
ListNamespaces(client);
var ns = new Corev1Namespace
var ns = new V1Namespace
{
Metadata = new V1ObjectMeta
{
@@ -71,7 +71,7 @@ namespace @namespace
if (status.HasObject)
{
var obj = status.ObjectView<Corev1Namespace>();
var obj = status.ObjectView<V1Namespace>();
Console.WriteLine(obj.Status.Phase);
Delete(client, ns.Metadata.Name, 3 * 1000);

View File

@@ -1,22 +1,23 @@
using System;
using k8s;
namespace simple
{
using System;
using System.IO;
using k8s;
class PodList
internal class PodList
{
static void Main(string[] args)
private static void Main(string[] args)
{
var k8sClientConfig = KubernetesClientConfiguration.BuildConfigFromConfigFile();
IKubernetes client = new Kubernetes(k8sClientConfig);
var config = KubernetesClientConfiguration.BuildConfigFromConfigFile();
IKubernetes client = new Kubernetes(config);
Console.WriteLine("Starting Request!");
var listTask = client.ListNamespacedPodWithHttpMessagesAsync("default").Result;
var list = listTask.Body;
foreach (var item in list.Items) {
var list = client.ListNamespacedPod("default");
foreach (var item in list.Items)
{
Console.WriteLine(item.Metadata.Name);
}
if (list.Items.Count == 0) {
if (list.Items.Count == 0)
{
Console.WriteLine("Empty!");
}
}

View File

@@ -14,7 +14,7 @@ namespace watch
IKubernetes client = new Kubernetes(config);
var podlistResp = client.ListNamespacedPodWithHttpMessagesAsync("default", watch: true).Result;
using (podlistResp.Watch<Corev1Pod>((type, item) =>
using (podlistResp.Watch<V1Pod>((type, item) =>
{
Console.WriteLine("==on watch event==");
Console.WriteLine(type);

View File

@@ -1,56 +0,0 @@
using System;
using Newtonsoft.Json;
namespace k8s.Models
{
internal class IntOrStringConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
var s = (value as IntOrString)?.Value;
if (int.TryParse(s, out var intv))
{
serializer.Serialize(writer, intv);
return;
}
serializer.Serialize(writer, s);
}
public override object ReadJson(JsonReader reader, Type objectType, object existingValue,
JsonSerializer serializer)
{
return (IntOrString) serializer.Deserialize<string>(reader);
}
public override bool CanConvert(Type objectType)
{
return objectType == typeof(int) || objectType == typeof(string);
}
}
[JsonConverter(typeof(IntOrStringConverter))]
public partial class IntOrString
{
public static implicit operator int(IntOrString v)
{
return int.Parse(v.Value);
}
public static implicit operator IntOrString(int v)
{
return new IntOrString(Convert.ToString(v));
}
public static implicit operator string(IntOrString v)
{
return v.Value;
}
public static implicit operator IntOrString(string v)
{
return new IntOrString(v);
}
}
}

74
src/IntstrIntOrString.cs Normal file
View File

@@ -0,0 +1,74 @@
using System;
using Newtonsoft.Json;
namespace k8s.Models
{
internal class IntOrStringConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
var s = (value as IntstrIntOrString)?.Value;
if (int.TryParse(s, out var intv))
{
serializer.Serialize(writer, intv);
return;
}
serializer.Serialize(writer, s);
}
public override object ReadJson(JsonReader reader, Type objectType, object existingValue,
JsonSerializer serializer)
{
return (IntstrIntOrString) serializer.Deserialize<string>(reader);
}
public override bool CanConvert(Type objectType)
{
return objectType == typeof(int) || objectType == typeof(string);
}
}
[JsonConverter(typeof(IntOrStringConverter))]
public partial class IntstrIntOrString
{
public static implicit operator int(IntstrIntOrString v)
{
return int.Parse(v.Value);
}
public static implicit operator IntstrIntOrString(int v)
{
return new IntstrIntOrString(Convert.ToString(v));
}
public static implicit operator string(IntstrIntOrString v)
{
return v.Value;
}
public static implicit operator IntstrIntOrString(string v)
{
return new IntstrIntOrString(v);
}
protected bool Equals(IntstrIntOrString other)
{
return string.Equals(Value, other.Value);
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
if (obj.GetType() != this.GetType()) return false;
return Equals((IntstrIntOrString) obj);
}
public override int GetHashCode()
{
return (Value != null ? Value.GetHashCode() : 0);
}
}
}

1246
src/generated/IKubernetes.cs Executable file → Normal file

File diff suppressed because it is too large Load Diff

9189
src/generated/Kubernetes.cs Executable file → Normal file

File diff suppressed because it is too large Load Diff

2714
src/generated/KubernetesExtensions.cs Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,117 +0,0 @@
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// DaemonSetList is a collection of daemon sets.
/// </summary>
public partial class Apiextensionsv1beta1DaemonSetList
{
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1DaemonSetList
/// class.
/// </summary>
public Apiextensionsv1beta1DaemonSetList()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1DaemonSetList
/// class.
/// </summary>
/// <param name="items">A list of daemon sets.</param>
/// <param name="apiVersion">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</param>
/// <param name="kind">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</param>
/// <param name="metadata">Standard list metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
public Apiextensionsv1beta1DaemonSetList(IList<Apiextensionsv1beta1DaemonSet> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
{
ApiVersion = apiVersion;
Items = items;
Kind = kind;
Metadata = metadata;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// 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
/// </summary>
[JsonProperty(PropertyName = "apiVersion")]
public string ApiVersion { get; set; }
/// <summary>
/// Gets or sets a list of daemon sets.
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Apiextensionsv1beta1DaemonSet> Items { get; set; }
/// <summary>
/// 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
/// </summary>
[JsonProperty(PropertyName = "kind")]
public string Kind { get; set; }
/// <summary>
/// Gets or sets standard list metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
/// </summary>
[JsonProperty(PropertyName = "metadata")]
public V1ListMeta Metadata { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Items == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Items");
}
if (Items != null)
{
foreach (var element in Items)
{
if (element != null)
{
element.Validate();
}
}
}
}
}
}

View File

@@ -1,161 +0,0 @@
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// DaemonSetStatus represents the current status of a daemon set.
/// </summary>
public partial class Apiextensionsv1beta1DaemonSetStatus
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DaemonSetStatus class.
/// </summary>
public Apiextensionsv1beta1DaemonSetStatus()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DaemonSetStatus class.
/// </summary>
/// <param name="currentNumberScheduled">The number of nodes that are
/// running at least 1 daemon pod and are supposed to run the daemon
/// pod. More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/</param>
/// <param name="desiredNumberScheduled">The total number of nodes that
/// should be running the daemon pod (including nodes correctly running
/// the daemon pod). More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/</param>
/// <param name="numberMisscheduled">The number of nodes that are
/// running the daemon pod, but are not supposed to run the daemon pod.
/// More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/</param>
/// <param name="numberReady">The number of nodes that should be
/// running the daemon pod and have one or more of the daemon pod
/// running and ready.</param>
/// <param name="collisionCount">Count of hash collisions for the
/// DaemonSet. The DaemonSet controller uses this field as a collision
/// avoidance mechanism when it needs to create the name for the newest
/// ControllerRevision.</param>
/// <param name="numberAvailable">The number of nodes that should be
/// running the daemon pod and have one or more of the daemon pod
/// running and available (ready for at least
/// spec.minReadySeconds)</param>
/// <param name="numberUnavailable">The number of nodes that should be
/// running the daemon pod and have none of the daemon pod running and
/// available (ready for at least spec.minReadySeconds)</param>
/// <param name="observedGeneration">The most recent generation
/// observed by the daemon set controller.</param>
/// <param name="updatedNumberScheduled">The total number of nodes that
/// are running updated daemon pod</param>
public Apiextensionsv1beta1DaemonSetStatus(int currentNumberScheduled, int desiredNumberScheduled, int numberMisscheduled, int numberReady, int? collisionCount = default(int?), int? numberAvailable = default(int?), int? numberUnavailable = default(int?), long? observedGeneration = default(long?), int? updatedNumberScheduled = default(int?))
{
CollisionCount = collisionCount;
CurrentNumberScheduled = currentNumberScheduled;
DesiredNumberScheduled = desiredNumberScheduled;
NumberAvailable = numberAvailable;
NumberMisscheduled = numberMisscheduled;
NumberReady = numberReady;
NumberUnavailable = numberUnavailable;
ObservedGeneration = observedGeneration;
UpdatedNumberScheduled = updatedNumberScheduled;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets count of hash collisions for the DaemonSet. The
/// DaemonSet controller uses this field as a collision avoidance
/// mechanism when it needs to create the name for the newest
/// ControllerRevision.
/// </summary>
[JsonProperty(PropertyName = "collisionCount")]
public int? CollisionCount { get; set; }
/// <summary>
/// Gets or sets the number of nodes that are running at least 1 daemon
/// pod and are supposed to run the daemon pod. More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
/// </summary>
[JsonProperty(PropertyName = "currentNumberScheduled")]
public int CurrentNumberScheduled { get; set; }
/// <summary>
/// Gets or sets the total number of nodes that should be running the
/// daemon pod (including nodes correctly running the daemon pod). More
/// info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
/// </summary>
[JsonProperty(PropertyName = "desiredNumberScheduled")]
public int DesiredNumberScheduled { get; set; }
/// <summary>
/// Gets or sets the number of nodes that should be running the daemon
/// pod and have one or more of the daemon pod running and available
/// (ready for at least spec.minReadySeconds)
/// </summary>
[JsonProperty(PropertyName = "numberAvailable")]
public int? NumberAvailable { get; set; }
/// <summary>
/// Gets or sets the number of nodes that are running the daemon pod,
/// but are not supposed to run the daemon pod. More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
/// </summary>
[JsonProperty(PropertyName = "numberMisscheduled")]
public int NumberMisscheduled { get; set; }
/// <summary>
/// Gets or sets the number of nodes that should be running the daemon
/// pod and have one or more of the daemon pod running and ready.
/// </summary>
[JsonProperty(PropertyName = "numberReady")]
public int NumberReady { get; set; }
/// <summary>
/// Gets or sets the number of nodes that should be running the daemon
/// pod and have none of the daemon pod running and available (ready
/// for at least spec.minReadySeconds)
/// </summary>
[JsonProperty(PropertyName = "numberUnavailable")]
public int? NumberUnavailable { get; set; }
/// <summary>
/// Gets or sets the most recent generation observed by the daemon set
/// controller.
/// </summary>
[JsonProperty(PropertyName = "observedGeneration")]
public long? ObservedGeneration { get; set; }
/// <summary>
/// Gets or sets the total number of nodes that are running updated
/// daemon pod
/// </summary>
[JsonProperty(PropertyName = "updatedNumberScheduled")]
public int? UpdatedNumberScheduled { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
//Nothing to validate
}
}
}

View File

@@ -1,75 +0,0 @@
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// Spec to control the desired behavior of daemon set rolling update.
/// </summary>
public partial class Apiextensionsv1beta1RollingUpdateDaemonSet
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1RollingUpdateDaemonSet class.
/// </summary>
public Apiextensionsv1beta1RollingUpdateDaemonSet()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1RollingUpdateDaemonSet class.
/// </summary>
/// <param name="maxUnavailable">The maximum number of DaemonSet pods
/// that can be unavailable during the update. Value can be an absolute
/// number (ex: 5) or a percentage of total number of DaemonSet pods at
/// the start of the update (ex: 10%). Absolute number is calculated
/// from percentage by rounding up. This cannot be 0. Default value is
/// 1. Example: when this is set to 30%, at most 30% of the total
/// number of nodes that should be running the daemon pod (i.e.
/// status.desiredNumberScheduled) can have their pods stopped for an
/// update at any given time. The update starts by stopping at most 30%
/// of those DaemonSet pods and then brings up new DaemonSet pods in
/// their place. Once the new pods are available, it then proceeds onto
/// other DaemonSet pods, thus ensuring that at least 70% of original
/// number of DaemonSet pods are available at all times during the
/// update.</param>
public Apiextensionsv1beta1RollingUpdateDaemonSet(IntOrString maxUnavailable = default(IntOrString))
{
MaxUnavailable = maxUnavailable;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the maximum number of DaemonSet pods that can be
/// unavailable during the update. Value can be an absolute number (ex:
/// 5) or a percentage of total number of DaemonSet pods at the start
/// of the update (ex: 10%). Absolute number is calculated from
/// percentage by rounding up. This cannot be 0. Default value is 1.
/// Example: when this is set to 30%, at most 30% of the total number
/// of nodes that should be running the daemon pod (i.e.
/// status.desiredNumberScheduled) can have their pods stopped for an
/// update at any given time. The update starts by stopping at most 30%
/// of those DaemonSet pods and then brings up new DaemonSet pods in
/// their place. Once the new pods are available, it then proceeds onto
/// other DaemonSet pods, thus ensuring that at least 70% of original
/// number of DaemonSet pods are available at all times during the
/// update.
/// </summary>
[JsonProperty(PropertyName = "maxUnavailable")]
public IntOrString MaxUnavailable { get; set; }
}
}

View File

@@ -14,18 +14,18 @@ namespace k8s.Models
/// apps/v1beta2/Deployment. See the release notes for more information.
/// Deployment enables declarative updates for Pods and ReplicaSets.
/// </summary>
public partial class Apiappsv1beta1Deployment
public partial class Appsv1beta1Deployment
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1Deployment class.
/// Initializes a new instance of the Appsv1beta1Deployment class.
/// </summary>
public Apiappsv1beta1Deployment()
public Appsv1beta1Deployment()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1Deployment class.
/// Initializes a new instance of the Appsv1beta1Deployment class.
/// </summary>
/// <param name="apiVersion">APIVersion defines the versioned schema of
/// this representation of an object. Servers should convert recognized
@@ -42,7 +42,7 @@ namespace k8s.Models
/// Deployment.</param>
/// <param name="status">Most recently observed status of the
/// Deployment.</param>
public Apiappsv1beta1Deployment(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Apiappsv1beta1DeploymentSpec spec = default(Apiappsv1beta1DeploymentSpec), Apiappsv1beta1DeploymentStatus status = default(Apiappsv1beta1DeploymentStatus))
public Appsv1beta1Deployment(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Appsv1beta1DeploymentSpec spec = default(Appsv1beta1DeploymentSpec), Appsv1beta1DeploymentStatus status = default(Appsv1beta1DeploymentStatus))
{
ApiVersion = apiVersion;
Kind = kind;
@@ -88,13 +88,13 @@ namespace k8s.Models
/// Deployment.
/// </summary>
[JsonProperty(PropertyName = "spec")]
public Apiappsv1beta1DeploymentSpec Spec { get; set; }
public Appsv1beta1DeploymentSpec Spec { get; set; }
/// <summary>
/// Gets or sets most recently observed status of the Deployment.
/// </summary>
[JsonProperty(PropertyName = "status")]
public Apiappsv1beta1DeploymentStatus Status { get; set; }
public Appsv1beta1DeploymentStatus Status { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -14,19 +14,19 @@ namespace k8s.Models
/// DeploymentCondition describes the state of a deployment at a certain
/// point.
/// </summary>
public partial class Apiappsv1beta1DeploymentCondition
public partial class Appsv1beta1DeploymentCondition
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentCondition
/// Initializes a new instance of the Appsv1beta1DeploymentCondition
/// class.
/// </summary>
public Apiappsv1beta1DeploymentCondition()
public Appsv1beta1DeploymentCondition()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentCondition
/// Initializes a new instance of the Appsv1beta1DeploymentCondition
/// class.
/// </summary>
/// <param name="status">Status of the condition, one of True, False,
@@ -40,7 +40,7 @@ namespace k8s.Models
/// about the transition.</param>
/// <param name="reason">The reason for the condition's last
/// transition.</param>
public Apiappsv1beta1DeploymentCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), System.DateTime? lastUpdateTime = default(System.DateTime?), string message = default(string), string reason = default(string))
public Appsv1beta1DeploymentCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), System.DateTime? lastUpdateTime = default(System.DateTime?), string message = default(string), string reason = default(string))
{
LastTransitionTime = lastTransitionTime;
LastUpdateTime = lastUpdateTime;

View File

@@ -15,20 +15,18 @@ namespace k8s.Models
/// <summary>
/// DeploymentList is a list of Deployments.
/// </summary>
public partial class Apiextensionsv1beta1DeploymentList
public partial class Appsv1beta1DeploymentList
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentList class.
/// Initializes a new instance of the Appsv1beta1DeploymentList class.
/// </summary>
public Apiextensionsv1beta1DeploymentList()
public Appsv1beta1DeploymentList()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentList class.
/// Initializes a new instance of the Appsv1beta1DeploymentList class.
/// </summary>
/// <param name="items">Items is the list of Deployments.</param>
/// <param name="apiVersion">APIVersion defines the versioned schema of
@@ -42,7 +40,7 @@ namespace k8s.Models
/// CamelCase. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">Standard list metadata.</param>
public Apiextensionsv1beta1DeploymentList(IList<Apiextensionsv1beta1Deployment> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
public Appsv1beta1DeploymentList(IList<Appsv1beta1Deployment> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
{
ApiVersion = apiVersion;
Items = items;
@@ -70,7 +68,7 @@ namespace k8s.Models
/// Gets or sets items is the list of Deployments.
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Apiextensionsv1beta1Deployment> Items { get; set; }
public IList<Appsv1beta1Deployment> Items { get; set; }
/// <summary>
/// Gets or sets kind is a string value representing the REST resource

View File

@@ -16,19 +16,19 @@ namespace k8s.Models
/// DEPRECATED. DeploymentRollback stores the information required to
/// rollback a deployment.
/// </summary>
public partial class Apiappsv1beta1DeploymentRollback
public partial class Appsv1beta1DeploymentRollback
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentRollback
/// Initializes a new instance of the Appsv1beta1DeploymentRollback
/// class.
/// </summary>
public Apiappsv1beta1DeploymentRollback()
public Appsv1beta1DeploymentRollback()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentRollback
/// Initializes a new instance of the Appsv1beta1DeploymentRollback
/// class.
/// </summary>
/// <param name="name">Required: This must match the Name of a
@@ -47,7 +47,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="updatedAnnotations">The annotations to be updated to a
/// deployment</param>
public Apiappsv1beta1DeploymentRollback(string name, Apiappsv1beta1RollbackConfig rollbackTo, string apiVersion = default(string), string kind = default(string), IDictionary<string, string> updatedAnnotations = default(IDictionary<string, string>))
public Appsv1beta1DeploymentRollback(string name, Appsv1beta1RollbackConfig rollbackTo, string apiVersion = default(string), string kind = default(string), IDictionary<string, string> updatedAnnotations = default(IDictionary<string, string>))
{
ApiVersion = apiVersion;
Kind = kind;
@@ -92,7 +92,7 @@ namespace k8s.Models
/// Gets or sets the config of this deployment rollback.
/// </summary>
[JsonProperty(PropertyName = "rollbackTo")]
public Apiappsv1beta1RollbackConfig RollbackTo { get; set; }
public Appsv1beta1RollbackConfig RollbackTo { get; set; }
/// <summary>
/// Gets or sets the annotations to be updated to a deployment

View File

@@ -14,20 +14,18 @@ namespace k8s.Models
/// DeploymentSpec is the specification of the desired behavior of the
/// Deployment.
/// </summary>
public partial class Apiappsv1beta1DeploymentSpec
public partial class Appsv1beta1DeploymentSpec
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentSpec
/// class.
/// Initializes a new instance of the Appsv1beta1DeploymentSpec class.
/// </summary>
public Apiappsv1beta1DeploymentSpec()
public Appsv1beta1DeploymentSpec()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentSpec
/// class.
/// Initializes a new instance of the Appsv1beta1DeploymentSpec class.
/// </summary>
/// <param name="template">Template describes the pods that will be
/// created.</param>
@@ -57,7 +55,7 @@ namespace k8s.Models
/// affected by this deployment.</param>
/// <param name="strategy">The deployment strategy to use to replace
/// existing pods with new ones.</param>
public Apiappsv1beta1DeploymentSpec(Corev1PodTemplateSpec template, int? minReadySeconds = default(int?), bool? paused = default(bool?), int? progressDeadlineSeconds = default(int?), int? replicas = default(int?), int? revisionHistoryLimit = default(int?), Apiappsv1beta1RollbackConfig rollbackTo = default(Apiappsv1beta1RollbackConfig), V1LabelSelector selector = default(V1LabelSelector), Apiappsv1beta1DeploymentStrategy strategy = default(Apiappsv1beta1DeploymentStrategy))
public Appsv1beta1DeploymentSpec(V1PodTemplateSpec template, int? minReadySeconds = default(int?), bool? paused = default(bool?), int? progressDeadlineSeconds = default(int?), int? replicas = default(int?), int? revisionHistoryLimit = default(int?), Appsv1beta1RollbackConfig rollbackTo = default(Appsv1beta1RollbackConfig), V1LabelSelector selector = default(V1LabelSelector), Appsv1beta1DeploymentStrategy strategy = default(Appsv1beta1DeploymentStrategy))
{
MinReadySeconds = minReadySeconds;
Paused = paused;
@@ -122,7 +120,7 @@ namespace k8s.Models
/// to. Will be cleared after rollback is done.
/// </summary>
[JsonProperty(PropertyName = "rollbackTo")]
public Apiappsv1beta1RollbackConfig RollbackTo { get; set; }
public Appsv1beta1RollbackConfig RollbackTo { get; set; }
/// <summary>
/// Gets or sets label selector for pods. Existing ReplicaSets whose
@@ -137,13 +135,13 @@ namespace k8s.Models
/// pods with new ones.
/// </summary>
[JsonProperty(PropertyName = "strategy")]
public Apiappsv1beta1DeploymentStrategy Strategy { get; set; }
public Appsv1beta1DeploymentStrategy Strategy { get; set; }
/// <summary>
/// Gets or sets template describes the pods that will be created.
/// </summary>
[JsonProperty(PropertyName = "template")]
public Corev1PodTemplateSpec Template { get; set; }
public V1PodTemplateSpec Template { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -15,19 +15,19 @@ namespace k8s.Models
/// DeploymentStatus is the most recently observed status of the
/// Deployment.
/// </summary>
public partial class Apiappsv1beta1DeploymentStatus
public partial class Appsv1beta1DeploymentStatus
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentStatus
/// Initializes a new instance of the Appsv1beta1DeploymentStatus
/// class.
/// </summary>
public Apiappsv1beta1DeploymentStatus()
public Appsv1beta1DeploymentStatus()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentStatus
/// Initializes a new instance of the Appsv1beta1DeploymentStatus
/// class.
/// </summary>
/// <param name="availableReplicas">Total number of available pods
@@ -53,7 +53,7 @@ namespace k8s.Models
/// <param name="updatedReplicas">Total number of non-terminated pods
/// targeted by this deployment that have the desired template
/// spec.</param>
public Apiappsv1beta1DeploymentStatus(int? availableReplicas = default(int?), int? collisionCount = default(int?), IList<Apiappsv1beta1DeploymentCondition> conditions = default(IList<Apiappsv1beta1DeploymentCondition>), long? observedGeneration = default(long?), int? readyReplicas = default(int?), int? replicas = default(int?), int? unavailableReplicas = default(int?), int? updatedReplicas = default(int?))
public Appsv1beta1DeploymentStatus(int? availableReplicas = default(int?), int? collisionCount = default(int?), IList<Appsv1beta1DeploymentCondition> conditions = default(IList<Appsv1beta1DeploymentCondition>), long? observedGeneration = default(long?), int? readyReplicas = default(int?), int? replicas = default(int?), int? unavailableReplicas = default(int?), int? updatedReplicas = default(int?))
{
AvailableReplicas = availableReplicas;
CollisionCount = collisionCount;
@@ -92,7 +92,7 @@ namespace k8s.Models
/// deployment's current state.
/// </summary>
[JsonProperty(PropertyName = "conditions")]
public IList<Apiappsv1beta1DeploymentCondition> Conditions { get; set; }
public IList<Appsv1beta1DeploymentCondition> Conditions { get; set; }
/// <summary>
/// Gets or sets the generation observed by the deployment controller.

View File

@@ -13,26 +13,26 @@ namespace k8s.Models
/// DeploymentStrategy describes how to replace existing pods with new
/// ones.
/// </summary>
public partial class Apiappsv1beta1DeploymentStrategy
public partial class Appsv1beta1DeploymentStrategy
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentStrategy
/// Initializes a new instance of the Appsv1beta1DeploymentStrategy
/// class.
/// </summary>
public Apiappsv1beta1DeploymentStrategy()
public Appsv1beta1DeploymentStrategy()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentStrategy
/// Initializes a new instance of the Appsv1beta1DeploymentStrategy
/// class.
/// </summary>
/// <param name="rollingUpdate">Rolling update config params. Present
/// only if DeploymentStrategyType = RollingUpdate.</param>
/// <param name="type">Type of deployment. Can be "Recreate" or
/// "RollingUpdate". Default is RollingUpdate.</param>
public Apiappsv1beta1DeploymentStrategy(Apiappsv1beta1RollingUpdateDeployment rollingUpdate = default(Apiappsv1beta1RollingUpdateDeployment), string type = default(string))
public Appsv1beta1DeploymentStrategy(Appsv1beta1RollingUpdateDeployment rollingUpdate = default(Appsv1beta1RollingUpdateDeployment), string type = default(string))
{
RollingUpdate = rollingUpdate;
Type = type;
@@ -49,7 +49,7 @@ namespace k8s.Models
/// DeploymentStrategyType = RollingUpdate.
/// </summary>
[JsonProperty(PropertyName = "rollingUpdate")]
public Apiappsv1beta1RollingUpdateDeployment RollingUpdate { get; set; }
public Appsv1beta1RollingUpdateDeployment RollingUpdate { get; set; }
/// <summary>
/// Gets or sets type of deployment. Can be "Recreate" or

View File

@@ -12,24 +12,22 @@ namespace k8s.Models
/// <summary>
/// DEPRECATED.
/// </summary>
public partial class Apiextensionsv1beta1RollbackConfig
public partial class Appsv1beta1RollbackConfig
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1RollbackConfig class.
/// Initializes a new instance of the Appsv1beta1RollbackConfig class.
/// </summary>
public Apiextensionsv1beta1RollbackConfig()
public Appsv1beta1RollbackConfig()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1RollbackConfig class.
/// Initializes a new instance of the Appsv1beta1RollbackConfig class.
/// </summary>
/// <param name="revision">The revision to rollback to. If set to 0,
/// rollback to the last revision.</param>
public Apiextensionsv1beta1RollbackConfig(long? revision = default(long?))
public Appsv1beta1RollbackConfig(long? revision = default(long?))
{
Revision = revision;
CustomInit();

View File

@@ -12,20 +12,20 @@ namespace k8s.Models
/// <summary>
/// Spec to control the desired behavior of rolling update.
/// </summary>
public partial class Apiappsv1beta1RollingUpdateDeployment
public partial class Appsv1beta1RollingUpdateDeployment
{
/// <summary>
/// Initializes a new instance of the
/// Apiappsv1beta1RollingUpdateDeployment class.
/// Appsv1beta1RollingUpdateDeployment class.
/// </summary>
public Apiappsv1beta1RollingUpdateDeployment()
public Appsv1beta1RollingUpdateDeployment()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiappsv1beta1RollingUpdateDeployment class.
/// Appsv1beta1RollingUpdateDeployment class.
/// </summary>
/// <param name="maxSurge">The maximum number of pods that can be
/// scheduled above the desired number of pods. Value can be an
@@ -48,7 +48,7 @@ namespace k8s.Models
/// be scaled down further, followed by scaling up the new RC, ensuring
/// that the total number of pods available at all times during the
/// update is at least 70% of desired pods.</param>
public Apiappsv1beta1RollingUpdateDeployment(IntOrString maxSurge = default(IntOrString), IntOrString maxUnavailable = default(IntOrString))
public Appsv1beta1RollingUpdateDeployment(IntstrIntOrString maxSurge = default(IntstrIntOrString), IntstrIntOrString maxUnavailable = default(IntstrIntOrString))
{
MaxSurge = maxSurge;
MaxUnavailable = maxUnavailable;
@@ -74,7 +74,7 @@ namespace k8s.Models
/// pods.
/// </summary>
[JsonProperty(PropertyName = "maxSurge")]
public IntOrString MaxSurge { get; set; }
public IntstrIntOrString MaxSurge { get; set; }
/// <summary>
/// Gets or sets the maximum number of pods that can be unavailable
@@ -89,7 +89,7 @@ namespace k8s.Models
/// update is at least 70% of desired pods.
/// </summary>
[JsonProperty(PropertyName = "maxUnavailable")]
public IntOrString MaxUnavailable { get; set; }
public IntstrIntOrString MaxUnavailable { get; set; }
}
}

View File

@@ -12,18 +12,18 @@ namespace k8s.Models
/// <summary>
/// Scale represents a scaling request for a resource.
/// </summary>
public partial class Apiappsv1beta1Scale
public partial class Appsv1beta1Scale
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1Scale class.
/// Initializes a new instance of the Appsv1beta1Scale class.
/// </summary>
public Apiappsv1beta1Scale()
public Appsv1beta1Scale()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1Scale class.
/// Initializes a new instance of the Appsv1beta1Scale class.
/// </summary>
/// <param name="apiVersion">APIVersion defines the versioned schema of
/// this representation of an object. Servers should convert recognized
@@ -42,7 +42,7 @@ namespace k8s.Models
/// <param name="status">current status of the scale. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
/// Read-only.</param>
public Apiappsv1beta1Scale(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Apiappsv1beta1ScaleSpec spec = default(Apiappsv1beta1ScaleSpec), Apiappsv1beta1ScaleStatus status = default(Apiappsv1beta1ScaleStatus))
public Appsv1beta1Scale(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Appsv1beta1ScaleSpec spec = default(Appsv1beta1ScaleSpec), Appsv1beta1ScaleStatus status = default(Appsv1beta1ScaleStatus))
{
ApiVersion = apiVersion;
Kind = kind;
@@ -89,7 +89,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
/// </summary>
[JsonProperty(PropertyName = "spec")]
public Apiappsv1beta1ScaleSpec Spec { get; set; }
public Appsv1beta1ScaleSpec Spec { get; set; }
/// <summary>
/// Gets or sets current status of the scale. More info:
@@ -97,7 +97,7 @@ namespace k8s.Models
/// Read-only.
/// </summary>
[JsonProperty(PropertyName = "status")]
public Apiappsv1beta1ScaleStatus Status { get; set; }
public Appsv1beta1ScaleStatus Status { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -12,22 +12,22 @@ namespace k8s.Models
/// <summary>
/// ScaleSpec describes the attributes of a scale subresource
/// </summary>
public partial class Apiappsv1beta1ScaleSpec
public partial class Appsv1beta1ScaleSpec
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1ScaleSpec class.
/// Initializes a new instance of the Appsv1beta1ScaleSpec class.
/// </summary>
public Apiappsv1beta1ScaleSpec()
public Appsv1beta1ScaleSpec()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1ScaleSpec class.
/// Initializes a new instance of the Appsv1beta1ScaleSpec class.
/// </summary>
/// <param name="replicas">desired number of instances for the scaled
/// object.</param>
public Apiappsv1beta1ScaleSpec(int? replicas = default(int?))
public Appsv1beta1ScaleSpec(int? replicas = default(int?))
{
Replicas = replicas;
CustomInit();

View File

@@ -14,18 +14,18 @@ namespace k8s.Models
/// <summary>
/// ScaleStatus represents the current status of a scale subresource.
/// </summary>
public partial class Apiappsv1beta1ScaleStatus
public partial class Appsv1beta1ScaleStatus
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1ScaleStatus class.
/// Initializes a new instance of the Appsv1beta1ScaleStatus class.
/// </summary>
public Apiappsv1beta1ScaleStatus()
public Appsv1beta1ScaleStatus()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1ScaleStatus class.
/// Initializes a new instance of the Appsv1beta1ScaleStatus class.
/// </summary>
/// <param name="replicas">actual number of observed instances of the
/// scaled object.</param>
@@ -40,7 +40,7 @@ namespace k8s.Models
/// map-based selectors, both this field and map-based selector field
/// are populated. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors</param>
public Apiappsv1beta1ScaleStatus(int replicas, IDictionary<string, string> selector = default(IDictionary<string, string>), string targetSelector = default(string))
public Appsv1beta1ScaleStatus(int replicas, IDictionary<string, string> selector = default(IDictionary<string, string>), string targetSelector = default(string))
{
Replicas = replicas;
Selector = selector;

View File

@@ -14,19 +14,19 @@ namespace k8s.Models
/// apps/v1beta2/Deployment. See the release notes for more information.
/// Deployment enables declarative updates for Pods and ReplicaSets.
/// </summary>
public partial class Apiextensionsv1beta1Deployment
public partial class Extensionsv1beta1Deployment
{
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1Deployment
/// Initializes a new instance of the Extensionsv1beta1Deployment
/// class.
/// </summary>
public Apiextensionsv1beta1Deployment()
public Extensionsv1beta1Deployment()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1Deployment
/// Initializes a new instance of the Extensionsv1beta1Deployment
/// class.
/// </summary>
/// <param name="apiVersion">APIVersion defines the versioned schema of
@@ -44,7 +44,7 @@ namespace k8s.Models
/// Deployment.</param>
/// <param name="status">Most recently observed status of the
/// Deployment.</param>
public Apiextensionsv1beta1Deployment(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Apiextensionsv1beta1DeploymentSpec spec = default(Apiextensionsv1beta1DeploymentSpec), Apiextensionsv1beta1DeploymentStatus status = default(Apiextensionsv1beta1DeploymentStatus))
public Extensionsv1beta1Deployment(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Extensionsv1beta1DeploymentSpec spec = default(Extensionsv1beta1DeploymentSpec), Extensionsv1beta1DeploymentStatus status = default(Extensionsv1beta1DeploymentStatus))
{
ApiVersion = apiVersion;
Kind = kind;
@@ -90,13 +90,13 @@ namespace k8s.Models
/// Deployment.
/// </summary>
[JsonProperty(PropertyName = "spec")]
public Apiextensionsv1beta1DeploymentSpec Spec { get; set; }
public Extensionsv1beta1DeploymentSpec Spec { get; set; }
/// <summary>
/// Gets or sets most recently observed status of the Deployment.
/// </summary>
[JsonProperty(PropertyName = "status")]
public Apiextensionsv1beta1DeploymentStatus Status { get; set; }
public Extensionsv1beta1DeploymentStatus Status { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -14,20 +14,20 @@ namespace k8s.Models
/// DeploymentCondition describes the state of a deployment at a certain
/// point.
/// </summary>
public partial class Apiextensionsv1beta1DeploymentCondition
public partial class Extensionsv1beta1DeploymentCondition
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentCondition class.
/// Extensionsv1beta1DeploymentCondition class.
/// </summary>
public Apiextensionsv1beta1DeploymentCondition()
public Extensionsv1beta1DeploymentCondition()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentCondition class.
/// Extensionsv1beta1DeploymentCondition class.
/// </summary>
/// <param name="status">Status of the condition, one of True, False,
/// Unknown.</param>
@@ -40,7 +40,7 @@ namespace k8s.Models
/// about the transition.</param>
/// <param name="reason">The reason for the condition's last
/// transition.</param>
public Apiextensionsv1beta1DeploymentCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), System.DateTime? lastUpdateTime = default(System.DateTime?), string message = default(string), string reason = default(string))
public Extensionsv1beta1DeploymentCondition(string status, string type, System.DateTime? lastTransitionTime = default(System.DateTime?), System.DateTime? lastUpdateTime = default(System.DateTime?), string message = default(string), string reason = default(string))
{
LastTransitionTime = lastTransitionTime;
LastUpdateTime = lastUpdateTime;

View File

@@ -15,19 +15,19 @@ namespace k8s.Models
/// <summary>
/// DeploymentList is a list of Deployments.
/// </summary>
public partial class Apiappsv1beta1DeploymentList
public partial class Extensionsv1beta1DeploymentList
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentList
/// Initializes a new instance of the Extensionsv1beta1DeploymentList
/// class.
/// </summary>
public Apiappsv1beta1DeploymentList()
public Extensionsv1beta1DeploymentList()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1DeploymentList
/// Initializes a new instance of the Extensionsv1beta1DeploymentList
/// class.
/// </summary>
/// <param name="items">Items is the list of Deployments.</param>
@@ -42,7 +42,7 @@ namespace k8s.Models
/// CamelCase. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">Standard list metadata.</param>
public Apiappsv1beta1DeploymentList(IList<Apiappsv1beta1Deployment> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
public Extensionsv1beta1DeploymentList(IList<Extensionsv1beta1Deployment> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
{
ApiVersion = apiVersion;
Items = items;
@@ -70,7 +70,7 @@ namespace k8s.Models
/// Gets or sets items is the list of Deployments.
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Apiappsv1beta1Deployment> Items { get; set; }
public IList<Extensionsv1beta1Deployment> Items { get; set; }
/// <summary>
/// Gets or sets kind is a string value representing the REST resource

View File

@@ -16,20 +16,20 @@ namespace k8s.Models
/// DEPRECATED. DeploymentRollback stores the information required to
/// rollback a deployment.
/// </summary>
public partial class Apiextensionsv1beta1DeploymentRollback
public partial class Extensionsv1beta1DeploymentRollback
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentRollback class.
/// Extensionsv1beta1DeploymentRollback class.
/// </summary>
public Apiextensionsv1beta1DeploymentRollback()
public Extensionsv1beta1DeploymentRollback()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentRollback class.
/// Extensionsv1beta1DeploymentRollback class.
/// </summary>
/// <param name="name">Required: This must match the Name of a
/// deployment.</param>
@@ -47,7 +47,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="updatedAnnotations">The annotations to be updated to a
/// deployment</param>
public Apiextensionsv1beta1DeploymentRollback(string name, Apiextensionsv1beta1RollbackConfig rollbackTo, string apiVersion = default(string), string kind = default(string), IDictionary<string, string> updatedAnnotations = default(IDictionary<string, string>))
public Extensionsv1beta1DeploymentRollback(string name, Extensionsv1beta1RollbackConfig rollbackTo, string apiVersion = default(string), string kind = default(string), IDictionary<string, string> updatedAnnotations = default(IDictionary<string, string>))
{
ApiVersion = apiVersion;
Kind = kind;
@@ -92,7 +92,7 @@ namespace k8s.Models
/// Gets or sets the config of this deployment rollback.
/// </summary>
[JsonProperty(PropertyName = "rollbackTo")]
public Apiextensionsv1beta1RollbackConfig RollbackTo { get; set; }
public Extensionsv1beta1RollbackConfig RollbackTo { get; set; }
/// <summary>
/// Gets or sets the annotations to be updated to a deployment

View File

@@ -14,20 +14,20 @@ namespace k8s.Models
/// DeploymentSpec is the specification of the desired behavior of the
/// Deployment.
/// </summary>
public partial class Apiextensionsv1beta1DeploymentSpec
public partial class Extensionsv1beta1DeploymentSpec
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentSpec class.
/// Initializes a new instance of the Extensionsv1beta1DeploymentSpec
/// class.
/// </summary>
public Apiextensionsv1beta1DeploymentSpec()
public Extensionsv1beta1DeploymentSpec()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentSpec class.
/// Initializes a new instance of the Extensionsv1beta1DeploymentSpec
/// class.
/// </summary>
/// <param name="template">Template describes the pods that will be
/// created.</param>
@@ -57,7 +57,7 @@ namespace k8s.Models
/// affected by this deployment.</param>
/// <param name="strategy">The deployment strategy to use to replace
/// existing pods with new ones.</param>
public Apiextensionsv1beta1DeploymentSpec(Corev1PodTemplateSpec template, int? minReadySeconds = default(int?), bool? paused = default(bool?), int? progressDeadlineSeconds = default(int?), int? replicas = default(int?), int? revisionHistoryLimit = default(int?), Apiextensionsv1beta1RollbackConfig rollbackTo = default(Apiextensionsv1beta1RollbackConfig), V1LabelSelector selector = default(V1LabelSelector), Apiextensionsv1beta1DeploymentStrategy strategy = default(Apiextensionsv1beta1DeploymentStrategy))
public Extensionsv1beta1DeploymentSpec(V1PodTemplateSpec template, int? minReadySeconds = default(int?), bool? paused = default(bool?), int? progressDeadlineSeconds = default(int?), int? replicas = default(int?), int? revisionHistoryLimit = default(int?), Extensionsv1beta1RollbackConfig rollbackTo = default(Extensionsv1beta1RollbackConfig), V1LabelSelector selector = default(V1LabelSelector), Extensionsv1beta1DeploymentStrategy strategy = default(Extensionsv1beta1DeploymentStrategy))
{
MinReadySeconds = minReadySeconds;
Paused = paused;
@@ -123,7 +123,7 @@ namespace k8s.Models
/// to. Will be cleared after rollback is done.
/// </summary>
[JsonProperty(PropertyName = "rollbackTo")]
public Apiextensionsv1beta1RollbackConfig RollbackTo { get; set; }
public Extensionsv1beta1RollbackConfig RollbackTo { get; set; }
/// <summary>
/// Gets or sets label selector for pods. Existing ReplicaSets whose
@@ -138,13 +138,13 @@ namespace k8s.Models
/// pods with new ones.
/// </summary>
[JsonProperty(PropertyName = "strategy")]
public Apiextensionsv1beta1DeploymentStrategy Strategy { get; set; }
public Extensionsv1beta1DeploymentStrategy Strategy { get; set; }
/// <summary>
/// Gets or sets template describes the pods that will be created.
/// </summary>
[JsonProperty(PropertyName = "template")]
public Corev1PodTemplateSpec Template { get; set; }
public V1PodTemplateSpec Template { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -15,20 +15,20 @@ namespace k8s.Models
/// DeploymentStatus is the most recently observed status of the
/// Deployment.
/// </summary>
public partial class Apiextensionsv1beta1DeploymentStatus
public partial class Extensionsv1beta1DeploymentStatus
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentStatus class.
/// Initializes a new instance of the Extensionsv1beta1DeploymentStatus
/// class.
/// </summary>
public Apiextensionsv1beta1DeploymentStatus()
public Extensionsv1beta1DeploymentStatus()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentStatus class.
/// Initializes a new instance of the Extensionsv1beta1DeploymentStatus
/// class.
/// </summary>
/// <param name="availableReplicas">Total number of available pods
/// (ready for at least minReadySeconds) targeted by this
@@ -53,7 +53,7 @@ namespace k8s.Models
/// <param name="updatedReplicas">Total number of non-terminated pods
/// targeted by this deployment that have the desired template
/// spec.</param>
public Apiextensionsv1beta1DeploymentStatus(int? availableReplicas = default(int?), int? collisionCount = default(int?), IList<Apiextensionsv1beta1DeploymentCondition> conditions = default(IList<Apiextensionsv1beta1DeploymentCondition>), long? observedGeneration = default(long?), int? readyReplicas = default(int?), int? replicas = default(int?), int? unavailableReplicas = default(int?), int? updatedReplicas = default(int?))
public Extensionsv1beta1DeploymentStatus(int? availableReplicas = default(int?), int? collisionCount = default(int?), IList<Extensionsv1beta1DeploymentCondition> conditions = default(IList<Extensionsv1beta1DeploymentCondition>), long? observedGeneration = default(long?), int? readyReplicas = default(int?), int? replicas = default(int?), int? unavailableReplicas = default(int?), int? updatedReplicas = default(int?))
{
AvailableReplicas = availableReplicas;
CollisionCount = collisionCount;
@@ -92,7 +92,7 @@ namespace k8s.Models
/// deployment's current state.
/// </summary>
[JsonProperty(PropertyName = "conditions")]
public IList<Apiextensionsv1beta1DeploymentCondition> Conditions { get; set; }
public IList<Extensionsv1beta1DeploymentCondition> Conditions { get; set; }
/// <summary>
/// Gets or sets the generation observed by the deployment controller.

View File

@@ -13,26 +13,26 @@ namespace k8s.Models
/// DeploymentStrategy describes how to replace existing pods with new
/// ones.
/// </summary>
public partial class Apiextensionsv1beta1DeploymentStrategy
public partial class Extensionsv1beta1DeploymentStrategy
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentStrategy class.
/// Extensionsv1beta1DeploymentStrategy class.
/// </summary>
public Apiextensionsv1beta1DeploymentStrategy()
public Extensionsv1beta1DeploymentStrategy()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1DeploymentStrategy class.
/// Extensionsv1beta1DeploymentStrategy class.
/// </summary>
/// <param name="rollingUpdate">Rolling update config params. Present
/// only if DeploymentStrategyType = RollingUpdate.</param>
/// <param name="type">Type of deployment. Can be "Recreate" or
/// "RollingUpdate". Default is RollingUpdate.</param>
public Apiextensionsv1beta1DeploymentStrategy(Apiextensionsv1beta1RollingUpdateDeployment rollingUpdate = default(Apiextensionsv1beta1RollingUpdateDeployment), string type = default(string))
public Extensionsv1beta1DeploymentStrategy(Extensionsv1beta1RollingUpdateDeployment rollingUpdate = default(Extensionsv1beta1RollingUpdateDeployment), string type = default(string))
{
RollingUpdate = rollingUpdate;
Type = type;
@@ -49,7 +49,7 @@ namespace k8s.Models
/// DeploymentStrategyType = RollingUpdate.
/// </summary>
[JsonProperty(PropertyName = "rollingUpdate")]
public Apiextensionsv1beta1RollingUpdateDeployment RollingUpdate { get; set; }
public Extensionsv1beta1RollingUpdateDeployment RollingUpdate { get; set; }
/// <summary>
/// Gets or sets type of deployment. Can be "Recreate" or

View File

@@ -12,24 +12,24 @@ namespace k8s.Models
/// <summary>
/// DEPRECATED.
/// </summary>
public partial class Apiappsv1beta1RollbackConfig
public partial class Extensionsv1beta1RollbackConfig
{
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1RollbackConfig
/// Initializes a new instance of the Extensionsv1beta1RollbackConfig
/// class.
/// </summary>
public Apiappsv1beta1RollbackConfig()
public Extensionsv1beta1RollbackConfig()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiappsv1beta1RollbackConfig
/// Initializes a new instance of the Extensionsv1beta1RollbackConfig
/// class.
/// </summary>
/// <param name="revision">The revision to rollback to. If set to 0,
/// rollback to the last revision.</param>
public Apiappsv1beta1RollbackConfig(long? revision = default(long?))
public Extensionsv1beta1RollbackConfig(long? revision = default(long?))
{
Revision = revision;
CustomInit();

View File

@@ -12,20 +12,20 @@ namespace k8s.Models
/// <summary>
/// Spec to control the desired behavior of rolling update.
/// </summary>
public partial class Apiextensionsv1beta1RollingUpdateDeployment
public partial class Extensionsv1beta1RollingUpdateDeployment
{
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1RollingUpdateDeployment class.
/// Extensionsv1beta1RollingUpdateDeployment class.
/// </summary>
public Apiextensionsv1beta1RollingUpdateDeployment()
public Extensionsv1beta1RollingUpdateDeployment()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiextensionsv1beta1RollingUpdateDeployment class.
/// Extensionsv1beta1RollingUpdateDeployment class.
/// </summary>
/// <param name="maxSurge">The maximum number of pods that can be
/// scheduled above the desired number of pods. Value can be an
@@ -49,7 +49,7 @@ namespace k8s.Models
/// scaling up the new RC, ensuring that the total number of pods
/// available at all times during the update is at least 70% of desired
/// pods.</param>
public Apiextensionsv1beta1RollingUpdateDeployment(IntOrString maxSurge = default(IntOrString), IntOrString maxUnavailable = default(IntOrString))
public Extensionsv1beta1RollingUpdateDeployment(IntstrIntOrString maxSurge = default(IntstrIntOrString), IntstrIntOrString maxUnavailable = default(IntstrIntOrString))
{
MaxSurge = maxSurge;
MaxUnavailable = maxUnavailable;
@@ -75,7 +75,7 @@ namespace k8s.Models
/// of desired pods.
/// </summary>
[JsonProperty(PropertyName = "maxSurge")]
public IntOrString MaxSurge { get; set; }
public IntstrIntOrString MaxSurge { get; set; }
/// <summary>
/// Gets or sets the maximum number of pods that can be unavailable
@@ -90,7 +90,7 @@ namespace k8s.Models
/// times during the update is at least 70% of desired pods.
/// </summary>
[JsonProperty(PropertyName = "maxUnavailable")]
public IntOrString MaxUnavailable { get; set; }
public IntstrIntOrString MaxUnavailable { get; set; }
}
}

View File

@@ -12,18 +12,18 @@ namespace k8s.Models
/// <summary>
/// represents a scaling request for a resource.
/// </summary>
public partial class Apiextensionsv1beta1Scale
public partial class Extensionsv1beta1Scale
{
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1Scale class.
/// Initializes a new instance of the Extensionsv1beta1Scale class.
/// </summary>
public Apiextensionsv1beta1Scale()
public Extensionsv1beta1Scale()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1Scale class.
/// Initializes a new instance of the Extensionsv1beta1Scale class.
/// </summary>
/// <param name="apiVersion">APIVersion defines the versioned schema of
/// this representation of an object. Servers should convert recognized
@@ -42,7 +42,7 @@ namespace k8s.Models
/// <param name="status">current status of the scale. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
/// Read-only.</param>
public Apiextensionsv1beta1Scale(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Apiextensionsv1beta1ScaleSpec spec = default(Apiextensionsv1beta1ScaleSpec), Apiextensionsv1beta1ScaleStatus status = default(Apiextensionsv1beta1ScaleStatus))
public Extensionsv1beta1Scale(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), Extensionsv1beta1ScaleSpec spec = default(Extensionsv1beta1ScaleSpec), Extensionsv1beta1ScaleStatus status = default(Extensionsv1beta1ScaleStatus))
{
ApiVersion = apiVersion;
Kind = kind;
@@ -89,7 +89,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
/// </summary>
[JsonProperty(PropertyName = "spec")]
public Apiextensionsv1beta1ScaleSpec Spec { get; set; }
public Extensionsv1beta1ScaleSpec Spec { get; set; }
/// <summary>
/// Gets or sets current status of the scale. More info:
@@ -97,7 +97,7 @@ namespace k8s.Models
/// Read-only.
/// </summary>
[JsonProperty(PropertyName = "status")]
public Apiextensionsv1beta1ScaleStatus Status { get; set; }
public Extensionsv1beta1ScaleStatus Status { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -12,24 +12,22 @@ namespace k8s.Models
/// <summary>
/// describes the attributes of a scale subresource
/// </summary>
public partial class Apiextensionsv1beta1ScaleSpec
public partial class Extensionsv1beta1ScaleSpec
{
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1ScaleSpec
/// class.
/// Initializes a new instance of the Extensionsv1beta1ScaleSpec class.
/// </summary>
public Apiextensionsv1beta1ScaleSpec()
public Extensionsv1beta1ScaleSpec()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1ScaleSpec
/// class.
/// Initializes a new instance of the Extensionsv1beta1ScaleSpec class.
/// </summary>
/// <param name="replicas">desired number of instances for the scaled
/// object.</param>
public Apiextensionsv1beta1ScaleSpec(int? replicas = default(int?))
public Extensionsv1beta1ScaleSpec(int? replicas = default(int?))
{
Replicas = replicas;
CustomInit();

View File

@@ -14,19 +14,19 @@ namespace k8s.Models
/// <summary>
/// represents the current status of a scale subresource.
/// </summary>
public partial class Apiextensionsv1beta1ScaleStatus
public partial class Extensionsv1beta1ScaleStatus
{
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1ScaleStatus
/// Initializes a new instance of the Extensionsv1beta1ScaleStatus
/// class.
/// </summary>
public Apiextensionsv1beta1ScaleStatus()
public Extensionsv1beta1ScaleStatus()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Apiextensionsv1beta1ScaleStatus
/// Initializes a new instance of the Extensionsv1beta1ScaleStatus
/// class.
/// </summary>
/// <param name="replicas">actual number of observed instances of the
@@ -42,7 +42,7 @@ namespace k8s.Models
/// map-based selectors, both this field and map-based selector field
/// are populated. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors</param>
public Apiextensionsv1beta1ScaleStatus(int replicas, IDictionary<string, string> selector = default(IDictionary<string, string>), string targetSelector = default(string))
public Extensionsv1beta1ScaleStatus(int replicas, IDictionary<string, string> selector = default(IDictionary<string, string>), string targetSelector = default(string))
{
Replicas = replicas;
Selector = selector;

View File

@@ -9,20 +9,20 @@ namespace k8s.Models
using Newtonsoft.Json;
using System.Linq;
public partial class IntOrString
public partial class IntstrIntOrString
{
/// <summary>
/// Initializes a new instance of the IntOrString class.
/// Initializes a new instance of the IntstrIntOrString class.
/// </summary>
public IntOrString()
public IntstrIntOrString()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the IntOrString class.
/// Initializes a new instance of the IntstrIntOrString class.
/// </summary>
public IntOrString(string value = default(string))
public IntstrIntOrString(string value = default(string))
{
Value = value;
CustomInit();

View File

@@ -0,0 +1,41 @@
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Newtonsoft.Json;
using System.Linq;
public partial class ResourceQuantity
{
/// <summary>
/// Initializes a new instance of the ResourceQuantity class.
/// </summary>
public ResourceQuantity()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the ResourceQuantity class.
/// </summary>
public ResourceQuantity(string value = default(string))
{
Value = value;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// </summary>
private string Value { get; set; }
}
}

0
src/generated/Models/RuntimeRawExtension.cs Executable file → Normal file
View File

0
src/generated/Models/V1APIGroup.cs Executable file → Normal file
View File

0
src/generated/Models/V1APIGroupList.cs Executable file → Normal file
View File

0
src/generated/Models/V1APIResource.cs Executable file → Normal file
View File

0
src/generated/Models/V1APIResourceList.cs Executable file → Normal file
View File

0
src/generated/Models/V1APIVersions.cs Executable file → Normal file
View File

View File

@@ -18,20 +18,20 @@ namespace k8s.Models
/// only be mounted as read/write once. AWS EBS volumes support ownership
/// management and SELinux relabeling.
/// </summary>
public partial class Corev1AWSElasticBlockStoreVolumeSource
public partial class V1AWSElasticBlockStoreVolumeSource
{
/// <summary>
/// Initializes a new instance of the
/// Corev1AWSElasticBlockStoreVolumeSource class.
/// V1AWSElasticBlockStoreVolumeSource class.
/// </summary>
public Corev1AWSElasticBlockStoreVolumeSource()
public V1AWSElasticBlockStoreVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Corev1AWSElasticBlockStoreVolumeSource class.
/// V1AWSElasticBlockStoreVolumeSource class.
/// </summary>
/// <param name="volumeID">Unique ID of the persistent disk resource in
/// AWS (Amazon EBS volume). More info:
@@ -50,7 +50,7 @@ namespace k8s.Models
/// ReadOnly property in VolumeMounts to "true". If omitted, the
/// default is "false". More info:
/// https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore</param>
public Corev1AWSElasticBlockStoreVolumeSource(string volumeID, string fsType = default(string), int? partition = default(int?), bool? readOnlyProperty = default(bool?))
public V1AWSElasticBlockStoreVolumeSource(string volumeID, string fsType = default(string), int? partition = default(int?), bool? readOnlyProperty = default(bool?))
{
FsType = fsType;
Partition = partition;

View File

@@ -12,18 +12,18 @@ namespace k8s.Models
/// <summary>
/// Affinity is a group of affinity scheduling rules.
/// </summary>
public partial class Corev1Affinity
public partial class V1Affinity
{
/// <summary>
/// Initializes a new instance of the Corev1Affinity class.
/// Initializes a new instance of the V1Affinity class.
/// </summary>
public Corev1Affinity()
public V1Affinity()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1Affinity class.
/// Initializes a new instance of the V1Affinity class.
/// </summary>
/// <param name="nodeAffinity">Describes node affinity scheduling rules
/// for the pod.</param>
@@ -33,7 +33,7 @@ namespace k8s.Models
/// <param name="podAntiAffinity">Describes pod anti-affinity
/// scheduling rules (e.g. avoid putting this pod in the same node,
/// zone, etc. as some other pod(s)).</param>
public Corev1Affinity(Corev1NodeAffinity nodeAffinity = default(Corev1NodeAffinity), Corev1PodAffinity podAffinity = default(Corev1PodAffinity), Corev1PodAntiAffinity podAntiAffinity = default(Corev1PodAntiAffinity))
public V1Affinity(V1NodeAffinity nodeAffinity = default(V1NodeAffinity), V1PodAffinity podAffinity = default(V1PodAffinity), V1PodAntiAffinity podAntiAffinity = default(V1PodAntiAffinity))
{
NodeAffinity = nodeAffinity;
PodAffinity = podAffinity;
@@ -50,7 +50,7 @@ namespace k8s.Models
/// Gets or sets describes node affinity scheduling rules for the pod.
/// </summary>
[JsonProperty(PropertyName = "nodeAffinity")]
public Corev1NodeAffinity NodeAffinity { get; set; }
public V1NodeAffinity NodeAffinity { get; set; }
/// <summary>
/// Gets or sets describes pod affinity scheduling rules (e.g.
@@ -58,7 +58,7 @@ namespace k8s.Models
/// pod(s)).
/// </summary>
[JsonProperty(PropertyName = "podAffinity")]
public Corev1PodAffinity PodAffinity { get; set; }
public V1PodAffinity PodAffinity { get; set; }
/// <summary>
/// Gets or sets describes pod anti-affinity scheduling rules (e.g.
@@ -66,7 +66,7 @@ namespace k8s.Models
/// pod(s)).
/// </summary>
[JsonProperty(PropertyName = "podAntiAffinity")]
public Corev1PodAntiAffinity PodAntiAffinity { get; set; }
public V1PodAntiAffinity PodAntiAffinity { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -13,23 +13,23 @@ namespace k8s.Models
/// <summary>
/// AttachedVolume describes a volume attached to a node
/// </summary>
public partial class Corev1AttachedVolume
public partial class V1AttachedVolume
{
/// <summary>
/// Initializes a new instance of the Corev1AttachedVolume class.
/// Initializes a new instance of the V1AttachedVolume class.
/// </summary>
public Corev1AttachedVolume()
public V1AttachedVolume()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1AttachedVolume class.
/// Initializes a new instance of the V1AttachedVolume class.
/// </summary>
/// <param name="devicePath">DevicePath represents the device path
/// where the volume should be available</param>
/// <param name="name">Name of the attached volume</param>
public Corev1AttachedVolume(string devicePath, string name)
public V1AttachedVolume(string devicePath, string name)
{
DevicePath = devicePath;
Name = name;

View File

@@ -14,20 +14,18 @@ namespace k8s.Models
/// AzureDisk represents an Azure Data Disk mount on the host and bind
/// mount to the pod.
/// </summary>
public partial class Corev1AzureDiskVolumeSource
public partial class V1AzureDiskVolumeSource
{
/// <summary>
/// Initializes a new instance of the Corev1AzureDiskVolumeSource
/// class.
/// Initializes a new instance of the V1AzureDiskVolumeSource class.
/// </summary>
public Corev1AzureDiskVolumeSource()
public V1AzureDiskVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1AzureDiskVolumeSource
/// class.
/// Initializes a new instance of the V1AzureDiskVolumeSource class.
/// </summary>
/// <param name="diskName">The Name of the data disk in the blob
/// storage</param>
@@ -38,14 +36,14 @@ namespace k8s.Models
/// <param name="fsType">Filesystem type to mount. Must be a filesystem
/// type supported by the host operating system. Ex. "ext4", "xfs",
/// "ntfs". Implicitly inferred to be "ext4" if unspecified.</param>
/// <param name="kind">Expected values Shared: multiple blob disks per
/// <param name="kind">Expected values Shared: mulitple blob disks per
/// storage account Dedicated: single blob disk per storage account
/// Managed: azure managed data disk (only in managed availability
/// set). defaults to shared</param>
/// <param name="readOnlyProperty">Defaults to false (read/write).
/// ReadOnly here will force the ReadOnly setting in
/// VolumeMounts.</param>
public Corev1AzureDiskVolumeSource(string diskName, string diskURI, string cachingMode = default(string), string fsType = default(string), string kind = default(string), bool? readOnlyProperty = default(bool?))
public V1AzureDiskVolumeSource(string diskName, string diskURI, string cachingMode = default(string), string fsType = default(string), string kind = default(string), bool? readOnlyProperty = default(bool?))
{
CachingMode = cachingMode;
DiskName = diskName;
@@ -88,7 +86,7 @@ namespace k8s.Models
public string FsType { get; set; }
/// <summary>
/// Gets or sets expected values Shared: multiple blob disks per
/// Gets or sets expected values Shared: mulitple blob disks per
/// storage account Dedicated: single blob disk per storage account
/// Managed: azure managed data disk (only in managed availability
/// set). defaults to shared

View File

View File

@@ -14,20 +14,18 @@ namespace k8s.Models
/// AzureFile represents an Azure File Service mount on the host and bind
/// mount to the pod.
/// </summary>
public partial class Corev1AzureFileVolumeSource
public partial class V1AzureFileVolumeSource
{
/// <summary>
/// Initializes a new instance of the Corev1AzureFileVolumeSource
/// class.
/// Initializes a new instance of the V1AzureFileVolumeSource class.
/// </summary>
public Corev1AzureFileVolumeSource()
public V1AzureFileVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1AzureFileVolumeSource
/// class.
/// Initializes a new instance of the V1AzureFileVolumeSource class.
/// </summary>
/// <param name="secretName">the name of secret that contains Azure
/// Storage Account Name and Key</param>
@@ -35,7 +33,7 @@ namespace k8s.Models
/// <param name="readOnlyProperty">Defaults to false (read/write).
/// ReadOnly here will force the ReadOnly setting in
/// VolumeMounts.</param>
public Corev1AzureFileVolumeSource(string secretName, string shareName, bool? readOnlyProperty = default(bool?))
public V1AzureFileVolumeSource(string secretName, string shareName, bool? readOnlyProperty = default(bool?))
{
ReadOnlyProperty = readOnlyProperty;
SecretName = secretName;

View File

@@ -15,18 +15,18 @@ namespace k8s.Models
/// node by a scheduler. Deprecated in 1.7, please use the bindings
/// subresource of pods instead.
/// </summary>
public partial class Corev1Binding
public partial class V1Binding
{
/// <summary>
/// Initializes a new instance of the Corev1Binding class.
/// Initializes a new instance of the V1Binding class.
/// </summary>
public Corev1Binding()
public V1Binding()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1Binding class.
/// Initializes a new instance of the V1Binding class.
/// </summary>
/// <param name="target">The target object that you want to bind to the
/// standard object.</param>
@@ -42,7 +42,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">Standard object's metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
public Corev1Binding(Corev1ObjectReference target, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
public V1Binding(V1ObjectReference target, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
{
ApiVersion = apiVersion;
Kind = kind;
@@ -88,7 +88,7 @@ namespace k8s.Models
/// standard object.
/// </summary>
[JsonProperty(PropertyName = "target")]
public Corev1ObjectReference Target { get; set; }
public V1ObjectReference Target { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -14,22 +14,22 @@ namespace k8s.Models
/// <summary>
/// Adds and removes POSIX capabilities from running containers.
/// </summary>
public partial class Corev1Capabilities
public partial class V1Capabilities
{
/// <summary>
/// Initializes a new instance of the Corev1Capabilities class.
/// Initializes a new instance of the V1Capabilities class.
/// </summary>
public Corev1Capabilities()
public V1Capabilities()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1Capabilities class.
/// Initializes a new instance of the V1Capabilities class.
/// </summary>
/// <param name="add">Added capabilities</param>
/// <param name="drop">Removed capabilities</param>
public Corev1Capabilities(IList<string> add = default(IList<string>), IList<string> drop = default(IList<string>))
public V1Capabilities(IList<string> add = default(IList<string>), IList<string> drop = default(IList<string>))
{
Add = add;
Drop = drop;

0
src/generated/Models/V1CephFSPersistentVolumeSource.cs Executable file → Normal file
View File

View File

@@ -17,18 +17,18 @@ namespace k8s.Models
/// Cephfs volumes do not support ownership management or SELinux
/// relabeling.
/// </summary>
public partial class Corev1CephFSVolumeSource
public partial class V1CephFSVolumeSource
{
/// <summary>
/// Initializes a new instance of the Corev1CephFSVolumeSource class.
/// Initializes a new instance of the V1CephFSVolumeSource class.
/// </summary>
public Corev1CephFSVolumeSource()
public V1CephFSVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1CephFSVolumeSource class.
/// Initializes a new instance of the V1CephFSVolumeSource class.
/// </summary>
/// <param name="monitors">Required: Monitors is a collection of Ceph
/// monitors More info:
@@ -48,7 +48,7 @@ namespace k8s.Models
/// <param name="user">Optional: User is the rados user name, default
/// is admin More info:
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it</param>
public Corev1CephFSVolumeSource(IList<string> monitors, string path = default(string), bool? readOnlyProperty = default(bool?), string secretFile = default(string), Corev1LocalObjectReference secretRef = default(Corev1LocalObjectReference), string user = default(string))
public V1CephFSVolumeSource(IList<string> monitors, string path = default(string), bool? readOnlyProperty = default(bool?), string secretFile = default(string), V1LocalObjectReference secretRef = default(V1LocalObjectReference), string user = default(string))
{
Monitors = monitors;
Path = path;
@@ -101,7 +101,7 @@ namespace k8s.Models
/// https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it
/// </summary>
[JsonProperty(PropertyName = "secretRef")]
public Corev1LocalObjectReference SecretRef { get; set; }
public V1LocalObjectReference SecretRef { get; set; }
/// <summary>
/// Gets or sets optional: User is the rados user name, default is

View File

@@ -16,18 +16,18 @@ namespace k8s.Models
/// same region as the kubelet. Cinder volumes support ownership management
/// and SELinux relabeling.
/// </summary>
public partial class Corev1CinderVolumeSource
public partial class V1CinderVolumeSource
{
/// <summary>
/// Initializes a new instance of the Corev1CinderVolumeSource class.
/// Initializes a new instance of the V1CinderVolumeSource class.
/// </summary>
public Corev1CinderVolumeSource()
public V1CinderVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1CinderVolumeSource class.
/// Initializes a new instance of the V1CinderVolumeSource class.
/// </summary>
/// <param name="volumeID">volume id used to identify the volume in
/// cinder More info:
@@ -41,7 +41,7 @@ namespace k8s.Models
/// (read/write). ReadOnly here will force the ReadOnly setting in
/// VolumeMounts. More info:
/// https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md</param>
public Corev1CinderVolumeSource(string volumeID, string fsType = default(string), bool? readOnlyProperty = default(bool?))
public V1CinderVolumeSource(string volumeID, string fsType = default(string), bool? readOnlyProperty = default(bool?))
{
FsType = fsType;
ReadOnlyProperty = readOnlyProperty;

0
src/generated/Models/V1ClientIPConfig.cs Executable file → Normal file
View File

0
src/generated/Models/V1ClusterRole.cs Executable file → Normal file
View File

0
src/generated/Models/V1ClusterRoleBinding.cs Executable file → Normal file
View File

0
src/generated/Models/V1ClusterRoleBindingList.cs Executable file → Normal file
View File

0
src/generated/Models/V1ClusterRoleList.cs Executable file → Normal file
View File

View File

@@ -13,18 +13,18 @@ namespace k8s.Models
/// <summary>
/// Information about the condition of a component.
/// </summary>
public partial class Corev1ComponentCondition
public partial class V1ComponentCondition
{
/// <summary>
/// Initializes a new instance of the Corev1ComponentCondition class.
/// Initializes a new instance of the V1ComponentCondition class.
/// </summary>
public Corev1ComponentCondition()
public V1ComponentCondition()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ComponentCondition class.
/// Initializes a new instance of the V1ComponentCondition class.
/// </summary>
/// <param name="status">Status of the condition for a component. Valid
/// values for "Healthy": "True", "False", or "Unknown".</param>
@@ -34,7 +34,7 @@ namespace k8s.Models
/// example, a health check error code.</param>
/// <param name="message">Message about the condition for a component.
/// For example, information about a health check.</param>
public Corev1ComponentCondition(string status, string type, string error = default(string), string message = default(string))
public V1ComponentCondition(string status, string type, string error = default(string), string message = default(string))
{
Error = error;
Message = message;

View File

@@ -15,18 +15,18 @@ namespace k8s.Models
/// ComponentStatus (and ComponentStatusList) holds the cluster validation
/// info.
/// </summary>
public partial class Corev1ComponentStatus
public partial class V1ComponentStatus
{
/// <summary>
/// Initializes a new instance of the Corev1ComponentStatus class.
/// Initializes a new instance of the V1ComponentStatus class.
/// </summary>
public Corev1ComponentStatus()
public V1ComponentStatus()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ComponentStatus class.
/// Initializes a new instance of the V1ComponentStatus class.
/// </summary>
/// <param name="apiVersion">APIVersion defines the versioned schema of
/// this representation of an object. Servers should convert recognized
@@ -42,7 +42,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">Standard object's metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
public Corev1ComponentStatus(string apiVersion = default(string), IList<Corev1ComponentCondition> conditions = default(IList<Corev1ComponentCondition>), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
public V1ComponentStatus(string apiVersion = default(string), IList<V1ComponentCondition> conditions = default(IList<V1ComponentCondition>), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
{
ApiVersion = apiVersion;
Conditions = conditions;
@@ -70,7 +70,7 @@ namespace k8s.Models
/// Gets or sets list of component conditions observed
/// </summary>
[JsonProperty(PropertyName = "conditions")]
public IList<Corev1ComponentCondition> Conditions { get; set; }
public IList<V1ComponentCondition> Conditions { get; set; }
/// <summary>
/// Gets or sets kind is a string value representing the REST resource

View File

@@ -16,18 +16,18 @@ namespace k8s.Models
/// Status of all the conditions for the component as a list of
/// ComponentStatus objects.
/// </summary>
public partial class Corev1ComponentStatusList
public partial class V1ComponentStatusList
{
/// <summary>
/// Initializes a new instance of the Corev1ComponentStatusList class.
/// Initializes a new instance of the V1ComponentStatusList class.
/// </summary>
public Corev1ComponentStatusList()
public V1ComponentStatusList()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ComponentStatusList class.
/// Initializes a new instance of the V1ComponentStatusList class.
/// </summary>
/// <param name="items">List of ComponentStatus objects.</param>
/// <param name="apiVersion">APIVersion defines the versioned schema of
@@ -42,7 +42,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">Standard list metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
public Corev1ComponentStatusList(IList<Corev1ComponentStatus> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
public V1ComponentStatusList(IList<V1ComponentStatus> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
{
ApiVersion = apiVersion;
Items = items;
@@ -70,7 +70,7 @@ namespace k8s.Models
/// Gets or sets list of ComponentStatus objects.
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Corev1ComponentStatus> Items { get; set; }
public IList<V1ComponentStatus> Items { get; set; }
/// <summary>
/// Gets or sets kind is a string value representing the REST resource

View File

@@ -14,18 +14,18 @@ namespace k8s.Models
/// <summary>
/// ConfigMap holds configuration data for pods to consume.
/// </summary>
public partial class Corev1ConfigMap
public partial class V1ConfigMap
{
/// <summary>
/// Initializes a new instance of the Corev1ConfigMap class.
/// Initializes a new instance of the V1ConfigMap class.
/// </summary>
public Corev1ConfigMap()
public V1ConfigMap()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ConfigMap class.
/// Initializes a new instance of the V1ConfigMap class.
/// </summary>
/// <param name="apiVersion">APIVersion defines the versioned schema of
/// this representation of an object. Servers should convert recognized
@@ -41,7 +41,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">Standard object's metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
public Corev1ConfigMap(string apiVersion = default(string), IDictionary<string, string> data = default(IDictionary<string, string>), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
public V1ConfigMap(string apiVersion = default(string), IDictionary<string, string> data = default(IDictionary<string, string>), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
{
ApiVersion = apiVersion;
Data = data;

View File

@@ -16,24 +16,24 @@ namespace k8s.Models
/// The contents of the target ConfigMap's Data field will represent the
/// key-value pairs as environment variables.
/// </summary>
public partial class Corev1ConfigMapEnvSource
public partial class V1ConfigMapEnvSource
{
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapEnvSource class.
/// Initializes a new instance of the V1ConfigMapEnvSource class.
/// </summary>
public Corev1ConfigMapEnvSource()
public V1ConfigMapEnvSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapEnvSource class.
/// Initializes a new instance of the V1ConfigMapEnvSource class.
/// </summary>
/// <param name="name">Name of the referent. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names</param>
/// <param name="optional">Specify whether the ConfigMap must be
/// defined</param>
public Corev1ConfigMapEnvSource(string name = default(string), bool? optional = default(bool?))
public V1ConfigMapEnvSource(string name = default(string), bool? optional = default(bool?))
{
Name = name;
Optional = optional;

View File

@@ -13,25 +13,25 @@ namespace k8s.Models
/// <summary>
/// Selects a key from a ConfigMap.
/// </summary>
public partial class Corev1ConfigMapKeySelector
public partial class V1ConfigMapKeySelector
{
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapKeySelector class.
/// Initializes a new instance of the V1ConfigMapKeySelector class.
/// </summary>
public Corev1ConfigMapKeySelector()
public V1ConfigMapKeySelector()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapKeySelector class.
/// Initializes a new instance of the V1ConfigMapKeySelector class.
/// </summary>
/// <param name="key">The key to select.</param>
/// <param name="name">Name of the referent. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names</param>
/// <param name="optional">Specify whether the ConfigMap or it's key
/// must be defined</param>
public Corev1ConfigMapKeySelector(string key, string name = default(string), bool? optional = default(bool?))
public V1ConfigMapKeySelector(string key, string name = default(string), bool? optional = default(bool?))
{
Key = key;
Name = name;

View File

@@ -15,18 +15,18 @@ namespace k8s.Models
/// <summary>
/// ConfigMapList is a resource containing a list of ConfigMap objects.
/// </summary>
public partial class Corev1ConfigMapList
public partial class V1ConfigMapList
{
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapList class.
/// Initializes a new instance of the V1ConfigMapList class.
/// </summary>
public Corev1ConfigMapList()
public V1ConfigMapList()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapList class.
/// Initializes a new instance of the V1ConfigMapList class.
/// </summary>
/// <param name="items">Items is the list of ConfigMaps.</param>
/// <param name="apiVersion">APIVersion defines the versioned schema of
@@ -41,7 +41,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
public Corev1ConfigMapList(IList<Corev1ConfigMap> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
public V1ConfigMapList(IList<V1ConfigMap> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
{
ApiVersion = apiVersion;
Items = items;
@@ -69,7 +69,7 @@ namespace k8s.Models
/// Gets or sets items is the list of ConfigMaps.
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Corev1ConfigMap> Items { get; set; }
public IList<V1ConfigMap> Items { get; set; }
/// <summary>
/// Gets or sets kind is a string value representing the REST resource

View File

@@ -20,18 +20,18 @@ namespace k8s.Models
/// mappings of keys to paths. Note that this is identical to a configmap
/// volume source without the default mode.
/// </summary>
public partial class Corev1ConfigMapProjection
public partial class V1ConfigMapProjection
{
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapProjection class.
/// Initializes a new instance of the V1ConfigMapProjection class.
/// </summary>
public Corev1ConfigMapProjection()
public V1ConfigMapProjection()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapProjection class.
/// Initializes a new instance of the V1ConfigMapProjection class.
/// </summary>
/// <param name="items">If unspecified, each key-value pair in the Data
/// field of the referenced ConfigMap will be projected into the volume
@@ -45,7 +45,7 @@ namespace k8s.Models
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names</param>
/// <param name="optional">Specify whether the ConfigMap or it's keys
/// must be defined</param>
public Corev1ConfigMapProjection(IList<Corev1KeyToPath> items = default(IList<Corev1KeyToPath>), string name = default(string), bool? optional = default(bool?))
public V1ConfigMapProjection(IList<V1KeyToPath> items = default(IList<V1KeyToPath>), string name = default(string), bool? optional = default(bool?))
{
Items = items;
Name = name;
@@ -69,7 +69,7 @@ namespace k8s.Models
/// '..' path or start with '..'.
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Corev1KeyToPath> Items { get; set; }
public IList<V1KeyToPath> Items { get; set; }
/// <summary>
/// Gets or sets name of the referent. More info:

View File

@@ -20,20 +20,18 @@ namespace k8s.Models
/// paths. ConfigMap volumes support ownership management and SELinux
/// relabeling.
/// </summary>
public partial class Corev1ConfigMapVolumeSource
public partial class V1ConfigMapVolumeSource
{
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapVolumeSource
/// class.
/// Initializes a new instance of the V1ConfigMapVolumeSource class.
/// </summary>
public Corev1ConfigMapVolumeSource()
public V1ConfigMapVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ConfigMapVolumeSource
/// class.
/// Initializes a new instance of the V1ConfigMapVolumeSource class.
/// </summary>
/// <param name="defaultMode">Optional: mode bits to use on created
/// files by default. Must be a value between 0 and 0777. Defaults to
@@ -53,7 +51,7 @@ namespace k8s.Models
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names</param>
/// <param name="optional">Specify whether the ConfigMap or it's keys
/// must be defined</param>
public Corev1ConfigMapVolumeSource(int? defaultMode = default(int?), IList<Corev1KeyToPath> items = default(IList<Corev1KeyToPath>), string name = default(string), bool? optional = default(bool?))
public V1ConfigMapVolumeSource(int? defaultMode = default(int?), IList<V1KeyToPath> items = default(IList<V1KeyToPath>), string name = default(string), bool? optional = default(bool?))
{
DefaultMode = defaultMode;
Items = items;
@@ -88,7 +86,7 @@ namespace k8s.Models
/// '..' path or start with '..'.
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Corev1KeyToPath> Items { get; set; }
public IList<V1KeyToPath> Items { get; set; }
/// <summary>
/// Gets or sets name of the referent. More info:

View File

@@ -15,18 +15,18 @@ namespace k8s.Models
/// <summary>
/// A single application container that you want to run within a pod.
/// </summary>
public partial class Corev1Container
public partial class V1Container
{
/// <summary>
/// Initializes a new instance of the Corev1Container class.
/// Initializes a new instance of the V1Container class.
/// </summary>
public Corev1Container()
public V1Container()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1Container class.
/// Initializes a new instance of the V1Container class.
/// </summary>
/// <param name="name">Name of the container specified as a DNS_LABEL.
/// Each container in a pod must have a unique name (DNS_LABEL). Cannot
@@ -130,7 +130,7 @@ namespace k8s.Models
/// specified, the container runtime's default will be used, which
/// might be configured in the container image. Cannot be
/// updated.</param>
public Corev1Container(string name, IList<string> args = default(IList<string>), IList<string> command = default(IList<string>), IList<Corev1EnvVar> env = default(IList<Corev1EnvVar>), IList<Corev1EnvFromSource> envFrom = default(IList<Corev1EnvFromSource>), string image = default(string), string imagePullPolicy = default(string), Corev1Lifecycle lifecycle = default(Corev1Lifecycle), Corev1Probe livenessProbe = default(Corev1Probe), IList<Corev1ContainerPort> ports = default(IList<Corev1ContainerPort>), Corev1Probe readinessProbe = default(Corev1Probe), Corev1ResourceRequirements resources = default(Corev1ResourceRequirements), Corev1SecurityContext securityContext = default(Corev1SecurityContext), bool? stdin = default(bool?), bool? stdinOnce = default(bool?), string terminationMessagePath = default(string), string terminationMessagePolicy = default(string), bool? tty = default(bool?), IList<Corev1VolumeMount> volumeMounts = default(IList<Corev1VolumeMount>), string workingDir = default(string))
public V1Container(string name, IList<string> args = default(IList<string>), IList<string> command = default(IList<string>), IList<V1EnvVar> env = default(IList<V1EnvVar>), IList<V1EnvFromSource> envFrom = default(IList<V1EnvFromSource>), string image = default(string), string imagePullPolicy = default(string), V1Lifecycle lifecycle = default(V1Lifecycle), V1Probe livenessProbe = default(V1Probe), IList<V1ContainerPort> ports = default(IList<V1ContainerPort>), V1Probe readinessProbe = default(V1Probe), V1ResourceRequirements resources = default(V1ResourceRequirements), V1SecurityContext securityContext = default(V1SecurityContext), bool? stdin = default(bool?), bool? stdinOnce = default(bool?), string terminationMessagePath = default(string), string terminationMessagePolicy = default(string), bool? tty = default(bool?), IList<V1VolumeMount> volumeMounts = default(IList<V1VolumeMount>), string workingDir = default(string))
{
Args = args;
Command = command;
@@ -193,7 +193,7 @@ namespace k8s.Models
/// Cannot be updated.
/// </summary>
[JsonProperty(PropertyName = "env")]
public IList<Corev1EnvVar> Env { get; set; }
public IList<V1EnvVar> Env { get; set; }
/// <summary>
/// Gets or sets list of sources to populate environment variables in
@@ -205,7 +205,7 @@ namespace k8s.Models
/// Cannot be updated.
/// </summary>
[JsonProperty(PropertyName = "envFrom")]
public IList<Corev1EnvFromSource> EnvFrom { get; set; }
public IList<V1EnvFromSource> EnvFrom { get; set; }
/// <summary>
/// Gets or sets docker image name. More info:
@@ -231,7 +231,7 @@ namespace k8s.Models
/// response to container lifecycle events. Cannot be updated.
/// </summary>
[JsonProperty(PropertyName = "lifecycle")]
public Corev1Lifecycle Lifecycle { get; set; }
public V1Lifecycle Lifecycle { get; set; }
/// <summary>
/// Gets or sets periodic probe of container liveness. Container will
@@ -239,7 +239,7 @@ namespace k8s.Models
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
/// </summary>
[JsonProperty(PropertyName = "livenessProbe")]
public Corev1Probe LivenessProbe { get; set; }
public V1Probe LivenessProbe { get; set; }
/// <summary>
/// Gets or sets name of the container specified as a DNS_LABEL. Each
@@ -259,7 +259,7 @@ namespace k8s.Models
/// Cannot be updated.
/// </summary>
[JsonProperty(PropertyName = "ports")]
public IList<Corev1ContainerPort> Ports { get; set; }
public IList<V1ContainerPort> Ports { get; set; }
/// <summary>
/// Gets or sets periodic probe of container service readiness.
@@ -268,7 +268,7 @@ namespace k8s.Models
/// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
/// </summary>
[JsonProperty(PropertyName = "readinessProbe")]
public Corev1Probe ReadinessProbe { get; set; }
public V1Probe ReadinessProbe { get; set; }
/// <summary>
/// Gets or sets compute Resources required by this container. Cannot
@@ -276,7 +276,7 @@ namespace k8s.Models
/// https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
/// </summary>
[JsonProperty(PropertyName = "resources")]
public Corev1ResourceRequirements Resources { get; set; }
public V1ResourceRequirements Resources { get; set; }
/// <summary>
/// Gets or sets security options the pod should run with. More info:
@@ -285,7 +285,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/design-proposals/security_context.md
/// </summary>
[JsonProperty(PropertyName = "securityContext")]
public Corev1SecurityContext SecurityContext { get; set; }
public V1SecurityContext SecurityContext { get; set; }
/// <summary>
/// Gets or sets whether this container should allocate a buffer for
@@ -345,7 +345,7 @@ namespace k8s.Models
/// Cannot be updated.
/// </summary>
[JsonProperty(PropertyName = "volumeMounts")]
public IList<Corev1VolumeMount> VolumeMounts { get; set; }
public IList<V1VolumeMount> VolumeMounts { get; set; }
/// <summary>
/// Gets or sets container's working directory. If not specified, the

View File

@@ -15,24 +15,24 @@ namespace k8s.Models
/// <summary>
/// Describe a container image
/// </summary>
public partial class Corev1ContainerImage
public partial class V1ContainerImage
{
/// <summary>
/// Initializes a new instance of the Corev1ContainerImage class.
/// Initializes a new instance of the V1ContainerImage class.
/// </summary>
public Corev1ContainerImage()
public V1ContainerImage()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ContainerImage class.
/// Initializes a new instance of the V1ContainerImage class.
/// </summary>
/// <param name="names">Names by which this image is known. e.g.
/// ["gcr.io/google_containers/hyperkube:v1.0.7",
/// "dockerhub.io/google_containers/hyperkube:v1.0.7"]</param>
/// <param name="sizeBytes">The size of the image in bytes.</param>
public Corev1ContainerImage(IList<string> names, long? sizeBytes = default(long?))
public V1ContainerImage(IList<string> names, long? sizeBytes = default(long?))
{
Names = names;
SizeBytes = sizeBytes;

View File

@@ -12,18 +12,18 @@ namespace k8s.Models
/// <summary>
/// ContainerPort represents a network port in a single container.
/// </summary>
public partial class Corev1ContainerPort
public partial class V1ContainerPort
{
/// <summary>
/// Initializes a new instance of the Corev1ContainerPort class.
/// Initializes a new instance of the V1ContainerPort class.
/// </summary>
public Corev1ContainerPort()
public V1ContainerPort()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ContainerPort class.
/// Initializes a new instance of the V1ContainerPort class.
/// </summary>
/// <param name="containerPort">Number of port to expose on the pod's
/// IP address. This must be a valid port number, 0 &lt; x &lt;
@@ -40,7 +40,7 @@ namespace k8s.Models
/// services.</param>
/// <param name="protocol">Protocol for port. Must be UDP or TCP.
/// Defaults to "TCP".</param>
public Corev1ContainerPort(int containerPort, string hostIP = default(string), int? hostPort = default(int?), string name = default(string), string protocol = default(string))
public V1ContainerPort(int containerPort, string hostIP = default(string), int? hostPort = default(int?), string name = default(string), string protocol = default(string))
{
ContainerPort = containerPort;
HostIP = hostIP;

View File

@@ -14,24 +14,24 @@ namespace k8s.Models
/// members may be specified. If none of them is specified, the default one
/// is ContainerStateWaiting.
/// </summary>
public partial class Corev1ContainerState
public partial class V1ContainerState
{
/// <summary>
/// Initializes a new instance of the Corev1ContainerState class.
/// Initializes a new instance of the V1ContainerState class.
/// </summary>
public Corev1ContainerState()
public V1ContainerState()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ContainerState class.
/// Initializes a new instance of the V1ContainerState class.
/// </summary>
/// <param name="running">Details about a running container</param>
/// <param name="terminated">Details about a terminated
/// container</param>
/// <param name="waiting">Details about a waiting container</param>
public Corev1ContainerState(Corev1ContainerStateRunning running = default(Corev1ContainerStateRunning), Corev1ContainerStateTerminated terminated = default(Corev1ContainerStateTerminated), Corev1ContainerStateWaiting waiting = default(Corev1ContainerStateWaiting))
public V1ContainerState(V1ContainerStateRunning running = default(V1ContainerStateRunning), V1ContainerStateTerminated terminated = default(V1ContainerStateTerminated), V1ContainerStateWaiting waiting = default(V1ContainerStateWaiting))
{
Running = running;
Terminated = terminated;
@@ -48,19 +48,19 @@ namespace k8s.Models
/// Gets or sets details about a running container
/// </summary>
[JsonProperty(PropertyName = "running")]
public Corev1ContainerStateRunning Running { get; set; }
public V1ContainerStateRunning Running { get; set; }
/// <summary>
/// Gets or sets details about a terminated container
/// </summary>
[JsonProperty(PropertyName = "terminated")]
public Corev1ContainerStateTerminated Terminated { get; set; }
public V1ContainerStateTerminated Terminated { get; set; }
/// <summary>
/// Gets or sets details about a waiting container
/// </summary>
[JsonProperty(PropertyName = "waiting")]
public Corev1ContainerStateWaiting Waiting { get; set; }
public V1ContainerStateWaiting Waiting { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -12,24 +12,22 @@ namespace k8s.Models
/// <summary>
/// ContainerStateRunning is a running state of a container.
/// </summary>
public partial class Corev1ContainerStateRunning
public partial class V1ContainerStateRunning
{
/// <summary>
/// Initializes a new instance of the Corev1ContainerStateRunning
/// class.
/// Initializes a new instance of the V1ContainerStateRunning class.
/// </summary>
public Corev1ContainerStateRunning()
public V1ContainerStateRunning()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ContainerStateRunning
/// class.
/// Initializes a new instance of the V1ContainerStateRunning class.
/// </summary>
/// <param name="startedAt">Time at which the container was last
/// (re-)started</param>
public Corev1ContainerStateRunning(System.DateTime? startedAt = default(System.DateTime?))
public V1ContainerStateRunning(System.DateTime? startedAt = default(System.DateTime?))
{
StartedAt = startedAt;
CustomInit();

View File

@@ -12,20 +12,18 @@ namespace k8s.Models
/// <summary>
/// ContainerStateTerminated is a terminated state of a container.
/// </summary>
public partial class Corev1ContainerStateTerminated
public partial class V1ContainerStateTerminated
{
/// <summary>
/// Initializes a new instance of the Corev1ContainerStateTerminated
/// class.
/// Initializes a new instance of the V1ContainerStateTerminated class.
/// </summary>
public Corev1ContainerStateTerminated()
public V1ContainerStateTerminated()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ContainerStateTerminated
/// class.
/// Initializes a new instance of the V1ContainerStateTerminated class.
/// </summary>
/// <param name="exitCode">Exit status from the last termination of the
/// container</param>
@@ -41,7 +39,7 @@ namespace k8s.Models
/// container</param>
/// <param name="startedAt">Time at which previous execution of the
/// container started</param>
public Corev1ContainerStateTerminated(int exitCode, string containerID = default(string), System.DateTime? finishedAt = default(System.DateTime?), string message = default(string), string reason = default(string), int? signal = default(int?), System.DateTime? startedAt = default(System.DateTime?))
public V1ContainerStateTerminated(int exitCode, string containerID = default(string), System.DateTime? finishedAt = default(System.DateTime?), string message = default(string), string reason = default(string), int? signal = default(int?), System.DateTime? startedAt = default(System.DateTime?))
{
ContainerID = containerID;
ExitCode = exitCode;

View File

@@ -12,26 +12,24 @@ namespace k8s.Models
/// <summary>
/// ContainerStateWaiting is a waiting state of a container.
/// </summary>
public partial class Corev1ContainerStateWaiting
public partial class V1ContainerStateWaiting
{
/// <summary>
/// Initializes a new instance of the Corev1ContainerStateWaiting
/// class.
/// Initializes a new instance of the V1ContainerStateWaiting class.
/// </summary>
public Corev1ContainerStateWaiting()
public V1ContainerStateWaiting()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ContainerStateWaiting
/// class.
/// Initializes a new instance of the V1ContainerStateWaiting class.
/// </summary>
/// <param name="message">Message regarding why the container is not
/// yet running.</param>
/// <param name="reason">(brief) reason the container is not yet
/// running.</param>
public Corev1ContainerStateWaiting(string message = default(string), string reason = default(string))
public V1ContainerStateWaiting(string message = default(string), string reason = default(string))
{
Message = message;
Reason = reason;

View File

@@ -14,18 +14,18 @@ namespace k8s.Models
/// ContainerStatus contains details for the current status of this
/// container.
/// </summary>
public partial class Corev1ContainerStatus
public partial class V1ContainerStatus
{
/// <summary>
/// Initializes a new instance of the Corev1ContainerStatus class.
/// Initializes a new instance of the V1ContainerStatus class.
/// </summary>
public Corev1ContainerStatus()
public V1ContainerStatus()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ContainerStatus class.
/// Initializes a new instance of the V1ContainerStatus class.
/// </summary>
/// <param name="image">The image the container is running. More info:
/// https://kubernetes.io/docs/concepts/containers/images</param>
@@ -45,7 +45,7 @@ namespace k8s.Models
/// termination condition.</param>
/// <param name="state">Details about the container's current
/// condition.</param>
public Corev1ContainerStatus(string image, string imageID, string name, bool ready, int restartCount, string containerID = default(string), Corev1ContainerState lastState = default(Corev1ContainerState), Corev1ContainerState state = default(Corev1ContainerState))
public V1ContainerStatus(string image, string imageID, string name, bool ready, int restartCount, string containerID = default(string), V1ContainerState lastState = default(V1ContainerState), V1ContainerState state = default(V1ContainerState))
{
ContainerID = containerID;
Image = image;
@@ -88,7 +88,7 @@ namespace k8s.Models
/// condition.
/// </summary>
[JsonProperty(PropertyName = "lastState")]
public Corev1ContainerState LastState { get; set; }
public V1ContainerState LastState { get; set; }
/// <summary>
/// Gets or sets this must be a DNS_LABEL. Each container in a pod must
@@ -118,7 +118,7 @@ namespace k8s.Models
/// Gets or sets details about the container's current condition.
/// </summary>
[JsonProperty(PropertyName = "state")]
public Corev1ContainerState State { get; set; }
public V1ContainerState State { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -14,27 +14,27 @@ namespace k8s.Models
/// CrossVersionObjectReference contains enough information to let you
/// identify the referred resource.
/// </summary>
public partial class Apiautoscalingv1CrossVersionObjectReference
public partial class V1CrossVersionObjectReference
{
/// <summary>
/// Initializes a new instance of the
/// Apiautoscalingv1CrossVersionObjectReference class.
/// Initializes a new instance of the V1CrossVersionObjectReference
/// class.
/// </summary>
public Apiautoscalingv1CrossVersionObjectReference()
public V1CrossVersionObjectReference()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the
/// Apiautoscalingv1CrossVersionObjectReference class.
/// Initializes a new instance of the V1CrossVersionObjectReference
/// class.
/// </summary>
/// <param name="kind">Kind of the referent; More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds"</param>
/// <param name="name">Name of the referent; More info:
/// http://kubernetes.io/docs/user-guide/identifiers#names</param>
/// <param name="apiVersion">API version of the referent</param>
public Apiautoscalingv1CrossVersionObjectReference(string kind, string name, string apiVersion = default(string))
public V1CrossVersionObjectReference(string kind, string name, string apiVersion = default(string))
{
ApiVersion = apiVersion;
Kind = kind;

View File

@@ -12,21 +12,21 @@ namespace k8s.Models
/// <summary>
/// DaemonEndpoint contains information about a single Daemon endpoint.
/// </summary>
public partial class Corev1DaemonEndpoint
public partial class V1DaemonEndpoint
{
/// <summary>
/// Initializes a new instance of the Corev1DaemonEndpoint class.
/// Initializes a new instance of the V1DaemonEndpoint class.
/// </summary>
public Corev1DaemonEndpoint()
public V1DaemonEndpoint()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1DaemonEndpoint class.
/// Initializes a new instance of the V1DaemonEndpoint class.
/// </summary>
/// <param name="port">Port number of the given endpoint.</param>
public Corev1DaemonEndpoint(int port)
public V1DaemonEndpoint(int port)
{
Port = port;
CustomInit();

View File

@@ -1,127 +0,0 @@
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// DaemonSet represents the configuration of a daemon set.
/// </summary>
public partial class V1DaemonSet
{
/// <summary>
/// Initializes a new instance of the V1DaemonSet class.
/// </summary>
public V1DaemonSet()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the V1DaemonSet class.
/// </summary>
/// <param name="apiVersion">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</param>
/// <param name="kind">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</param>
/// <param name="metadata">Standard object's metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
/// <param name="spec">The desired behavior of this daemon set. More
/// info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status</param>
/// <param name="status">The current status of this daemon set. This
/// data may be out of date by some window of time. Populated by the
/// system. Read-only. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status</param>
public V1DaemonSet(string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta), V1DaemonSetSpec spec = default(V1DaemonSetSpec), V1DaemonSetStatus status = default(V1DaemonSetStatus))
{
ApiVersion = apiVersion;
Kind = kind;
Metadata = metadata;
Spec = spec;
Status = status;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// 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
/// </summary>
[JsonProperty(PropertyName = "apiVersion")]
public string ApiVersion { get; set; }
/// <summary>
/// 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
/// </summary>
[JsonProperty(PropertyName = "kind")]
public string Kind { get; set; }
/// <summary>
/// Gets or sets standard object's metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
/// </summary>
[JsonProperty(PropertyName = "metadata")]
public V1ObjectMeta Metadata { get; set; }
/// <summary>
/// Gets or sets the desired behavior of this daemon set. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
/// </summary>
[JsonProperty(PropertyName = "spec")]
public V1DaemonSetSpec Spec { get; set; }
/// <summary>
/// Gets or sets the current status of this daemon set. This data may
/// be out of date by some window of time. Populated by the system.
/// Read-only. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
/// </summary>
[JsonProperty(PropertyName = "status")]
public V1DaemonSetStatus Status { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Metadata != null)
{
Metadata.Validate();
}
if (Spec != null)
{
Spec.Validate();
}
if (Status != null)
{
Status.Validate();
}
}
}
}

View File

@@ -1,124 +0,0 @@
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// DaemonSetSpec is the specification of a daemon set.
/// </summary>
public partial class V1DaemonSetSpec
{
/// <summary>
/// Initializes a new instance of the V1DaemonSetSpec class.
/// </summary>
public V1DaemonSetSpec()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the V1DaemonSetSpec class.
/// </summary>
/// <param name="template">An object that describes the pod that will
/// be created. The DaemonSet will create exactly one copy of this pod
/// on every node that matches the template's node selector (or on
/// every node if no node selector is specified). More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template</param>
/// <param name="minReadySeconds">The minimum number of seconds for
/// which a newly created DaemonSet pod should be ready without any of
/// its container crashing, for it to be considered available. Defaults
/// to 0 (pod will be considered available as soon as it is
/// ready).</param>
/// <param name="revisionHistoryLimit">The number of old history to
/// retain to allow rollback. This is a pointer to distinguish between
/// explicit zero and not specified. Defaults to 10.</param>
/// <param name="selector">A label query over pods that are managed by
/// the daemon set. Must match in order to be controlled. If empty,
/// defaulted to labels on Pod template. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors</param>
/// <param name="updateStrategy">An update strategy to replace existing
/// DaemonSet pods with new pods.</param>
public V1DaemonSetSpec(Corev1PodTemplateSpec template, int? minReadySeconds = default(int?), int? revisionHistoryLimit = default(int?), V1LabelSelector selector = default(V1LabelSelector), V1DaemonSetUpdateStrategy updateStrategy = default(V1DaemonSetUpdateStrategy))
{
MinReadySeconds = minReadySeconds;
RevisionHistoryLimit = revisionHistoryLimit;
Selector = selector;
Template = template;
UpdateStrategy = updateStrategy;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the minimum number of seconds for which a newly
/// created DaemonSet pod should be ready without any of its container
/// crashing, for it to be considered available. Defaults to 0 (pod
/// will be considered available as soon as it is ready).
/// </summary>
[JsonProperty(PropertyName = "minReadySeconds")]
public int? MinReadySeconds { get; set; }
/// <summary>
/// Gets or sets the number of old history to retain to allow rollback.
/// This is a pointer to distinguish between explicit zero and not
/// specified. Defaults to 10.
/// </summary>
[JsonProperty(PropertyName = "revisionHistoryLimit")]
public int? RevisionHistoryLimit { get; set; }
/// <summary>
/// Gets or sets a label query over pods that are managed by the daemon
/// set. Must match in order to be controlled. If empty, defaulted to
/// labels on Pod template. More info:
/// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
/// </summary>
[JsonProperty(PropertyName = "selector")]
public V1LabelSelector Selector { get; set; }
/// <summary>
/// Gets or sets an object that describes the pod that will be created.
/// The DaemonSet will create exactly one copy of this pod on every
/// node that matches the template's node selector (or on every node if
/// no node selector is specified). More info:
/// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
/// </summary>
[JsonProperty(PropertyName = "template")]
public Corev1PodTemplateSpec Template { get; set; }
/// <summary>
/// Gets or sets an update strategy to replace existing DaemonSet pods
/// with new pods.
/// </summary>
[JsonProperty(PropertyName = "updateStrategy")]
public V1DaemonSetUpdateStrategy UpdateStrategy { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Template == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Template");
}
if (Template != null)
{
Template.Validate();
}
}
}
}

View File

@@ -1,60 +0,0 @@
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace k8s.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// DaemonSetUpdateStrategy is a struct used to control the update strategy
/// for a DaemonSet.
/// </summary>
public partial class V1DaemonSetUpdateStrategy
{
/// <summary>
/// Initializes a new instance of the V1DaemonSetUpdateStrategy class.
/// </summary>
public V1DaemonSetUpdateStrategy()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the V1DaemonSetUpdateStrategy class.
/// </summary>
/// <param name="rollingUpdate">Rolling update config params. Present
/// only if type = "RollingUpdate".</param>
/// <param name="type">Type of daemon set update. Can be
/// "RollingUpdate" or "OnDelete". Default is RollingUpdate.</param>
public V1DaemonSetUpdateStrategy(V1RollingUpdateDaemonSet rollingUpdate = default(V1RollingUpdateDaemonSet), string type = default(string))
{
RollingUpdate = rollingUpdate;
Type = type;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets rolling update config params. Present only if type =
/// "RollingUpdate".
/// </summary>
[JsonProperty(PropertyName = "rollingUpdate")]
public V1RollingUpdateDaemonSet RollingUpdate { get; set; }
/// <summary>
/// Gets or sets type of daemon set update. Can be "RollingUpdate" or
/// "OnDelete". Default is RollingUpdate.
/// </summary>
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
}
}

0
src/generated/Models/V1DeleteOptions.cs Executable file → Normal file
View File

View File

@@ -16,24 +16,22 @@ namespace k8s.Models
/// Note that this is identical to a downwardAPI volume source without the
/// default mode.
/// </summary>
public partial class Corev1DownwardAPIProjection
public partial class V1DownwardAPIProjection
{
/// <summary>
/// Initializes a new instance of the Corev1DownwardAPIProjection
/// class.
/// Initializes a new instance of the V1DownwardAPIProjection class.
/// </summary>
public Corev1DownwardAPIProjection()
public V1DownwardAPIProjection()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1DownwardAPIProjection
/// class.
/// Initializes a new instance of the V1DownwardAPIProjection class.
/// </summary>
/// <param name="items">Items is a list of DownwardAPIVolume
/// file</param>
public Corev1DownwardAPIProjection(IList<Corev1DownwardAPIVolumeFile> items = default(IList<Corev1DownwardAPIVolumeFile>))
public V1DownwardAPIProjection(IList<V1DownwardAPIVolumeFile> items = default(IList<V1DownwardAPIVolumeFile>))
{
Items = items;
CustomInit();
@@ -48,7 +46,7 @@ namespace k8s.Models
/// Gets or sets items is a list of DownwardAPIVolume file
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Corev1DownwardAPIVolumeFile> Items { get; set; }
public IList<V1DownwardAPIVolumeFile> Items { get; set; }
}
}

View File

@@ -14,20 +14,18 @@ namespace k8s.Models
/// DownwardAPIVolumeFile represents information to create the file
/// containing the pod field
/// </summary>
public partial class Corev1DownwardAPIVolumeFile
public partial class V1DownwardAPIVolumeFile
{
/// <summary>
/// Initializes a new instance of the Corev1DownwardAPIVolumeFile
/// class.
/// Initializes a new instance of the V1DownwardAPIVolumeFile class.
/// </summary>
public Corev1DownwardAPIVolumeFile()
public V1DownwardAPIVolumeFile()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1DownwardAPIVolumeFile
/// class.
/// Initializes a new instance of the V1DownwardAPIVolumeFile class.
/// </summary>
/// <param name="path">Required: Path is the relative path name of the
/// file to be created. Must not be absolute or contain the '..' path.
@@ -43,7 +41,7 @@ namespace k8s.Models
/// <param name="resourceFieldRef">Selects a resource of the container:
/// only resources limits and requests (limits.cpu, limits.memory,
/// requests.cpu and requests.memory) are currently supported.</param>
public Corev1DownwardAPIVolumeFile(string path, Corev1ObjectFieldSelector fieldRef = default(Corev1ObjectFieldSelector), int? mode = default(int?), Corev1ResourceFieldSelector resourceFieldRef = default(Corev1ResourceFieldSelector))
public V1DownwardAPIVolumeFile(string path, V1ObjectFieldSelector fieldRef = default(V1ObjectFieldSelector), int? mode = default(int?), V1ResourceFieldSelector resourceFieldRef = default(V1ResourceFieldSelector))
{
FieldRef = fieldRef;
Mode = mode;
@@ -62,7 +60,7 @@ namespace k8s.Models
/// annotations, labels, name and namespace are supported.
/// </summary>
[JsonProperty(PropertyName = "fieldRef")]
public Corev1ObjectFieldSelector FieldRef { get; set; }
public V1ObjectFieldSelector FieldRef { get; set; }
/// <summary>
/// Gets or sets optional: mode bits to use on this file, must be a
@@ -89,7 +87,7 @@ namespace k8s.Models
/// requests.memory) are currently supported.
/// </summary>
[JsonProperty(PropertyName = "resourceFieldRef")]
public Corev1ResourceFieldSelector ResourceFieldRef { get; set; }
public V1ResourceFieldSelector ResourceFieldRef { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -16,20 +16,18 @@ namespace k8s.Models
/// info. Downward API volumes support ownership management and SELinux
/// relabeling.
/// </summary>
public partial class Corev1DownwardAPIVolumeSource
public partial class V1DownwardAPIVolumeSource
{
/// <summary>
/// Initializes a new instance of the Corev1DownwardAPIVolumeSource
/// class.
/// Initializes a new instance of the V1DownwardAPIVolumeSource class.
/// </summary>
public Corev1DownwardAPIVolumeSource()
public V1DownwardAPIVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1DownwardAPIVolumeSource
/// class.
/// Initializes a new instance of the V1DownwardAPIVolumeSource class.
/// </summary>
/// <param name="defaultMode">Optional: mode bits to use on created
/// files by default. Must be a value between 0 and 0777. Defaults to
@@ -39,7 +37,7 @@ namespace k8s.Models
/// set.</param>
/// <param name="items">Items is a list of downward API volume
/// file</param>
public Corev1DownwardAPIVolumeSource(int? defaultMode = default(int?), IList<Corev1DownwardAPIVolumeFile> items = default(IList<Corev1DownwardAPIVolumeFile>))
public V1DownwardAPIVolumeSource(int? defaultMode = default(int?), IList<V1DownwardAPIVolumeFile> items = default(IList<V1DownwardAPIVolumeFile>))
{
DefaultMode = defaultMode;
Items = items;
@@ -65,7 +63,7 @@ namespace k8s.Models
/// Gets or sets items is a list of downward API volume file
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Corev1DownwardAPIVolumeFile> Items { get; set; }
public IList<V1DownwardAPIVolumeFile> Items { get; set; }
}
}

View File

@@ -13,18 +13,18 @@ namespace k8s.Models
/// Represents an empty directory for a pod. Empty directory volumes
/// support ownership management and SELinux relabeling.
/// </summary>
public partial class Corev1EmptyDirVolumeSource
public partial class V1EmptyDirVolumeSource
{
/// <summary>
/// Initializes a new instance of the Corev1EmptyDirVolumeSource class.
/// Initializes a new instance of the V1EmptyDirVolumeSource class.
/// </summary>
public Corev1EmptyDirVolumeSource()
public V1EmptyDirVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EmptyDirVolumeSource class.
/// Initializes a new instance of the V1EmptyDirVolumeSource class.
/// </summary>
/// <param name="medium">What type of storage medium should back this
/// directory. The default is "" which means to use the node's default
@@ -37,7 +37,7 @@ namespace k8s.Models
/// memory limits of all containers in a pod. The default is nil which
/// means that the limit is undefined. More info:
/// http://kubernetes.io/docs/user-guide/volumes#emptydir</param>
public Corev1EmptyDirVolumeSource(string medium = default(string), string sizeLimit = default(string))
public V1EmptyDirVolumeSource(string medium = default(string), ResourceQuantity sizeLimit = default(ResourceQuantity))
{
Medium = medium;
SizeLimit = sizeLimit;
@@ -68,7 +68,7 @@ namespace k8s.Models
/// http://kubernetes.io/docs/user-guide/volumes#emptydir
/// </summary>
[JsonProperty(PropertyName = "sizeLimit")]
public string SizeLimit { get; set; }
public ResourceQuantity SizeLimit { get; set; }
}
}

View File

@@ -13,18 +13,18 @@ namespace k8s.Models
/// <summary>
/// EndpointAddress is a tuple that describes single IP address.
/// </summary>
public partial class Corev1EndpointAddress
public partial class V1EndpointAddress
{
/// <summary>
/// Initializes a new instance of the Corev1EndpointAddress class.
/// Initializes a new instance of the V1EndpointAddress class.
/// </summary>
public Corev1EndpointAddress()
public V1EndpointAddress()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EndpointAddress class.
/// Initializes a new instance of the V1EndpointAddress class.
/// </summary>
/// <param name="ip">The IP of this endpoint. May not be loopback
/// (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast
@@ -36,7 +36,7 @@ namespace k8s.Models
/// can be used to determine endpoints local to a node.</param>
/// <param name="targetRef">Reference to object providing the
/// endpoint.</param>
public Corev1EndpointAddress(string ip, string hostname = default(string), string nodeName = default(string), Corev1ObjectReference targetRef = default(Corev1ObjectReference))
public V1EndpointAddress(string ip, string hostname = default(string), string nodeName = default(string), V1ObjectReference targetRef = default(V1ObjectReference))
{
Hostname = hostname;
Ip = ip;
@@ -77,7 +77,7 @@ namespace k8s.Models
/// Gets or sets reference to object providing the endpoint.
/// </summary>
[JsonProperty(PropertyName = "targetRef")]
public Corev1ObjectReference TargetRef { get; set; }
public V1ObjectReference TargetRef { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -12,18 +12,18 @@ namespace k8s.Models
/// <summary>
/// EndpointPort is a tuple that describes a single port.
/// </summary>
public partial class Corev1EndpointPort
public partial class V1EndpointPort
{
/// <summary>
/// Initializes a new instance of the Corev1EndpointPort class.
/// Initializes a new instance of the V1EndpointPort class.
/// </summary>
public Corev1EndpointPort()
public V1EndpointPort()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EndpointPort class.
/// Initializes a new instance of the V1EndpointPort class.
/// </summary>
/// <param name="port">The port number of the endpoint.</param>
/// <param name="name">The name of this port (corresponds to
@@ -31,7 +31,7 @@ namespace k8s.Models
/// is defined.</param>
/// <param name="protocol">The IP protocol for this port. Must be UDP
/// or TCP. Default is TCP.</param>
public Corev1EndpointPort(int port, string name = default(string), string protocol = default(string))
public V1EndpointPort(int port, string name = default(string), string protocol = default(string))
{
Name = name;
Port = port;

View File

@@ -23,18 +23,18 @@ namespace k8s.Models
/// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],
/// b: [ 10.10.1.1:309, 10.10.2.2:309 ]
/// </summary>
public partial class Corev1EndpointSubset
public partial class V1EndpointSubset
{
/// <summary>
/// Initializes a new instance of the Corev1EndpointSubset class.
/// Initializes a new instance of the V1EndpointSubset class.
/// </summary>
public Corev1EndpointSubset()
public V1EndpointSubset()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EndpointSubset class.
/// Initializes a new instance of the V1EndpointSubset class.
/// </summary>
/// <param name="addresses">IP addresses which offer the related ports
/// that are marked as ready. These endpoints should be considered safe
@@ -45,7 +45,7 @@ namespace k8s.Models
/// check, or have recently failed a liveness check.</param>
/// <param name="ports">Port numbers available on the related IP
/// addresses.</param>
public Corev1EndpointSubset(IList<Corev1EndpointAddress> addresses = default(IList<Corev1EndpointAddress>), IList<Corev1EndpointAddress> notReadyAddresses = default(IList<Corev1EndpointAddress>), IList<Corev1EndpointPort> ports = default(IList<Corev1EndpointPort>))
public V1EndpointSubset(IList<V1EndpointAddress> addresses = default(IList<V1EndpointAddress>), IList<V1EndpointAddress> notReadyAddresses = default(IList<V1EndpointAddress>), IList<V1EndpointPort> ports = default(IList<V1EndpointPort>))
{
Addresses = addresses;
NotReadyAddresses = notReadyAddresses;
@@ -64,7 +64,7 @@ namespace k8s.Models
/// balancers and clients to utilize.
/// </summary>
[JsonProperty(PropertyName = "addresses")]
public IList<Corev1EndpointAddress> Addresses { get; set; }
public IList<V1EndpointAddress> Addresses { get; set; }
/// <summary>
/// Gets or sets IP addresses which offer the related ports but are not
@@ -73,13 +73,13 @@ namespace k8s.Models
/// failed a liveness check.
/// </summary>
[JsonProperty(PropertyName = "notReadyAddresses")]
public IList<Corev1EndpointAddress> NotReadyAddresses { get; set; }
public IList<V1EndpointAddress> NotReadyAddresses { get; set; }
/// <summary>
/// Gets or sets port numbers available on the related IP addresses.
/// </summary>
[JsonProperty(PropertyName = "ports")]
public IList<Corev1EndpointPort> Ports { get; set; }
public IList<V1EndpointPort> Ports { get; set; }
}
}

View File

@@ -27,18 +27,18 @@ namespace k8s.Models
/// },
/// ]
/// </summary>
public partial class Corev1Endpoints
public partial class V1Endpoints
{
/// <summary>
/// Initializes a new instance of the Corev1Endpoints class.
/// Initializes a new instance of the V1Endpoints class.
/// </summary>
public Corev1Endpoints()
public V1Endpoints()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1Endpoints class.
/// Initializes a new instance of the V1Endpoints class.
/// </summary>
/// <param name="subsets">The set of all endpoints is the union of all
/// subsets. Addresses are placed into subsets according to the IPs
@@ -60,7 +60,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">Standard object's metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
public Corev1Endpoints(IList<Corev1EndpointSubset> subsets, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
public V1Endpoints(IList<V1EndpointSubset> subsets, string apiVersion = default(string), string kind = default(string), V1ObjectMeta metadata = default(V1ObjectMeta))
{
ApiVersion = apiVersion;
Kind = kind;
@@ -112,7 +112,7 @@ namespace k8s.Models
/// that comprise a service.
/// </summary>
[JsonProperty(PropertyName = "subsets")]
public IList<Corev1EndpointSubset> Subsets { get; set; }
public IList<V1EndpointSubset> Subsets { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -15,18 +15,18 @@ namespace k8s.Models
/// <summary>
/// EndpointsList is a list of endpoints.
/// </summary>
public partial class Corev1EndpointsList
public partial class V1EndpointsList
{
/// <summary>
/// Initializes a new instance of the Corev1EndpointsList class.
/// Initializes a new instance of the V1EndpointsList class.
/// </summary>
public Corev1EndpointsList()
public V1EndpointsList()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EndpointsList class.
/// Initializes a new instance of the V1EndpointsList class.
/// </summary>
/// <param name="items">List of endpoints.</param>
/// <param name="apiVersion">APIVersion defines the versioned schema of
@@ -41,7 +41,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">Standard list metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
public Corev1EndpointsList(IList<Corev1Endpoints> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
public V1EndpointsList(IList<V1Endpoints> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
{
ApiVersion = apiVersion;
Items = items;
@@ -69,7 +69,7 @@ namespace k8s.Models
/// Gets or sets list of endpoints.
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Corev1Endpoints> Items { get; set; }
public IList<V1Endpoints> Items { get; set; }
/// <summary>
/// Gets or sets kind is a string value representing the REST resource

View File

@@ -12,24 +12,24 @@ namespace k8s.Models
/// <summary>
/// EnvFromSource represents the source of a set of ConfigMaps
/// </summary>
public partial class Corev1EnvFromSource
public partial class V1EnvFromSource
{
/// <summary>
/// Initializes a new instance of the Corev1EnvFromSource class.
/// Initializes a new instance of the V1EnvFromSource class.
/// </summary>
public Corev1EnvFromSource()
public V1EnvFromSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EnvFromSource class.
/// Initializes a new instance of the V1EnvFromSource class.
/// </summary>
/// <param name="configMapRef">The ConfigMap to select from</param>
/// <param name="prefix">An optional identifer to prepend to each key
/// in the ConfigMap. Must be a C_IDENTIFIER.</param>
/// <param name="secretRef">The Secret to select from</param>
public Corev1EnvFromSource(Corev1ConfigMapEnvSource configMapRef = default(Corev1ConfigMapEnvSource), string prefix = default(string), Corev1SecretEnvSource secretRef = default(Corev1SecretEnvSource))
public V1EnvFromSource(V1ConfigMapEnvSource configMapRef = default(V1ConfigMapEnvSource), string prefix = default(string), V1SecretEnvSource secretRef = default(V1SecretEnvSource))
{
ConfigMapRef = configMapRef;
Prefix = prefix;
@@ -46,7 +46,7 @@ namespace k8s.Models
/// Gets or sets the ConfigMap to select from
/// </summary>
[JsonProperty(PropertyName = "configMapRef")]
public Corev1ConfigMapEnvSource ConfigMapRef { get; set; }
public V1ConfigMapEnvSource ConfigMapRef { get; set; }
/// <summary>
/// Gets or sets an optional identifer to prepend to each key in the
@@ -59,7 +59,7 @@ namespace k8s.Models
/// Gets or sets the Secret to select from
/// </summary>
[JsonProperty(PropertyName = "secretRef")]
public Corev1SecretEnvSource SecretRef { get; set; }
public V1SecretEnvSource SecretRef { get; set; }
}
}

View File

@@ -13,18 +13,18 @@ namespace k8s.Models
/// <summary>
/// EnvVar represents an environment variable present in a Container.
/// </summary>
public partial class Corev1EnvVar
public partial class V1EnvVar
{
/// <summary>
/// Initializes a new instance of the Corev1EnvVar class.
/// Initializes a new instance of the V1EnvVar class.
/// </summary>
public Corev1EnvVar()
public V1EnvVar()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EnvVar class.
/// Initializes a new instance of the V1EnvVar class.
/// </summary>
/// <param name="name">Name of the environment variable. Must be a
/// C_IDENTIFIER.</param>
@@ -37,7 +37,7 @@ namespace k8s.Models
/// of whether the variable exists or not. Defaults to "".</param>
/// <param name="valueFrom">Source for the environment variable's
/// value. Cannot be used if value is not empty.</param>
public Corev1EnvVar(string name, string value = default(string), Corev1EnvVarSource valueFrom = default(Corev1EnvVarSource))
public V1EnvVar(string name, string value = default(string), V1EnvVarSource valueFrom = default(V1EnvVarSource))
{
Name = name;
Value = value;
@@ -74,7 +74,7 @@ namespace k8s.Models
/// used if value is not empty.
/// </summary>
[JsonProperty(PropertyName = "valueFrom")]
public Corev1EnvVarSource ValueFrom { get; set; }
public V1EnvVarSource ValueFrom { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -12,18 +12,18 @@ namespace k8s.Models
/// <summary>
/// EnvVarSource represents a source for the value of an EnvVar.
/// </summary>
public partial class Corev1EnvVarSource
public partial class V1EnvVarSource
{
/// <summary>
/// Initializes a new instance of the Corev1EnvVarSource class.
/// Initializes a new instance of the V1EnvVarSource class.
/// </summary>
public Corev1EnvVarSource()
public V1EnvVarSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EnvVarSource class.
/// Initializes a new instance of the V1EnvVarSource class.
/// </summary>
/// <param name="configMapKeyRef">Selects a key of a ConfigMap.</param>
/// <param name="fieldRef">Selects a field of the pod: supports
@@ -36,7 +36,7 @@ namespace k8s.Models
/// requests.ephemeral-storage) are currently supported.</param>
/// <param name="secretKeyRef">Selects a key of a secret in the pod's
/// namespace</param>
public Corev1EnvVarSource(Corev1ConfigMapKeySelector configMapKeyRef = default(Corev1ConfigMapKeySelector), Corev1ObjectFieldSelector fieldRef = default(Corev1ObjectFieldSelector), Corev1ResourceFieldSelector resourceFieldRef = default(Corev1ResourceFieldSelector), Corev1SecretKeySelector secretKeyRef = default(Corev1SecretKeySelector))
public V1EnvVarSource(V1ConfigMapKeySelector configMapKeyRef = default(V1ConfigMapKeySelector), V1ObjectFieldSelector fieldRef = default(V1ObjectFieldSelector), V1ResourceFieldSelector resourceFieldRef = default(V1ResourceFieldSelector), V1SecretKeySelector secretKeyRef = default(V1SecretKeySelector))
{
ConfigMapKeyRef = configMapKeyRef;
FieldRef = fieldRef;
@@ -54,7 +54,7 @@ namespace k8s.Models
/// Gets or sets selects a key of a ConfigMap.
/// </summary>
[JsonProperty(PropertyName = "configMapKeyRef")]
public Corev1ConfigMapKeySelector ConfigMapKeyRef { get; set; }
public V1ConfigMapKeySelector ConfigMapKeyRef { get; set; }
/// <summary>
/// Gets or sets selects a field of the pod: supports metadata.name,
@@ -63,7 +63,7 @@ namespace k8s.Models
/// status.podIP.
/// </summary>
[JsonProperty(PropertyName = "fieldRef")]
public Corev1ObjectFieldSelector FieldRef { get; set; }
public V1ObjectFieldSelector FieldRef { get; set; }
/// <summary>
/// Gets or sets selects a resource of the container: only resources
@@ -72,13 +72,13 @@ namespace k8s.Models
/// requests.ephemeral-storage) are currently supported.
/// </summary>
[JsonProperty(PropertyName = "resourceFieldRef")]
public Corev1ResourceFieldSelector ResourceFieldRef { get; set; }
public V1ResourceFieldSelector ResourceFieldRef { get; set; }
/// <summary>
/// Gets or sets selects a key of a secret in the pod's namespace
/// </summary>
[JsonProperty(PropertyName = "secretKeyRef")]
public Corev1SecretKeySelector SecretKeyRef { get; set; }
public V1SecretKeySelector SecretKeyRef { get; set; }
/// <summary>
/// Validate the object.

View File

@@ -13,18 +13,18 @@ namespace k8s.Models
/// <summary>
/// Event is a report of an event somewhere in the cluster.
/// </summary>
public partial class Corev1Event
public partial class V1Event
{
/// <summary>
/// Initializes a new instance of the Corev1Event class.
/// Initializes a new instance of the V1Event class.
/// </summary>
public Corev1Event()
public V1Event()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1Event class.
/// Initializes a new instance of the V1Event class.
/// </summary>
/// <param name="involvedObject">The object that this event is
/// about.</param>
@@ -55,7 +55,7 @@ namespace k8s.Models
/// a short machine understandable string.</param>
/// <param name="type">Type of this event (Normal, Warning), new types
/// could be added in the future</param>
public Corev1Event(Corev1ObjectReference involvedObject, V1ObjectMeta metadata, string apiVersion = default(string), int? count = default(int?), System.DateTime? firstTimestamp = default(System.DateTime?), string kind = default(string), System.DateTime? lastTimestamp = default(System.DateTime?), string message = default(string), string reason = default(string), Corev1EventSource source = default(Corev1EventSource), string type = default(string))
public V1Event(V1ObjectReference involvedObject, V1ObjectMeta metadata, string apiVersion = default(string), int? count = default(int?), System.DateTime? firstTimestamp = default(System.DateTime?), string kind = default(string), System.DateTime? lastTimestamp = default(System.DateTime?), string message = default(string), string reason = default(string), V1EventSource source = default(V1EventSource), string type = default(string))
{
ApiVersion = apiVersion;
Count = count;
@@ -103,7 +103,7 @@ namespace k8s.Models
/// Gets or sets the object that this event is about.
/// </summary>
[JsonProperty(PropertyName = "involvedObject")]
public Corev1ObjectReference InvolvedObject { get; set; }
public V1ObjectReference InvolvedObject { get; set; }
/// <summary>
/// Gets or sets kind is a string value representing the REST resource
@@ -149,7 +149,7 @@ namespace k8s.Models
/// machine understandable string.
/// </summary>
[JsonProperty(PropertyName = "source")]
public Corev1EventSource Source { get; set; }
public V1EventSource Source { get; set; }
/// <summary>
/// Gets or sets type of this event (Normal, Warning), new types could

View File

@@ -15,18 +15,18 @@ namespace k8s.Models
/// <summary>
/// EventList is a list of events.
/// </summary>
public partial class Corev1EventList
public partial class V1EventList
{
/// <summary>
/// Initializes a new instance of the Corev1EventList class.
/// Initializes a new instance of the V1EventList class.
/// </summary>
public Corev1EventList()
public V1EventList()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EventList class.
/// Initializes a new instance of the V1EventList class.
/// </summary>
/// <param name="items">List of events</param>
/// <param name="apiVersion">APIVersion defines the versioned schema of
@@ -41,7 +41,7 @@ namespace k8s.Models
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
/// <param name="metadata">Standard list metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds</param>
public Corev1EventList(IList<Corev1Event> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
public V1EventList(IList<V1Event> items, string apiVersion = default(string), string kind = default(string), V1ListMeta metadata = default(V1ListMeta))
{
ApiVersion = apiVersion;
Items = items;
@@ -69,7 +69,7 @@ namespace k8s.Models
/// Gets or sets list of events
/// </summary>
[JsonProperty(PropertyName = "items")]
public IList<Corev1Event> Items { get; set; }
public IList<V1Event> Items { get; set; }
/// <summary>
/// Gets or sets kind is a string value representing the REST resource

View File

@@ -12,24 +12,24 @@ namespace k8s.Models
/// <summary>
/// EventSource contains information for an event.
/// </summary>
public partial class Corev1EventSource
public partial class V1EventSource
{
/// <summary>
/// Initializes a new instance of the Corev1EventSource class.
/// Initializes a new instance of the V1EventSource class.
/// </summary>
public Corev1EventSource()
public V1EventSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1EventSource class.
/// Initializes a new instance of the V1EventSource class.
/// </summary>
/// <param name="component">Component from which the event is
/// generated.</param>
/// <param name="host">Node name on which the event is
/// generated.</param>
public Corev1EventSource(string component = default(string), string host = default(string))
public V1EventSource(string component = default(string), string host = default(string))
{
Component = component;
Host = host;

View File

@@ -14,18 +14,18 @@ namespace k8s.Models
/// <summary>
/// ExecAction describes a "run in container" action.
/// </summary>
public partial class Corev1ExecAction
public partial class V1ExecAction
{
/// <summary>
/// Initializes a new instance of the Corev1ExecAction class.
/// Initializes a new instance of the V1ExecAction class.
/// </summary>
public Corev1ExecAction()
public V1ExecAction()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1ExecAction class.
/// Initializes a new instance of the V1ExecAction class.
/// </summary>
/// <param name="command">Command is the command line to execute inside
/// the container, the working directory for the command is root ('/')
@@ -34,7 +34,7 @@ namespace k8s.Models
/// etc) won't work. To use a shell, you need to explicitly call out to
/// that shell. Exit status of 0 is treated as live/healthy and
/// non-zero is unhealthy.</param>
public Corev1ExecAction(IList<string> command = default(IList<string>))
public V1ExecAction(IList<string> command = default(IList<string>))
{
Command = command;
CustomInit();

View File

@@ -16,18 +16,18 @@ namespace k8s.Models
/// mounted as read/write once. Fibre Channel volumes support ownership
/// management and SELinux relabeling.
/// </summary>
public partial class Corev1FCVolumeSource
public partial class V1FCVolumeSource
{
/// <summary>
/// Initializes a new instance of the Corev1FCVolumeSource class.
/// Initializes a new instance of the V1FCVolumeSource class.
/// </summary>
public Corev1FCVolumeSource()
public V1FCVolumeSource()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the Corev1FCVolumeSource class.
/// Initializes a new instance of the V1FCVolumeSource class.
/// </summary>
/// <param name="fsType">Filesystem type to mount. Must be a filesystem
/// type supported by the host operating system. Ex. "ext4", "xfs",
@@ -41,7 +41,7 @@ namespace k8s.Models
/// <param name="wwids">Optional: FC volume world wide identifiers
/// (wwids) Either wwids or combination of targetWWNs and lun must be
/// set, but not both simultaneously.</param>
public Corev1FCVolumeSource(string fsType = default(string), int? lun = default(int?), bool? readOnlyProperty = default(bool?), IList<string> targetWWNs = default(IList<string>), IList<string> wwids = default(IList<string>))
public V1FCVolumeSource(string fsType = default(string), int? lun = default(int?), bool? readOnlyProperty = default(bool?), IList<string> targetWWNs = default(IList<string>), IList<string> wwids = default(IList<string>))
{
FsType = fsType;
Lun = lun;

Some files were not shown because too many files have changed in this diff Show More