Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK changes for AutoRepairs API #9090

Merged
merged 4 commits into from
Dec 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions eng/mgmt/mgmtmetadata/compute_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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=C:\Users\luwu\Documents\october\sdk
2019-12-14 00:40:34 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-12-16 18:21:47 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 95a07a02a137d4850a3a2c5b53da757ea891151f
Commit: 17cd6b2edff44b87012e888876ce58de10129850
AutoRest information
Requested version: latest
Bootstrapper version: [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,12 @@ public partial interface IVirtualMachinesOperations
/// <summary>
/// Sets the OS state of the virtual machine to generalized. It is
/// recommended to sysprep the virtual machine before performing this
/// operation
/// operation. &lt;br&gt;For Windows, please refer to [Create a managed
/// image of a generalized VM in
/// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource).&lt;br&gt;For
/// Linux, please refer to [How to create an image of a virtual machine
/// or
/// VHD](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image).
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,12 @@ public AutomaticRepairsPolicy()
/// 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?))
/// specified in ISO 8601 format. The minimum allowed grace period is
/// 30 minutes (PT30M), which is also the default value.</param>
public AutomaticRepairsPolicy(bool? enabled = default(bool?), string gracePeriod = default(string))
{
Enabled = enabled;
GracePeriod = gracePeriod;
MaxInstanceRepairsPercent = maxInstanceRepairsPercent;
CustomInit();
}

Expand All @@ -67,18 +63,11 @@ public AutomaticRepairsPolicy()
/// 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).
/// 8601 format. The minimum allowed grace period is 30 minutes
/// (PT30M), which is also the default value.
/// </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; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ public CreationData()
/// <param name="createOption">This enumerates the possible sources of
/// a disk's creation. Possible values include: 'Empty', 'Attach',
/// 'FromImage', 'Import', 'Copy', 'Restore', 'Upload'</param>
/// <param name="storageAccountId">If createOption is Import, the Azure
/// Resource Manager identifier of the storage account containing the
/// blob to import as a disk. Required only if the blob is in a
/// different subscription</param>
/// <param name="storageAccountId">Required if createOption is Import.
/// The Azure Resource Manager identifier of the storage account
/// containing the blob to import as a disk.</param>
/// <param name="imageReference">Disk source information.</param>
/// <param name="sourceUri">If createOption is Import, this is the URI
/// of a blob to be imported into a managed disk.</param>
Expand Down Expand Up @@ -75,9 +74,9 @@ public CreationData()
public string CreateOption { get; set; }

/// <summary>
/// Gets or sets if createOption is Import, the Azure Resource Manager
/// identifier of the storage account containing the blob to import as
/// a disk. Required only if the blob is in a different subscription
/// Gets or sets required if createOption is Import. The Azure Resource
/// Manager identifier of the storage account containing the blob to
/// import as a disk.
/// </summary>
[JsonProperty(PropertyName = "storageAccountId")]
public string StorageAccountId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_ComputeManageme
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "[email protected]";
public static readonly String AutoRestCmdExecuted = "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:\\Users\\luwu\\Documents\\october\\sdk";
public static readonly String AutoRestCmdExecuted = "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";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "95a07a02a137d4850a3a2c5b53da757ea891151f";
public static readonly String GithubCommidId = "17cd6b2edff44b87012e888876ce58de10129850";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,12 @@ internal VirtualMachinesOperations(ComputeManagementClient client)

/// <summary>
/// Sets the OS state of the virtual machine to generalized. It is recommended
/// to sysprep the virtual machine before performing this operation
/// to sysprep the virtual machine before performing this operation.
/// &lt;br&gt;For Windows, please refer to [Create a managed image of a
/// generalized VM in
/// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource).&lt;br&gt;For
/// Linux, please refer to [How to create an image of a virtual machine or
/// VHD](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image).
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,12 @@ public static void Deallocate(this IVirtualMachinesOperations operations, string

/// <summary>
/// Sets the OS state of the virtual machine to generalized. It is recommended
/// to sysprep the virtual machine before performing this operation
/// to sysprep the virtual machine before performing this operation.
/// &lt;br&gt;For Windows, please refer to [Create a managed image of a
/// generalized VM in
/// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource).&lt;br&gt;For
/// Linux, please refer to [How to create an image of a virtual machine or
/// VHD](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image).
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -424,7 +429,12 @@ public static void Generalize(this IVirtualMachinesOperations operations, string

/// <summary>
/// Sets the OS state of the virtual machine to generalized. It is recommended
/// to sysprep the virtual machine before performing this operation
/// to sysprep the virtual machine before performing this operation.
/// &lt;br&gt;For Windows, please refer to [Create a managed image of a
/// generalized VM in
/// Azure](https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource).&lt;br&gt;For
/// Linux, please refer to [How to create an image of a virtual machine or
/// VHD](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image).
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
<PropertyGroup>
<PackageId>Microsoft.Azure.Management.Compute</PackageId>
<Description>Provides developers with libraries for the updated compute platform under Azure Resource manager to deploy virtual machine, virtual machine extensions and availability set management capabilities. Launch, restart, scale, capture and manage VMs, VM Extensions and more. Note: This client library is for Virtual Machines under Azure Resource Manager.</Description>
<Version>30.2.0</Version>
<Version>31.0.0</Version>
<AssemblyName>Microsoft.Azure.Management.Compute</AssemblyName>
<PackageTags>management;virtual machine;compute;</PackageTags>
<PackageReleaseNotes>
<![CDATA[
This is a public release of the Azure Compute SDK. Included with this release is adding Spot value to the VM Priority Enum and PATCH API for VM scale set extension.
This is a public release of the Azure Compute SDK. Included with this release is removal of unsupported MaxInstanceRepairsPercent property from VMSS Automatic repairs policy.
Note: this breaking change was approved for existing APIs because this feature is not yet released to public.
]]>
</PackageReleaseNotes>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
[assembly: AssemblyTitle("Microsoft Azure Compute Management Library")]
[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Compute Resources.")]

[assembly: AssemblyVersion("30.0.0.0")]
[assembly: AssemblyFileVersion("30.2.0.0")]
[assembly: AssemblyVersion("31.0.0.0")]
[assembly: AssemblyFileVersion("31.0.0.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Microsoft Azure .NET SDK")]
Expand Down
Loading