Skip to content

Commit 3900208

Browse files
Address comments.
1 parent bfd3311 commit 3900208

File tree

13 files changed

+144
-113
lines changed

13 files changed

+144
-113
lines changed

src/ResourceManager/Common/Commands.Common.Strategies.UnitTest/TimeSlotTest.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
using Xunit;
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 Xunit;
216

317
namespace Microsoft.Azure.Commands.Common.Strategies.UnitTest
418
{

src/ResourceManager/Common/Commands.Common.Strategies/IResourceStrategy.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
namespace 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+
namespace Microsoft.Azure.Commands.Common.Strategies
216
{
317
/// <summary>
418
/// Base interface for ResourceStrategy[].

src/ResourceManager/Common/Commands.Common.Strategies/LocationExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ sealed class DependencyLocation
5656
{
5757
public string Location { get; }
5858

59+
/// <summary>
60+
/// If it's true then all dependant resources should also have this location.
61+
/// </summary>
5962
public bool IsCompulsory { get; }
6063

6164
public DependencyLocation(string location, bool isCompulsory)

src/ResourceManager/Common/Commands.Common.Strategies/ResourceStrategy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static ResourceStrategy<TModel> Create<TModel, TClient, TOperation>(
8888

8989
public static ResourceStrategy<TModel> Create<TModel, TClient, TOperation>(
9090
string type,
91-
IEnumerable<string> headers,
91+
IEnumerable<string> providers,
9292
Func<TClient, TOperation> getOperations,
9393
Func<TOperation, GetAsyncParams, Task<TModel>> getAsync,
9494
Func<TOperation, CreateOrUpdateAsyncParams<TModel>, Task<TModel>> createOrUpdateAsync,
@@ -99,7 +99,7 @@ public static ResourceStrategy<TModel> Create<TModel, TClient, TOperation>(
9999
where TClient : ServiceClient<TClient>
100100
=> Create(
101101
type,
102-
name => new[] { "providers" }.Concat(headers).Concat(new[] { name }),
102+
name => new[] { "providers" }.Concat(providers).Concat(new[] { name }),
103103
getOperations,
104104
getAsync,
105105
createOrUpdateAsync,

src/ResourceManager/Compute/AzureRM.Compute.Netcore.psd1

Lines changed: 99 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ RequiredAssemblies = 'netcoreapp2.0\AutoMapper.dll',
6161
'netcoreapp2.0\Microsoft.Data.Edm.dll',
6262
'netcoreapp2.0\Microsoft.Data.OData.dll',
6363
'netcoreapp2.0\Microsoft.WindowsAzure.Storage.dll',
64-
'netcoreapp2.0\System.Spatial.dll',
65-
'.\Microsoft.Azure.Commands.Common.Strategies.dll'
64+
'netcoreapp2.0\System.Spatial.dll',
65+
'netcoreapp2.0\Microsoft.Azure.Commands.Common.Strategies.dll'
6666

6767
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
6868
# ScriptsToProcess = @()
@@ -71,8 +71,8 @@ RequiredAssemblies = 'netcoreapp2.0\AutoMapper.dll',
7171
TypesToProcess = 'netcoreapp2.0\Microsoft.Azure.Commands.Compute.Types.ps1xml'
7272

7373
# Format files (.ps1xml) to be loaded when importing this module
74-
FormatsToProcess = 'netcoreapp2.0\Microsoft.Azure.Commands.Compute.format.ps1xml',
75-
'netcoreapp2.0\Microsoft.Azure.Commands.Compute.format.generated.ps1xml',
74+
FormatsToProcess = 'netcoreapp2.0\Microsoft.Azure.Commands.Compute.format.ps1xml',
75+
'netcoreapp2.0\Microsoft.Azure.Commands.Compute.format.generated.ps1xml',
7676
'netcoreapp2.0\Generated\Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml'
7777

7878
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
@@ -82,100 +82,100 @@ NestedModules = @('netcoreapp2.0\Microsoft.Azure.Commands.Compute.dll')
8282
FunctionsToExport = @()
8383

8484
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
85-
CmdletsToExport = 'Remove-AzureRmAvailabilitySet', 'Get-AzureRmAvailabilitySet',
86-
'New-AzureRmAvailabilitySet', 'Update-AzureRmAvailabilitySet',
87-
'Get-AzureRmVMExtensionImageType', 'Get-AzureRmVMExtensionImage',
88-
'Get-AzureRmVMADDomainExtension', 'Set-AzureRmVMADDomainExtension',
89-
'Get-AzureRmVMAEMExtension', 'Remove-AzureRmVMAEMExtension',
90-
'Set-AzureRmVMAEMExtension', 'Test-AzureRmVMAEMExtension',
91-
'Set-AzureRmVMBginfoExtension',
92-
'Get-AzureRmVMCustomScriptExtension',
93-
'Remove-AzureRmVMCustomScriptExtension',
94-
'Set-AzureRmVMCustomScriptExtension',
95-
'Get-AzureRmVMDiagnosticsExtension',
96-
'Remove-AzureRmVMDiagnosticsExtension',
97-
'Remove-AzureRmVmssDiagnosticsExtension',
98-
'Set-AzureRmVMDiagnosticsExtension', 'Set-AzureRmVMExtension',
99-
'Remove-AzureRmVMExtension', 'Get-AzureRmVMExtension',
100-
'Get-AzureRmVMSqlServerExtension',
101-
'New-AzureRmVMSqlServerAutoBackupConfig',
102-
'New-AzureRmVMSqlServerAutoPatchingConfig',
103-
'New-AzureRmVMSqlServerKeyVaultCredentialConfig',
104-
'Remove-AzureRmVMSqlServerExtension',
105-
'Set-AzureRmVMSqlServerExtension', 'Get-AzureRmVMImage',
106-
'Get-AzureRmVMAccessExtension', 'Remove-AzureRmVMAccessExtension',
107-
'Set-AzureRmVMAccessExtension', 'Get-AzureRmVMImageSku',
108-
'Get-AzureRmVMImagePublisher', 'Get-AzureRmVMImageOffer',
109-
'Get-AzureRmRemoteDesktopFile', 'Get-AzureRmVMUsage',
110-
'Get-AzureRmVMSize', 'Save-AzureRmVMImage', 'Set-AzureRmVM',
111-
'Add-AzureRmVMAdditionalUnattendContent',
112-
'Add-AzureRmVMSshPublicKey', 'Add-AzureRmVMSecret',
113-
'Remove-AzureRmVMSecret', 'Remove-AzureRmVMNetworkInterface',
114-
'Remove-AzureRmVMDataDisk', 'Set-AzureRmVMBootDiagnostics',
115-
'Set-AzureRmVMDataDisk', 'Set-AzureRmVMPlan',
116-
'Set-AzureRmVMSourceImage', 'Set-AzureRmVMOSDisk',
117-
'Get-AzureRmVMBootDiagnosticsData', 'Get-AzureRmVM',
118-
'Update-AzureRmVM', 'Restart-AzureRmVM', 'New-AzureRmVM',
119-
'Start-AzureRmVM', 'Stop-AzureRmVM', 'Remove-AzureRmVM',
120-
'New-AzureRmVMConfig', 'Set-AzureRmVMOperatingSystem',
121-
'Add-AzureRmVMDataDisk', 'Add-AzureRmVMNetworkInterface',
122-
'Add-AzureRmVhd', 'Save-AzureRmVhd',
123-
'Add-AzureRmContainerServiceAgentPoolProfile',
124-
'New-AzureRmContainerServiceConfig',
125-
'Remove-AzureRmContainerServiceAgentPoolProfile',
126-
'New-AzureRmContainerService', 'Update-AzureRmContainerService',
127-
'Remove-AzureRmContainerService', 'Get-AzureRmContainerService',
128-
'Get-AzureRmVmssVM', 'Set-AzureRmVmssVM',
129-
'Add-AzureRmVmssAdditionalUnattendContent',
130-
'Add-AzureRmVmssExtension', 'Add-AzureRmVmssDataDisk',
131-
'Add-AzureRmVmssNetworkInterfaceConfiguration',
132-
'Add-AzureRmVmssSecret', 'Add-AzureRmVmssSshPublicKey',
133-
'Add-AzureRmVmssWinRMListener', 'New-AzureRmVmssConfig',
134-
'New-AzureRmVmssIpConfig', 'New-AzureRmVmssVaultCertificateConfig',
135-
'Remove-AzureRmVmssExtension', 'Remove-AzureRmVmssDataDisk',
136-
'Remove-AzureRmVmssNetworkInterfaceConfiguration',
137-
'Set-AzureRmVmssOsProfile', 'Set-AzureRmVmssStorageProfile',
138-
'New-AzureRmVmss', 'Update-AzureRmVmss', 'Stop-AzureRmVmss',
139-
'Remove-AzureRmVmss', 'Get-AzureRmVmss', 'Get-AzureRmVmssSku',
140-
'Set-AzureRmVmss', 'Restart-AzureRmVmss', 'Start-AzureRmVmss',
141-
'Update-AzureRmVmssInstance', 'Get-AzureRmVMDscExtensionStatus',
142-
'Publish-AzureRmVMDscConfiguration', 'Remove-AzureRmVMDscExtension',
143-
'Set-AzureRmVMDscExtension', 'Get-AzureRmVMDscExtension',
144-
'Add-AzureRmVmssDiagnosticsExtension', 'Get-AzureRmVMChefExtension',
145-
'Remove-AzureRmVMChefExtension', 'Set-AzureRmVMChefExtension',
146-
'Remove-AzureRmVMBackup', 'Disable-AzureRmVMDiskEncryption',
147-
'Get-AzureRmVMDiskEncryptionStatus',
148-
'Remove-AzureRmVMDiskEncryptionExtension',
149-
'Set-AzureRmVMDiskEncryptionExtension',
150-
'Set-AzureRmVMBackupExtension', 'New-AzureRmDisk',
151-
'Update-AzureRmDisk', 'Get-AzureRmDisk', 'Remove-AzureRmDisk',
152-
'Grant-AzureRmDiskAccess', 'Revoke-AzureRmDiskAccess',
153-
'New-AzureRmDiskConfig', 'Set-AzureRmDiskDiskEncryptionKey',
154-
'Set-AzureRmDiskImageReference', 'Set-AzureRmDiskKeyEncryptionKey',
155-
'New-AzureRmDiskUpdateConfig',
156-
'Set-AzureRmDiskUpdateDiskEncryptionKey',
157-
'Set-AzureRmDiskUpdateImageReference',
158-
'Set-AzureRmDiskUpdateKeyEncryptionKey', 'New-AzureRmSnapshot',
159-
'Update-AzureRmSnapshot', 'Get-AzureRmSnapshot',
160-
'Remove-AzureRmSnapshot', 'Grant-AzureRmSnapshotAccess',
161-
'Revoke-AzureRmSnapshotAccess', 'New-AzureRmSnapshotConfig',
162-
'Set-AzureRmSnapshotDiskEncryptionKey',
163-
'Set-AzureRmSnapshotImageReference',
164-
'Set-AzureRmSnapshotKeyEncryptionKey',
165-
'New-AzureRmSnapshotUpdateConfig',
166-
'Set-AzureRmSnapshotUpdateDiskEncryptionKey',
167-
'Set-AzureRmSnapshotUpdateImageReference',
168-
'Set-AzureRmSnapshotUpdateKeyEncryptionKey', 'New-AzureRmImage',
169-
'Update-AzureRmImage', 'Get-AzureRmImage', 'Remove-AzureRmImage',
170-
'New-AzureRmImageConfig', 'Set-AzureRmImageOsDisk',
171-
'Add-AzureRmImageDataDisk', 'Remove-AzureRmImageDataDisk',
172-
'ConvertTo-AzureRmVMManagedDisk', 'Set-AzureRmVmssBootDiagnostic',
173-
'Get-AzureRmComputeResourceSku', 'Get-AzureRmVMRunCommandDocument',
174-
'Invoke-AzureRmVMRunCommand', 'Start-AzureRmVmssRollingOSUpgrade',
175-
'Stop-AzureRmVmssRollingUpgrade', 'Get-AzureRmVmssRollingUpgrade',
176-
'Set-AzureRmVmssRollingUpgradePolicy',
177-
'Set-AzureRmVmssDiskEncryptionExtension',
178-
'Disable-AzureRmVmssDiskEncryption',
85+
CmdletsToExport = 'Remove-AzureRmAvailabilitySet', 'Get-AzureRmAvailabilitySet',
86+
'New-AzureRmAvailabilitySet', 'Update-AzureRmAvailabilitySet',
87+
'Get-AzureRmVMExtensionImageType', 'Get-AzureRmVMExtensionImage',
88+
'Get-AzureRmVMADDomainExtension', 'Set-AzureRmVMADDomainExtension',
89+
'Get-AzureRmVMAEMExtension', 'Remove-AzureRmVMAEMExtension',
90+
'Set-AzureRmVMAEMExtension', 'Test-AzureRmVMAEMExtension',
91+
'Set-AzureRmVMBginfoExtension',
92+
'Get-AzureRmVMCustomScriptExtension',
93+
'Remove-AzureRmVMCustomScriptExtension',
94+
'Set-AzureRmVMCustomScriptExtension',
95+
'Get-AzureRmVMDiagnosticsExtension',
96+
'Remove-AzureRmVMDiagnosticsExtension',
97+
'Remove-AzureRmVmssDiagnosticsExtension',
98+
'Set-AzureRmVMDiagnosticsExtension', 'Set-AzureRmVMExtension',
99+
'Remove-AzureRmVMExtension', 'Get-AzureRmVMExtension',
100+
'Get-AzureRmVMSqlServerExtension',
101+
'New-AzureRmVMSqlServerAutoBackupConfig',
102+
'New-AzureRmVMSqlServerAutoPatchingConfig',
103+
'New-AzureRmVMSqlServerKeyVaultCredentialConfig',
104+
'Remove-AzureRmVMSqlServerExtension',
105+
'Set-AzureRmVMSqlServerExtension', 'Get-AzureRmVMImage',
106+
'Get-AzureRmVMAccessExtension', 'Remove-AzureRmVMAccessExtension',
107+
'Set-AzureRmVMAccessExtension', 'Get-AzureRmVMImageSku',
108+
'Get-AzureRmVMImagePublisher', 'Get-AzureRmVMImageOffer',
109+
'Get-AzureRmRemoteDesktopFile', 'Get-AzureRmVMUsage',
110+
'Get-AzureRmVMSize', 'Save-AzureRmVMImage', 'Set-AzureRmVM',
111+
'Add-AzureRmVMAdditionalUnattendContent',
112+
'Add-AzureRmVMSshPublicKey', 'Add-AzureRmVMSecret',
113+
'Remove-AzureRmVMSecret', 'Remove-AzureRmVMNetworkInterface',
114+
'Remove-AzureRmVMDataDisk', 'Set-AzureRmVMBootDiagnostics',
115+
'Set-AzureRmVMDataDisk', 'Set-AzureRmVMPlan',
116+
'Set-AzureRmVMSourceImage', 'Set-AzureRmVMOSDisk',
117+
'Get-AzureRmVMBootDiagnosticsData', 'Get-AzureRmVM',
118+
'Update-AzureRmVM', 'Restart-AzureRmVM', 'New-AzureRmVM',
119+
'Start-AzureRmVM', 'Stop-AzureRmVM', 'Remove-AzureRmVM',
120+
'New-AzureRmVMConfig', 'Set-AzureRmVMOperatingSystem',
121+
'Add-AzureRmVMDataDisk', 'Add-AzureRmVMNetworkInterface',
122+
'Add-AzureRmVhd', 'Save-AzureRmVhd',
123+
'Add-AzureRmContainerServiceAgentPoolProfile',
124+
'New-AzureRmContainerServiceConfig',
125+
'Remove-AzureRmContainerServiceAgentPoolProfile',
126+
'New-AzureRmContainerService', 'Update-AzureRmContainerService',
127+
'Remove-AzureRmContainerService', 'Get-AzureRmContainerService',
128+
'Get-AzureRmVmssVM', 'Set-AzureRmVmssVM',
129+
'Add-AzureRmVmssAdditionalUnattendContent',
130+
'Add-AzureRmVmssExtension', 'Add-AzureRmVmssDataDisk',
131+
'Add-AzureRmVmssNetworkInterfaceConfiguration',
132+
'Add-AzureRmVmssSecret', 'Add-AzureRmVmssSshPublicKey',
133+
'Add-AzureRmVmssWinRMListener', 'New-AzureRmVmssConfig',
134+
'New-AzureRmVmssIpConfig', 'New-AzureRmVmssVaultCertificateConfig',
135+
'Remove-AzureRmVmssExtension', 'Remove-AzureRmVmssDataDisk',
136+
'Remove-AzureRmVmssNetworkInterfaceConfiguration',
137+
'Set-AzureRmVmssOsProfile', 'Set-AzureRmVmssStorageProfile',
138+
'New-AzureRmVmss', 'Update-AzureRmVmss', 'Stop-AzureRmVmss',
139+
'Remove-AzureRmVmss', 'Get-AzureRmVmss', 'Get-AzureRmVmssSku',
140+
'Set-AzureRmVmss', 'Restart-AzureRmVmss', 'Start-AzureRmVmss',
141+
'Update-AzureRmVmssInstance', 'Get-AzureRmVMDscExtensionStatus',
142+
'Publish-AzureRmVMDscConfiguration', 'Remove-AzureRmVMDscExtension',
143+
'Set-AzureRmVMDscExtension', 'Get-AzureRmVMDscExtension',
144+
'Add-AzureRmVmssDiagnosticsExtension', 'Get-AzureRmVMChefExtension',
145+
'Remove-AzureRmVMChefExtension', 'Set-AzureRmVMChefExtension',
146+
'Remove-AzureRmVMBackup', 'Disable-AzureRmVMDiskEncryption',
147+
'Get-AzureRmVMDiskEncryptionStatus',
148+
'Remove-AzureRmVMDiskEncryptionExtension',
149+
'Set-AzureRmVMDiskEncryptionExtension',
150+
'Set-AzureRmVMBackupExtension', 'New-AzureRmDisk',
151+
'Update-AzureRmDisk', 'Get-AzureRmDisk', 'Remove-AzureRmDisk',
152+
'Grant-AzureRmDiskAccess', 'Revoke-AzureRmDiskAccess',
153+
'New-AzureRmDiskConfig', 'Set-AzureRmDiskDiskEncryptionKey',
154+
'Set-AzureRmDiskImageReference', 'Set-AzureRmDiskKeyEncryptionKey',
155+
'New-AzureRmDiskUpdateConfig',
156+
'Set-AzureRmDiskUpdateDiskEncryptionKey',
157+
'Set-AzureRmDiskUpdateImageReference',
158+
'Set-AzureRmDiskUpdateKeyEncryptionKey', 'New-AzureRmSnapshot',
159+
'Update-AzureRmSnapshot', 'Get-AzureRmSnapshot',
160+
'Remove-AzureRmSnapshot', 'Grant-AzureRmSnapshotAccess',
161+
'Revoke-AzureRmSnapshotAccess', 'New-AzureRmSnapshotConfig',
162+
'Set-AzureRmSnapshotDiskEncryptionKey',
163+
'Set-AzureRmSnapshotImageReference',
164+
'Set-AzureRmSnapshotKeyEncryptionKey',
165+
'New-AzureRmSnapshotUpdateConfig',
166+
'Set-AzureRmSnapshotUpdateDiskEncryptionKey',
167+
'Set-AzureRmSnapshotUpdateImageReference',
168+
'Set-AzureRmSnapshotUpdateKeyEncryptionKey', 'New-AzureRmImage',
169+
'Update-AzureRmImage', 'Get-AzureRmImage', 'Remove-AzureRmImage',
170+
'New-AzureRmImageConfig', 'Set-AzureRmImageOsDisk',
171+
'Add-AzureRmImageDataDisk', 'Remove-AzureRmImageDataDisk',
172+
'ConvertTo-AzureRmVMManagedDisk', 'Set-AzureRmVmssBootDiagnostic',
173+
'Get-AzureRmComputeResourceSku', 'Get-AzureRmVMRunCommandDocument',
174+
'Invoke-AzureRmVMRunCommand', 'Start-AzureRmVmssRollingOSUpgrade',
175+
'Stop-AzureRmVmssRollingUpgrade', 'Get-AzureRmVmssRollingUpgrade',
176+
'Set-AzureRmVmssRollingUpgradePolicy',
177+
'Set-AzureRmVmssDiskEncryptionExtension',
178+
'Disable-AzureRmVmssDiskEncryption',
179179
'Get-AzureRmVmssDiskEncryption', 'Get-AzureRmVmssVMDiskEncryption'
180180

181181
# Variables to export from this module
@@ -227,7 +227,7 @@ PrivateData = @{
227227
# ExternalModuleDependencies = ''
228228

229229
} # End of PSData hashtable
230-
230+
231231
} # End of PrivateData hashtable
232232

233233
# HelpInfo URI of this module

src/ResourceManager/Compute/Commands.Compute/Strategies/Compute/ComputeStrategy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ static class ComputePolicy
2323
{
2424
public static ResourceStrategy<TModel> Create<TModel, TOperations>(
2525
string type,
26-
string header,
26+
string provider,
2727
Func<ComputeManagementClient, TOperations> getOperations,
2828
Func<TOperations, GetAsyncParams, Task<TModel>> getAsync,
2929
Func<TOperations, CreateOrUpdateAsyncParams<TModel>, Task<TModel>> createOrUpdateAsync,
3030
Func<TModel, int> createTime)
3131
where TModel : Resource
3232
=> ResourceStrategy.Create(
3333
type: type,
34-
headers: new[] { "Microsoft.Compute", header },
34+
providers: new[] { "Microsoft.Compute", provider },
3535
getOperations: getOperations,
3636
getAsync: getAsync,
3737
createOrUpdateAsync: createOrUpdateAsync,

src/ResourceManager/Compute/Commands.Compute/Strategies/Compute/VirtualMachineStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static class VirtualMachineStrategy
2525
public static ResourceStrategy<VirtualMachine> Strategy { get; }
2626
= ComputePolicy.Create(
2727
type: "virtual machine",
28-
header: "virtualMachines",
28+
provider: "virtualMachines",
2929
getOperations: client => client.VirtualMachines,
3030
getAsync: (o, p) => o.GetAsync(
3131
p.ResourceGroupName, p.Name, null, p.CancellationToken),

src/ResourceManager/Compute/Commands.Compute/Strategies/Network/NetworkInterfaceStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static class NetworkInterfaceStrategy
2424
public static ResourceStrategy<NetworkInterface> Strategy { get; }
2525
= NetworkStrategy.Create(
2626
type: "network interface",
27-
header: "networkInterfaces",
27+
provider: "networkInterfaces",
2828
getOperations: client => client.NetworkInterfaces,
2929
getAsync: (o, p) => o.GetAsync(
3030
p.ResourceGroupName, p.Name, null, p.CancellationToken),

src/ResourceManager/Compute/Commands.Compute/Strategies/Network/NetworkSecurityGroupPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static class NetworkSecurityGroupStrategy
2525
public static ResourceStrategy<NetworkSecurityGroup> Strategy { get; }
2626
= NetworkStrategy.Create(
2727
type: "network security group",
28-
header: "networkSecurityGroups",
28+
provider: "networkSecurityGroups",
2929
getOperations: client => client.NetworkSecurityGroups,
3030
getAsync: (o, p) => o.GetAsync(
3131
p.ResourceGroupName, p.Name, null, p.CancellationToken),

src/ResourceManager/Compute/Commands.Compute/Strategies/Network/NetworkStrategy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ static class NetworkStrategy
2323
{
2424
public static ResourceStrategy<TModel> Create<TModel, TOperations>(
2525
string type,
26-
string header,
26+
string provider,
2727
Func<NetworkManagementClient, TOperations> getOperations,
2828
Func<TOperations, GetAsyncParams, Task<TModel>> getAsync,
2929
Func<TOperations, CreateOrUpdateAsyncParams<TModel>, Task<TModel>> createOrUpdateAsync,
3030
Func<TModel, int> createTime)
3131
where TModel : Resource
3232
=> ResourceStrategy.Create(
3333
type,
34-
new [] { "Microsoft.Network", header },
34+
new [] { "Microsoft.Network", provider },
3535
getOperations,
3636
getAsync,
3737
createOrUpdateAsync,

src/ResourceManager/Compute/Commands.Compute/Strategies/Network/PublicIPAddressStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static class PublicIPAddressStrategy
2424
public static ResourceStrategy<PublicIPAddress> Strategy { get; }
2525
= NetworkStrategy.Create(
2626
type: "public IP address",
27-
header: "publicIPAddresses",
27+
provider: "publicIPAddresses",
2828
getOperations: client => client.PublicIPAddresses,
2929
getAsync: (o, p) => o.GetAsync(
3030
p.ResourceGroupName, p.Name, null, p.CancellationToken),

src/ResourceManager/Compute/Commands.Compute/Strategies/Network/VirtualNetworkStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static class VirtualNetworkStrategy
2424
public static ResourceStrategy<VirtualNetwork> Strategy { get; }
2525
= NetworkStrategy.Create(
2626
type: "virtual network",
27-
header: "virtualNetworks",
27+
provider: "virtualNetworks",
2828
getOperations: client => client.VirtualNetworks,
2929
getAsync: (o, p) => o.GetAsync(
3030
p.ResourceGroupName, p.Name, null, p.CancellationToken),

0 commit comments

Comments
 (0)