Skip to content

Commit 915216f

Browse files
committed
Fixed DefaultParameterSetName property of Cmdlet attribute
1 parent 101ac87 commit 915216f

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/ResourceManager/Insights/Commands.Insights/ActionGroups/GetAzureRmActionGroupCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ namespace Microsoft.Azure.Commands.Insights.ActionGroups
2525
/// <summary>
2626
/// Gets an Azure Action Group.
2727
/// </summary>
28-
[Cmdlet(VerbsCommon.Get, "AzureRmActionGroup"), OutputType(typeof(PSActionGroupResource)), CmdletBinding(DefaultParameterSetName = BySubscriptionOrResourceGroup)]
28+
[Cmdlet(VerbsCommon.Get, "AzureRmActionGroup", DefaultParameterSetName = BySubscriptionOrResourceGroup)]
29+
[OutputType(typeof(PSActionGroupResource))]
2930
public class GetAzureRmActionGroupCommand : ManagementCmdletBase
3031
{
3132
private const string ByName = "ByName";

src/ResourceManager/Insights/Commands.Insights/ActionGroups/NewAzureRmActionGroupReceiverCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ namespace Microsoft.Azure.Commands.Insights.ActionGroups
2222
/// <summary>
2323
/// Create an ActionGroup receiver
2424
/// </summary>
25-
[Cmdlet(VerbsCommon.New, "AzureRmActionGroupReceiver"), OutputType(typeof(PSActionGroupReceiverBase)), CmdletBinding(DefaultParameterSetName = NewEmailReceiver)]
25+
[Cmdlet(VerbsCommon.New, "AzureRmActionGroupReceiver", DefaultParameterSetName = NewEmailReceiver)]
26+
[OutputType(typeof(PSActionGroupReceiverBase))]
2627
public class NewAzureRmActionGroupReceiverCommand : AzureRMCmdlet
2728
{
2829
private const string NewEmailReceiver = "NewEmailReceiver";

src/ResourceManager/Insights/Commands.Insights/ActionGroups/RemoveAzureRmActionGroupCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ namespace Microsoft.Azure.Commands.Insights.ActionGroups
2626
/// <summary>
2727
/// Gets an Azure Action Group.
2828
/// </summary>
29-
[Cmdlet(VerbsCommon.Remove, "AzureRmActionGroup", SupportsShouldProcess = true), OutputType(typeof(AzureOperationResponse)), CmdletBinding(DefaultParameterSetName = ByPropertyName)]
29+
[Cmdlet(VerbsCommon.Remove, "AzureRmActionGroup", DefaultParameterSetName = ByPropertyName, SupportsShouldProcess = true)]
30+
[OutputType(typeof(AzureOperationResponse))]
3031
public class RemoveAzureRmActionGroupCommand : ManagementCmdletBase
3132
{
3233
private const string ByPropertyName = "ByPropertyName";

src/ResourceManager/Insights/Commands.Insights/ActionGroups/SetAzureRmActionGroupCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ namespace Microsoft.Azure.Commands.Insights.ActionGroups
2929
/// <summary>
3030
/// Gets an Azure Action Group.
3131
/// </summary>
32-
[Cmdlet(VerbsCommon.Set, "AzureRmActionGroup", SupportsShouldProcess = true), OutputType(typeof(PSActionGroupResource)), CmdletBinding(DefaultParameterSetName = ByPropertyName)]
32+
[Cmdlet(VerbsCommon.Set, "AzureRmActionGroup", DefaultParameterSetName = ByPropertyName, SupportsShouldProcess = true)]
33+
[OutputType(typeof(PSActionGroupResource))]
3334
public class SetAzureRmActionGroupCommand : ManagementCmdletBase
3435
{
3536
private const string ByPropertyName = "ByPropertyName";

0 commit comments

Comments
 (0)