diff --git a/src/StorageAction/StorageAction.Autorest/Properties/AssemblyInfo.cs b/src/StorageAction/StorageAction.Autorest/Properties/AssemblyInfo.cs index 23b627ccab45..19f405f090dc 100644 --- a/src/StorageAction/StorageAction.Autorest/Properties/AssemblyInfo.cs +++ b/src/StorageAction/StorageAction.Autorest/Properties/AssemblyInfo.cs @@ -1,4 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the Apache License, Version 2.0 (the ""License""); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at @@ -19,12 +22,8 @@ [assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] -[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageAction")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageActionsManagementClient")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] - - - - diff --git a/src/StorageAction/StorageAction.Autorest/README.md b/src/StorageAction/StorageAction.Autorest/README.md index 30757dd3fa5c..c722d0546796 100644 --- a/src/StorageAction/StorageAction.Autorest/README.md +++ b/src/StorageAction/StorageAction.Autorest/README.md @@ -22,70 +22,3 @@ AutoRest does not generate authentication code for the module. Authentication is ## Development For information on how to develop for `Az.StorageAction`, see [how-to.md](how-to.md). - -### AutoRest Configuration -> see https://aka.ms/autorest - -```yaml -# pin the swagger version by using the commit id instead of branch name -commit: 2219e4e4e0409bcb88a2b82e8febe1a3baecaf18 -tag: package-2023-01-01 -require: -# readme.azure.noprofile.md is the common configuration file - - $(this-folder)/../../readme.azure.noprofile.md - - $(repo)/specification/storageactions/resource-manager/readme.md -# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally -# - (this-folder)/relative-path-to-your-local-readme.md - -try-require: - - $(repo)/specification/storageactions/resource-manager/readme.powershell.md - -# The next three configurations are activated by default. -# identity-correction-for-post: true -# resourcegroup-append: true -# nested-object-to-string: true - -# For new RP, the version is 0.1.0 -module-version: 1.0.0 -# Normally, title is the service name -title: StorageAction -subject-prefix: $(service-name) - -directive: -# # Following are common directives which are normally required in all the RPs -# # 1. Remove the unexpanded parameter set -# # 2. For New-* cmdlets, ViaIdentity is not required -# # Following two directives are v4 specific - - where: - variant: ^(Create|Update|Preview)(?!.*?(Expanded|JsonFilePath|JsonString)) - remove: true - - where: - variant: ^CreateViaIdentity.*$ - remove: true - # Rename commands - - where: - subject: StorageTask - set: - subject: Task - - where: - verb: Invoke - subject: PreviewStorageTaskAction - set: - subject: TaskPreviewAction - - where: - subject: StorageTaskAssignment - set: - subject: TaskAssignment - - where: - subject: StorageTasksReport - set: - subject: TasksReport - # Add model - - model-cmdlet: - - model-name: StorageTaskOperation - cmdlet-name: New-AzStorageActionTaskOperationObject - - model-name: StorageTaskPreviewBlobProperties - cmdlet-name: New-AzStorageActionTaskPreviewBlobPropertiesObject - - model-name: StorageTaskPreviewKeyValueProperties - cmdlet-name: New-AzStorageActionTaskPreviewKeyValuePropertiesObject -``` diff --git a/src/StorageAction/StorageAction.Autorest/docs/Az.StorageAction.md b/src/StorageAction/StorageAction.Autorest/docs/Az.StorageAction.md index d1ba3b724f98..85349c00b58d 100644 --- a/src/StorageAction/StorageAction.Autorest/docs/Az.StorageAction.md +++ b/src/StorageAction/StorageAction.Autorest/docs/Az.StorageAction.md @@ -1,6 +1,6 @@ --- Module Name: Az.StorageAction -Module Guid: 78dad367-40fa-497c-afc0-831ee12e5038 +Module Guid: 1d5268ec-2c5b-40b6-ae60-e23935752fad Download Help Link: https://learn.microsoft.com/powershell/module/az.storageaction Help Version: 1.0.0.0 Locale: en-US diff --git a/src/StorageAction/StorageAction.Autorest/docs/Get-AzStorageActionTask.md b/src/StorageAction/StorageAction.Autorest/docs/Get-AzStorageActionTask.md index cc44d4f3bd8b..0f47e2c11e3c 100644 --- a/src/StorageAction/StorageAction.Autorest/docs/Get-AzStorageActionTask.md +++ b/src/StorageAction/StorageAction.Autorest/docs/Get-AzStorageActionTask.md @@ -12,7 +12,7 @@ Get the storage task properties ## SYNTAX -### List (Default) +### List1 (Default) ``` Get-AzStorageActionTask [-SubscriptionId ] [-DefaultProfile ] [] ``` @@ -29,7 +29,7 @@ Get-AzStorageActionTask -InputObject [-DefaultProfile < [] ``` -### List1 +### List ``` Get-AzStorageActionTask -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] @@ -154,7 +154,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List1 +Parameter Sets: Get, List Aliases: Required: True diff --git a/src/StorageAction/StorageAction.Autorest/docs/Invoke-AzStorageActionTaskPreviewAction.md b/src/StorageAction/StorageAction.Autorest/docs/Invoke-AzStorageActionTaskPreviewAction.md index e370d979d861..b9868416e8cf 100644 --- a/src/StorageAction/StorageAction.Autorest/docs/Invoke-AzStorageActionTaskPreviewAction.md +++ b/src/StorageAction/StorageAction.Autorest/docs/Invoke-AzStorageActionTaskPreviewAction.md @@ -349,7 +349,7 @@ Accept wildcard characters: False ``` ### -Location -The location to perform preview of the actions. +Represents an Azure geography region where supported resource providers live. ```yaml Type: System.String diff --git a/src/StorageAction/StorageAction.Autorest/generate-info.json b/src/StorageAction/StorageAction.Autorest/generate-info.json index 09a9e6be9c85..a4052c3bcc5c 100644 --- a/src/StorageAction/StorageAction.Autorest/generate-info.json +++ b/src/StorageAction/StorageAction.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "3f2c49f4-d751-4192-8f46-6a62b3c249c4" + "generate_Id": "a74827d2-9c4e-448e-a965-56f6f587edee" } diff --git a/src/StorageAction/StorageAction.Autorest/tsp-location.yaml b/src/StorageAction/StorageAction.Autorest/tsp-location.yaml new file mode 100644 index 000000000000..85399fe118b5 --- /dev/null +++ b/src/StorageAction/StorageAction.Autorest/tsp-location.yaml @@ -0,0 +1,3 @@ +directory: specification\storageactions\StorageAction.Management +commit: c6a6145cc42fb6ddc5743ecbcc958fb1bc96d015 +repo: Azure/azure-rest-api-specs diff --git a/src/StorageAction/StorageAction.Autorest/tspconfig.yaml b/src/StorageAction/StorageAction.Autorest/tspconfig.yaml new file mode 100644 index 000000000000..a538dd0556e5 --- /dev/null +++ b/src/StorageAction/StorageAction.Autorest/tspconfig.yaml @@ -0,0 +1,66 @@ +options: + "@azure-tools/typespec-powershell": + service-dir: "src" + emitter-output-dir: "{output-dir}/{service-dir}/StorageAction/StorageAction.Autorest" + clear-output-folder: true + debug: true + azure: true + module-version: 0.1.0 + prefix: "Az" + subject-prefix: "StorageAction" + service-name: StorageAction + module-name: "{prefix}.{service-name}" + output-folder: "{output-dir}" + exclude-tableview-properties: + - Id + - Type + + directive: + # Following are common directives which are normally required in all the RPs + # 1. Remove the unexpanded parameter set + # 2. For New-* cmdlets, ViaIdentity is not required + # Following two directives are v4 specific + - where: + variant: ^(Create|Update|Preview)(?!.*?(Expanded|JsonFilePath|JsonString)) + remove: true + - where: + variant: ^CreateViaIdentity.*$ + remove: true + # Remove commands + - where: + verb: Get + subject: Operation + remove: true + # Rename commands + - where: + subject: StorageTask + set: + subject: Task + - where: + verb: Invoke + subject: PreviewStorageTaskAction + set: + subject: TaskPreviewAction + - where: + subject: StorageTaskAssignment + set: + subject: TaskAssignment + - where: + subject: StorageTasksReport + set: + subject: TasksReport + - where: + parameter-name: SubscriptionId + set: + default: + name: SubscriptionId Default + description: Gets the SubscriptionId from the current context. + script: '(Get-AzContext).Subscription.Id' + # Add model cmdlets for creating parameter objects + - model-cmdlet: + - model-name: StorageTaskOperation + cmdlet-name: New-AzStorageActionTaskOperationObject + - model-name: StorageTaskPreviewBlobProperties + cmdlet-name: New-AzStorageActionTaskPreviewBlobPropertiesObject + - model-name: StorageTaskPreviewKeyValueProperties + cmdlet-name: New-AzStorageActionTaskPreviewKeyValuePropertiesObject \ No newline at end of file diff --git a/src/StorageAction/StorageAction.sln b/src/StorageAction/StorageAction.sln index aca17dd20023..a31e8b76930a 100644 --- a/src/StorageAction/StorageAction.sln +++ b/src/StorageAction/StorageAction.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StorageAction", "StorageAct EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StorageAction.Autorest", "StorageAction.Autorest", "{7ABF6BD4-50D0-0ECC-E91A-5192EF367F53}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.StorageAction", "..\..\generated\StorageAction\StorageAction.Autorest\Az.StorageAction.csproj", "{C3B58143-2262-4AB3-A612-2398B4E554A0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.StorageAction", "..\..\generated\StorageAction\StorageAction.Autorest\Az.StorageAction.csproj", "{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {03F4F24D-3A93-442A-AD20-EB731FA44F9C}.Release|x64.Build.0 = Release|Any CPU {03F4F24D-3A93-442A-AD20-EB731FA44F9C}.Release|x86.ActiveCfg = Release|Any CPU {03F4F24D-3A93-442A-AD20-EB731FA44F9C}.Release|x86.Build.0 = Release|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|x64.ActiveCfg = Debug|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|x64.Build.0 = Debug|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|x86.ActiveCfg = Debug|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|x86.Build.0 = Debug|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|Any CPU.Build.0 = Release|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|x64.ActiveCfg = Release|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|x64.Build.0 = Release|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|x86.ActiveCfg = Release|Any CPU - {C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|x86.Build.0 = Release|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|x64.ActiveCfg = Debug|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|x64.Build.0 = Debug|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|x86.ActiveCfg = Debug|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|x86.Build.0 = Debug|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|Any CPU.Build.0 = Release|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|x64.ActiveCfg = Release|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|x64.Build.0 = Release|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|x86.ActiveCfg = Release|Any CPU + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {8F9432F9-BDA5-4C81-B97B-B9BB177B7CD7} = {3311551B-F955-4474-BA2B-35D62C807B7D} {C7DD7FF2-C624-4859-950B-022DA9EFAFAE} = {3311551B-F955-4474-BA2B-35D62C807B7D} {D49DDD02-B11A-40AF-95FD-BFF8DACF2CC6} = {3311551B-F955-4474-BA2B-35D62C807B7D} - {C3B58143-2262-4AB3-A612-2398B4E554A0} = {7ABF6BD4-50D0-0ECC-E91A-5192EF367F53} + {0D641ECD-26B8-4C88-9FA5-43B2F3891AF0} = {7ABF6BD4-50D0-0ECC-E91A-5192EF367F53} EndGlobalSection EndGlobal diff --git a/src/StorageAction/StorageAction/Az.StorageAction.psd1 b/src/StorageAction/StorageAction/Az.StorageAction.psd1 index c9773ac5c448..5bc1dee18542 100644 --- a/src/StorageAction/StorageAction/Az.StorageAction.psd1 +++ b/src/StorageAction/StorageAction/Az.StorageAction.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 6/25/2025 +# Generated on: 2/5/2026 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'StorageAction.Autorest/bin/Az.StorageAction.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'StorageAction.Autorest/Az.StorageAction.format.ps1xml' @@ -101,7 +101,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','StorageAction' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StorageAction' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -126,7 +126,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/StorageAction/StorageAction/ChangeLog.md b/src/StorageAction/StorageAction/ChangeLog.md index e439ca3ea51f..197fd1e484c9 100644 --- a/src/StorageAction/StorageAction/ChangeLog.md +++ b/src/StorageAction/StorageAction/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Migrated to typespec ## Version 1.0.0 * General availability for module Az.StorageAction diff --git a/src/StorageAction/StorageAction/help/Get-AzStorageActionTask.md b/src/StorageAction/StorageAction/help/Get-AzStorageActionTask.md index abc6cebe1e04..98bb3efb8e5f 100644 --- a/src/StorageAction/StorageAction/help/Get-AzStorageActionTask.md +++ b/src/StorageAction/StorageAction/help/Get-AzStorageActionTask.md @@ -12,7 +12,7 @@ Get the storage task properties ## SYNTAX -### List (Default) +### List1 (Default) ``` Get-AzStorageActionTask [-SubscriptionId ] [-DefaultProfile ] [] @@ -24,7 +24,7 @@ Get-AzStorageActionTask -Name -ResourceGroupName [-Subscriptio [-DefaultProfile ] [] ``` -### List1 +### List ``` Get-AzStorageActionTask -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] @@ -155,7 +155,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List1 +Parameter Sets: Get, List Aliases: Required: True @@ -171,7 +171,7 @@ The value must be an UUID. ```yaml Type: System.String[] -Parameter Sets: List, Get, List1 +Parameter Sets: List1, Get, List Aliases: Required: False diff --git a/src/StorageAction/StorageAction/help/Invoke-AzStorageActionTaskPreviewAction.md b/src/StorageAction/StorageAction/help/Invoke-AzStorageActionTaskPreviewAction.md index b6270cd207f4..3fc8186a4219 100644 --- a/src/StorageAction/StorageAction/help/Invoke-AzStorageActionTaskPreviewAction.md +++ b/src/StorageAction/StorageAction/help/Invoke-AzStorageActionTaskPreviewAction.md @@ -349,7 +349,7 @@ Accept wildcard characters: False ``` ### -Location -The location to perform preview of the actions. +Represents an Azure geography region where supported resource providers live. ```yaml Type: System.String diff --git a/tools/StaticAnalysis/Exceptions/Az.StorageAction/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.StorageAction/BreakingChangeIssues.csv new file mode 100644 index 000000000000..2c5540d1cf49 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.StorageAction/BreakingChangeIssues.csv @@ -0,0 +1,4 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.StorageAction","Get-AzStorageActionTask","Get-AzStorageActionTask","0","3000","The type of property 'IdentityUserAssignedIdentity' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities' to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IManagedServiceIdentityUserAssignedIdentities'.","Change the type of property 'IdentityUserAssignedIdentity' back to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities'." +"Az.StorageAction","New-AzStorageActionTask","New-AzStorageActionTask","0","3000","The type of property 'IdentityUserAssignedIdentity' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities' to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IManagedServiceIdentityUserAssignedIdentities'.","Change the type of property 'IdentityUserAssignedIdentity' back to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities'." +"Az.StorageAction","Update-AzStorageActionTask","Update-AzStorageActionTask","0","3000","The type of property 'IdentityUserAssignedIdentity' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities' to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IManagedServiceIdentityUserAssignedIdentities'.","Change the type of property 'IdentityUserAssignedIdentity' back to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities'."