-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDK changes for swagger update to support AutomaticRepairsPolicy for …
…Virtual Machine Scale Sets (#8141) * SDK changes * Run CodeGen tool on master * Update package release notes. Revert AssemblyFileVersion increment * Fix indent * Fix file version
- Loading branch information
Showing
23 changed files
with
6,342 additions
and
36 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,12 +3,12 @@ AutoRest installed successfully. | |
Commencing code generation | ||
Generating CSharp code | ||
Executing AutoRest command | ||
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\hylee-sdk\avset\sdk | ||
2019-08-30 19:41:37 UTC | ||
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\repos\azure-sdk-for-net\azure-sdk-for-net\sdk | ||
2019-10-16 16:15:42 UTC | ||
Azure-rest-api-specs repository information | ||
GitHub fork: Azure | ||
Branch: master | ||
Commit: 6359c5dac93947b24007afd9c569e23e92848ea5 | ||
Commit: 14464cf0bec27f838f1649f562c9f98cc4074855 | ||
AutoRest information | ||
Requested version: latest | ||
Bootstrapper version: [email protected] |
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
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
84 changes: 84 additions & 0 deletions
84
...compute/Microsoft.Azure.Management.Compute/src/Generated/Models/AutomaticRepairsPolicy.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,84 @@ | ||
// <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.Linq; | ||
|
||
/// <summary> | ||
/// Specifies the configuration parameters for automatic repairs on the | ||
/// virtual machine scale set. | ||
/// </summary> | ||
public partial class AutomaticRepairsPolicy | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the AutomaticRepairsPolicy class. | ||
/// </summary> | ||
public AutomaticRepairsPolicy() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the AutomaticRepairsPolicy class. | ||
/// </summary> | ||
/// <param name="enabled">Specifies whether automatic repairs should be | ||
/// enabled on the virtual machine scale set. The default value is | ||
/// false.</param> | ||
/// <param name="gracePeriod">The amount of time for which automatic | ||
/// repairs are suspended due to a state change on VM. The grace time | ||
/// starts after the state change has completed. This helps avoid | ||
/// premature or accidental repairs. The time duration should be | ||
/// specified in ISO 8601 format. The default value is 5 minutes | ||
/// (PT5M).</param> | ||
/// <param name="maxInstanceRepairsPercent">The percentage (capacity of | ||
/// scaleset) of virtual machines that will be simultaneously repaired. | ||
/// The default value is 20%.</param> | ||
public AutomaticRepairsPolicy(bool? enabled = default(bool?), string gracePeriod = default(string), int? maxInstanceRepairsPercent = default(int?)) | ||
{ | ||
Enabled = enabled; | ||
GracePeriod = gracePeriod; | ||
MaxInstanceRepairsPercent = maxInstanceRepairsPercent; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets specifies whether automatic repairs should be enabled | ||
/// on the virtual machine scale set. The default value is false. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "enabled")] | ||
public bool? Enabled { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the amount of time for which automatic repairs are | ||
/// suspended due to a state change on VM. The grace time starts after | ||
/// the state change has completed. This helps avoid premature or | ||
/// accidental repairs. The time duration should be specified in ISO | ||
/// 8601 format. The default value is 5 minutes (PT5M). | ||
/// </summary> | ||
[JsonProperty(PropertyName = "gracePeriod")] | ||
public string GracePeriod { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the percentage (capacity of scaleset) of virtual | ||
/// machines that will be simultaneously repaired. The default value is | ||
/// 20%. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "maxInstanceRepairsPercent")] | ||
public int? MaxInstanceRepairsPercent { 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
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; } | ||
|
||
} | ||
} |
Oops, something went wrong.