Skip to content

Commit bd5a375

Browse files
committed
[Storage] add warning for coming breaking change
1 parent 4c8fc98 commit bd5a375

9 files changed

+11
-1
lines changed

src/Storage/Storage/Blob/Cmdlet/GetAzureStorageBlob.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
2222
using Microsoft.Azure.Storage;
2323
using Microsoft.Azure.Storage.Blob;
2424
using Microsoft.WindowsAzure.Commands.Common;
25+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2526
using Microsoft.WindowsAzure.Commands.Storage.Common;
2627
using Microsoft.WindowsAzure.Commands.Storage.Model.Contract;
2728
using System;
@@ -33,6 +34,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
3334
/// <summary>
3435
/// list azure blobs in specified azure container
3536
/// </summary>
37+
[GenericBreakingChange("The returned blob properties will be moved from ICloudBlob.Properties to BlobProperties in a future release.")]
3638
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageBlob", DefaultParameterSetName = NameParameterSet),OutputType(typeof(AzureStorageBlob))]
3739
public class GetAzureStorageBlobCommand : StorageCloudBlobCmdletBase
3840
{

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
3131
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
3232
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;
3333

34+
[GenericBreakingChange("The returned file properties will be moved from CloudFile to FileProperties in a future release.")]
3435
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileContent", SupportsShouldProcess = true, DefaultParameterSetName = LocalConstants.ShareNameParameterSetName)]
3536
[OutputType(typeof(AzureStorageFile))]
3637
public class GetAzureStorageFileContent : StorageFileDataManagementCmdletBase, IDynamicParameters

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2323
using System.Management.Automation;
2424
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2525
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;
26-
26+
[GenericBreakingChange("The returned share properties will be moved from CloudFileShare.Properties to ShareProperties (with '-Name'), or ListShareProperties (without '-Name') in a future release.")]
2727
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare", DefaultParameterSetName = Constants.MatchingPrefixParameterSetName)]
2828
[OutputType(typeof(AzureStorageFileShare))]
2929
public class GetAzureStorageShare : AzureStorageFileCmdletBase

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2020
using System.Globalization;
2121
using System.Management.Automation;
2222

23+
[GenericBreakingChange("The returned Directory properties will be moved from CloudFileDirectory to ShareDirectoryProperties in a future release.")]
2324
[Cmdlet("New", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageDirectory", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(AzureStorageFileDirectory))]
2425
public class NewAzureStorageDirectory : AzureStorageFileCmdletBase
2526
{

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
1919
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2020
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;
2121

22+
[GenericBreakingChange("The returned share properties will be moved from CloudFileShare.Properties to ShareProperties in a future release.")]
2223
[Cmdlet("New", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(AzureStorageFileShare))]
2324
public class NewAzureStorageShare : AzureStorageFileCmdletBase
2425
{

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2222
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2323
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;
2424

25+
[GenericBreakingChange("The returned share properties will be moved from CloudFileShare.Properties to ShareProperties in a future release.")]
2526
[Cmdlet("Remove", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare",DefaultParameterSetName = Constants.ShareNameParameterSetName,SupportsShouldProcess = true), OutputType(typeof(AzureStorageFileShare))]
2627
public class RemoveAzureStorageShare : AzureStorageFileCmdletBase
2728
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2121
using Microsoft.Azure.Storage.DataMovement;
2222
using Microsoft.Azure.Storage.File;
2323
using Microsoft.WindowsAzure.Commands.Common;
24+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2425
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;
2526
using Microsoft.WindowsAzure.Commands.Storage.Common;
2627
using Microsoft.WindowsAzure.Commands.Utilities.Common;
@@ -35,6 +36,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
3536
using System.Threading.Tasks;
3637
using LocalConstants = Microsoft.WindowsAzure.Commands.Storage.File.Constants;
3738

39+
[GenericBreakingChange("The returned file properties will be moved from CloudFile to FileProperties in a future release.")]
3840
[Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileContent", SupportsShouldProcess = true, DefaultParameterSetName = LocalConstants.ShareNameParameterSetName), OutputType(typeof(AzureStorageFile))]
3941
public class SetAzureStorageFileContent : StorageFileDataManagementCmdletBase, IDynamicParameters
4042
{

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
2424
{
25+
[GenericBreakingChange("The returned share properties will be moved from CloudFileShare.Properties to ShareProperties.")]
2526
[Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShareQuota", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(AzureStorageFileShare))]
2627
public class SetAzureStorageShareQuota : AzureStorageFileCmdletBase
2728
{

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
3030
{
31+
[GenericBreakingChange("The returned file properties will be moved from CloudFile to FileProperties in a future release.")]
3132
[Cmdlet("Start", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileCopy", SupportsShouldProcess = true), OutputType(typeof(AzureStorageFile))]
3233
public class StartAzureStorageFileCopyCommand : StorageFileDataManagementCmdletBase
3334
{

0 commit comments

Comments
 (0)