Skip to content

Commit 81512cb

Browse files
committed
add default param set
1 parent 6aa4d1b commit 81512cb

File tree

8 files changed

+12
-28
lines changed

8 files changed

+12
-28
lines changed

src/ResourceManager/ContainerInstance/Commands.ContainerInstance.Test/Commands.ContainerInstance.Test.csproj

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@
102102
</Reference>
103103
<Reference Include="System" />
104104
<Reference Include="System.Core" />
105-
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
106-
<SpecificVersion>False</SpecificVersion>
107-
<HintPath>C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Management.Automation\v4.0_3.0.0.0__31bf3856ad364e35\System.Management.Automation.dll</HintPath>
108-
</Reference>
105+
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
109106
<Reference Include="System.Net" />
110107
<Reference Include="System.Net.Http" />
111108
<Reference Include="System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
@@ -166,10 +163,6 @@
166163
<Project>{3436a126-edc9-4060-8952-9a1be34cdd95}</Project>
167164
<Name>Commands.ScenarioTests.ResourceManager.Common</Name>
168165
</ProjectReference>
169-
<ProjectReference Include="..\..\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj">
170-
<Project>{8058d403-06e3-4bed-8924-d166ce303961}</Project>
171-
<Name>Commands.Resources.Rest</Name>
172-
</ProjectReference>
173166
<ProjectReference Include="..\Commands.ContainerInstance\Commands.ContainerInstance.csproj">
174167
<Project>{0e11b67a-1257-40d0-bd33-8315759fdb01}</Project>
175168
<Name>Commands.ContainerInstance</Name>

src/ResourceManager/ContainerInstance/Commands.ContainerInstance.Test/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("0.0.1.0")]
36+
[assembly: AssemblyFileVersion("0.0.1.0")]

src/ResourceManager/ContainerInstance/Commands.ContainerInstance/Commands.ContainerInstance.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@
8080
<Project>{3819d8a7-c62c-4c47-8ddd-0332d9ce1252}</Project>
8181
<Name>Commands.ResourceManager.Common</Name>
8282
</ProjectReference>
83-
<ProjectReference Include="..\..\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj">
84-
<Project>{8058d403-06e3-4bed-8924-d166ce303961}</Project>
85-
<Name>Commands.Resources.Rest</Name>
86-
</ProjectReference>
8783
</ItemGroup>
8884
<ItemGroup>
8985
<None Include="packages.config">

src/ResourceManager/ContainerInstance/Commands.ContainerInstance/Commands/GetAzureContainerInstanceLogCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ namespace Microsoft.Azure.Commands.ContainerInstance
2222
/// <summary>
2323
/// Get-AzureRmContainerGroupLogs
2424
/// </summary>
25-
[Cmdlet(VerbsCommon.Get, ContainerInstanceLogNoun), OutputType(typeof(string))]
25+
[Cmdlet(VerbsCommon.Get, ContainerInstanceLogNoun, DefaultParameterSetName = GetContainerInstanceLogByNamesParamSet)]
26+
[OutputType(typeof(string))]
2627
public class GetAzureContainerInstanceLogCommand : ContainerInstanceCmdletBase
2728
{
2829
protected const string GetContainerInstanceLogByNamesParamSet = "GetContainerInstanceLogByNamesParamSet";

src/ResourceManager/ContainerInstance/Commands.ContainerInstance/Commands/NewAzureContainerGroupCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ namespace Microsoft.Azure.Commands.ContainerInstance
2626
/// <summary>
2727
/// New-AzureRmContainerGroup
2828
/// </summary>
29-
[Cmdlet(VerbsCommon.New, ContainerGroupNoun, SupportsShouldProcess = true), OutputType(typeof(PSContainerGroup))]
29+
[Cmdlet(VerbsCommon.New, ContainerGroupNoun, SupportsShouldProcess = true, DefaultParameterSetName = CreateContainerGroupBaseParamSet)]
30+
[OutputType(typeof(PSContainerGroup))]
3031
public class NewAzureContainerGroupCommand : ContainerInstanceCmdletBase
3132
{
3233
protected const string CreateContainerGroupBaseParamSet = "CreateContainerGroupBaseParamSet";

src/ResourceManager/ContainerInstance/Commands.ContainerInstance/Commands/RemoveAzureContainerGroupCommand.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ namespace Microsoft.Azure.Commands.ContainerInstance
2323
/// <summary>
2424
/// Remove-AzureRmContainerGroup
2525
/// </summary>
26-
[Cmdlet(VerbsCommon.Remove, ContainerGroupNoun, SupportsShouldProcess = true), OutputType(typeof(PSContainerGroup))]
26+
[Cmdlet(VerbsCommon.Remove, ContainerGroupNoun, SupportsShouldProcess = true, DefaultParameterSetName = RemoveContainerGroupByResourceGroupAndNameParamSet)]
27+
[OutputType(typeof(PSContainerGroup))]
2728
public class RemoveAzureContainerGroupCommand : ContainerInstanceCmdletBase
2829
{
2930
protected const string RemoveContainerGroupByResourceGroupAndNameParamSet = "RemoveContainerGroupByResourceGroupAndNameParamSet";
@@ -34,7 +35,6 @@ public class RemoveAzureContainerGroupCommand : ContainerInstanceCmdletBase
3435
Position = 0,
3536
Mandatory = true,
3637
ParameterSetName = RemoveContainerGroupByResourceGroupAndNameParamSet,
37-
ValueFromPipelineByPropertyName = true,
3838
HelpMessage = "The resource group name.")]
3939
[ValidateNotNullOrEmpty]
4040
public string ResourceGroupName { get; set; }
@@ -43,7 +43,6 @@ public class RemoveAzureContainerGroupCommand : ContainerInstanceCmdletBase
4343
Position = 1,
4444
Mandatory = true,
4545
ParameterSetName = RemoveContainerGroupByResourceGroupAndNameParamSet,
46-
ValueFromPipelineByPropertyName = true,
4746
HelpMessage = "The container group name.")]
4847
[ValidateNotNullOrEmpty]
4948
public string Name { get; set; }

src/ResourceManager/ContainerInstance/Commands.ContainerInstance/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("0.0.1.0")]
36+
[assembly: AssemblyFileVersion("0.0.1.0")]

src/ResourceManager/ContainerInstance/ContainerInstance.sln

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26730.10
4+
VisualStudioVersion = 15.0.26730.12
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ContainerInstance", "Commands.ContainerInstance\Commands.ContainerInstance.csproj", "{0E11B67A-1257-40D0-BD33-8315759FDB01}"
77
EndProject
@@ -11,8 +11,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Authenticat
1111
EndProject
1212
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ResourceManager.Common", "..\Common\Commands.ResourceManager.Common\Commands.ResourceManager.Common.csproj", "{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Resources.Rest", "..\Resources\Commands.ResourceManager\Cmdlets\Commands.Resources.Rest.csproj", "{8058D403-06E3-4BED-8924-D166CE303961}"
15-
EndProject
1614
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "..\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
1715
EndProject
1816
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{254150A6-D7EB-4D1B-9EB1-15B836D6F493}"
@@ -49,10 +47,6 @@ Global
4947
{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Debug|Any CPU.Build.0 = Debug|Any CPU
5048
{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.ActiveCfg = Release|Any CPU
5149
{3819D8A7-C62C-4C47-8DDD-0332D9CE1252}.Release|Any CPU.Build.0 = Release|Any CPU
52-
{8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53-
{8058D403-06E3-4BED-8924-D166CE303961}.Debug|Any CPU.Build.0 = Debug|Any CPU
54-
{8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.ActiveCfg = Release|Any CPU
55-
{8058D403-06E3-4BED-8924-D166CE303961}.Release|Any CPU.Build.0 = Release|Any CPU
5650
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5751
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
5852
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU

0 commit comments

Comments
 (0)