Skip to content

Commit a794dab

Browse files
committed
Merge pull request #39 from jasper-schneider/helpdocs
Batch cmdlet help
2 parents 21f6ece + 99dac69 commit a794dab

20 files changed

+5406
-875
lines changed

src/ResourceManager/Batch/Commands.Batch/Accounts/GetBatchAccountCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Batch
2424
public class GetBatchAccountCommand : BatchCmdletBase
2525
{
2626
[Alias("Name")]
27-
[Parameter(Position = 0, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the Batch service account name to query.")]
27+
[Parameter(Position = 0, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the Batch service account to query.")]
2828
[ValidateNotNullOrEmpty]
2929
public string AccountName { get; set; }
3030

src/ResourceManager/Batch/Commands.Batch/Accounts/SetBatchAccountCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class SetBatchAccountCommand : BatchCmdletBase
3030
public string AccountName { get; set; }
3131

3232
[Alias("Tags")]
33-
[Parameter(Mandatory = true, Position = 1, ValueFromPipelineByPropertyName = true, HelpMessage = "An array of hashtables which represents the account tags to be replaced or updated.")]
33+
[Parameter(Mandatory = true, Position = 1, ValueFromPipelineByPropertyName = true, HelpMessage = "An array of hashtables which represents the tags to set on the account.")]
3434
public Hashtable[] Tag { get; set; }
3535

3636
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource group of the account being updated.")]

src/ResourceManager/Batch/Commands.Batch/BatchObjectModelCmdletBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class BatchObjectModelCmdletBase : BatchCmdletBase
2929
/// </summary>
3030
internal IEnumerable<BatchClientBehavior> AdditionalBehaviors { get; set; }
3131

32-
[Parameter(Mandatory = true, ValueFromPipeline = true, HelpMessage = "The Batch account information.")]
32+
[Parameter(Mandatory = true, ValueFromPipeline = true, HelpMessage = "The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.")]
3333
[ValidateNotNullOrEmpty]
3434
public BatchAccountContext BatchContext { get; set; }
3535

src/ResourceManager/Batch/Commands.Batch/Files/GetBatchTaskFileCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ public class GetBatchTaskFileCommand : BatchObjectModelCmdletBase
4444
[ValidateNotNullOrEmpty]
4545
public string Name { get; set; }
4646

47-
[Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The Task object to use as the basis for the file query.")]
47+
[Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSCloudTask file representing the task that the task files are associated with.")]
4848
[ValidateNotNullOrEmpty]
4949
public PSCloudTask Task { get; set; }
5050

51-
[Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "OData filter to use when querying for Task files.")]
51+
[Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The OData filter clause to use when querying for task files.")]
5252
[Parameter(ParameterSetName = Constants.ParentObjectParameterSet)]
5353
[ValidateNotNullOrEmpty]
5454
public string Filter { get; set; }
5555

56-
[Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of Task files to return. If a value of 0 or less is specified, then no upper limit will be used.")]
56+
[Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of task files to return.")]
5757
[Parameter(ParameterSetName = Constants.ParentObjectParameterSet)]
5858
public int MaxCount
5959
{

src/ResourceManager/Batch/Commands.Batch/Files/GetBatchTaskFileContentCommand.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@ namespace Microsoft.Azure.Commands.Batch
2424
[Cmdlet(VerbsCommon.Get, "AzureBatchTaskFileContent")]
2525
public class GetBatchTaskFileContentCommand : BatchObjectModelCmdletBase
2626
{
27-
[Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the WorkItem.")]
27+
[Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem containing the target task.")]
2828
[ValidateNotNullOrEmpty]
2929
public string WorkItemName { get; set; }
3030

31-
[Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the Job.")]
31+
[Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the job containing the target task.")]
3232
[ValidateNotNullOrEmpty]
3333
public string JobName { get; set; }
3434

35-
[Parameter(Position = 2, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the Task.")]
35+
[Parameter(Position = 2, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the task.")]
3636
[ValidateNotNullOrEmpty]
3737
public string TaskName { get; set; }
3838

39-
[Parameter(Position = 3, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the Task file to download.")]
39+
[Parameter(Position = 3, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the task file to download.")]
4040
[ValidateNotNullOrEmpty]
4141
public string Name { get; set; }
4242

43-
[Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The Task file to download.")]
43+
[Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSTaskFile object representing the task file to download.")]
4444
[ValidateNotNullOrEmpty]
4545
public PSTaskFile InputObject { get; set; }
4646

47-
[Parameter(HelpMessage = "The path to the directory where the Task file will be downloaded.")]
47+
[Parameter(HelpMessage = "The path to the directory where the task file will be downloaded.")]
4848
[ValidateNotNullOrEmpty]
4949
public string DestinationPath { get; set; }
5050

src/ResourceManager/Batch/Commands.Batch/Jobs/GetBatchJobCommand.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@ public class GetBatchJobCommand : BatchObjectModelCmdletBase
2525
{
2626
private int maxCount = Constants.DefaultMaxCount;
2727

28-
[Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the WorkItem containing the Jobs to query.")]
28+
[Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem which contains the jobs.")]
2929
[Parameter(ParameterSetName = Constants.ODataFilterParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true)]
3030
[ValidateNotNullOrEmpty]
3131
public string WorkItemName { get; set; }
3232

33-
[Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, HelpMessage = "The name of the Job to query.")]
33+
[Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, HelpMessage = "The name of the job to retrieve.")]
3434
[ValidateNotNullOrEmpty]
3535
public string Name { get; set; }
3636

37-
[Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The WorkItem containing the Jobs to query.")]
37+
[Parameter(Position = 0, ParameterSetName = Constants.ParentObjectParameterSet, ValueFromPipeline = true, HelpMessage = "The PSCloudWorkItem object representing the workitem which contains the jobs.")]
3838
[ValidateNotNullOrEmpty]
3939
public PSCloudWorkItem WorkItem { get; set; }
4040

41-
[Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "OData filter to use when querying for Jobs.")]
41+
[Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The OData filter clause to use when querying for jobs.")]
4242
[Parameter(ParameterSetName = Constants.ParentObjectParameterSet)]
4343
[ValidateNotNullOrEmpty]
4444
public string Filter { get; set; }
4545

46-
[Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of Jobs to return. If a value of 0 or less is specified, then no upper limit will be used.")]
46+
[Parameter(ParameterSetName = Constants.ODataFilterParameterSet, HelpMessage = "The maximum number of jobs to return.")]
4747
[Parameter(ParameterSetName = Constants.ParentObjectParameterSet)]
4848
public int MaxCount
4949
{

src/ResourceManager/Batch/Commands.Batch/Jobs/RemoveBatchJobCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ namespace Microsoft.Azure.Commands.Batch
2424
[Cmdlet(VerbsCommon.Remove, "AzureBatchJob")]
2525
public class RemoveBatchJobCommand : BatchObjectModelCmdletBase
2626
{
27-
[Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the WorkItem containing the Job to delete.")]
27+
[Parameter(Position = 0, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the workitem containing the job to delete.")]
2828
[ValidateNotNullOrEmpty]
2929
public string WorkItemName { get; set; }
3030

31-
[Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the Job to delete.")]
31+
[Parameter(Position = 1, ParameterSetName = Constants.NameParameterSet, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The name of the job to delete.")]
3232
[ValidateNotNullOrEmpty]
3333
public string Name { get; set; }
3434

35-
[Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, Mandatory = true, ValueFromPipeline = true, HelpMessage = "The Job to delete.")]
35+
[Parameter(Position = 0, ParameterSetName = Constants.InputObjectParameterSet, Mandatory = true, ValueFromPipeline = true, HelpMessage = "The PSCloudJob object representing the job to delete.")]
3636
[ValidateNotNullOrEmpty]
3737
public PSCloudJob InputObject { get; set; }
3838

0 commit comments

Comments
 (0)