Skip to content

Commit

Permalink
Autogen code
Browse files Browse the repository at this point in the history
  • Loading branch information
PSCmdAssistant committed Jan 7, 2025
1 parent 29ec058 commit 4f906ac
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -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)]
Expand Down Expand Up @@ -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; }
}
}
4 changes: 2 additions & 2 deletions src/Compute/Compute/Generated/Models/PSGalleryImageVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ public string ResourceGroupName
public string Type { get; set; }
public string Location { get; set; }
public IDictionary<string, string> Tags { get; set; }

public bool? BlockDeletionBeforeEndOfLife { get; set; }
}
}
}

0 comments on commit 4f906ac

Please sign in to comment.