From 4f906acee0c5f6cb17e521e53090462588c79972 Mon Sep 17 00:00:00 2001 From: PSCmdAssistant Date: Tue, 7 Jan 2025 20:35:00 +0000 Subject: [PATCH] Autogen code --- .../GalleryImageVersionCreateOrUpdateMethod.cs | 14 +++++++++++++- .../Generated/Models/PSGalleryImageVersion.cs | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionCreateOrUpdateMethod.cs b/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionCreateOrUpdateMethod.cs index d1e8c27a87ee..b64b28d046ce 100644 --- a/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionCreateOrUpdateMethod.cs +++ b/src/Compute/Compute/Generated/GalleryImageVersion/GalleryImageVersionCreateOrUpdateMethod.cs @@ -1,4 +1,4 @@ -// + // // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -410,6 +410,12 @@ public override void ExecuteCmdlet() ValueFromPipelineByPropertyName = true, HelpMessage = "The target extended locations where the Image Version is going to be replicated to. This property is updatable.")] public Hashtable[] TargetExtendedLocation { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "This boolean will be passed by the customers to enable their GalleryImageVersion resources from accidental deletions. If this boolean is set to true, the image deletions will be blocked before its EndOfLife date.")] + public bool BlockDeletionBeforeEndOfLife { get; set; } } [Cmdlet(VerbsData.Update, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "GalleryImageVersion", DefaultParameterSetName = "DefaultParameter", SupportsShouldProcess = true)] @@ -714,5 +720,11 @@ public override void ExecuteCmdlet() ValueFromPipelineByPropertyName = true, HelpMessage = "Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.")] public bool AllowDeletionOfReplicatedLocation { get; set; } + + [Parameter( + Mandatory = false, + ValueFromPipelineByPropertyName = true, + HelpMessage = "This boolean will be passed by the customers to enable their GalleryImageVersion resources from accidental deletions. If this boolean is set to true, the image deletions will be blocked before its EndOfLife date.")] + public bool BlockDeletionBeforeEndOfLife { get; set; } } } diff --git a/src/Compute/Compute/Generated/Models/PSGalleryImageVersion.cs b/src/Compute/Compute/Generated/Models/PSGalleryImageVersion.cs index 841320d058f9..65b8f3b00f64 100644 --- a/src/Compute/Compute/Generated/Models/PSGalleryImageVersion.cs +++ b/src/Compute/Compute/Generated/Models/PSGalleryImageVersion.cs @@ -49,6 +49,6 @@ public string ResourceGroupName public string Type { get; set; } public string Location { get; set; } public IDictionary Tags { get; set; } - + public bool? BlockDeletionBeforeEndOfLife { get; set; } } -} +} \ No newline at end of file