/// <summary>
 /// Initializes a new instance of the
 /// Iok8sapiappsv1beta1DeploymentRollback class.
 /// </summary>
 /// <param name="name">Required: This must match the Name of a
 /// deployment.</param>
 /// <param name="rollbackTo">The config of this deployment
 /// rollback.</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="updatedAnnotations">The annotations to be updated to a
 /// deployment</param>
 public Iok8sapiappsv1beta1DeploymentRollback(string name, Iok8sapiappsv1beta1RollbackConfig rollbackTo, string apiVersion = default(string), string kind = default(string), IDictionary <string, string> updatedAnnotations = default(IDictionary <string, string>))
 {
     ApiVersion         = apiVersion;
     Kind               = kind;
     Name               = name;
     RollbackTo         = rollbackTo;
     UpdatedAnnotations = updatedAnnotations;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the Iok8sapiappsv1beta1DeploymentSpec
 /// 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 2.</param>
 /// <param name="rollbackTo">DEPRECATED. The config this deployment is
 /// rolling back to. Will be cleared after rollback is done.</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 Iok8sapiappsv1beta1DeploymentSpec(Iok8sapicorev1PodTemplateSpec template, int?minReadySeconds = default(int?), bool?paused = default(bool?), int?progressDeadlineSeconds = default(int?), int?replicas = default(int?), int?revisionHistoryLimit = default(int?), Iok8sapiappsv1beta1RollbackConfig rollbackTo = default(Iok8sapiappsv1beta1RollbackConfig), Iok8sapimachinerypkgapismetav1LabelSelector selector = default(Iok8sapimachinerypkgapismetav1LabelSelector), Iok8sapiappsv1beta1DeploymentStrategy strategy = default(Iok8sapiappsv1beta1DeploymentStrategy))
 {
     MinReadySeconds         = minReadySeconds;
     Paused                  = paused;
     ProgressDeadlineSeconds = progressDeadlineSeconds;
     Replicas                = replicas;
     RevisionHistoryLimit    = revisionHistoryLimit;
     RollbackTo              = rollbackTo;
     Selector                = selector;
     Strategy                = strategy;
     Template                = template;
     CustomInit();
 }