Skip to content

Commit 3a27e6a

Browse files
authored
fix deprecated version for breaking change announcement (#24284)
1 parent 96fd238 commit 3a27e6a

12 files changed

+12
-12
lines changed

src/Resources/ResourceManager/Implementation/Policy/GetAzurePolicyAssignment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2828
/// Gets the policy assignment.
2929
/// </summary>
3030
[CmdletOutputBreakingChangeWithVersion(
31-
typeof(PsPolicyAssignment), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
31+
typeof(PsPolicyAssignment), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3232
NewOutputProperties = new[] { "Description", "DisplayName", "EnforcementMode", "Metadata", "NonComplianceMessages", "NotScopes", "Parameters", "PolicyDefinitionId", "Scope" })]
3333
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PolicyAssignment", DefaultParameterSetName = PolicyCmdletBase.DefaultParameterSet), OutputType(typeof(PsPolicyAssignment))]
3434
public class GetAzurePolicyAssignmentCmdlet : PolicyCmdletBase

src/Resources/ResourceManager/Implementation/Policy/GetAzurePolicyDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3030
/// Gets the policy definition.
3131
/// </summary>
3232
[CmdletOutputBreakingChangeWithVersion(
33-
typeof(PsPolicyDefinition), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
33+
typeof(PsPolicyDefinition), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3434
NewOutputProperties = new[] { "Description", "DisplayName", "Metadata", "Mode", "Parameters", "PolicyRule", "PolicyType" })]
3535
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PolicyDefinition", DefaultParameterSetName = PolicyCmdletBase.NameParameterSet), OutputType(typeof(PsPolicyDefinition))]
3636
public class GetAzurePolicyDefinitionCmdlet : PolicyCmdletBase

src/Resources/ResourceManager/Implementation/Policy/GetAzurePolicyExemption.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2828
/// Gets the policy exemption.
2929
/// </summary>
3030
[CmdletOutputBreakingChangeWithVersion(
31-
typeof(PsPolicyExemption), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
31+
typeof(PsPolicyExemption), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3232
NewOutputProperties = new[] { "Description", "DisplayName", "ExemptionCategory", "ExpiresOn", "Metadata", "PolicyAssignmentId", "PolicyDefinitionReferenceIds" })]
3333
[Cmdlet(VerbsCommon.Get, AzureRMConstants.AzureRMPrefix + "PolicyExemption", DefaultParameterSetName = PolicyCmdletBase.NameParameterSet), OutputType(typeof(PsPolicyExemption))]
3434
public class GetAzurePolicyExemptionCmdlet : PolicyCmdletBase

src/Resources/ResourceManager/Implementation/Policy/GetAzurePolicySetDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3030
/// Gets the policy set definition.
3131
/// </summary>
3232
[CmdletOutputBreakingChangeWithVersion(
33-
typeof(PsPolicySetDefinition), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
33+
typeof(PsPolicySetDefinition), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3434
NewOutputProperties = new[] { "Description", "DisplayName", "Metadata", "Parameters", "PolicyDefinitionGroups", "PolicyDefinitions", "PolicyType" })]
3535
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PolicySetDefinition", DefaultParameterSetName = PolicyCmdletBase.NameParameterSet), OutputType(typeof(PsPolicySetDefinition))]
3636
public class GetAzurePolicySetDefinitionCmdlet : PolicyCmdletBase

src/Resources/ResourceManager/Implementation/Policy/NewAzurePolicyAssignment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3535
/// Creates a policy assignment.
3636
/// </summary>
3737
[CmdletOutputBreakingChangeWithVersion(
38-
typeof(PsPolicyAssignment), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
38+
typeof(PsPolicyAssignment), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3939
NewOutputProperties = new[] { "Description", "DisplayName", "EnforcementMode", "Metadata", "NonComplianceMessages", "NotScopes", "Parameters", "PolicyDefinitionId", "Scope" })]
4040
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PolicyAssignment", DefaultParameterSetName = PolicyCmdletBase.DefaultParameterSet), OutputType(typeof(PsPolicyAssignment))]
4141
public class NewAzurePolicyAssignmentCmdlet : PolicyCmdletBase, IDynamicParameters

src/Resources/ResourceManager/Implementation/Policy/NewAzurePolicyDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2929
/// Creates the new policy definition.
3030
/// </summary>
3131
[CmdletOutputBreakingChangeWithVersion(
32-
typeof(PsPolicyDefinition), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
32+
typeof(PsPolicyDefinition), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3333
NewOutputProperties = new[] { "Description", "DisplayName", "Metadata", "Mode", "Parameters", "PolicyRule", "PolicyType" })]
3434
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PolicyDefinition", DefaultParameterSetName = PolicyCmdletBase.NameParameterSet), OutputType(typeof(PsPolicyDefinition))]
3535
public class NewAzurePolicyDefinitionCmdlet : PolicyCmdletBase

src/Resources/ResourceManager/Implementation/Policy/NewAzurePolicyExemption.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3030
/// Creates a policy exemption.
3131
/// </summary>
3232
[CmdletOutputBreakingChangeWithVersion(
33-
typeof(PsPolicyExemption), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
33+
typeof(PsPolicyExemption), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3434
NewOutputProperties = new[] { "Description", "DisplayName", "ExemptionCategory", "ExpiresOn", "Metadata", "PolicyAssignmentId", "PolicyDefinitionReferenceIds" })]
3535
[Cmdlet(VerbsCommon.New, AzureRMConstants.AzureRMPrefix + "PolicyExemption", DefaultParameterSetName = PolicyCmdletBase.DefaultParameterSet, SupportsShouldProcess = true), OutputType(typeof(PsPolicyExemption))]
3636
public class NewAzurePolicyExemptionCmdlet : PolicyCmdletBase

src/Resources/ResourceManager/Implementation/Policy/NewAzurePolicySetDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2828
/// Creates the policy set definition.
2929
/// </summary>
3030
[CmdletOutputBreakingChangeWithVersion(
31-
typeof(PsPolicySetDefinition), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
31+
typeof(PsPolicySetDefinition), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3232
NewOutputProperties = new[] { "Description", "DisplayName", "Metadata", "Parameters", "PolicyDefinitionGroups", "PolicyDefinitions", "PolicyType" })]
3333
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PolicySetDefinition", DefaultParameterSetName = PolicyCmdletBase.NameParameterSet, SupportsShouldProcess = true), OutputType(typeof(PsPolicySetDefinition))]
3434
public class NewAzurePolicySetDefinitionCmdlet : PolicyCmdletBase

src/Resources/ResourceManager/Implementation/Policy/SetAzurePolicyAssignment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3333
/// Sets the policy assignment.
3434
/// </summary>
3535
[CmdletOutputBreakingChangeWithVersion(
36-
typeof(PsPolicyAssignment), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
36+
typeof(PsPolicyAssignment), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3737
NewOutputProperties = new[] { "Description", "DisplayName", "EnforcementMode", "Metadata", "NonComplianceMessages", "NotScopes", "Parameters", "PolicyDefinitionId", "Scope" })]
3838
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PolicyAssignment", DefaultParameterSetName = PolicyCmdletBase.NameParameterSet), OutputType(typeof(PsPolicyAssignment))]
3939
public class SetAzurePolicyAssignmentCmdlet : PolicyCmdletBase

src/Resources/ResourceManager/Implementation/Policy/SetAzurePolicyDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2929
/// Sets the policy definition.
3030
/// </summary>
3131
[CmdletOutputBreakingChangeWithVersion(
32-
typeof(PsPolicyDefinition), deprecateByAzVersion: "11.0.0", deprecateByVersion: "7.0.0", DeprecatedOutputProperties = new[] { "Properties" },
32+
typeof(PsPolicyDefinition), deprecateByAzVersion: "12.0.0", deprecateByVersion: "7.1.0", DeprecatedOutputProperties = new[] { "Properties" },
3333
NewOutputProperties = new[] { "Description", "DisplayName", "Metadata", "Mode", "Parameters", "PolicyRule", "PolicyType" })]
3434
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PolicyDefinition", DefaultParameterSetName = PolicyCmdletBase.NameParameterSet), OutputType(typeof(PsPolicyDefinition))]
3535
public class SetAzurePolicyDefinitionCmdlet : PolicyCmdletBase

0 commit comments

Comments
 (0)