From 4f8dc47d7132f7c22a0bbe726bf6b37fef8de2b6 Mon Sep 17 00:00:00 2001
From: adxsdknet <39844661+adxsdknet@users.noreply.github.com>
Date: Wed, 24 Apr 2019 15:49:52 -0700
Subject: [PATCH] .NET SDK Resource Provider:'Compute' (#5942)
REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5740'
REST Spec PR Author 'vamuzumd'
REST Spec PR Last commit
---
.../Generated/Models/HyperVGenerationTypes.cs | 22 +++++++++++++++++++
.../Generated/Models/Image.cs | 13 ++++++++++-
.../Generated/Models/ImageUpdate.cs | 13 ++++++++++-
3 files changed, 46 insertions(+), 2 deletions(-)
create mode 100644 src/SDKs/Compute/Management.Compute/Generated/Models/HyperVGenerationTypes.cs
diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/HyperVGenerationTypes.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/HyperVGenerationTypes.cs
new file mode 100644
index 0000000000000..50b6873023860
--- /dev/null
+++ b/src/SDKs/Compute/Management.Compute/Generated/Models/HyperVGenerationTypes.cs
@@ -0,0 +1,22 @@
+//
+// 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.
+//
+
+namespace Microsoft.Azure.Management.Compute.Models
+{
+
+ ///
+ /// Defines values for HyperVGenerationTypes.
+ ///
+ public static class HyperVGenerationTypes
+ {
+ public const string V1 = "V1";
+ public const string V2 = "V2";
+ }
+}
diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/Image.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/Image.cs
index 120beba54f97c..75c0fef474e34 100644
--- a/src/SDKs/Compute/Management.Compute/Generated/Models/Image.cs
+++ b/src/SDKs/Compute/Management.Compute/Generated/Models/Image.cs
@@ -46,12 +46,16 @@ public Image()
/// Specifies the storage settings for the
/// virtual machine disks.
/// The provisioning state.
- public Image(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), SubResource sourceVirtualMachine = default(SubResource), ImageStorageProfile storageProfile = default(ImageStorageProfile), string provisioningState = default(string))
+ /// Gets the HyperVGenerationType of the
+ /// VirtualMachine created from the image. Possible values include:
+ /// 'V1', 'V2'
+ public Image(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), SubResource sourceVirtualMachine = default(SubResource), ImageStorageProfile storageProfile = default(ImageStorageProfile), string provisioningState = default(string), string hyperVGeneration = default(string))
: base(location, id, name, type, tags)
{
SourceVirtualMachine = sourceVirtualMachine;
StorageProfile = storageProfile;
ProvisioningState = provisioningState;
+ HyperVGeneration = hyperVGeneration;
CustomInit();
}
@@ -80,6 +84,13 @@ public Image()
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; private set; }
+ ///
+ /// Gets the HyperVGenerationType of the VirtualMachine created from
+ /// the image. Possible values include: 'V1', 'V2'
+ ///
+ [JsonProperty(PropertyName = "properties.hyperVGeneration")]
+ public string HyperVGeneration { get; set; }
+
///
/// Validate the object.
///
diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/ImageUpdate.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/ImageUpdate.cs
index 85bffd9de2fa6..20e98317bbbb0 100644
--- a/src/SDKs/Compute/Management.Compute/Generated/Models/ImageUpdate.cs
+++ b/src/SDKs/Compute/Management.Compute/Generated/Models/ImageUpdate.cs
@@ -40,12 +40,16 @@ public ImageUpdate()
/// Specifies the storage settings for the
/// virtual machine disks.
/// The provisioning state.
- public ImageUpdate(IDictionary tags = default(IDictionary), SubResource sourceVirtualMachine = default(SubResource), ImageStorageProfile storageProfile = default(ImageStorageProfile), string provisioningState = default(string))
+ /// Gets the HyperVGenerationType of the
+ /// VirtualMachine created from the image. Possible values include:
+ /// 'V1', 'V2'
+ public ImageUpdate(IDictionary tags = default(IDictionary), SubResource sourceVirtualMachine = default(SubResource), ImageStorageProfile storageProfile = default(ImageStorageProfile), string provisioningState = default(string), string hyperVGeneration = default(string))
: base(tags)
{
SourceVirtualMachine = sourceVirtualMachine;
StorageProfile = storageProfile;
ProvisioningState = provisioningState;
+ HyperVGeneration = hyperVGeneration;
CustomInit();
}
@@ -74,6 +78,13 @@ public ImageUpdate()
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; private set; }
+ ///
+ /// Gets the HyperVGenerationType of the VirtualMachine created from
+ /// the image. Possible values include: 'V1', 'V2'
+ ///
+ [JsonProperty(PropertyName = "properties.hyperVGeneration")]
+ public string HyperVGeneration { get; set; }
+
///
/// Validate the object.
///