Skip to content

Commit 6e564c8

Browse files
Merge pull request AzureRT#13 from sergey-shandar/sergey-signalr-20
Copyrights, Namespaces.
2 parents 28bfbba + 7ec958e commit 6e564c8

15 files changed

+218
-44
lines changed

src/ResourceManager/SignalR/Commands.SignalR/Cmdlets/GetAzureRmSignalR.cs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1-
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
216
using Microsoft.Azure.Commands.SignalR.Models;
317
using Microsoft.Azure.Commands.SignalR.Properties;
4-
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
518
using Microsoft.Azure.Management.SignalR;
619
using System;
720
using System.Management.Automation;
821

9-
namespace Microsoft.Azure.Commands.SignalR
22+
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
1023
{
1124
[Cmdlet(VerbsCommon.Get, SignalRNoun, DefaultParameterSetName = ListSignalRServiceParameterSet)]
1225
[OutputType(typeof(PSSignalRResource))]

src/ResourceManager/SignalR/Commands.SignalR/Cmdlets/GetAzureRmSignalRKey.cs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1-
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
216
using Microsoft.Azure.Commands.SignalR.Models;
317
using Microsoft.Azure.Commands.SignalR.Properties;
4-
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
518
using Microsoft.Azure.Management.SignalR;
619
using System;
720
using System.Management.Automation;
821

9-
namespace Microsoft.Azure.Commands.SignalR
22+
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
1023
{
1124
[Cmdlet(VerbsCommon.Get, SignalRKeyNoun, DefaultParameterSetName = ResourceGroupParameterSet)]
1225
[OutputType(typeof(PSSignalRKeys))]

src/ResourceManager/SignalR/Commands.SignalR/Cmdlets/IWithInputObject.cs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
using Microsoft.Azure.Commands.SignalR.Models;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.SignalR.Models;
216
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
3-
using System;
4-
using System.Collections.Generic;
5-
using System.Linq;
6-
using System.Text;
7-
using System.Threading.Tasks;
817

9-
namespace Microsoft.Azure.Commands.SignalR
18+
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
1019
{
1120
public interface IWithInputObject : IWithResourceGroupAndName
1221
{

src/ResourceManager/SignalR/Commands.SignalR/Cmdlets/IWithResourceGroupAndName.cs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
614

7-
namespace Microsoft.Azure.Commands.SignalR
15+
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
816
{
917
public interface IWithResourceGroupAndName
1018
{

src/ResourceManager/SignalR/Commands.SignalR/Cmdlets/IWithResourceId.cs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Linq;
5-
using System.Text;
6-
using System.Threading.Tasks;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
714

8-
namespace Microsoft.Azure.Commands.SignalR
15+
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
16+
17+
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
918
{
1019
public interface IWithResourceId : IWithResourceGroupAndName
1120
{

src/ResourceManager/SignalR/Commands.SignalR/Cmdlets/NewAzureRmSignalR.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Common.Strategies;
16-
using Microsoft.Azure.Commands.ResourceManager.Common;
1716
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1817
using Microsoft.Azure.Commands.SignalR.Models;
1918
using Microsoft.Azure.Commands.SignalR.Strategies;
@@ -25,7 +24,7 @@
2524
using System.Threading;
2625
using Microsoft.Azure.Commands.SignalR.Strategies.SignalRRp;
2726

28-
namespace Microsoft.Azure.Commands.SignalR
27+
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
2928
{
3029
[Cmdlet(VerbsCommon.New, SignalRNoun, SupportsShouldProcess = true)]
3130
[OutputType(typeof(PSSignalRResource))]
@@ -110,7 +109,7 @@ public async Task<ResourceConfig<SignalRResource>> CreateConfigAsync()
110109
createModel: engine => new SignalRResource(
111110
tags: _cmdlet.Tag,
112111
signalrsku: new ResourceSku(_cmdlet.Sku, capacity: 1), // we only allow capacity 1 in public preview, this may be a parameter in future.
113-
hostNamePrefix: _cmdlet.Name)); // hostNamePrefix is just a placeholder and ignored in the resource provider.
112+
hostNamePrefix: null /* _cmdlet.Name*/)); // hostNamePrefix is just a placeholder and ignored in the resource provider.
114113
}
115114
}
116115

src/ResourceManager/SignalR/Commands.SignalR/Cmdlets/NewAzureRmSignalRKey.cs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1-
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
216
using Microsoft.Azure.Commands.SignalR.Models;
317
using Microsoft.Azure.Commands.SignalR.Properties;
4-
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
518
using Microsoft.Azure.Management.SignalR;
619
using Microsoft.Azure.Management.SignalR.Models;
720
using System;
821
using System.Management.Automation;
922

10-
namespace Microsoft.Azure.Commands.SignalR
23+
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
1124
{
1225
[Cmdlet(VerbsCommon.New, SignalRKeyNoun, SupportsShouldProcess = true, DefaultParameterSetName = ResourceGroupParameterSet)]
1326
[OutputType(typeof(bool))]

src/ResourceManager/SignalR/Commands.SignalR/Cmdlets/RemoveAzureRmSignalR.cs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1-
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
216
using Microsoft.Azure.Commands.SignalR.Models;
317
using Microsoft.Azure.Commands.SignalR.Properties;
4-
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
518
using Microsoft.Azure.Management.SignalR;
619
using System;
720
using System.Management.Automation;
821

9-
namespace Microsoft.Azure.Commands.SignalR
22+
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
1023
{
1124
[Cmdlet(VerbsCommon.Remove, SignalRNoun, SupportsShouldProcess = true, DefaultParameterSetName = ResourceGroupParameterSet)]
1225
[OutputType(typeof(bool))]

src/ResourceManager/SignalR/Commands.SignalR/Cmdlets/SignalRCmdletBase.cs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
using Microsoft.Azure.Commands.Common.Authentication;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.Common.Authentication;
216
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
317
using Microsoft.Azure.Commands.ResourceManager.Common;
418
using Microsoft.Azure.Commands.SignalR.Properties;
@@ -7,7 +21,7 @@
721
using System;
822
using System.Management.Automation;
923

10-
namespace Microsoft.Azure.Commands.SignalR
24+
namespace Microsoft.Azure.Commands.SignalR.Cmdlets
1125
{
1226
public abstract class SignalRCmdletBase : AzureRMCmdlet
1327
{

src/ResourceManager/SignalR/Commands.SignalR/Models/PSResourceSku.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
using Microsoft.Azure.Management.SignalR.Models;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Management.SignalR.Models;
216

317
namespace Microsoft.Azure.Commands.SignalR.Models
418
{

src/ResourceManager/SignalR/Commands.SignalR/Models/PSSignalRKeys.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
using Microsoft.Azure.Management.SignalR.Models;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Management.SignalR.Models;
216

317
namespace Microsoft.Azure.Commands.SignalR.Models
418
{

src/ResourceManager/SignalR/Commands.SignalR/Strategies/Client.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
using Microsoft.Azure.Commands.Common.Authentication;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.Common.Authentication;
216
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
317
using Microsoft.Azure.Commands.Common.Strategies;
418
using Microsoft.Rest;

src/ResourceManager/SignalR/Commands.SignalR/Strategies/CmdletExtensions.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
using Microsoft.Azure.Commands.Common.Strategies;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.Common.Strategies;
216
using System;
317
using System.Collections.Generic;
418
using System.Linq;
519
using System.Management.Automation;
6-
using System.Text;
720
using System.Threading.Tasks;
821

922
namespace Microsoft.Azure.Commands.SignalR.Strategies

src/ResourceManager/SignalR/Commands.SignalR/Strategies/ResourceManager/ResourceGroupStrategy.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
using Microsoft.Azure.Commands.Common.Strategies;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.Common.Strategies;
216
using Microsoft.Azure.Management.Internal.Resources;
317
using Microsoft.Azure.Management.Internal.Resources.Models;
418

src/ResourceManager/SignalR/Commands.SignalR/Strategies/SignalRRp/SignalRStrategy.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
using Microsoft.Azure.Commands.Common.Strategies;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Commands.Common.Strategies;
216
using Microsoft.Azure.Management.SignalR;
317
using Microsoft.Azure.Management.SignalR.Models;
418

0 commit comments

Comments
 (0)