Skip to content

Commit 744ae6d

Browse files
authored
[Storage] Add breaking notice for File cmdlets in Build (Azure#11493)
1 parent 0c7b488 commit 744ae6d

13 files changed

+25
-0
lines changed

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Add breaking change notice for Azure File cmdlets output change in a future release
2122
* Support new SkuName StandardGZRS, StandardRAGZRS when create/update Storage account
2223
- New-AzStorageAccount
2324
- Set-AzStorageAccount

src/Storage/Storage/File/Cmdlet/GetAzureStorageFile.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
1616
{
1717
using Microsoft.Azure.Storage;
1818
using Microsoft.Azure.Storage.File;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System.Globalization;
2021
using System.Management.Automation;
2122
using System.Net;
2223

2324
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFile", DefaultParameterSetName = Constants.ShareNameParameterSetName)]
2425
[OutputType(typeof(CloudFile))]
26+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")]
2527
public class GetAzureStorageFile : AzureStorageFileCmdletBase
2628
{
2729
[Parameter(

src/Storage/Storage/File/Cmdlet/GetAzureStorageFileContent.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2828
using LocalDirectory = System.IO.Directory;
2929
using LocalPath = System.IO.Path;
3030
using System.Runtime.InteropServices;
31+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
3132

3233
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileContent", SupportsShouldProcess = true, DefaultParameterSetName = LocalConstants.ShareNameParameterSetName)]
3334
[OutputType(typeof(CloudFile))]
35+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")]
3436
public class GetAzureStorageFileContent : StorageFileDataManagementCmdletBase, IDynamicParameters
3537
{
3638
[Parameter(

src/Storage/Storage/File/Cmdlet/GetAzureStorageFileCopyState.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
using System.Security.Permissions;
2323
using System.Threading;
2424
using System.Threading.Tasks;
25+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2526

2627
namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2728
{
2829
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileCopyState")]
2930
[OutputType(typeof(CloudFile))]
31+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")]
3032
public class GetAzureStorageFileCopyStateCommand : AzureStorageFileCmdletBase
3133
{
3234
[Parameter(

src/Storage/Storage/File/Cmdlet/GetAzureStorageShare.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2121
using System;
2222
using System.Globalization;
2323
using System.Management.Automation;
24+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2425

2526
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare", DefaultParameterSetName = Constants.MatchingPrefixParameterSetName)]
2627
[OutputType(typeof(CloudFileShare))]
28+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileShare to AzureStorageFileShare, and AzureStorageFileShare will have CloudFileShare as a child property.")]
2729
public class GetAzureStorageShare : AzureStorageFileCmdletBase
2830
{
2931
[Parameter(

src/Storage/Storage/File/Cmdlet/NewAzureStorageDirectory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
1616
{
1717
using Microsoft.Azure.Storage.File;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Globalization;
1920
using System.Management.Automation;
2021

2122
[Cmdlet("New", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageDirectory", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(CloudFileDirectory))]
23+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileDirectory to AzureStorageFileDirectory, and AzureStorageFileDirectory will have CloudFileDirectory as a child property.")]
2224
public class NewAzureStorageDirectory : AzureStorageFileCmdletBase
2325
{
2426
[Parameter(

src/Storage/Storage/File/Cmdlet/NewAzureStorageShare.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
1616
{
1717
using System.Management.Automation;
1818
using Azure.Storage.File;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920

2021
[Cmdlet("New", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(CloudFileShare))]
22+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileShare to AzureStorageFileShare, and AzureStorageFileShare will have CloudFileShare as a child property.")]
2123
public class NewAzureStorageShare : AzureStorageFileCmdletBase
2224
{
2325
[Parameter(

src/Storage/Storage/File/Cmdlet/RemoveAzureStorageDirectory.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
1616
{
1717
using Microsoft.Azure.Storage.File;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Globalization;
1920
using System.Management.Automation;
2021

2122
[Cmdlet("Remove", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageDirectory",SupportsShouldProcess = true,DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(CloudFileDirectory))]
23+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileDirectory to AzureStorageFileDirectory, and AzureStorageFileDirectory will have CloudFileDirectory as a child property.")]
2224
public class RemoveAzureStorageDirectory : AzureStorageFileCmdletBase
2325
{
2426
[Parameter(

src/Storage/Storage/File/Cmdlet/RemoveAzureStorageFile.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
1616
{
1717
using Microsoft.Azure.Storage.File;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System.Globalization;
1920
using System.Management.Automation;
2021

2122
[Cmdlet("Remove", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFile",SupportsShouldProcess = true,DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(CloudFile))]
23+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")]
2224
public class RemoveAzureStorageFile : AzureStorageFileCmdletBase
2325
{
2426
[Parameter(

src/Storage/Storage/File/Cmdlet/RemoveAzureStorageShare.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
1919
using Microsoft.Azure.Storage.File;
2020
using System.Globalization;
2121
using System.Management.Automation;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

2324
[Cmdlet("Remove", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare",DefaultParameterSetName = Constants.ShareNameParameterSetName,SupportsShouldProcess = true), OutputType(typeof(CloudFileShare))]
25+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFileShare to AzureStorageFileShare, and AzureStorageFileShare will have CloudFileShare as a child property.")]
2426
public class RemoveAzureStorageShare : AzureStorageFileCmdletBase
2527
{
2628
[Parameter(

src/Storage/Storage/File/Cmdlet/SetAzureStorageFileContent.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2828
using LocalConstants = Microsoft.WindowsAzure.Commands.Storage.File.Constants;
2929
using System.Runtime.InteropServices;
3030
using Microsoft.Azure.Storage.DataMovement;
31+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
3132

3233
[Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileContent", SupportsShouldProcess = true, DefaultParameterSetName = LocalConstants.ShareNameParameterSetName), OutputType(typeof(CloudFile))]
34+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")]
3335
public class SetAzureStorageFileContent : StorageFileDataManagementCmdletBase, IDynamicParameters
3436
{
3537
[Parameter(

src/Storage/Storage/File/Cmdlet/SetAzureStorageShareQuota.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
using System.Globalization;
1818
using System.Management.Automation;
1919
using System.Security.Permissions;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2223
{
2324
[Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShareQuota"), OutputType(typeof(FileShareProperties))]
25+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from FileShareProperties to AzureStorageFileShare, and AzureStorageFileShare will have FileShareProperties in child property.")]
2426
public class SetAzureStorageShareQuota : AzureStorageFileCmdletBase
2527
{
2628
[Alias("N", "Name")]

src/Storage/Storage/File/Cmdlet/StartAzureStorageFileCopy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@
2323
using System.Management.Automation;
2424
using System.Security.Permissions;
2525
using System.Threading.Tasks;
26+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2627

2728
namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2829
{
2930
[Cmdlet("Start", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileCopy", SupportsShouldProcess = true), OutputType(typeof(void))]
31+
[CmdletOutputBreakingChange(typeof(CloudFile), ChangeDescription = "The output type will change from CloudFile to AzureStorageFile, and AzureStorageFile will have CloudFile as a child property.")]
3032
public class StartAzureStorageFileCopyCommand : StorageFileDataManagementCmdletBase
3133
{
3234
private const string ContainerNameParameterSet = "ContainerName";

0 commit comments

Comments
 (0)