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 Newtonsoft . Json ;
16
- using System ;
17
- using System . Collections . Generic ;
18
-
19
- namespace Microsoft . Azure . Commands . Profile . AzureRmAlias
20
- {
21
- public class Mappings
22
- {
23
- public static Dictionary < string , object > GetCaseInsensitiveMapping ( )
24
- {
25
- string jsonmapping = jsonMappings ;
26
- Dictionary < string , object > caseSensitiveMapping = ( Dictionary < string , object > ) JsonConvert . DeserializeObject ( jsonmapping , typeof ( Dictionary < string , object > ) ) ;
27
- var mapping = new Dictionary < string , object > ( StringComparer . CurrentCultureIgnoreCase ) ;
28
- foreach ( var key in caseSensitiveMapping . Keys )
29
- {
30
- mapping . Add ( key , caseSensitiveMapping [ key ] ) ;
31
- }
32
-
33
- return mapping ;
34
- }
35
-
36
- public static string jsonMappings = @"
37
- {
1
+ {
38
2
' Az.ApiManagement' : {
39
3
' Add-AzApiManagementProductToGroup' : ' Add-AzureRmApiManagementProductToGroup' ,
40
4
' Get-AzApiManagementOperation' : ' Get-AzureRmApiManagementOperation' ,
@@ -1210,7 +1174,6 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
1210
1174
' Remove-AzStorageFile' : ' Remove-AzureStorageFile' ,
1211
1175
' Set-AzCurrentStorageAccount' : ' Set-AzureRmCurrentStorageAccount' ,
1212
1176
' Get-AzStorageUsage' : ' Get-AzureRmStorageUsage' ,
1213
- 'Enable-AzStorageStaticWebsite': 'Enable-AzureStorageStaticWebsite',
1214
1177
' Get-AzStorageQueue' : ' Get-AzureStorageQueue' ,
1215
1178
' Enable-AzStorageDeleteRetentionPolicy' : ' Enable-AzureStorageDeleteRetentionPolicy' ,
1216
1179
' Update-AzStorageServiceProperty' : ' Update-AzureStorageServiceProperty' ,
@@ -1266,7 +1229,6 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
1266
1229
' Remove-AzStorageAccount' : ' Remove-AzureRmStorageAccount' ,
1267
1230
' Get-AzStorageServiceMetricsProperty' : ' Get-AzureStorageServiceMetricsProperty' ,
1268
1231
' New-AzStorageContainerStoredAccessPolicy' : ' New-AzureStorageContainerStoredAccessPolicy' ,
1269
- 'Disable-AzStorageStaticWebsite': 'Disable-AzureStorageStaticWebsite',
1270
1232
' Lock-AzRmStorageContainerImmutabilityPolicy' : ' Lock-AzureRmStorageContainerImmutabilityPolicy' ,
1271
1233
' Add-AzRmStorageContainerLegalHold' : ' Add-AzureRmStorageContainerLegalHold' ,
1272
1234
' Remove-AzStorageBlob' : ' Remove-AzureStorageBlob' ,
@@ -1464,6 +1426,7 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
1464
1426
' Switch-AzWebAppSlot' : ' Switch-AzureRmWebAppSlot' ,
1465
1427
' Get-AzAppServicePlanMetrics' : ' Get-AzureRmAppServicePlanMetrics' ,
1466
1428
' Get-AzAppServicePlan' : ' Get-AzureRmAppServicePlan' ,
1429
+ ' Enter-AzWebAppContainerPSSession' : ' Enter-AzureRmWebAppContainerPSSession' ,
1467
1430
' New-AzAppServicePlan' : ' New-AzureRmAppServicePlan' ,
1468
1431
' Get-AzWebAppSlot' : ' Get-AzureRmWebAppSlot' ,
1469
1432
' Reset-AzWebAppSlotPublishingProfile' : ' Reset-AzureRmWebAppSlotPublishingProfile' ,
@@ -1473,6 +1436,7 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
1473
1436
' Restore-AzWebAppBackup' : ' Restore-AzureRmWebAppBackup' ,
1474
1437
' New-AzWebAppDatabaseBackupSetting' : ' New-AzureRmWebAppDatabaseBackupSetting' ,
1475
1438
' New-AzWebApp' : ' New-AzureRmWebApp' ,
1439
+ ' Get-AzWebAppContainerContinuousDeploymentUrl' : ' Get-AzureRMWebAppContainerContinuousDeploymentUrl' ,
1476
1440
' Remove-AzWebApp' : ' Remove-AzureRmWebApp' ,
1477
1441
' Get-AzWebAppMetrics' : ' Get-AzureRmWebAppMetrics' ,
1478
1442
' Get-AzWebAppSSLBinding' : ' Get-AzureRmWebAppSSLBinding' ,
@@ -1485,6 +1449,7 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
1485
1449
' Edit-AzWebAppBackupConfiguration' : ' Edit-AzureRmWebAppBackupConfiguration' ,
1486
1450
' Restart-AzWebApp' : ' Restart-AzureRmWebApp' ,
1487
1451
' Stop-AzWebApp' : ' Stop-AzureRmWebApp' ,
1452
+ ' New-AzWebAppContainerPSSession' : ' New-AzureRmWebAppContainerPSSession' ,
1488
1453
' Stop-AzWebAppSlot' : ' Stop-AzureRmWebAppSlot'
1489
1454
},
1490
1455
' Az.StorageSync' : {
@@ -1829,14 +1794,18 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
1829
1794
},
1830
1795
' Az.IotHub' : {
1831
1796
' Get-AzIotHubValidSku' : ' Get-AzureRmIotHubValidSku' ,
1797
+ ' Test-AzIotHubRoute' : ' Test-AzureRmIotHubRoute' ,
1832
1798
' Get-AzIotHub' : ' Get-AzureRmIotHub' ,
1833
1799
' Get-AzIotHubKey' : ' Get-AzureRmIotHubKey' ,
1800
+ ' Add-AzIotHubRoutingEndpoint' : ' Add-AzureRmIotHubRoutingEndpoint' ,
1834
1801
' Add-AzIotHubKey' : ' Add-AzureRmIotHubKey' ,
1835
1802
' Set-AzIotHubVC' : ' Set-AzureRmIotHubVC' ,
1836
1803
' Remove-AzIotHubCertificate' : ' Remove-AzureRmIotHubCertificate' ,
1837
1804
' Set-AzIotHub' : ' Set-AzureRmIotHub' ,
1805
+ ' Get-AzIotHubRoutingEndpoint' : ' Get-AzureRmIotHubRoutingEndpoint' ,
1838
1806
' Remove-AzIotHubEventHubConsumerGroup' : ' Remove-AzureRmIotHubEventHubConsumerGroup' ,
1839
1807
' Get-AzIotHubEventHubConsumerGroup' : ' Get-AzureRmIotHubEventHubConsumerGroup' ,
1808
+ ' Remove-AzIotHubRoutingEndpoint' : ' Remove-AzureRmIotHubRoutingEndpoint' ,
1840
1809
' Get-AzIotHubCertificate' : ' Get-AzureRmIotHubCertificate' ,
1841
1810
' Get-AzIotHubQuotaMetric' : ' Get-AzureRmIotHubQuotaMetric' ,
1842
1811
' Add-AzIotHubCertificate' : ' Add-AzureRmIotHubCertificate' ,
@@ -1851,11 +1820,15 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
1851
1820
' New-AzIotHubImportDevices' : ' New-AzureRmIotHubImportDevices' ,
1852
1821
' New-AzIotHubExportDevices' : ' New-AzureRmIotHubExportDevices' ,
1853
1822
' Remove-AzIotHubEHCG' : ' Remove-AzureRmIotHubEHCG' ,
1823
+ ' Remove-AzIotHubRoute' : ' Remove-AzureRmIotHubRoute' ,
1824
+ ' Add-AzIotHubRoute' : ' Add-AzureRmIotHubRoute' ,
1825
+ ' Get-AzIotHubRoute' : ' Get-AzureRmIotHubRoute' ,
1854
1826
' Get-AzIotHubCVC' : ' Get-AzureRmIotHubCVC' ,
1855
1827
' Get-AzIotHubRegistryStatistic' : ' Get-AzureRmIotHubRegistryStatistic' ,
1856
1828
' Get-AzIotHubConnectionString' : ' Get-AzureRmIotHubConnectionString' ,
1857
1829
' Get-AzIotHubEHCG' : ' Get-AzureRmIotHubEHCG' ,
1858
- 'Remove-AzIotHub': 'Remove-AzureRmIotHub'
1830
+ ' Remove-AzIotHub' : ' Remove-AzureRmIotHub' ,
1831
+ ' Set-AzIotHubRoute' : ' Set-AzureRmIotHubRoute'
1859
1832
},
1860
1833
' Az.Resources' : {
1861
1834
' Remove-AzPolicySetDefinition' : ' Remove-AzureRmPolicySetDefinition' ,
@@ -2349,7 +2322,3 @@ public static Dictionary<string, object> GetCaseInsensitiveMapping()
2349
2322
' Remove-AzApplicationInsightsContinuousExport' : ' Remove-AzureRmApplicationInsightsContinuousExport'
2350
2323
}
2351
2324
}
2352
-
2353
- " ;
2354
- }
2355
- }
0 commit comments