Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Compute' (#5942)
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5740'
REST Spec PR Author 'vamuzumd'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and dsgouda committed Apr 24, 2019
1 parent b306f65 commit 4f8dc47
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// <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 HyperVGenerationTypes.
/// </summary>
public static class HyperVGenerationTypes
{
public const string V1 = "V1";
public const string V2 = "V2";
}
}
13 changes: 12 additions & 1 deletion src/SDKs/Compute/Management.Compute/Generated/Models/Image.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ public Image()
/// <param name="storageProfile">Specifies the storage settings for the
/// virtual machine disks.</param>
/// <param name="provisioningState">The provisioning state.</param>
public Image(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), SubResource sourceVirtualMachine = default(SubResource), ImageStorageProfile storageProfile = default(ImageStorageProfile), string provisioningState = default(string))
/// <param name="hyperVGeneration">Gets the HyperVGenerationType of the
/// VirtualMachine created from the image. Possible values include:
/// 'V1', 'V2'</param>
public Image(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), 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();
}

Expand Down Expand Up @@ -80,6 +84,13 @@ public Image()
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; private set; }

/// <summary>
/// Gets the HyperVGenerationType of the VirtualMachine created from
/// the image. Possible values include: 'V1', 'V2'
/// </summary>
[JsonProperty(PropertyName = "properties.hyperVGeneration")]
public string HyperVGeneration { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@ public ImageUpdate()
/// <param name="storageProfile">Specifies the storage settings for the
/// virtual machine disks.</param>
/// <param name="provisioningState">The provisioning state.</param>
public ImageUpdate(IDictionary<string, string> tags = default(IDictionary<string, string>), SubResource sourceVirtualMachine = default(SubResource), ImageStorageProfile storageProfile = default(ImageStorageProfile), string provisioningState = default(string))
/// <param name="hyperVGeneration">Gets the HyperVGenerationType of the
/// VirtualMachine created from the image. Possible values include:
/// 'V1', 'V2'</param>
public ImageUpdate(IDictionary<string, string> tags = default(IDictionary<string, string>), 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();
}

Expand Down Expand Up @@ -74,6 +78,13 @@ public ImageUpdate()
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; private set; }

/// <summary>
/// Gets the HyperVGenerationType of the VirtualMachine created from
/// the image. Possible values include: 'V1', 'V2'
/// </summary>
[JsonProperty(PropertyName = "properties.hyperVGeneration")]
public string HyperVGeneration { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down

0 comments on commit 4f8dc47

Please sign in to comment.