From 29c07892174bcacc6639f4d32910236bbb48b966 Mon Sep 17 00:00:00 2001 From: adxsdknet Date: Tue, 23 Apr 2019 21:12:04 +0000 Subject: [PATCH] .NET SDK Resource Provider:'Compute' REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5704' REST Spec PR Author 'vamuzumd' REST Spec PR Last commit --- .../Management.Compute/Generated/Models/DataDisk.cs | 13 ++++++++++++- .../Management.Compute/Generated/Models/OSDisk.cs | 12 +----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/DataDisk.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/DataDisk.cs index 90992707dba6..1d000cad5a52 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/Models/DataDisk.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/Models/DataDisk.cs @@ -63,7 +63,10 @@ public DataDisk() /// disk in a virtual machine image. <br><br> This value /// cannot be larger than 1023 GB /// The managed disk parameters. - 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)) + /// Specifies whether the datadisk is in + /// process of detachment from the + /// VirtualMachine/VirtualMachineScaleset + 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; @@ -74,6 +77,7 @@ public DataDisk() CreateOption = createOption; DiskSizeGB = diskSizeGB; ManagedDisk = managedDisk; + ToBeDetached = toBeDetached; CustomInit(); } @@ -161,6 +165,13 @@ public DataDisk() [JsonProperty(PropertyName = "managedDisk")] public ManagedDiskParameters ManagedDisk { get; set; } + /// + /// Gets or sets specifies whether the datadisk is in process of + /// detachment from the VirtualMachine/VirtualMachineScaleset + /// + [JsonProperty(PropertyName = "toBeDetached")] + public bool? ToBeDetached { get; set; } + /// /// Validate the object. /// diff --git a/src/SDKs/Compute/Management.Compute/Generated/Models/OSDisk.cs b/src/SDKs/Compute/Management.Compute/Generated/Models/OSDisk.cs index 7a8f40d25214..039cfddffdf1 100644 --- a/src/SDKs/Compute/Management.Compute/Generated/Models/OSDisk.cs +++ b/src/SDKs/Compute/Management.Compute/Generated/Models/OSDisk.cs @@ -65,8 +65,6 @@ public OSDisk() /// 'None', 'ReadOnly', 'ReadWrite' /// Specifies whether /// writeAccelerator should be enabled or disabled on the disk. - /// Specifies whether the disk is detached - /// or in process of detachment from the VM/VMSS /// Specifies the ephemeral Disk /// Settings for the operating system disk used by the virtual /// machine. @@ -75,7 +73,7 @@ public OSDisk() /// disk in a virtual machine image. <br><br> This value /// cannot be larger than 1023 GB /// The managed disk parameters. - 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; @@ -84,7 +82,6 @@ public OSDisk() Image = image; Caching = caching; WriteAcceleratorEnabled = writeAcceleratorEnabled; - ToBeDetached = toBeDetached; DiffDiskSettings = diffDiskSettings; CreateOption = createOption; DiskSizeGB = diskSizeGB; @@ -157,13 +154,6 @@ public OSDisk() [JsonProperty(PropertyName = "writeAcceleratorEnabled")] public bool? WriteAcceleratorEnabled { get; set; } - /// - /// Gets or sets specifies whether the disk is detached or in process - /// of detachment from the VM/VMSS - /// - [JsonProperty(PropertyName = "toBeDetached")] - public bool? ToBeDetached { get; set; } - /// /// Gets or sets specifies the ephemeral Disk Settings for the /// operating system disk used by the virtual machine.