Ejemplo n.º 1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (RollingUpgradePolicy != null)
     {
         RollingUpgradePolicy.Validate();
     }
 }
Ejemplo n.º 2
0
 /// <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="automaticOSUpgrade">Whether OS upgrades should
 /// automatically be applied to scale set instances in a rolling
 /// fashion when a newer version of the image becomes
 /// available.</param>
 public UpgradePolicy(UpgradeMode?mode = default(UpgradeMode?), RollingUpgradePolicy rollingUpgradePolicy = default(RollingUpgradePolicy), bool?automaticOSUpgrade = default(bool?))
 {
     Mode = mode;
     RollingUpgradePolicy = rollingUpgradePolicy;
     AutomaticOSUpgrade   = automaticOSUpgrade;
     CustomInit();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the RollingUpgradeStatusInfo class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="id">Resource Id</param>
 /// <param name="name">Resource name</param>
 /// <param name="type">Resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <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 RollingUpgradeStatusInfo(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();
 }