forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 7cd1aa92499c42947998cf1570e19ac0087fda19 (#193)
missing section for compute 2019-07-01
- Loading branch information
1 parent
d694663
commit 27de5fe
Showing
5 changed files
with
141 additions
and
13 deletions.
There are no files selected for viewing
92 changes: 92 additions & 0 deletions
92
sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/ScaleInPolicy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
// <auto-generated> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.Compute.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Describes a scale-in policy for a virtual machine scale set. | ||
/// </summary> | ||
public partial class ScaleInPolicy | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the ScaleInPolicy class. | ||
/// </summary> | ||
public ScaleInPolicy() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the ScaleInPolicy class. | ||
/// </summary> | ||
/// <param name="rules">The rules to be followed when scaling-in a | ||
/// virtual machine scale set. <br><br> Possible values | ||
/// are: <br><br> **Default** When a virtual machine scale | ||
/// set is scaled in, the scale set will first be balanced across zones | ||
/// if it is a zonal scale set. Then, it will be balanced across Fault | ||
/// Domains as far as possible. Within each Fault Domain, the virtual | ||
/// machines chosen for removal will be the newest ones that are not | ||
/// protected from scale-in. <br><br> **OldestVM** When a | ||
/// virtual machine scale set is being scaled-in, the oldest virtual | ||
/// machines that are not protected from scale-in will be chosen for | ||
/// removal. For zonal virtual machine scale sets, the scale set will | ||
/// first be balanced across zones. Within each zone, the oldest | ||
/// virtual machines that are not protected will be chosen for removal. | ||
/// <br><br> **NewestVM** When a virtual machine scale set | ||
/// is being scaled-in, the newest virtual machines that are not | ||
/// protected from scale-in will be chosen for removal. For zonal | ||
/// virtual machine scale sets, the scale set will first be balanced | ||
/// across zones. Within each zone, the newest virtual machines that | ||
/// are not protected will be chosen for removal. | ||
/// <br><br></param> | ||
public ScaleInPolicy(IList<string> rules = default(IList<string>)) | ||
{ | ||
Rules = rules; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets the rules to be followed when scaling-in a virtual | ||
/// machine scale set. &lt;br&gt;&lt;br&gt; Possible | ||
/// values are: &lt;br&gt;&lt;br&gt; **Default** When a | ||
/// virtual machine scale set is scaled in, the scale set will first be | ||
/// balanced across zones if it is a zonal scale set. Then, it will be | ||
/// balanced across Fault Domains as far as possible. Within each Fault | ||
/// Domain, the virtual machines chosen for removal will be the newest | ||
/// ones that are not protected from scale-in. | ||
/// &lt;br&gt;&lt;br&gt; **OldestVM** When a virtual | ||
/// machine scale set is being scaled-in, the oldest virtual machines | ||
/// that are not protected from scale-in will be chosen for removal. | ||
/// For zonal virtual machine scale sets, the scale set will first be | ||
/// balanced across zones. Within each zone, the oldest virtual | ||
/// machines that are not protected will be chosen for removal. | ||
/// &lt;br&gt;&lt;br&gt; **NewestVM** When a virtual | ||
/// machine scale set is being scaled-in, the newest virtual machines | ||
/// that are not protected from scale-in will be chosen for removal. | ||
/// For zonal virtual machine scale sets, the scale set will first be | ||
/// balanced across zones. Within each zone, the newest virtual | ||
/// machines that are not protected will be chosen for removal. | ||
/// &lt;br&gt;&lt;br&gt; | ||
/// </summary> | ||
[JsonProperty(PropertyName = "rules")] | ||
public IList<string> Rules { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...osoft.Azure.Management.Compute/src/Generated/Models/VirtualMachineScaleSetScaleInRules.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// <auto-generated> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.Compute.Models | ||
{ | ||
|
||
/// <summary> | ||
/// Defines values for VirtualMachineScaleSetScaleInRules. | ||
/// </summary> | ||
public static class VirtualMachineScaleSetScaleInRules | ||
{ | ||
public const string Default = "Default"; | ||
public const string OldestVM = "OldestVM"; | ||
public const string NewestVM = "NewestVM"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters