From 83ea99b10baac00424658a2020cb0214ad3ce92b Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 10 Dec 2019 06:52:05 +0000 Subject: [PATCH] Generated from 546834a832d16e5fb902bf2312cbda39c1d24442 Update examples for Images in 2019-07-01 version according to the update of 2019-03-01 version examples. --- .../src/Generated/IVirtualMachinesOperations.cs | 7 ++++++- .../src/Generated/Models/CreationData.cs | 13 ++++++------- .../Generated/Models/OperatingSystemStateTypes.cs | 6 ++++++ .../Generated/SdkInfo_ComputeManagementClient.cs | 11 ----------- .../src/Generated/VirtualMachinesOperations.cs | 7 ++++++- .../VirtualMachinesOperationsExtensions.cs | 14 ++++++++++++-- 6 files changed, 36 insertions(+), 22 deletions(-) diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs index d60cbe5f8d4bb..3500569c27e32 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/IVirtualMachinesOperations.cs @@ -261,7 +261,12 @@ public partial interface IVirtualMachinesOperations /// /// Sets the OS state of the virtual machine to generalized. It is /// recommended to sysprep the virtual machine before performing this - /// operation + /// operation. <br>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).<br>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). /// /// /// The name of the resource group. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CreationData.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CreationData.cs index f8e2fdb693e9f..c57a7f4888f83 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CreationData.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/CreationData.cs @@ -33,10 +33,9 @@ public CreationData() /// This enumerates the possible sources of /// a disk's creation. Possible values include: 'Empty', 'Attach', /// 'FromImage', 'Import', 'Copy', 'Restore', 'Upload' - /// 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 + /// Required if createOption is Import. + /// The Azure Resource Manager identifier of the storage account + /// containing the blob to import as a disk. /// Disk source information. /// If createOption is Import, this is the URI /// of a blob to be imported into a managed disk. @@ -75,9 +74,9 @@ public CreationData() public string CreateOption { get; set; } /// - /// 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. /// [JsonProperty(PropertyName = "storageAccountId")] public string StorageAccountId { get; set; } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OperatingSystemStateTypes.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OperatingSystemStateTypes.cs index 02c8d84ce934b..3c2ab5cad8373 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OperatingSystemStateTypes.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/OperatingSystemStateTypes.cs @@ -21,8 +21,14 @@ namespace Microsoft.Azure.Management.Compute.Models [JsonConverter(typeof(StringEnumConverter))] public enum OperatingSystemStateTypes { + /// + /// Generalized image. Needs to be provisioned during deployment time. + /// [EnumMember(Value = "Generalized")] Generalized, + /// + /// Specialized image. Contains already provisioned OS Disk. + /// [EnumMember(Value = "Specialized")] Specialized } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs index a9bccce899451..9f21c1d0ef395 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/SdkInfo_ComputeManagementClient.cs @@ -51,16 +51,5 @@ public static IEnumerable> ApiInfo_ComputeManageme }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4407"; - 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:\\GH\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "f57417493691c0d9a15440ffd7fdb4173bf7295c"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperations.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperations.cs index 94633321b6d39..ab5ecf61c8948 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperations.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperations.cs @@ -787,7 +787,12 @@ internal VirtualMachinesOperations(ComputeManagementClient client) /// /// 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. + /// <br>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).<br>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). /// /// /// The name of the resource group. diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperationsExtensions.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperationsExtensions.cs index 8acb1b37c39ed..27b584cc9e691 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperationsExtensions.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/VirtualMachinesOperationsExtensions.cs @@ -406,7 +406,12 @@ public static void Deallocate(this IVirtualMachinesOperations operations, string /// /// 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. + /// <br>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).<br>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). /// /// /// The operations group for this extension method. @@ -424,7 +429,12 @@ public static void Generalize(this IVirtualMachinesOperations operations, string /// /// 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. + /// <br>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).<br>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). /// /// /// The operations group for this extension method.