/// <summary>
 /// Initializes a new instance of the
 /// Iok8sapiextensionsv1beta1ReplicaSetSpec class.
 /// </summary>
 /// <param name="minReadySeconds">Minimum number of seconds for which a
 /// newly created 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="replicas">Replicas is the number of desired replicas.
 /// This is a pointer to distinguish between explicit zero and
 /// unspecified. Defaults to 1. More info:
 /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller</param>
 /// <param name="selector">Selector is a label query over pods that
 /// should match the replica count. If the selector is empty, it is
 /// defaulted to the labels present on the pod template. Label keys and
 /// values that must match in order to be controlled by this replica
 /// set. More info:
 /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors</param>
 /// <param name="template">Template is the object that describes the
 /// pod that will be created if insufficient replicas are detected.
 /// More info:
 /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template</param>
 public Iok8sapiextensionsv1beta1ReplicaSetSpec(int?minReadySeconds = default(int?), int?replicas = default(int?), Iok8sapimachinerypkgapismetav1LabelSelector selector = default(Iok8sapimachinerypkgapismetav1LabelSelector), Iok8sapicorev1PodTemplateSpec template = default(Iok8sapicorev1PodTemplateSpec))
 {
     MinReadySeconds = minReadySeconds;
     Replicas        = replicas;
     Selector        = selector;
     Template        = template;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Iok8sapicorev1PodTemplate 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="template">Template defines the pods that will be
 /// created from this pod template.
 /// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status</param>
 public Iok8sapicorev1PodTemplate(string apiVersion = default(string), string kind = default(string), Iok8sapimachinerypkgapismetav1ObjectMeta metadata = default(Iok8sapimachinerypkgapismetav1ObjectMeta), Iok8sapicorev1PodTemplateSpec template = default(Iok8sapicorev1PodTemplateSpec))
 {
     ApiVersion = apiVersion;
     Kind       = kind;
     Metadata   = metadata;
     Template   = template;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the
 /// Iok8sapicorev1ReplicationControllerSpec class.
 /// </summary>
 /// <param name="minReadySeconds">Minimum number of seconds for which a
 /// newly created 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="replicas">Replicas is the number of desired replicas.
 /// This is a pointer to distinguish between explicit zero and
 /// unspecified. Defaults to 1. More info:
 /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller</param>
 /// <param name="selector">Selector is a label query over pods that
 /// should match the Replicas count. If Selector is empty, it is
 /// defaulted to the labels present on the Pod template. Label keys and
 /// values that must match in order to be controlled by this
 /// replication controller, 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="template">Template is the object that describes the
 /// pod that will be created if insufficient replicas are detected.
 /// This takes precedence over a TemplateRef. More info:
 /// https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template</param>
 public Iok8sapicorev1ReplicationControllerSpec(int?minReadySeconds = default(int?), int?replicas = default(int?), IDictionary <string, string> selector = default(IDictionary <string, string>), Iok8sapicorev1PodTemplateSpec template = default(Iok8sapicorev1PodTemplateSpec))
 {
     MinReadySeconds = minReadySeconds;
     Replicas        = replicas;
     Selector        = selector;
     Template        = template;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Iok8sapiappsv1beta2DaemonSetSpec
 /// 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 Iok8sapiappsv1beta2DaemonSetSpec(Iok8sapicorev1PodTemplateSpec template, int?minReadySeconds = default(int?), int?revisionHistoryLimit = default(int?), Iok8sapimachinerypkgapismetav1LabelSelector selector = default(Iok8sapimachinerypkgapismetav1LabelSelector), Iok8sapiappsv1beta2DaemonSetUpdateStrategy updateStrategy = default(Iok8sapiappsv1beta2DaemonSetUpdateStrategy))
 {
     MinReadySeconds      = minReadySeconds;
     RevisionHistoryLimit = revisionHistoryLimit;
     Selector             = selector;
     Template             = template;
     UpdateStrategy       = updateStrategy;
     CustomInit();
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the Iok8sapibatchv1JobSpec class.
 /// </summary>
 /// <param name="template">Describes the pod that will be created when
 /// executing a job. More info:
 /// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/</param>
 /// <param name="activeDeadlineSeconds">Specifies the duration in
 /// seconds relative to the startTime that the job may be active before
 /// the system tries to terminate it; value must be positive
 /// integer</param>
 /// <param name="backoffLimit">Specifies the number of retries before
 /// marking this job failed. Defaults to 6</param>
 /// <param name="completions">Specifies the desired number of
 /// successfully finished pods the job should be run with.  Setting to
 /// nil means that the success of any pod signals the success of all
 /// pods, and allows parallelism to have any positive value.  Setting
 /// to 1 means that parallelism is limited to 1 and the success of that
 /// pod signals the success of the job. More info:
 /// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/</param>
 /// <param name="manualSelector">manualSelector controls generation of
 /// pod labels and pod selectors. Leave `manualSelector` unset unless
 /// you are certain what you are doing. When false or unset, the system
 /// pick labels unique to this job and appends those labels to the pod
 /// template.  When true, the user is responsible for picking unique
 /// labels and specifying the selector.  Failure to pick a unique label
 /// may cause this and other jobs to not function correctly.  However,
 /// You may see `manualSelector=true` in jobs that were created with
 /// the old `extensions/v1beta1` API. More info:
 /// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector</param>
 /// <param name="parallelism">Specifies the maximum desired number of
 /// pods the job should run at any given time. The actual number of
 /// pods running in steady state will be less than this number when
 /// ((.spec.completions - .status.successful) &lt; .spec.parallelism),
 /// i.e. when the work left to do is less than max parallelism. More
 /// info:
 /// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/</param>
 /// <param name="selector">A label query over pods that should match
 /// the pod count. Normally, the system sets this field for you. More
 /// info:
 /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors</param>
 public Iok8sapibatchv1JobSpec(Iok8sapicorev1PodTemplateSpec template, long?activeDeadlineSeconds = default(long?), int?backoffLimit = default(int?), int?completions = default(int?), bool?manualSelector = default(bool?), int?parallelism = default(int?), Iok8sapimachinerypkgapismetav1LabelSelector selector = default(Iok8sapimachinerypkgapismetav1LabelSelector))
 {
     ActiveDeadlineSeconds = activeDeadlineSeconds;
     BackoffLimit          = backoffLimit;
     Completions           = completions;
     ManualSelector        = manualSelector;
     Parallelism           = parallelism;
     Selector = selector;
     Template = template;
     CustomInit();
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the
 /// Iok8sapiappsv1beta2StatefulSetSpec class.
 /// </summary>
 /// <param name="serviceName">serviceName is the name of the service
 /// that governs this StatefulSet. This service must exist before the
 /// StatefulSet, and is responsible for the network identity of the
 /// set. Pods get DNS/hostnames that follow the pattern:
 /// pod-specific-string.serviceName.default.svc.cluster.local where
 /// "pod-specific-string" is managed by the StatefulSet
 /// controller.</param>
 /// <param name="template">template is the object that describes the
 /// pod that will be created if insufficient replicas are detected.
 /// Each pod stamped out by the StatefulSet will fulfill this Template,
 /// but have a unique identity from the rest of the
 /// StatefulSet.</param>
 /// <param name="podManagementPolicy">podManagementPolicy controls how
 /// pods are created during initial scale up, when replacing pods on
 /// nodes, or when scaling down. The default policy is `OrderedReady`,
 /// where pods are created in increasing order (pod-0, then pod-1, etc)
 /// and the controller will wait until each pod is ready before
 /// continuing. When scaling down, the pods are removed in the opposite
 /// order. The alternative policy is `Parallel` which will create pods
 /// in parallel to match the desired scale without waiting, and on
 /// scale down will delete all pods at once.</param>
 /// <param name="replicas">replicas is the desired number of replicas
 /// of the given Template. These are replicas in the sense that they
 /// are instantiations of the same Template, but individual replicas
 /// also have a consistent identity. If unspecified, defaults to
 /// 1.</param>
 /// <param name="revisionHistoryLimit">revisionHistoryLimit is the
 /// maximum number of revisions that will be maintained in the
 /// StatefulSet's revision history. The revision history consists of
 /// all revisions not represented by a currently applied
 /// StatefulSetSpec version. The default value is 10.</param>
 /// <param name="selector">selector is a label query over pods that
 /// should match the replica count. If empty, defaulted to labels on
 /// the pod template. More info:
 /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors</param>
 /// <param name="updateStrategy">updateStrategy indicates the
 /// StatefulSetUpdateStrategy that will be employed to update Pods in
 /// the StatefulSet when a revision is made to Template.</param>
 /// <param name="volumeClaimTemplates">volumeClaimTemplates is a list
 /// of claims that pods are allowed to reference. The StatefulSet
 /// controller is responsible for mapping network identities to claims
 /// in a way that maintains the identity of a pod. Every claim in this
 /// list must have at least one matching (by name) volumeMount in one
 /// container in the template. A claim in this list takes precedence
 /// over any volumes in the template, with the same name.</param>
 public Iok8sapiappsv1beta2StatefulSetSpec(string serviceName, Iok8sapicorev1PodTemplateSpec template, string podManagementPolicy = default(string), int?replicas = default(int?), int?revisionHistoryLimit = default(int?), Iok8sapimachinerypkgapismetav1LabelSelector selector = default(Iok8sapimachinerypkgapismetav1LabelSelector), Iok8sapiappsv1beta2StatefulSetUpdateStrategy updateStrategy = default(Iok8sapiappsv1beta2StatefulSetUpdateStrategy), IList <Iok8sapicorev1PersistentVolumeClaim> volumeClaimTemplates = default(IList <Iok8sapicorev1PersistentVolumeClaim>))
 {
     PodManagementPolicy  = podManagementPolicy;
     Replicas             = replicas;
     RevisionHistoryLimit = revisionHistoryLimit;
     Selector             = selector;
     ServiceName          = serviceName;
     Template             = template;
     UpdateStrategy       = updateStrategy;
     VolumeClaimTemplates = volumeClaimTemplates;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Iok8sapiappsv1beta2DeploymentSpec
 /// class.
 /// </summary>
 /// <param name="template">Template describes the pods that will be
 /// created.</param>
 /// <param name="minReadySeconds">Minimum number of seconds for which a
 /// newly created 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="paused">Indicates that the deployment is
 /// paused.</param>
 /// <param name="progressDeadlineSeconds">The maximum time in seconds
 /// for a deployment to make progress before it is considered to be
 /// failed. The deployment controller will continue to process failed
 /// deployments and a condition with a ProgressDeadlineExceeded reason
 /// will be surfaced in the deployment status. Note that progress will
 /// not be estimated during the time a deployment is paused. Defaults
 /// to 600s.</param>
 /// <param name="replicas">Number of desired pods. This is a pointer to
 /// distinguish between explicit zero and not specified. Defaults to
 /// 1.</param>
 /// <param name="revisionHistoryLimit">The number of old ReplicaSets to
 /// retain to allow rollback. This is a pointer to distinguish between
 /// explicit zero and not specified. Defaults to 10.</param>
 /// <param name="selector">Label selector for pods. Existing
 /// ReplicaSets whose pods are selected by this will be the ones
 /// affected by this deployment.</param>
 /// <param name="strategy">The deployment strategy to use to replace
 /// existing pods with new ones.</param>
 public Iok8sapiappsv1beta2DeploymentSpec(Iok8sapicorev1PodTemplateSpec template, int?minReadySeconds = default(int?), bool?paused = default(bool?), int?progressDeadlineSeconds = default(int?), int?replicas = default(int?), int?revisionHistoryLimit = default(int?), Iok8sapimachinerypkgapismetav1LabelSelector selector = default(Iok8sapimachinerypkgapismetav1LabelSelector), Iok8sapiappsv1beta2DeploymentStrategy strategy = default(Iok8sapiappsv1beta2DeploymentStrategy))
 {
     MinReadySeconds         = minReadySeconds;
     Paused                  = paused;
     ProgressDeadlineSeconds = progressDeadlineSeconds;
     Replicas                = replicas;
     RevisionHistoryLimit    = revisionHistoryLimit;
     Selector                = selector;
     Strategy                = strategy;
     Template                = template;
     CustomInit();
 }