Skip to content

[Storage] add warning for coming breaking change #19340

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

Merged
merged 1 commit into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Storage/Storage/Blob/Cmdlet/GetAzureStorageBlob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
using Microsoft.Azure.Storage;
using Microsoft.Azure.Storage.Blob;
using Microsoft.WindowsAzure.Commands.Common;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using Microsoft.WindowsAzure.Commands.Storage.Common;
using Microsoft.WindowsAzure.Commands.Storage.Model.Contract;
using System;
Expand All @@ -33,6 +34,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
/// <summary>
/// list azure blobs in specified azure container
/// </summary>
[GenericBreakingChange("The returned blob properties will be moved from ICloudBlob.Properties to BlobProperties in a future release.")]
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageBlob", DefaultParameterSetName = NameParameterSet),OutputType(typeof(AzureStorageBlob))]
public class GetAzureStorageBlobCommand : StorageCloudBlobCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;

[GenericBreakingChange("The returned file properties will be moved from CloudFile to FileProperties in a future release.")]
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileContent", SupportsShouldProcess = true, DefaultParameterSetName = LocalConstants.ShareNameParameterSetName)]
[OutputType(typeof(AzureStorageFile))]
public class GetAzureStorageFileContent : StorageFileDataManagementCmdletBase, IDynamicParameters
Expand Down
2 changes: 1 addition & 1 deletion src/Storage/Storage/File/Cmdlet/GetAzureStorageShare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
using System.Management.Automation;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;

[GenericBreakingChange("The returned share properties will be moved from CloudFileShare.Properties to ShareProperties (with '-Name'), or ListShareProperties (without '-Name') in a future release.")]
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare", DefaultParameterSetName = Constants.MatchingPrefixParameterSetName)]
[OutputType(typeof(AzureStorageFileShare))]
public class GetAzureStorageShare : AzureStorageFileCmdletBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
using System.Globalization;
using System.Management.Automation;

[GenericBreakingChange("The returned Directory properties will be moved from CloudFileDirectory to ShareDirectoryProperties in a future release.")]
[Cmdlet("New", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageDirectory", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(AzureStorageFileDirectory))]
public class NewAzureStorageDirectory : AzureStorageFileCmdletBase
{
Expand Down
1 change: 1 addition & 0 deletions src/Storage/Storage/File/Cmdlet/NewAzureStorageShare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;

[GenericBreakingChange("The returned share properties will be moved from CloudFileShare.Properties to ShareProperties in a future release.")]
[Cmdlet("New", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(AzureStorageFileShare))]
public class NewAzureStorageShare : AzureStorageFileCmdletBase
{
Expand Down
1 change: 1 addition & 0 deletions src/Storage/Storage/File/Cmdlet/RemoveAzureStorageShare.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;

[GenericBreakingChange("The returned share properties will be moved from CloudFileShare.Properties to ShareProperties in a future release.")]
[Cmdlet("Remove", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShare",DefaultParameterSetName = Constants.ShareNameParameterSetName,SupportsShouldProcess = true), OutputType(typeof(AzureStorageFileShare))]
public class RemoveAzureStorageShare : AzureStorageFileCmdletBase
{
Expand Down
2 changes: 2 additions & 0 deletions src/Storage/Storage/File/Cmdlet/SetAzureStorageFileContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
using Microsoft.Azure.Storage.DataMovement;
using Microsoft.Azure.Storage.File;
using Microsoft.WindowsAzure.Commands.Common;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using Microsoft.WindowsAzure.Commands.Common.Storage.ResourceModel;
using Microsoft.WindowsAzure.Commands.Storage.Common;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
Expand All @@ -35,6 +36,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
using System.Threading.Tasks;
using LocalConstants = Microsoft.WindowsAzure.Commands.Storage.File.Constants;

[GenericBreakingChange("The returned file properties will be moved from CloudFile to FileProperties in a future release.")]
[Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageFileContent", SupportsShouldProcess = true, DefaultParameterSetName = LocalConstants.ShareNameParameterSetName), OutputType(typeof(AzureStorageFile))]
public class SetAzureStorageFileContent : StorageFileDataManagementCmdletBase, IDynamicParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
{
[GenericBreakingChange("The returned share properties will be moved from CloudFileShare.Properties to ShareProperties.")]
[Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageShareQuota", DefaultParameterSetName = Constants.ShareNameParameterSetName), OutputType(typeof(AzureStorageFileShare))]
public class SetAzureStorageShareQuota : AzureStorageFileCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

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