Skip to content

Commit 012299b

Browse files
committed
PR Feedback
PR Feedback
1 parent d3d83a4 commit 012299b

File tree

7 files changed

+35
-24
lines changed

7 files changed

+35
-24
lines changed

src/Batch/Batch.Test/ComputeNodeExtensions/GetBatchComputeNodeExtensionCommandTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void GetBatchComputeNodeExtensionTest()
6161
cmdlet.BatchContext = context;
6262
cmdlet.PoolId = "testPool";
6363
cmdlet.ComputeNodeId = "testComputeNode";
64-
cmdlet.ExtensionName = extensionName;
64+
cmdlet.Name = extensionName;
6565

6666
VMExtension extension = new VMExtension(extensionName, publisher, type);
6767

@@ -102,7 +102,7 @@ public void GetBatchComputeNodeExtensionODataTest()
102102
cmdlet.BatchContext = context;
103103
cmdlet.PoolId = "testPool";
104104
cmdlet.ComputeNodeId = "testComputeNode";
105-
cmdlet.ExtensionName = extensionName;
105+
cmdlet.Name = extensionName;
106106
cmdlet.Select = "ExtensionName,Publisher";
107107

108108
VMExtension extension = new VMExtension(extensionName, publisher, type);

src/Batch/Batch/ComputeNodeExtensions/GetBatchComputeNodeExtensionCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class GetBatchComputeNodeExtensionCommand : BatchObjectModelCmdletBase
4242
[Parameter(Position = 2, ParameterSetName = Constants.IdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the extension to get.")]
4343
[Parameter(Position = 2, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipelineByPropertyName = true)]
4444
[ValidateNotNullOrEmpty]
45-
public string ExtensionName { get; set; }
45+
public string Name { get; set; }
4646

4747
[Parameter(ParameterSetName = Constants.IdParameterSet)]
4848
[Parameter(ParameterSetName = Constants.ParentObjectParameterSet)]
@@ -61,7 +61,7 @@ public int MaxCount
6161

6262
protected override void ExecuteCmdletImpl()
6363
{
64-
ListComputeNodeExtensionParameters options = new ListComputeNodeExtensionParameters(BatchContext, PoolId, Pool, ComputeNodeId, ExtensionName, AdditionalBehaviors)
64+
ListComputeNodeExtensionParameters options = new ListComputeNodeExtensionParameters(BatchContext, PoolId, Pool, ComputeNodeId, Name, AdditionalBehaviors)
6565
{
6666
Select = Select,
6767
MaxCount = MaxCount,

src/Batch/Batch/Pools/NewBatchPoolCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class NewBatchPoolCommand : BatchObjectModelCmdletBase
7070

7171
[Parameter]
7272
[ValidateNotNullOrEmpty]
73-
[GenericBreakingChange("MaxTasksPerComputeNode alias will be removed in an upcoming breaking change release", "4.2.0")]
73+
[CmdletParameterBreakingChange("MaxTasksPerComputeNode", "MaxTasksPerComputeNode alias will be removed in an upcoming breaking change release.")]
7474
[Alias("MaxTasksPerComputeNode")]
7575
public int? TaskSlotsPerNode { get; set; }
7676

src/Batch/Batch/Tasks/GetBatchTaskSlotCountCommand.cs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,22 @@ namespace Microsoft.Azure.Commands.Batch
2323
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzurePrefix + "BatchTaskSlotCount", DefaultParameterSetName = Constants.IdParameterSet), OutputType(typeof(PSTaskSlotCounts))]
2424
public class GetBatchTaskSlotCountCommand : BatchObjectModelCmdletBase
2525
{
26-
[Parameter(Position = 0, ParameterSetName = Constants.IdParameterSet, Mandatory = true,
27-
ValueFromPipelineByPropertyName = true, HelpMessage = "The id of the job for which to get task slot counts.")]
26+
[Parameter(
27+
Position = 0,
28+
ParameterSetName = Constants.IdParameterSet,
29+
Mandatory = true,
30+
ValueFromPipelineByPropertyName = true,
31+
HelpMessage = "The id of the job for which to get task slot counts."
32+
)]
2833
[ValidateNotNullOrEmpty]
2934
public string JobId { get; set; }
3035

31-
[Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true)]
36+
[Parameter(
37+
Position = 0,
38+
ParameterSetName = Constants.ParentObjectParameterSet,
39+
ValueFromPipeline = true,
40+
HelpMessage = "Specifies the job that contains tasks that this cmdlet gets. To obtain a **PSCloudJob** object, use the Get-AzBatchJob cmdlet."
41+
)]
3242
[ValidateNotNullOrEmpty]
3343
public PSCloudJob Job { get; set; }
3444

src/Batch/Batch/help/Get-AzBatchComputeNodeExtension.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Gets Batch compute node extensions from a compute node.
1414

1515
### Id (Default)
1616
```
17-
Get-AzBatchComputeNodeExtension [-PoolId] <String> [-ComputeNodeId] <String> [[-ExtensionName] <String>]
17+
Get-AzBatchComputeNodeExtension [-PoolId] <String> [-ComputeNodeId] <String> [[-Name] <String>]
1818
[-Select <String>] [-MaxCount <Int32>] -BatchContext <BatchAccountContext>
1919
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
2020
```
2121

2222
### ParentObject
2323
```
24-
Get-AzBatchComputeNodeExtension [-Pool] <PSCloudPool> [-ComputeNodeId] <String> [[-ExtensionName] <String>]
24+
Get-AzBatchComputeNodeExtension [-Pool] <PSCloudPool> [-ComputeNodeId] <String> [[-Name] <String>]
2525
[-Select <String>] [-MaxCount <Int32>] -BatchContext <BatchAccountContext>
2626
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
2727
```
@@ -102,33 +102,33 @@ Accept pipeline input: False
102102
Accept wildcard characters: False
103103
```
104104
105-
### -ExtensionName
106-
The name of the extension to get.
105+
### -MaxCount
106+
Specifies the maximum number of compute node extensions to return.
107107
108108
```yaml
109-
Type: System.String
109+
Type: System.Int32
110110
Parameter Sets: (All)
111111
Aliases:
112112

113113
Required: False
114-
Position: 2
114+
Position: Named
115115
Default value: None
116-
Accept pipeline input: True (ByPropertyName)
116+
Accept pipeline input: False
117117
Accept wildcard characters: False
118118
```
119119
120-
### -MaxCount
121-
{{ Fill MaxCount Description }}
120+
### -Name
121+
The name of the extension to get.
122122
123123
```yaml
124-
Type: System.Int32
124+
Type: System.String
125125
Parameter Sets: (All)
126126
Aliases:
127127

128128
Required: False
129-
Position: Named
129+
Position: 2
130130
Default value: None
131-
Accept pipeline input: False
131+
Accept pipeline input: True (ByPropertyName)
132132
Accept wildcard characters: False
133133
```
134134
@@ -163,7 +163,8 @@ Accept wildcard characters: False
163163
```
164164
165165
### -Select
166-
{{ Fill Select Description }}
166+
Specifies an OData select clause.
167+
Specify a value for this parameter to get specific properties rather than all object properties.
167168
168169
```yaml
169170
Type: System.String

src/Batch/Batch/help/Get-AzBatchTaskSlotCount.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ Accept wildcard characters: False
8282
```
8383
8484
### -Job
85-
Specifies the job that contains tasks that this cmdlet gets.
86-
To obtain a **PSCloudJob** object, use the Get-AzBatchJob cmdlet.
85+
Specifies the job that contains tasks that this cmdlet gets. To obtain a **PSCloudJob** object, use the Get-AzBatchJob cmdlet.
8786
8887
```yaml
8988
Type: Microsoft.Azure.Commands.Batch.Models.PSCloudJob

src/Batch/Batch/help/New-AzBatchPool.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,8 @@ Accept wildcard characters: False
416416
```
417417
418418
### -TaskSlotsPerNode
419-
{{ Fill TaskSlotsPerNode Description }}
419+
The number of task slots that can be used to run concurrent tasks on a single compute node in the pool.
420+
The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.
420421
421422
```yaml
422423
Type: System.Nullable`1[System.Int32]

0 commit comments

Comments
 (0)