//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
//
namespace k8s.Models
{
using Newtonsoft.Json;
using System.Linq;
///
/// DeploymentStrategy describes how to replace existing pods with new
/// ones.
///
public partial class Extensionsv1beta1DeploymentStrategy
{
///
/// Initializes a new instance of the
/// Extensionsv1beta1DeploymentStrategy class.
///
public Extensionsv1beta1DeploymentStrategy()
{
CustomInit();
}
///
/// Initializes a new instance of the
/// Extensionsv1beta1DeploymentStrategy class.
///
/// Rolling update config params. Present
/// only if DeploymentStrategyType = RollingUpdate.
/// Type of deployment. Can be "Recreate" or
/// "RollingUpdate". Default is RollingUpdate.
public Extensionsv1beta1DeploymentStrategy(Extensionsv1beta1RollingUpdateDeployment rollingUpdate = default(Extensionsv1beta1RollingUpdateDeployment), string type = default(string))
{
RollingUpdate = rollingUpdate;
Type = type;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets rolling update config params. Present only if
/// DeploymentStrategyType = RollingUpdate.
///
[JsonProperty(PropertyName = "rollingUpdate")]
public Extensionsv1beta1RollingUpdateDeployment RollingUpdate { get; set; }
///
/// Gets or sets type of deployment. Can be "Recreate" or
/// "RollingUpdate". Default is RollingUpdate.
///
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
}
}