Skip to content

Commit 381a70e

Browse files
Enum for Plan
1 parent 96afa0d commit 381a70e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/ResourceManager/Automation/Commands.Automation/Cmdlet/NewAzureAutomationAccount.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
using System.Management.Automation;
1818
using System.Security.Permissions;
1919
using Microsoft.Azure.Commands.Automation.Common;
20-
using Microsoft.Azure.Commands.Automation.Model;
20+
using Microsoft.Azure.Management.Automation.Models;
2121
using Microsoft.WindowsAzure.Commands.Utilities.Common;
22+
using AutomationAccount = Microsoft.Azure.Commands.Automation.Model.AutomationAccount;
2223

2324
namespace Microsoft.Azure.Commands.Automation.Cmdlet
2425
{
@@ -75,7 +76,7 @@ public IAutomationClient AutomationClient
7576
/// Gets or sets the plan.
7677
/// </summary>
7778
[Parameter( Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The plan of the automation account")]
78-
[ValidateSet("Free", "Basic", IgnoreCase = true)]
79+
[ValidateSet(SkuNameEnum.Free, SkuNameEnum.Basic, IgnoreCase = true)]
7980
public string Plan { get; set; }
8081

8182
/// <summary>

src/ResourceManager/Automation/Commands.Automation/Cmdlet/SetAzureAutomationAccount.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
using System.Management.Automation;
1818
using System.Security.Permissions;
1919
using Microsoft.Azure.Commands.Automation.Common;
20-
using Microsoft.Azure.Commands.Automation.Model;
20+
using Microsoft.Azure.Management.Automation.Models;
2121
using Microsoft.WindowsAzure.Commands.Utilities.Common;
22+
using AutomationAccount = Microsoft.Azure.Commands.Automation.Model.AutomationAccount;
2223

2324
namespace Microsoft.Azure.Commands.Automation.Cmdlet
2425
{
@@ -69,7 +70,7 @@ public IAutomationClient AutomationClient
6970
/// Gets or sets the plan.
7071
/// </summary>
7172
[Parameter( Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The plan of the automation account")]
72-
[ValidateSet("Free", "Basic", IgnoreCase = true)]
73+
[ValidateSet(SkuNameEnum.Free, SkuNameEnum.Basic, IgnoreCase = true)]
7374
public string Plan { get; set; }
7475

7576
/// <summary>

0 commit comments

Comments
 (0)