Skip to content

Commit 6b7ccd8

Browse files
author
Maddie Clayton
authored
Merge pull request Azure#8814 from maddieclayton/plural
Rename plural cmdlets to singular
2 parents 7b6a146 + df98bad commit 6b7ccd8

File tree

214 files changed

+1063
-883
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+1063
-883
lines changed

src/Batch/Batch.Test/BatchAccounts/GetBatchAccountKeysCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Batch.Test.Accounts
2323
{
2424
public class GetBatchAccountKeysCommandTests : WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
2525
{
26-
private GetBatchAccountKeysCommand cmdlet;
26+
private GetBatchAccountKeyCommand cmdlet;
2727
private Mock<BatchClient> batchClientMock;
2828
private Mock<ICommandRuntime> commandRuntimeMock;
2929

@@ -32,7 +32,7 @@ public GetBatchAccountKeysCommandTests(Xunit.Abstractions.ITestOutputHelper outp
3232
ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagement.Common.Models.XunitTracingInterceptor(output));
3333
batchClientMock = new Mock<BatchClient>();
3434
commandRuntimeMock = new Mock<ICommandRuntime>();
35-
cmdlet = new GetBatchAccountKeysCommand()
35+
cmdlet = new GetBatchAccountKeyCommand()
3636
{
3737
CommandRuntime = commandRuntimeMock.Object,
3838
BatchClient = batchClientMock.Object

src/Batch/Batch.Test/ComputeNodes/GetBatchComputeNodeLoginSettingsCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Microsoft.Azure.Commands.Batch.Test.ComputeNodes
2929
{
3030
public class GetBatchComputeNodeLoginSettingsCommandTests : WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
3131
{
32-
private GetBatchComputeNodeRemoteLoginSettingsCommand cmdlet;
32+
private GetBatchComputeNodeRemoteLoginSettingCommand cmdlet;
3333
private Mock<BatchClient> batchClientMock;
3434
private Mock<ICommandRuntime> commandRuntimeMock;
3535

@@ -38,7 +38,7 @@ public GetBatchComputeNodeLoginSettingsCommandTests(Xunit.Abstractions.ITestOutp
3838
ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagement.Common.Models.XunitTracingInterceptor(output));
3939
batchClientMock = new Mock<BatchClient>();
4040
commandRuntimeMock = new Mock<ICommandRuntime>();
41-
cmdlet = new GetBatchComputeNodeRemoteLoginSettingsCommand()
41+
cmdlet = new GetBatchComputeNodeRemoteLoginSettingCommand()
4242
{
4343
CommandRuntime = commandRuntimeMock.Object,
4444
BatchClient = batchClientMock.Object,

src/Batch/Batch.Test/Jobs/GetBatchJobStatisticsCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Microsoft.Azure.Commands.Batch.Test.Jobs
3131
{
3232
public class GetBatchJobStatisticsCommandTests : WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
3333
{
34-
private GetBatchJobStatisticsCommand cmdlet;
34+
private GetBatchJobStatisticCommand cmdlet;
3535
private Mock<BatchClient> batchClientMock;
3636
private Mock<ICommandRuntime> commandRuntimeMock;
3737

@@ -40,7 +40,7 @@ public GetBatchJobStatisticsCommandTests(Xunit.Abstractions.ITestOutputHelper ou
4040
ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagement.Common.Models.XunitTracingInterceptor(output));
4141
batchClientMock = new Mock<BatchClient>();
4242
commandRuntimeMock = new Mock<ICommandRuntime>();
43-
cmdlet = new GetBatchJobStatisticsCommand()
43+
cmdlet = new GetBatchJobStatisticCommand()
4444
{
4545
CommandRuntime = commandRuntimeMock.Object,
4646
BatchClient = batchClientMock.Object,

src/Batch/Batch.Test/Locations/GetBatchLocationQuotasCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Batch.Test.Subscriptions
2626
{
2727
public class GetBatchLocationQuotasCommandTests : RMTestBase
2828
{
29-
private GetBatchLocationQuotasCommand cmdlet;
29+
private GetBatchLocationQuotaCommand cmdlet;
3030
private Mock<BatchClient> batchClientMock;
3131
private Mock<ICommandRuntime> commandRuntimeMock;
3232

@@ -35,7 +35,7 @@ public GetBatchLocationQuotasCommandTests(Xunit.Abstractions.ITestOutputHelper o
3535
ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagement.Common.Models.XunitTracingInterceptor(output));
3636
batchClientMock = new Mock<BatchClient>();
3737
commandRuntimeMock = new Mock<ICommandRuntime>();
38-
cmdlet = new GetBatchLocationQuotasCommand()
38+
cmdlet = new GetBatchLocationQuotaCommand()
3939
{
4040
CommandRuntime = commandRuntimeMock.Object,
4141
BatchClient = batchClientMock.Object

src/Batch/Batch.Test/Pools/GetBatchPoolNodeCountsCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace Microsoft.Azure.Commands.Batch.Test.Pools
3333
{
3434
public class GetBatchPoolNodeCountsCommandTests : WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
3535
{
36-
private GetBatchPoolNodeCountsCommand cmdlet;
36+
private GetBatchPoolNodeCountCommand cmdlet;
3737
private Mock<BatchClient> batchClientMock;
3838
private Mock<ICommandRuntime> commandRuntimeMock;
3939

@@ -43,7 +43,7 @@ public GetBatchPoolNodeCountsCommandTests(Xunit.Abstractions.ITestOutputHelper o
4343
new ServiceManagement.Common.Models.XunitTracingInterceptor(output));
4444
batchClientMock = new Mock<BatchClient>();
4545
commandRuntimeMock = new Mock<ICommandRuntime>();
46-
cmdlet = new GetBatchPoolNodeCountsCommand()
46+
cmdlet = new GetBatchPoolNodeCountCommand()
4747
{
4848
CommandRuntime = commandRuntimeMock.Object,
4949
BatchClient = batchClientMock.Object,

src/Batch/Batch.Test/Pools/GetBatchPoolStatisticsCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Microsoft.Azure.Commands.Batch.Test.Pools
3131
{
3232
public class GetBatchPoolStatisticsCommandTests : WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
3333
{
34-
private GetBatchPoolStatisticsCommand cmdlet;
34+
private GetBatchPoolStatisticCommand cmdlet;
3535
private Mock<BatchClient> batchClientMock;
3636
private Mock<ICommandRuntime> commandRuntimeMock;
3737

@@ -40,7 +40,7 @@ public GetBatchPoolStatisticsCommandTests(Xunit.Abstractions.ITestOutputHelper o
4040
ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagement.Common.Models.XunitTracingInterceptor(output));
4141
batchClientMock = new Mock<BatchClient>();
4242
commandRuntimeMock = new Mock<ICommandRuntime>();
43-
cmdlet = new GetBatchPoolStatisticsCommand()
43+
cmdlet = new GetBatchPoolStatisticCommand()
4444
{
4545
CommandRuntime = commandRuntimeMock.Object,
4646
BatchClient = batchClientMock.Object,

src/Batch/Batch.Test/Tasks/GetBatchTaskCountsCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.Batch.Test.Tasks
2828
{
2929
public class GetBatchTaskCountsCommandTests
3030
{
31-
private GetBatchTaskCountsCommand cmdlet;
31+
private GetBatchTaskCountCommand cmdlet;
3232
private Mock<BatchClient> batchClientMock;
3333
private Mock<ICommandRuntime> commandRuntimeMock;
3434

@@ -37,7 +37,7 @@ public GetBatchTaskCountsCommandTests(Xunit.Abstractions.ITestOutputHelper outpu
3737
ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(new ServiceManagement.Common.Models.XunitTracingInterceptor(output));
3838
batchClientMock = new Mock<BatchClient>();
3939
commandRuntimeMock = new Mock<ICommandRuntime>();
40-
cmdlet = new GetBatchTaskCountsCommand()
40+
cmdlet = new GetBatchTaskCountCommand()
4141
{
4242
CommandRuntime = commandRuntimeMock.Object,
4343
BatchClient = batchClientMock.Object,

src/Batch/Batch/Az.Batch.psd1

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@ FunctionsToExport = @()
8080

8181
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
8282
CmdletsToExport = 'Remove-AzBatchAccount', 'Get-AzBatchAccount',
83-
'Get-AzBatchAccountKeys', 'New-AzBatchAccount',
83+
'Get-AzBatchAccountKey', 'New-AzBatchAccount',
8484
'New-AzBatchAccountKey', 'Set-AzBatchAccount',
85-
'New-AzBatchApplicationPackage', 'Get-AzBatchJobStatistics',
85+
'New-AzBatchApplicationPackage', 'Get-AzBatchJobStatistic',
8686
'Remove-AzBatchApplication', 'Remove-AzBatchApplicationPackage',
8787
'Get-AzBatchApplicationPackage', 'Get-AzBatchApplication',
8888
'Set-AzBatchApplication', 'New-AzBatchApplication',
8989
'Get-AzBatchCertificate', 'Remove-AzBatchCertificate',
9090
'New-AzBatchCertificate', 'Stop-AzBatchCertificateDeletion',
9191
'Disable-AzBatchComputeNodeScheduling',
9292
'Enable-AzBatchComputeNodeScheduling',
93-
'Get-AzBatchRemoteLoginSettings', 'Remove-AzBatchComputeNode',
93+
'Get-AzBatchRemoteLoginSetting', 'Remove-AzBatchComputeNode',
9494
'Reset-AzBatchComputeNode', 'Restart-AzBatchComputeNode',
9595
'Set-AzBatchComputeNodeUser', 'Get-AzBatchNodeFile',
9696
'Get-AzBatchNodeFileContent',
@@ -101,25 +101,26 @@ CmdletsToExport = 'Remove-AzBatchAccount', 'Get-AzBatchAccount',
101101
'Remove-AzBatchJob', 'Set-AzBatchJob', 'Stop-AzBatchJob',
102102
'Get-AzBatchJob', 'Get-AzBatchJobPreparationAndReleaseTaskStatus',
103103
'Disable-AzBatchAutoScale', 'Enable-AzBatchAutoScale',
104-
'Get-AzBatchPoolStatistics', 'Get-AzBatchPoolUsageMetrics',
104+
'Get-AzBatchPoolStatistic', 'Get-AzBatchPoolUsageMetric',
105105
'Get-AzBatchPool', 'Get-AzBatchNodeAgentSku', 'New-AzBatchPool',
106106
'Remove-AzBatchPool', 'Set-AzBatchPool', 'Set-AzBatchPoolOSVersion',
107107
'Start-AzBatchPoolResize', 'Stop-AzBatchPoolResize',
108-
'Test-AzBatchAutoScale', 'Get-AzBatchLocationQuotas',
108+
'Test-AzBatchAutoScale', 'Get-AzBatchLocationQuota',
109109
'Get-AzBatchSubtask', 'Get-AzBatchTask', 'New-AzBatchTask',
110110
'Remove-AzBatchTask', 'New-AzBatchComputeNodeUser',
111111
'Remove-AzBatchComputeNodeUser', 'Enable-AzBatchTask',
112112
'Set-AzBatchTask', 'Stop-AzBatchTask', 'Get-AzBatchComputeNode',
113113
'Get-AzBatchJobSchedule', 'New-AzBatchJobSchedule',
114-
'Remove-AzBatchJobSchedule', 'Get-AzBatchTaskCounts',
115-
'Get-AzBatchPoolNodeCounts',
114+
'Remove-AzBatchJobSchedule', 'Get-AzBatchTaskCount',
115+
'Get-AzBatchPoolNodeCount',
116116
'Start-AzBatchComputeNodeServiceLogUpload'
117117

118118
# Variables to export from this module
119119
# VariablesToExport = @()
120120

121121
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
122-
AliasesToExport = 'Reactivate-AzBatchTask', 'Get-AzBatchSubscriptionQuotas'
122+
AliasesToExport = 'Reactivate-AzBatchTask', 'Get-AzBatchSubscriptionQuotas', 'Get-AzBatchAccountKeys', 'Get-AzBatchJobStatistics', 'Get-AzBatchLocationQuotas',
123+
'Get-AzBatchPoolNodeCounts', 'Get-AzBatchPoolStatistics', 'Get-AzBatchPoolUsageMetrics', 'Get-AzBatchRemoteLoginSettings', 'Get-AzBatchTaskCounts'
123124

124125
# DSC resources to export from this module
125126
# DscResourcesToExport = @()

src/Batch/Batch/BatchAccounts/GetBatchAccountKeysCommand.cs renamed to src/Batch/Batch/BatchAccounts/GetBatchAccountKeyCommand.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
16+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1617
using System.Management.Automation;
1718
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1819

1920
namespace Microsoft.Azure.Commands.Batch
2021
{
21-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BatchAccountKeys"), OutputType(typeof(BatchAccountContext))]
22-
public class GetBatchAccountKeysCommand : BatchCmdletBase
22+
[GenericBreakingChange("Get-AzBatchAccountKeys alias will be removed in an upcoming breaking change release", "2.0.0")]
23+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BatchAccountKey"), OutputType(typeof(BatchAccountContext))]
24+
[Alias("Get-AzBatchAccountKeys")]
25+
public class GetBatchAccountKeyCommand : BatchCmdletBase
2326
{
2427
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2528
HelpMessage = "The name of the Batch service account to query keys for.")]

src/Batch/Batch/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Updated cmdlets with plural nouns to singular, and deprecated plural names.
2223

2324
## Version 1.0.0
2425
* General availability of `Az.Batch` module

src/Batch/Batch/ComputeNodes/GetBatchComputeNodeRemoteLoginSettingsCommand.cs renamed to src/Batch/Batch/ComputeNodes/GetBatchComputeNodeRemoteLoginSettingCommand.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414

1515
using Microsoft.Azure.Batch;
1616
using Microsoft.Azure.Commands.Batch.Models;
17+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1718
using System.Management.Automation;
1819
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1920

2021
namespace Microsoft.Azure.Commands.Batch
2122
{
22-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchRemoteLoginSettings", DefaultParameterSetName = Constants.IdParameterSet),OutputType(typeof(PSRemoteLoginSettings))]
23-
public class GetBatchComputeNodeRemoteLoginSettingsCommand : BatchObjectModelCmdletBase
23+
[GenericBreakingChange("Get-AzBatchRemoteLoginSettings alias will be removed in an upcoming breaking change release", "2.0.0")]
24+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchRemoteLoginSetting", DefaultParameterSetName = Constants.IdParameterSet),OutputType(typeof(PSRemoteLoginSettings))]
25+
[Alias("Get-AzBatchRemoteLoginSettings")]
26+
public class GetBatchComputeNodeRemoteLoginSettingCommand : BatchObjectModelCmdletBase
2427
{
2528
[Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true,
2629
HelpMessage = "The id of the pool containing the compute node for which to get remote login settings.")]

src/Batch/Batch/Jobs/GetBatchJobStatisticsCommand.cs renamed to src/Batch/Batch/Jobs/GetBatchJobStatisticCommand.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414

1515
using Microsoft.Azure.Batch;
1616
using Microsoft.Azure.Commands.Batch.Models;
17+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1718
using System.Management.Automation;
1819
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1920

2021
namespace Microsoft.Azure.Commands.Batch
2122
{
22-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchJobStatistics"), OutputType(typeof(PSJobStatistics))]
23-
public class GetBatchJobStatisticsCommand : BatchObjectModelCmdletBase
23+
[GenericBreakingChange("Get-AzBatchJobStatistics alias will be removed in an upcoming breaking change release", "2.0.0")]
24+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchJobStatistic"), OutputType(typeof(PSJobStatistics))]
25+
[Alias("Get-AzBatchJobStatistics")]
26+
public class GetBatchJobStatisticCommand : BatchObjectModelCmdletBase
2427
{
2528
public override void ExecuteCmdlet()
2629
{

src/Batch/Batch/Locations/GetBatchLocationQuotasCommand.cs renamed to src/Batch/Batch/Locations/GetBatchLocationQuotaCommand.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@
1414

1515
using Microsoft.Azure.Commands.Batch.Models;
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
17+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1718
using System.Management.Automation;
1819
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1920

2021
namespace Microsoft.Azure.Commands.Batch
2122
{
22-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BatchLocationQuotas"), OutputType(typeof(PSBatchLocationQuotas))]
23+
[GenericBreakingChange("Get-AzBatchLocationQuotas alias will be removed in an upcoming breaking change release", "2.0.0")]
24+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BatchLocationQuota"), OutputType(typeof(PSBatchLocationQuotas))]
2325
// This alias was added in 10/2016 for backwards compatibility
24-
[Alias("Get-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BatchSubscriptionQuotas")]
25-
public class GetBatchLocationQuotasCommand : BatchCmdletBase
26+
[Alias("Get-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BatchSubscriptionQuotas", "Get-AzBatchLocationQuotas")]
27+
public class GetBatchLocationQuotaCommand : BatchCmdletBase
2628
{
2729
[Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
2830
HelpMessage = "The region to get the quotas of the subscription in the Batch Service from.")]

src/Batch/Batch/Pools/GetBatchPoolNodeCountsCommand.cs renamed to src/Batch/Batch/Pools/GetBatchPoolNodeCountCommand.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@
1616
using Microsoft.Azure.Commands.Batch.Models;
1717
using System.Management.Automation;
1818
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920

2021
namespace Microsoft.Azure.Commands.Batch
2122
{
22-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchPoolNodeCounts",DefaultParameterSetName = Constants.AzureBatchPoolNodeCounts),OutputType(typeof(PSPoolNodeCounts))]
23-
public class GetBatchPoolNodeCountsCommand : BatchObjectModelCmdletBase
23+
[GenericBreakingChange("Get-AzBatchPoolNodeCounts alias will be removed in an upcoming breaking change release", "2.0.0")]
24+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchPoolNodeCount",DefaultParameterSetName = Constants.AzureBatchPoolNodeCounts),OutputType(typeof(PSPoolNodeCounts))]
25+
[Alias("Get-AzBatchPoolNodeCounts")]
26+
public class GetBatchPoolNodeCountCommand : BatchObjectModelCmdletBase
2427
{
2528
private const int defaultMaxCount = 10;
2629

src/Batch/Batch/Pools/GetBatchPoolStatisticsCommand.cs renamed to src/Batch/Batch/Pools/GetBatchPoolStatisticCommand.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414

1515
using Microsoft.Azure.Batch;
1616
using Microsoft.Azure.Commands.Batch.Models;
17+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1718
using System.Management.Automation;
1819
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1920

2021
namespace Microsoft.Azure.Commands.Batch
2122
{
22-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchPoolStatistics"), OutputType(typeof(PSPoolStatistics))]
23-
public class GetBatchPoolStatisticsCommand : BatchObjectModelCmdletBase
23+
[GenericBreakingChange("Get-AzBatchPoolStatistics alias will be removed in an upcoming breaking change release", "2.0.0")]
24+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchPoolStatistic"), OutputType(typeof(PSPoolStatistics))]
25+
[Alias("Get-AzBatchPoolStatistics")]
26+
public class GetBatchPoolStatisticCommand : BatchObjectModelCmdletBase
2427
{
2528
public override void ExecuteCmdlet()
2629
{

src/Batch/Batch/Pools/GetBatchPoolUsageMetricsCommand.cs renamed to src/Batch/Batch/Pools/GetBatchPoolUsageMetricCommand.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
using Microsoft.Azure.Commands.Batch.Models;
1818
using System.Management.Automation;
1919
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.Azure.Commands.Batch
2223
{
23-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchPoolUsageMetrics"), OutputType(typeof(PSPoolUsageMetrics))]
24+
[GenericBreakingChange("Get-AzBatchPoolUsageMetrics alias will be removed in an upcoming breaking change release", "2.0.0")]
25+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchPoolUsageMetric"), OutputType(typeof(PSPoolUsageMetrics))]
26+
[Alias("Get-AzBatchPoolUsageMetrics")]
2427
public class GetBatchPoolUsageMetrics : BatchObjectModelCmdletBase
2528
{
2629
[Parameter]

src/Batch/Batch/Tasks/GetBatchTaskCountsCommand.cs renamed to src/Batch/Batch/Tasks/GetBatchTaskCountCommand.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414

1515
using Microsoft.Azure.Batch;
1616
using Microsoft.Azure.Commands.Batch.Models;
17+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1718
using System.Management.Automation;
1819
using Constants = Microsoft.Azure.Commands.Batch.Utils.Constants;
1920

2021
namespace Microsoft.Azure.Commands.Batch
2122
{
22-
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchTaskCounts"),OutputType(typeof(PSTaskCounts))]
23-
public class GetBatchTaskCountsCommand : BatchObjectModelCmdletBase
23+
[GenericBreakingChange("Get-AzBatchTaskCounts alias will be removed in an upcoming breaking change release", "2.0.0")]
24+
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchTaskCount"),OutputType(typeof(PSTaskCounts))]
25+
[Alias("Get-AzBatchTaskCounts")]
26+
public class GetBatchTaskCountCommand : BatchObjectModelCmdletBase
2427
{
2528
[Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true,
2629
ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job for which to get task counts.")]

0 commit comments

Comments
 (0)