Skip to content

Commit

Permalink
Merge pull request #1 from itowlson/feature/app-and-td
Browse files Browse the repository at this point in the history
XML file doc strings for auto storage and applications
  • Loading branch information
matthew-rollitt committed Apr 21, 2016
2 parents 2902b34 + ea91e47 commit 8652ffe
Show file tree
Hide file tree
Showing 8 changed files with 408 additions and 117 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ namespace Microsoft.Azure.Commands.Batch
[Cmdlet(VerbsCommon.Get, Constants.AzureRmBatchApplication), OutputType(typeof(PSApplication))]
public class GetBatchApplicationCommand : BatchCmdletBase
{
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the Batch account.")]
[ValidateNotNullOrEmpty]
public string AccountName { get; set; }

[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ namespace Microsoft.Azure.Commands.Batch
public class GetBatchApplicationPackageCommand : BatchCmdletBase
{
[Alias("Name")]
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the Batch account.")]
[ValidateNotNullOrEmpty]
public string AccountName { get; set; }

[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

[Parameter(Position = 2, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 2, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the id of the application.")]
[ValidateNotNullOrEmpty]
public string ApplicationId { get; set; }

[Parameter(Position = 3, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 3, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the version of the application.")]
[ValidateNotNullOrEmpty]
public string ApplicationVersion { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ namespace Microsoft.Azure.Commands.Batch
public class NewBatchApplicationCommand : BatchCmdletBase
{
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true,
HelpMessage = "The name of the Batch account to used in the service.")]
HelpMessage = "Specifies the name of the Batch account.")]
[ValidateNotNullOrEmpty]
public string AccountName { get; set; }

[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

[Parameter(Position = 2, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 2, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the id of the application.")]
[ValidateNotNullOrEmpty]
public string ApplicationId { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ public class RemoveBatchApplicationCommand : BatchCmdletBase
{
private static string mamlCall = "RemoveApplication";

[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the Batch account.")]
[ValidateNotNullOrEmpty]
public string AccountName { get; set; }

[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

[Alias("id")]
[Parameter(Position = 2, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 2, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the id of the application.")]
[ValidateNotNullOrEmpty]
public string ApplicationId { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ public class RemoveBatchApplicationPackageCommand : BatchCmdletBase
private static string mamlCall = "RemoveApplicationPackage";


[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the Batch account.")]
[ValidateNotNullOrEmpty]
public string AccountName { get; set; }

[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

[Parameter(Position = 2, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 2, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the id of the application.")]
[ValidateNotNullOrEmpty]
public string ApplicationId { get; set; }

[Parameter(Position = 3, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 3, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the version of the application.")]
[ValidateNotNullOrEmpty]
public string ApplicationVersion { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public class SetBatchApplicationCommand : BatchCmdletBase
{
private static string mamlCall = "SetApplication";

[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the Batch account.")]
[ValidateNotNullOrEmpty]
public string AccountName { get; set; }

[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

[Parameter(Position = 3, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "TODO")]
[Parameter(Position = 3, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the id of the application.")]
[ValidateNotNullOrEmpty]
public string ApplicationId { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@ namespace Microsoft.Azure.Commands.Batch
[Cmdlet(VerbsCommon.New, Constants.AzureRmBatchApplicationPackage), OutputType(typeof(PSApplicationPackage))]
public class UploadBatchApplicationCommand : BatchCmdletBase
{
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true)]
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the Batch account.")]
[ValidateNotNullOrEmpty]
public string AccountName { get; set; }

[Parameter(Position = 1, ValueFromPipelineByPropertyName = true)]
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the name of the resource group that contains the Batch account.")]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

[Parameter(Position = 2, ValueFromPipelineByPropertyName = true)]
[Parameter(Position = 2, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the id of the application.")]
[ValidateNotNullOrEmpty]
public string ApplicationId { get; set; }

[Parameter(Position = 3, ValueFromPipelineByPropertyName = true)]
[Parameter(Position = 3, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the version of the application.")]
[ValidateNotNullOrEmpty]
public string ApplicationVersion { get; set; }

[Parameter(Position = 4, ValueFromPipelineByPropertyName = true)]
[Parameter(Position = 4, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the file to be uploaded as the application package binary file.")]
[ValidateNotNullOrEmpty]
public string FilePath { get; set; }

[Parameter(Position = 5, ValueFromPipelineByPropertyName = true)]
[Parameter(Position = 5, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Specifies the format of the application package binary file.")]
[ValidateNotNullOrEmpty]
public string Format { get; set; }

Expand Down
Loading

0 comments on commit 8652ffe

Please sign in to comment.