diff --git a/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs
index 88fbd1326e018..fc2404a47f0af 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs
+++ b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.net6.0.cs
@@ -563,6 +563,7 @@ public ShareAccessPolicy() { }
public ShareAccessTier(string value) { throw null; }
public static Azure.Storage.Files.Shares.Models.ShareAccessTier Cool { get { throw null; } }
public static Azure.Storage.Files.Shares.Models.ShareAccessTier Hot { get { throw null; } }
+ public static Azure.Storage.Files.Shares.Models.ShareAccessTier Premium { get { throw null; } }
public static Azure.Storage.Files.Shares.Models.ShareAccessTier TransactionOptimized { get { throw null; } }
public bool Equals(Azure.Storage.Files.Shares.Models.ShareAccessTier other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
diff --git a/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.netstandard2.0.cs b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.netstandard2.0.cs
index 88fbd1326e018..fc2404a47f0af 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.netstandard2.0.cs
+++ b/sdk/storage/Azure.Storage.Files.Shares/api/Azure.Storage.Files.Shares.netstandard2.0.cs
@@ -563,6 +563,7 @@ public ShareAccessPolicy() { }
public ShareAccessTier(string value) { throw null; }
public static Azure.Storage.Files.Shares.Models.ShareAccessTier Cool { get { throw null; } }
public static Azure.Storage.Files.Shares.Models.ShareAccessTier Hot { get { throw null; } }
+ public static Azure.Storage.Files.Shares.Models.ShareAccessTier Premium { get { throw null; } }
public static Azure.Storage.Files.Shares.Models.ShareAccessTier TransactionOptimized { get { throw null; } }
public bool Equals(Azure.Storage.Files.Shares.Models.ShareAccessTier other) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
diff --git a/sdk/storage/Azure.Storage.Files.Shares/assets.json b/sdk/storage/Azure.Storage.Files.Shares/assets.json
index 9ca749681b79e..5b5f810958b23 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/assets.json
+++ b/sdk/storage/Azure.Storage.Files.Shares/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/storage/Azure.Storage.Files.Shares",
- "Tag": "net/storage/Azure.Storage.Files.Shares_14e0fa0c22"
+ "Tag": "net/storage/Azure.Storage.Files.Shares_95c2a36dbc"
}
diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/DirectoryRestClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/DirectoryRestClient.cs
index 961c6ff47ce59..8a2edb8b99134 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/DirectoryRestClient.cs
+++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/DirectoryRestClient.cs
@@ -33,7 +33,7 @@ internal partial class DirectoryRestClient
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
/// The URL of the service account, share, directory or file that is the target of the desired operation.
- /// Specifies the version of the operation to use for this request. The default value is "2024-11-04".
+ /// Specifies the version of the operation to use for this request. The default value is "2025-01-05".
/// If true, the trailing dot will not be trimmed from the target URI.
/// Valid value is backup.
/// If true, the trailing dot will not be trimmed from the source URI.
diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/FileRestClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/FileRestClient.cs
index d4b584e6660ee..231f5a494c94e 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/FileRestClient.cs
+++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/FileRestClient.cs
@@ -34,7 +34,7 @@ internal partial class FileRestClient
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
/// The URL of the service account, share, directory or file that is the target of the desired operation.
- /// Specifies the version of the operation to use for this request. The default value is "2024-11-04".
+ /// Specifies the version of the operation to use for this request. The default value is "2025-01-05".
/// Only update is supported: - Update: Writes the bytes downloaded from the source url into the specified range. The default value is "update".
/// If true, the trailing dot will not be trimmed from the target URI.
/// Valid value is backup.
diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareAccessTier.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareAccessTier.cs
index ae732b82353e7..4881d694a6146 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareAccessTier.cs
+++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/Models/ShareAccessTier.cs
@@ -25,6 +25,7 @@ public ShareAccessTier(string value)
private const string TransactionOptimizedValue = "TransactionOptimized";
private const string HotValue = "Hot";
private const string CoolValue = "Cool";
+ private const string PremiumValue = "Premium";
/// TransactionOptimized.
public static ShareAccessTier TransactionOptimized { get; } = new ShareAccessTier(TransactionOptimizedValue);
@@ -32,6 +33,8 @@ public ShareAccessTier(string value)
public static ShareAccessTier Hot { get; } = new ShareAccessTier(HotValue);
/// Cool.
public static ShareAccessTier Cool { get; } = new ShareAccessTier(CoolValue);
+ /// Premium.
+ public static ShareAccessTier Premium { get; } = new ShareAccessTier(PremiumValue);
/// Determines if two values are the same.
public static bool operator ==(ShareAccessTier left, ShareAccessTier right) => left.Equals(right);
/// Determines if two values are not the same.
diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ServiceRestClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ServiceRestClient.cs
index ef4c21b9a33c7..fe5ea495a7a15 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ServiceRestClient.cs
+++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ServiceRestClient.cs
@@ -31,7 +31,7 @@ internal partial class ServiceRestClient
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
/// The URL of the service account, share, directory or file that is the target of the desired operation.
- /// Specifies the version of the operation to use for this request. The default value is "2024-11-04".
+ /// Specifies the version of the operation to use for this request. The default value is "2025-01-05".
/// Valid value is backup.
/// , , or is null.
public ServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version, ShareTokenIntent? fileRequestIntent = null)
diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ShareRestClient.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ShareRestClient.cs
index 599aacf2c6287..3012d3d8735b1 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ShareRestClient.cs
+++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/ShareRestClient.cs
@@ -32,7 +32,7 @@ internal partial class ShareRestClient
/// The handler for diagnostic messaging in the client.
/// The HTTP pipeline for sending and receiving REST requests and responses.
/// The URL of the service account, share, directory or file that is the target of the desired operation.
- /// Specifies the version of the operation to use for this request. The default value is "2024-11-04".
+ /// Specifies the version of the operation to use for this request. The default value is "2025-01-05".
/// Valid value is backup.
/// , , or is null.
public ShareRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string url, string version, ShareTokenIntent? fileRequestIntent = null)
diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/autorest.md b/sdk/storage/Azure.Storage.Files.Shares/src/autorest.md
index 43022bc56d1c1..facaa61c21784 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/src/autorest.md
+++ b/sdk/storage/Azure.Storage.Files.Shares/src/autorest.md
@@ -4,7 +4,7 @@ Run `dotnet build /t:GenerateCode` to generate code.
``` yaml
input-file:
- - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/98b600498947073c18c2ac5eb7c3c658db5a1a59/specification/storage/data-plane/Microsoft.FileStorage/stable/2024-11-04/file.json
+ - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/718996a0c4435626d2f55d4ab6e65da5ac48916c/specification/storage/data-plane/Microsoft.FileStorage/stable/2025-01-05/file.json
generation1-convenience-client: true
# https://github.com/Azure/autorest/issues/4075
skip-semantics-validation: true
diff --git a/sdk/storage/Azure.Storage.Files.Shares/tests/ShareClientTests.cs b/sdk/storage/Azure.Storage.Files.Shares/tests/ShareClientTests.cs
index 0640fc504c39e..36c7a115d8ecc 100644
--- a/sdk/storage/Azure.Storage.Files.Shares/tests/ShareClientTests.cs
+++ b/sdk/storage/Azure.Storage.Files.Shares/tests/ShareClientTests.cs
@@ -364,6 +364,30 @@ public async Task CreateAsync_AccessTier()
await share.DeleteAsync();
}
+ [RecordedTest]
+ [ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2019_12_12)]
+ public async Task CreateAsync_AccessTier_Premium()
+ {
+ // Arrange
+ var shareName = GetNewShareName();
+ ShareServiceClient service = SharesClientBuilder.GetServiceClient_PremiumFile();
+ ShareClient share = InstrumentClient(service.GetShareClient(shareName));
+ ShareCreateOptions options = new ShareCreateOptions
+ {
+ AccessTier = ShareAccessTier.Premium
+ };
+
+ // Act
+ await share.CreateAsync(options);
+
+ // Assert
+ Response propertiesResponse = await share.GetPropertiesAsync();
+ Assert.AreEqual(ShareAccessTier.Premium.ToString(), propertiesResponse.Value.AccessTier);
+
+ // Cleanup
+ await share.DeleteAsync();
+ }
+
[RecordedTest]
public async Task CreateAsync_Error()
{
@@ -1774,6 +1798,27 @@ public async Task SetPropertiesAsync_AccessTier()
Assert.IsNotNull(response.Value.AccessTierChangeTime);
}
+ [RecordedTest]
+ [ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2019_12_12)]
+ public async Task SetPropertiesAsync_AccessTier_Premium()
+ {
+ // Arrange
+ await using DisposingShare test = await GetTestShareAsync(SharesClientBuilder.GetServiceClient_PremiumFile());
+ ShareClient share = test.Share;
+
+ ShareSetPropertiesOptions options = new ShareSetPropertiesOptions
+ {
+ AccessTier = ShareAccessTier.Premium
+ };
+
+ // Act
+ await share.SetPropertiesAsync(options);
+
+ // Assert
+ Response response = await share.GetPropertiesAsync();
+ Assert.AreEqual(ShareAccessTier.Premium.ToString(), response.Value.AccessTier);
+ }
+
[RecordedTest]
[PlaybackOnly("https://github.com/Azure/azure-sdk-for-net/issues/17262")]
[ServiceVersion(Min = ShareClientOptions.ServiceVersion.V2020_04_08)]