/// <summary>
 /// Initializes a new instance of the UpgradePolicy class.
 /// </summary>
 /// <param name="mode">Specifies the mode of an upgrade to virtual
 /// machines in the scale set.&lt;br /&gt;&lt;br /&gt; Possible values
 /// are:&lt;br /&gt;&lt;br /&gt; **Manual** - You  control the
 /// application of updates to virtual machines in the scale set. You do
 /// this by using the manualUpgrade action.&lt;br /&gt;&lt;br /&gt;
 /// **Automatic** - All virtual machines in the scale set are
 /// automatically updated at the same time. Possible values include:
 /// 'Automatic', 'Manual', 'Rolling'</param>
 /// <param name="rollingUpgradePolicy">The configuration parameters
 /// used while performing a rolling upgrade.</param>
 /// <param name="automaticOSUpgradePolicy">Configuration parameters
 /// used for performing automatic OS Upgrade.</param>
 public UpgradePolicy(UpgradeMode?mode = default(UpgradeMode?), RollingUpgradePolicy rollingUpgradePolicy = default(RollingUpgradePolicy), AutomaticOSUpgradePolicy automaticOSUpgradePolicy = default(AutomaticOSUpgradePolicy))
 {
     Mode = mode;
     RollingUpgradePolicy     = rollingUpgradePolicy;
     AutomaticOSUpgradePolicy = automaticOSUpgradePolicy;
     CustomInit();
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (RollingUpgradePolicy != null)
     {
         RollingUpgradePolicy.Validate();
     }
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the RollingUpgradeStatusInfoInner
 /// class.
 /// </summary>
 /// <param name="policy">The rolling upgrade policies applied for this
 /// upgrade.</param>
 /// <param name="runningStatus">Information about the current running
 /// state of the overall upgrade.</param>
 /// <param name="progress">Information about the number of virtual
 /// machine instances in each upgrade state.</param>
 /// <param name="error">Error details for this upgrade, if there are
 /// any.</param>
 public RollingUpgradeStatusInfoInner(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), RollingUpgradePolicy policy = default(RollingUpgradePolicy), RollingUpgradeRunningStatus runningStatus = default(RollingUpgradeRunningStatus), RollingUpgradeProgressInfo progress = default(RollingUpgradeProgressInfo), ApiError error = default(ApiError))
     : base(location, id, name, type, tags)
 {
     Policy        = policy;
     RunningStatus = runningStatus;
     Progress      = progress;
     Error         = error;
     CustomInit();
 }