Skip to content

Commit 129d898

Browse files
authored
[Storage] Add warning messages for Queue breaking change (#22781)
* Add warning messages for Queue breaking change * formatting imports * update changelog
1 parent d7d1109 commit 129d898

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added warning messages for an upcoming breaking change that the output Permissions will be changed to a string when creating and updating a Queue access policy
22+
- `New-AzStorageQueueStoredAccessPolicy`
23+
- `Set-AzStorageQueueStoredAccessPolicy`
2124

2225
## Version 5.10.0
2326
* Updated Azure.Core to 1.34.0.

src/Storage/Storage/Queue/Cmdlet/GetAzureStorageQueueStoredAccessPolicy.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,19 @@
1414

1515
namespace Microsoft.WindowsAzure.Commands.Storage.Queue.Cmdlet
1616
{
17-
using Microsoft.WindowsAzure.Commands.Storage.Common;
18-
using Microsoft.WindowsAzure.Commands.Storage.Model.Contract;
1917
using Microsoft.Azure.Storage.Queue;
2018
using Microsoft.Azure.Storage.Queue.Protocol;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
20+
using Microsoft.WindowsAzure.Commands.Storage.Common;
21+
using Microsoft.WindowsAzure.Commands.Storage.Model.Contract;
2122
using System;
2223
using System.Globalization;
2324
using System.Management.Automation;
2425
using System.Security.Permissions;
2526
using System.Threading.Tasks;
2627

28+
[GenericBreakingChangeWithVersion("Permissions in the ouput access policy will be changed to a string like \"raup\" in a future release.",
29+
"11.0.0", "6.0.0")]
2730
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageQueueStoredAccessPolicy"), OutputType(typeof(SharedAccessQueuePolicy))]
2831
public class GetAzureStorageQueueStoredAccessPolicyCommand : StorageQueueBaseCmdlet
2932
{

src/Storage/Storage/Queue/Cmdlet/SetAzureStorageQueueStoredAccessPolicy.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@
1414

1515
namespace Microsoft.WindowsAzure.Commands.Storage.Queue.Cmdlet
1616
{
17-
using Microsoft.WindowsAzure.Commands.Storage.Common;
18-
using Microsoft.WindowsAzure.Commands.Storage.Model.Contract;
1917
using Microsoft.Azure.Storage.Queue;
2018
using Microsoft.Azure.Storage.Queue.Protocol;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
20+
using Microsoft.WindowsAzure.Commands.Storage.Common;
21+
using Microsoft.WindowsAzure.Commands.Storage.Model.Contract;
2122
using System;
2223
using System.Globalization;
2324
using System.Management.Automation;
2425
using System.Security.Permissions;
2526

27+
[GenericBreakingChangeWithVersion("Permissions in the ouput access policy will be changed to a string like \"raup\" in a future release.",
28+
"11.0.0", "6.0.0")]
2629
[Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageQueueStoredAccessPolicy", SupportsShouldProcess = true), OutputType(typeof(String))]
2730
public class SetAzureStorageQueueStoredAccessPolicyCommand : StorageQueueBaseCmdlet
2831
{

0 commit comments

Comments
 (0)