Merge pull request #10655 from wastoresh/sharequota

[Storage] Update to SRP SDK 14.2.0, and add Quota parameter alias
This commit is contained in:
Yabo Hu 2019-12-05 16:42:50 +08:00 коммит произвёл GitHub
Родитель 27e9bf8fc6 c83d745939
Коммит 1ec6244aa0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
12 изменённых файлов: 33 добавлений и 28 удалений

Просмотреть файл

@ -15,7 +15,7 @@
<PackageReference Include="Microsoft.Azure.Management.EventHub" Version="2.5.0" />
<PackageReference Include="Microsoft.Azure.Management.Relay" Version="2.0.2" />
<PackageReference Include="Microsoft.Azure.Management.ServiceBus" Version="2.1.0" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.1.0" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.2.0" />
</ItemGroup>
</Project>

Просмотреть файл

@ -11,7 +11,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.1.0" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.2.0" />
</ItemGroup>
</Project>

Просмотреть файл

@ -24,10 +24,12 @@
- New-AzStorageBlobSASToken
* Support revoke Storage Account User Delegation Keys, so all Idenity SAS tokens are revoked
- Revoke-AzStorageAccountUserDelegationKeys
* Upgrade to Microsoft.Azure.Management.Storage 14.1.0, to support new API version 2019-06-01.
* Support Share QuotaGiB more than 5120, in Management plane File Share cmdlets
* Upgrade to Microsoft.Azure.Management.Storage 14.2.0, to support new API version 2019-06-01.
* Support Share QuotaGiB more than 5120 in Management plane File Share cmdlets, and add parameter alias "Quota" to parameter "QuotaGiB"
- New-AzRmStorageShare
- Update-AzRmStorageShare
* Add parameter alias "QuotaGiB" to parameter "Quota"
- Set-AzStorageShareQuota
* Fix the issue that Set-AzStorageContainerAcl can clean up the stored Access Policy
- Set-AzStorageContainerAcl

Просмотреть файл

@ -66,6 +66,7 @@ namespace Microsoft.Azure.Commands.Management.Storage
[ValidateNotNullOrEmpty]
public string Name { get; set; }
[Alias("Quota")]
[Parameter(Mandatory = false,
HelpMessage = "Share Quota in Gibibyte.")]
public int QuotaGiB

Просмотреть файл

@ -97,6 +97,7 @@ namespace Microsoft.Azure.Commands.Management.Storage
[ValidateNotNullOrEmpty]
public PSShare InputObject { get; set; }
[Alias("Quota")]
[Parameter(Mandatory = false,
HelpMessage = "Share Quota in Gibibyte.")]
public int QuotaGiB

Просмотреть файл

@ -14,7 +14,7 @@
<RootNamespace>$(LegacyAssemblyPrefix)$(PsModuleName)</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.1.0" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.2.0" />
<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="11.1.0" />
<PackageReference Include="Microsoft.Azure.Storage.File" Version="11.1.0" />
<PackageReference Include="Microsoft.Azure.Storage.Queue" Version="11.1.0" />

Просмотреть файл

@ -97,7 +97,7 @@ Aliases: N, ShareName
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: False
Accept wildcard characters: False
```
@ -112,7 +112,7 @@ Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept pipeline input: False
Accept wildcard characters: False
```
@ -142,7 +142,7 @@ Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
@ -157,7 +157,7 @@ Aliases: AccountName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept pipeline input: False
Accept wildcard characters: False
```

Просмотреть файл

@ -36,7 +36,7 @@ PS C:\>New-AzRmStorageShare -ResourceGroupName "myResourceGroup" -StorageAccount
Name StorageAccountName ResourceGroupName Etag QuotaGiB LastModifiedTime
---- ------------------ ----------------- ---- -------- ----------------
myshare myStorageAccount myResourceGroup
myshare myStorageAccount myResourceGroup
```
This command creates a Storage file share with metadata and share quota as 100 GiB.
@ -47,7 +47,7 @@ Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -StorageAccountName "m
Name StorageAccountName ResourceGroupName Etag QuotaGiB LastModifiedTime
---- ------------------ ----------------- ---- -------- ----------------
myshare myStorageAccount myResourceGroup
myshare myStorageAccount myResourceGroup
```
This command creates a Storage file share with Storage account object and share name.
@ -95,7 +95,7 @@ Aliases: N, ShareName
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: False
Accept wildcard characters: False
```
@ -105,7 +105,7 @@ Share Quota in Gibibyte.
```yaml
Type: System.Int32
Parameter Sets: (All)
Aliases:
Aliases: Quota
Required: False
Position: Named
@ -125,7 +125,7 @@ Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept pipeline input: False
Accept wildcard characters: False
```
@ -140,7 +140,7 @@ Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
@ -155,7 +155,7 @@ Aliases: AccountName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept pipeline input: False
Accept wildcard characters: False
```

Просмотреть файл

@ -106,7 +106,7 @@ Aliases: Share
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
@ -121,7 +121,7 @@ Aliases: N, ShareName
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: False
Accept wildcard characters: False
```
@ -152,7 +152,7 @@ Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept pipeline input: False
Accept wildcard characters: False
```
@ -182,7 +182,7 @@ Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
@ -197,7 +197,7 @@ Aliases: AccountName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept pipeline input: False
Accept wildcard characters: False
```

Просмотреть файл

@ -115,7 +115,7 @@ See the quota limitation in https://docs.microsoft.com/en-us/azure/azure-subscri
```yaml
Type: System.Int32
Parameter Sets: (All)
Aliases:
Aliases: QuotaGiB
Required: True
Position: 1

Просмотреть файл

@ -110,7 +110,7 @@ Aliases: Share
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
@ -140,7 +140,7 @@ Aliases: N, ShareName
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: False
Accept wildcard characters: False
```
@ -150,7 +150,7 @@ Share Quota in Gibibyte.
```yaml
Type: System.Int32
Parameter Sets: (All)
Aliases:
Aliases: Quota
Required: False
Position: Named
@ -170,7 +170,7 @@ Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept pipeline input: False
Accept wildcard characters: False
```
@ -200,7 +200,7 @@ Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
@ -215,7 +215,7 @@ Aliases: AccountName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept pipeline input: False
Accept wildcard characters: False
```

Просмотреть файл

@ -41,6 +41,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.File.Cmdlet
[ValidateNotNull]
public CloudFileShare Share { get; set; }
[Alias("QuotaGiB")]
[Parameter(Position = 1, Mandatory = true,
HelpMessage = "Share Quota")]
public int Quota { get; set; }