File tree Expand file tree Collapse file tree 4 files changed +8
-16
lines changed
src/ResourceManager/Storage/Commands.Management.Storage/Models Expand file tree Collapse file tree 4 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 1
1
##2016 .08.22 version 1.7.0
2
2
* Azure Storage
3
- * Change the return type of Get-AzureRmStorageAccountKey cmdlet, to make both of following works (Migrate breaking change from 1.4.0)
3
+ * Change the return type of Get-AzureRmStorageAccountKey cmdlet, to make both of following works (Mitigate breaking change from 1.4.0)
4
4
- $key = (Get-AzureRmStorageAccountKey -ResourceGroupName $groupname -Name $accountname).Key1
5
5
- $key = (Get-AzureRmStorageAccountKey -ResourceGroupName $groupname -Name $accountname)[ 0] .Value
6
- * Change the return type of New/Get/Set-AzureRMStorageAccount cmdlet by add back AccountType, to make both of following works (Migrate breaking change from 1.4.0)
6
+ * Change the return type of New/Get/Set-AzureRMStorageAccount cmdlet by add back AccountType, to make both of following works (Mitigate breaking change from 1.4.0)
7
7
- $AccountType = (Get-AzureRmStorageAccount -ResourceGroupName $groupname -Name $accountname).AccountType
8
8
- $AccountType = (Get-AzureRmStorageAccount -ResourceGroupName $groupname -Name $accountname).Sku.Name
9
- * Change the return type of New-AzureRmStorageAccountKey cmdlet, to make both of following works (Migrate breaking change from 1.4.0)
9
+ * Change the return type of New-AzureRmStorageAccountKey cmdlet, to make both of following works (Mitigate breaking change from 1.4.0)
10
10
- $key = (Get-AzureRmStorageAccountKey -ResourceGroupName $groupname -Name $accountname -KeyName $keyname).StorageAccountKeys.Key1
11
11
- $key = (Get-AzureRmStorageAccountKey -ResourceGroupName $groupname -Name $accountname -KeyName $keyname).Keys[ 0] .Value
12
12
Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Text ;
5
- using System . Threading . Tasks ;
6
2
7
3
namespace Microsoft . Azure . Management . Storage . Models
8
4
{
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public StorageAccountKeys(IList<StorageAccountKey> storageKeys) : base()
12
12
this . Key2 = storageKeys [ 1 ] . Value ;
13
13
}
14
14
15
- public string Key1 { get ; set ; }
16
- public string Key2 { get ; set ; }
15
+ public string Key1 { get ; }
16
+ public string Key2 { get ; }
17
17
}
18
18
}
Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Text ;
5
- using System . Threading . Tasks ;
1
+ using System . Collections . Generic ;
6
2
7
3
namespace Microsoft . Azure . Management . Storage . Models
8
4
{
9
5
class StorageAccountRegenerateKeyResponse
10
6
{
11
7
public StorageAccountRegenerateKeyResponse ( StorageAccountListKeysResult result )
12
8
{
13
- if ( result . Keys != null )
9
+ if ( result . Keys != null )
14
10
{
15
11
StorageAccountKeys = new StorageAccountKeys ( result . Keys ) ;
16
12
Keys = result . Keys ;
17
13
}
18
14
}
19
- public StorageAccountKeys StorageAccountKeys { get ; set ; }
15
+ public StorageAccountKeys StorageAccountKeys { get ; }
20
16
public IList < StorageAccountKey > Keys { get ; }
21
17
}
22
18
}
You can’t perform that action at this time.
0 commit comments