From 3553d5d260ddb856db3cf054f96587f31e9958e8 Mon Sep 17 00:00:00 2001 From: Payal LNU Date: Fri, 10 Mar 2023 19:19:40 +0530 Subject: [PATCH] Add VM property --- .../LinuxVMGuestPatchAutomaticByPlatformSettings.cs | 12 +++++++++++- ...WindowsVMGuestPatchAutomaticByPlatformSettings.cs | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxVMGuestPatchAutomaticByPlatformSettings.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxVMGuestPatchAutomaticByPlatformSettings.cs index bca354a98678..f0fd85dd1e24 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxVMGuestPatchAutomaticByPlatformSettings.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/LinuxVMGuestPatchAutomaticByPlatformSettings.cs @@ -35,9 +35,12 @@ public LinuxVMGuestPatchAutomaticByPlatformSettings() /// Specifies the reboot setting for all /// AutomaticByPlatform patch installation operations. Possible values /// include: 'Unknown', 'IfRequired', 'Never', 'Always' - public LinuxVMGuestPatchAutomaticByPlatformSettings(string rebootSetting = default(string)) + /// Enables + /// customer to schedule patching without accidental upgrades + public LinuxVMGuestPatchAutomaticByPlatformSettings(string rebootSetting = default(string), bool? bypassPlatformSafetyChecksOnUserSchedule = default(bool?)) { RebootSetting = rebootSetting; + BypassPlatformSafetyChecksOnUserSchedule = bypassPlatformSafetyChecksOnUserSchedule; CustomInit(); } @@ -54,5 +57,12 @@ public LinuxVMGuestPatchAutomaticByPlatformSettings() [JsonProperty(PropertyName = "rebootSetting")] public string RebootSetting { get; set; } + /// + /// Gets or sets enables customer to schedule patching without + /// accidental upgrades + /// + [JsonProperty(PropertyName = "bypassPlatformSafetyChecksOnUserSchedule")] + public bool? BypassPlatformSafetyChecksOnUserSchedule { get; set; } + } } diff --git a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsVMGuestPatchAutomaticByPlatformSettings.cs b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsVMGuestPatchAutomaticByPlatformSettings.cs index ef5f994ac624..dfc23363798a 100644 --- a/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsVMGuestPatchAutomaticByPlatformSettings.cs +++ b/sdk/compute/Microsoft.Azure.Management.Compute/src/Generated/Models/WindowsVMGuestPatchAutomaticByPlatformSettings.cs @@ -35,9 +35,12 @@ public WindowsVMGuestPatchAutomaticByPlatformSettings() /// Specifies the reboot setting for all /// AutomaticByPlatform patch installation operations. Possible values /// include: 'Unknown', 'IfRequired', 'Never', 'Always' - public WindowsVMGuestPatchAutomaticByPlatformSettings(string rebootSetting = default(string)) + /// Enables + /// customer to schedule patching without accidental upgrades + public WindowsVMGuestPatchAutomaticByPlatformSettings(string rebootSetting = default(string), bool? bypassPlatformSafetyChecksOnUserSchedule = default(bool?)) { RebootSetting = rebootSetting; + BypassPlatformSafetyChecksOnUserSchedule = bypassPlatformSafetyChecksOnUserSchedule; CustomInit(); } @@ -54,5 +57,12 @@ public WindowsVMGuestPatchAutomaticByPlatformSettings() [JsonProperty(PropertyName = "rebootSetting")] public string RebootSetting { get; set; } + /// + /// Gets or sets enables customer to schedule patching without + /// accidental upgrades + /// + [JsonProperty(PropertyName = "bypassPlatformSafetyChecksOnUserSchedule")] + public bool? BypassPlatformSafetyChecksOnUserSchedule { get; set; } + } }