From 6a8033b2b0aeac718d369ea4dcb4cee71ccdb1b9 Mon Sep 17 00:00:00 2001 From: Wei Wei Date: Wed, 4 Dec 2019 11:42:35 +0800 Subject: [PATCH] [Storage] Change max share quota to 102400 --- eng/mgmt/mgmtmetadata/storage_resource-manager.txt | 4 ++-- .../Microsoft.Azure.Management.Storage/changelog.md | 6 +++++- .../src/Generated/FileSharesOperations.cs | 12 ++++++------ .../src/Generated/FileSharesOperationsExtensions.cs | 8 ++++---- .../src/Generated/IFileSharesOperations.cs | 4 ++-- .../src/Generated/Models/FileShare.cs | 8 ++++---- .../src/Generated/Models/FileShareItem.cs | 8 ++++---- .../src/Generated/SdkInfo_StorageManagementClient.cs | 2 +- .../src/Microsoft.Azure.Management.Storage.csproj | 2 +- .../src/Properties/AssemblyInfo.cs | 2 +- 10 files changed, 30 insertions(+), 26 deletions(-) diff --git a/eng/mgmt/mgmtmetadata/storage_resource-manager.txt b/eng/mgmt/mgmtmetadata/storage_resource-manager.txt index 699c9278b862..ed425bc9d5a7 100644 --- a/eng/mgmt/mgmtmetadata/storage_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/storage_resource-manager.txt @@ -4,11 +4,11 @@ Commencing code generation Generating CSharp code Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/storage/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp.output-folder=C:\code\srpsdk\sdk\storage\Microsoft.Azure.Management.Storage\src\Generated -2019-11-22 07:15:56 UTC +2019-12-04 03:39:46 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: ef5bff591188a232471a8f81d7bc02c7c9f7d68d +Commit: 0cf70260108cb40bc68d408674c187ed065f8c64 AutoRest information Requested version: latest Bootstrapper version: autorest@2.0.4407 diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/changelog.md b/sdk/storage/Microsoft.Azure.Management.Storage/changelog.md index 04c251002fe0..be24384bac12 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/changelog.md +++ b/sdk/storage/Microsoft.Azure.Management.Storage/changelog.md @@ -1,8 +1,12 @@ ## Microsoft.Azure.Management.Storage release notes +### Changes in 14.2.0 + +- Change the maximum limitation for share size from 100000(GiB) to 102400(GiB) + ### Changes in 14.1.0 -- Change the maximum limitation for share size from 5120(GB) too 100000(GB) +- Change the maximum limitation for share size from 5120(GiB) to 100000(GiB) - Add Sku to Blob Service Properties - Support Share Delete Retention Policy on File Service Properties diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/FileSharesOperations.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/FileSharesOperations.cs index f3d1d0514d31..d0901c7f0ae9 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/FileSharesOperations.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/FileSharesOperations.cs @@ -333,7 +333,7 @@ internal FileSharesOperations(StorageManagementClient client) /// /// The maximum size of the share, in gigabytes. Must be greater than 0, and /// less than or equal to 5TB (5120). For Large File Shares, the maximum size - /// is 100000. + /// is 102400. /// /// /// Headers that will be added to request. @@ -429,9 +429,9 @@ internal FileSharesOperations(StorageManagementClient client) throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - if (shareQuota > 100000) + if (shareQuota > 102400) { - throw new ValidationException(ValidationRules.InclusiveMaximum, "shareQuota", 100000); + throw new ValidationException(ValidationRules.InclusiveMaximum, "shareQuota", 102400); } if (shareQuota < 1) { @@ -644,7 +644,7 @@ internal FileSharesOperations(StorageManagementClient client) /// /// The maximum size of the share, in gigabytes. Must be greater than 0, and /// less than or equal to 5TB (5120). For Large File Shares, the maximum size - /// is 100000. + /// is 102400. /// /// /// Headers that will be added to request. @@ -740,9 +740,9 @@ internal FileSharesOperations(StorageManagementClient client) throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); } } - if (shareQuota > 100000) + if (shareQuota > 102400) { - throw new ValidationException(ValidationRules.InclusiveMaximum, "shareQuota", 100000); + throw new ValidationException(ValidationRules.InclusiveMaximum, "shareQuota", 102400); } if (shareQuota < 1) { diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/FileSharesOperationsExtensions.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/FileSharesOperationsExtensions.cs index 5a1b80a52f25..54edc95e74a6 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/FileSharesOperationsExtensions.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/FileSharesOperationsExtensions.cs @@ -114,7 +114,7 @@ public static partial class FileSharesOperationsExtensions /// /// The maximum size of the share, in gigabytes. Must be greater than 0, and /// less than or equal to 5TB (5120). For Large File Shares, the maximum size - /// is 100000. + /// is 102400. /// public static FileShare Create(this IFileSharesOperations operations, string resourceGroupName, string accountName, string shareName, IDictionary metadata = default(IDictionary), int? shareQuota = default(int?)) { @@ -150,7 +150,7 @@ public static partial class FileSharesOperationsExtensions /// /// The maximum size of the share, in gigabytes. Must be greater than 0, and /// less than or equal to 5TB (5120). For Large File Shares, the maximum size - /// is 100000. + /// is 102400. /// /// /// The cancellation token. @@ -192,7 +192,7 @@ public static partial class FileSharesOperationsExtensions /// /// The maximum size of the share, in gigabytes. Must be greater than 0, and /// less than or equal to 5TB (5120). For Large File Shares, the maximum size - /// is 100000. + /// is 102400. /// public static FileShare Update(this IFileSharesOperations operations, string resourceGroupName, string accountName, string shareName, IDictionary metadata = default(IDictionary), int? shareQuota = default(int?)) { @@ -228,7 +228,7 @@ public static partial class FileSharesOperationsExtensions /// /// The maximum size of the share, in gigabytes. Must be greater than 0, and /// less than or equal to 5TB (5120). For Large File Shares, the maximum size - /// is 100000. + /// is 102400. /// /// /// The cancellation token. diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/IFileSharesOperations.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/IFileSharesOperations.cs index c99d59ee6281..218608b2dcd2 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/IFileSharesOperations.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/IFileSharesOperations.cs @@ -87,7 +87,7 @@ public partial interface IFileSharesOperations /// /// The maximum size of the share, in gigabytes. Must be greater than /// 0, and less than or equal to 5TB (5120). For Large File Shares, the - /// maximum size is 100000. + /// maximum size is 102400. /// /// /// The headers that will be added to request. @@ -132,7 +132,7 @@ public partial interface IFileSharesOperations /// /// The maximum size of the share, in gigabytes. Must be greater than /// 0, and less than or equal to 5TB (5120). For Large File Shares, the - /// maximum size is 100000. + /// maximum size is 102400. /// /// /// The headers that will be added to request. diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/FileShare.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/FileShare.cs index a2d80c9c057a..807a898ae4ee 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/FileShare.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/FileShare.cs @@ -48,7 +48,7 @@ public FileShare() /// share as metadata. /// The maximum size of the share, in /// gigabytes. Must be greater than 0, and less than or equal to 5TB - /// (5120). For Large File Shares, the maximum size is 100000. + /// (5120). For Large File Shares, the maximum size is 102400. public FileShare(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), System.DateTime? lastModifiedTime = default(System.DateTime?), IDictionary metadata = default(IDictionary), int? shareQuota = default(int?)) : base(id, name, type, etag) { @@ -79,7 +79,7 @@ public FileShare() /// /// Gets or sets the maximum size of the share, in gigabytes. Must be /// greater than 0, and less than or equal to 5TB (5120). For Large - /// File Shares, the maximum size is 100000. + /// File Shares, the maximum size is 102400. /// [JsonProperty(PropertyName = "properties.shareQuota")] public int? ShareQuota { get; set; } @@ -92,9 +92,9 @@ public FileShare() /// public virtual void Validate() { - if (ShareQuota > 100000) + if (ShareQuota > 102400) { - throw new ValidationException(ValidationRules.InclusiveMaximum, "ShareQuota", 100000); + throw new ValidationException(ValidationRules.InclusiveMaximum, "ShareQuota", 102400); } if (ShareQuota < 1) { diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/FileShareItem.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/FileShareItem.cs index faaaa44d699f..b6b4e9800040 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/FileShareItem.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/Models/FileShareItem.cs @@ -47,7 +47,7 @@ public FileShareItem() /// share as metadata. /// The maximum size of the share, in /// gigabytes. Must be greater than 0, and less than or equal to 5TB - /// (5120). For Large File Shares, the maximum size is 100000. + /// (5120). For Large File Shares, the maximum size is 102400. public FileShareItem(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), System.DateTime? lastModifiedTime = default(System.DateTime?), IDictionary metadata = default(IDictionary), int? shareQuota = default(int?)) : base(id, name, type, etag) { @@ -78,7 +78,7 @@ public FileShareItem() /// /// Gets or sets the maximum size of the share, in gigabytes. Must be /// greater than 0, and less than or equal to 5TB (5120). For Large - /// File Shares, the maximum size is 100000. + /// File Shares, the maximum size is 102400. /// [JsonProperty(PropertyName = "properties.shareQuota")] public int? ShareQuota { get; set; } @@ -91,9 +91,9 @@ public FileShareItem() /// public virtual void Validate() { - if (ShareQuota > 100000) + if (ShareQuota > 102400) { - throw new ValidationException(ValidationRules.InclusiveMaximum, "ShareQuota", 100000); + throw new ValidationException(ValidationRules.InclusiveMaximum, "ShareQuota", 102400); } if (ShareQuota < 1) { diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs index 0dd946dae1b4..48b57c1bea08 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Generated/SdkInfo_StorageManagementClient.cs @@ -39,7 +39,7 @@ public static IEnumerable> ApiInfo_StorageManageme public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/storage/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp.output-folder=C:\\code\\srpsdk\\sdk\\storage\\Microsoft.Azure.Management.Storage\\src\\Generated"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "ef5bff591188a232471a8f81d7bc02c7c9f7d68d"; + public static readonly String GithubCommidId = "0cf70260108cb40bc68d408674c187ed065f8c64"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Microsoft.Azure.Management.Storage.csproj b/sdk/storage/Microsoft.Azure.Management.Storage/src/Microsoft.Azure.Management.Storage.csproj index 0d5c4a7e7aa9..246e872edd78 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Microsoft.Azure.Management.Storage.csproj +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Microsoft.Azure.Management.Storage.csproj @@ -7,7 +7,7 @@ Microsoft.Azure.Management.Storage Microsoft Azure Management Storage Library Microsoft.Azure.Management.Storage - 14.1.0 + 14.2.0 Microsoft Azure Storage management;Storage;Storage management; See https://aka.ms/asdotnetsdkchangelog for release notes. diff --git a/sdk/storage/Microsoft.Azure.Management.Storage/src/Properties/AssemblyInfo.cs b/sdk/storage/Microsoft.Azure.Management.Storage/src/Properties/AssemblyInfo.cs index 5a68bb14a3c4..63b2ca0cca73 100644 --- a/sdk/storage/Microsoft.Azure.Management.Storage/src/Properties/AssemblyInfo.cs +++ b/sdk/storage/Microsoft.Azure.Management.Storage/src/Properties/AssemblyInfo.cs @@ -8,7 +8,7 @@ [assembly: AssemblyDescription("Provides Microsoft Azure Storage management functions for managing the Microsoft Azure Storage service.")] [assembly: AssemblyVersion("14.0.0.0")] -[assembly: AssemblyFileVersion("14.1.0.0")] +[assembly: AssemblyFileVersion("14.2.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")]