Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Compute'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5704'
REST Spec PR Author 'vamuzumd'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Apr 23, 2019
1 parent 5b0156c commit 29c0789
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
13 changes: 12 additions & 1 deletion src/SDKs/Compute/Management.Compute/Generated/Models/DataDisk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ public DataDisk()
/// disk in a virtual machine image. <br><br> This value
/// cannot be larger than 1023 GB</param>
/// <param name="managedDisk">The managed disk parameters.</param>
public DataDisk(int lun, string createOption, string name = default(string), VirtualHardDisk vhd = default(VirtualHardDisk), VirtualHardDisk image = default(VirtualHardDisk), CachingTypes? caching = default(CachingTypes?), bool? writeAcceleratorEnabled = default(bool?), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters))
/// <param name="toBeDetached">Specifies whether the datadisk is in
/// process of detachment from the
/// VirtualMachine/VirtualMachineScaleset</param>
public DataDisk(int lun, string createOption, string name = default(string), VirtualHardDisk vhd = default(VirtualHardDisk), VirtualHardDisk image = default(VirtualHardDisk), CachingTypes? caching = default(CachingTypes?), bool? writeAcceleratorEnabled = default(bool?), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters), bool? toBeDetached = default(bool?))
{
Lun = lun;
Name = name;
Expand All @@ -74,6 +77,7 @@ public DataDisk()
CreateOption = createOption;
DiskSizeGB = diskSizeGB;
ManagedDisk = managedDisk;
ToBeDetached = toBeDetached;
CustomInit();
}

Expand Down Expand Up @@ -161,6 +165,13 @@ public DataDisk()
[JsonProperty(PropertyName = "managedDisk")]
public ManagedDiskParameters ManagedDisk { get; set; }

/// <summary>
/// Gets or sets specifies whether the datadisk is in process of
/// detachment from the VirtualMachine/VirtualMachineScaleset
/// </summary>
[JsonProperty(PropertyName = "toBeDetached")]
public bool? ToBeDetached { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down
12 changes: 1 addition & 11 deletions src/SDKs/Compute/Management.Compute/Generated/Models/OSDisk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ public OSDisk()
/// 'None', 'ReadOnly', 'ReadWrite'</param>
/// <param name="writeAcceleratorEnabled">Specifies whether
/// writeAccelerator should be enabled or disabled on the disk.</param>
/// <param name="toBeDetached">Specifies whether the disk is detached
/// or in process of detachment from the VM/VMSS</param>
/// <param name="diffDiskSettings">Specifies the ephemeral Disk
/// Settings for the operating system disk used by the virtual
/// machine.</param>
Expand All @@ -75,7 +73,7 @@ public OSDisk()
/// disk in a virtual machine image. &lt;br&gt;&lt;br&gt; This value
/// cannot be larger than 1023 GB</param>
/// <param name="managedDisk">The managed disk parameters.</param>
public OSDisk(string createOption, OperatingSystemTypes? osType = default(OperatingSystemTypes?), DiskEncryptionSettings encryptionSettings = default(DiskEncryptionSettings), string name = default(string), VirtualHardDisk vhd = default(VirtualHardDisk), VirtualHardDisk image = default(VirtualHardDisk), CachingTypes? caching = default(CachingTypes?), bool? writeAcceleratorEnabled = default(bool?), bool? toBeDetached = default(bool?), DiffDiskSettings diffDiskSettings = default(DiffDiskSettings), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters))
public OSDisk(string createOption, OperatingSystemTypes? osType = default(OperatingSystemTypes?), DiskEncryptionSettings encryptionSettings = default(DiskEncryptionSettings), string name = default(string), VirtualHardDisk vhd = default(VirtualHardDisk), VirtualHardDisk image = default(VirtualHardDisk), CachingTypes? caching = default(CachingTypes?), bool? writeAcceleratorEnabled = default(bool?), DiffDiskSettings diffDiskSettings = default(DiffDiskSettings), int? diskSizeGB = default(int?), ManagedDiskParameters managedDisk = default(ManagedDiskParameters))
{
OsType = osType;
EncryptionSettings = encryptionSettings;
Expand All @@ -84,7 +82,6 @@ public OSDisk()
Image = image;
Caching = caching;
WriteAcceleratorEnabled = writeAcceleratorEnabled;
ToBeDetached = toBeDetached;
DiffDiskSettings = diffDiskSettings;
CreateOption = createOption;
DiskSizeGB = diskSizeGB;
Expand Down Expand Up @@ -157,13 +154,6 @@ public OSDisk()
[JsonProperty(PropertyName = "writeAcceleratorEnabled")]
public bool? WriteAcceleratorEnabled { get; set; }

/// <summary>
/// Gets or sets specifies whether the disk is detached or in process
/// of detachment from the VM/VMSS
/// </summary>
[JsonProperty(PropertyName = "toBeDetached")]
public bool? ToBeDetached { get; set; }

/// <summary>
/// Gets or sets specifies the ephemeral Disk Settings for the
/// operating system disk used by the virtual machine.
Expand Down

0 comments on commit 29c0789

Please sign in to comment.