Skip to content

Commit

Permalink
Package Changes / Resource Name Completer / Change Log and Solution (A…
Browse files Browse the repository at this point in the history
…zure#44)

* Update ChangeLog

* move packages to test

* Fix solution file, add ResourceGroupCompleter to cmdlets

* move all packages

* Update changelog to preview
  • Loading branch information
rebecca-makar committed Mar 27, 2020
1 parent ac51ab5 commit 654272f
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 11 deletions.
5 changes: 4 additions & 1 deletion src/StorageCache/HPCCache.Test/HPCCache.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\HPCCache\HPCCache.csproj" />
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.11.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.5.0" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.18.0-preview" />
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/StorageCache/HPCCache/Az.HPCCache.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ PrivateData = @{
ReleaseNotes = '* Update references in .psd1 to use relative path'

# Prerelease string of this module
# Prerelease = ''
Prerelease = 'preview'

# Flag to indicate whether the module requires explicit user acceptance for install/update/save
# RequireLicenseAcceptance = $false
Expand Down
3 changes: 2 additions & 1 deletion src/StorageCache/HPCCache/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Preview of `Az.HPCCache` module

## Version TBD
## Version

3 changes: 3 additions & 0 deletions src/StorageCache/HPCCache/Commands/FlushAzHpcCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ namespace Microsoft.Azure.Commands.HPCCache
{
using System.Management.Automation;
using Microsoft.Azure.Commands.HPCCache.Properties;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
using Microsoft.Rest.Azure;


/// <summary>
/// Flush HPC Cache.
/// </summary>
Expand All @@ -31,6 +33,7 @@ public class FlushAzHpcCache : HpcCacheBaseCmdlet
/// Gets or sets ResourceGroupName.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to flush cache.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace Microsoft.Azure.Commands.HPCCache
{
using System.Management.Automation;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -30,6 +31,7 @@ public class GetAzHpcCacheStorageTarget : HpcCacheBaseCmdlet
/// Gets or sets resource Group Name.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group cache is in.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/StorageCache/HPCCache/Commands/NewAzHpcCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace Microsoft.Azure.Commands.HPCCache
using System;
using System.Collections;
using System.Management.Automation;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -32,6 +33,7 @@ public class NewAzHpcCache : HpcCacheBaseCmdlet
/// Gets or sets resource group name.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to create cache.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/StorageCache/HPCCache/Commands/NewAzHpcStorageTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Microsoft.Azure.Commands.HPCCache
using System.Net;
using Microsoft.Azure.Commands.Common.Strategies;
using Microsoft.Azure.Commands.HPCCache.Properties;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -41,6 +42,7 @@ public class NewAzHpcStorageTarget : HpcCacheBaseCmdlet
/// Gets or sets resource Group Name.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to create storage target for given cache.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/StorageCache/HPCCache/Commands/RemoveAzHpcCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Microsoft.Azure.Commands.HPCCache
{
using System.Management.Automation;
using Microsoft.Azure.Commands.HPCCache.Properties;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -31,6 +32,7 @@ public class RemoveAzHpcCache : HpcCacheBaseCmdlet
/// Gets or sets ResourceGroupName.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to remove cache.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Microsoft.Azure.Commands.HPCCache
{
using System.Management.Automation;
using Microsoft.Azure.Commands.HPCCache.Properties;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -31,6 +32,7 @@ public class RemoveAzHpcCacheStorageTarget : HpcCacheBaseCmdlet
/// Gets or sets ResourceGroupName.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to remove storage target from cache.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/StorageCache/HPCCache/Commands/SetAzHpcCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Microsoft.Azure.Commands.HPCCache
{
using System.Collections;
using System.Management.Automation;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -31,6 +32,7 @@ public class SetAzHpcCache : HpcCacheBaseCmdlet
/// Gets or sets resource Group Name.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to update cache.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/StorageCache/HPCCache/Commands/SetAzHpcStorageTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Microsoft.Azure.Commands.HPCCache
using System.Net;
using Microsoft.Azure.Commands.Common.Strategies;
using Microsoft.Azure.Commands.HPCCache.Properties;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -43,6 +44,7 @@ public class SetAzHpcStorageTarget : HpcCacheBaseCmdlet
/// Gets or sets resource Group Name.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to update storage target.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/StorageCache/HPCCache/Commands/StartAzHpcCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Microsoft.Azure.Commands.HPCCache
{
using System.Management.Automation;
using Microsoft.Azure.Commands.HPCCache.Properties;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -31,6 +32,7 @@ public class StartAzHpcCache : HpcCacheBaseCmdlet
/// Gets or sets ResourceGroupName.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to start cache.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/StorageCache/HPCCache/Commands/StopAzHpcCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace Microsoft.Azure.Commands.HPCCache
using System.Globalization;
using System.Management.Automation;
using Microsoft.Azure.Commands.HPCCache.Properties;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -32,6 +33,7 @@ public class StopAzHpcCache : HpcCacheBaseCmdlet
/// Gets or sets ResourceGroupName.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to stop cache.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions src/StorageCache/HPCCache/Commands/UpgradeAzHpcCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Microsoft.Azure.Commands.HPCCache
{
using System.Management.Automation;
using Microsoft.Azure.Commands.HPCCache.Properties;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.StorageCache;
using Microsoft.Azure.Management.StorageCache.Models;
using Microsoft.Azure.PowerShell.Cmdlets.HPCCache.Models;
Expand All @@ -31,6 +32,7 @@ public class UpgradeAzHpcCache : HpcCacheBaseCmdlet
/// Gets or sets ResourceGroupName.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "Name of resource group under which you want to upgrade cache.")]
[ResourceGroupCompleter]
[ValidateNotNullOrEmpty]
public string ResourceGroupName { get; set; }

Expand Down
9 changes: 1 addition & 8 deletions src/StorageCache/HPCCache/HPCCache.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@
<PropertyGroup>
<RootNamespace>$(LegacyAssemblyPrefix)$(PsModuleName)</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.11.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.5.0" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.18.0-preview" />
<PackageReference Include="WindowsAzure.Storage" Version="9.3.0" />
</ItemGroup>


<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
Expand Down

0 comments on commit 654272f

Please sign in to comment.