-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Migrate StorageAction module to tsp #29136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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. | ||
|
Comment on lines
1
to
+4
|
||
| // 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)] | ||
|
|
||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "generate_Id": "3f2c49f4-d751-4192-8f46-6a62b3c249c4" | ||
| "generate_Id": "a74827d2-9c4e-448e-a965-56f6f587edee" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| directory: specification\storageactions\StorageAction.Management | ||
| commit: c6a6145cc42fb6ddc5743ecbcc958fb1bc96d015 | ||
| repo: Azure/azure-rest-api-specs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ | |
| - Additional information about change #1 | ||
| --> | ||
| ## Upcoming Release | ||
| * Migrated to typespec | ||
|
||
|
|
||
| ## Version 1.0.0 | ||
| * General availability for module Az.StorageAction | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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'." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate copyright notice at lines 1 and 4. Remove the duplicate copyright header to avoid confusion.