Skip to content

Commit e0ac8b9

Browse files
authored
adding new service version (#47408)
1 parent 3276116 commit e0ac8b9

File tree

7 files changed

+34
-12
lines changed

7 files changed

+34
-12
lines changed

sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/BlobServiceVersion.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ public enum BlobServiceVersion implements ServiceVersion {
152152
/**
153153
* Service version {@code 2026-02-06}.
154154
*/
155-
V2026_02_06("2026-02-06");
155+
V2026_02_06("2026-02-06"),
156+
157+
/**
158+
* Service version {@code 2026-04-06}.
159+
*/
160+
V2026_04_06("2026-04-06");
156161

157162
private final String version;
158163

@@ -174,6 +179,6 @@ public String getVersion() {
174179
* @return the latest {@link BlobServiceVersion}
175180
*/
176181
public static BlobServiceVersion getLatest() {
177-
return V2026_02_06;
182+
return V2026_04_06;
178183
}
179184
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
AZURE_LIVE_TEST_SERVICE_VERSION=V2026_02_06
2-
AZURE_STORAGE_SAS_SERVICE_VERSION=2026-02-06
1+
AZURE_LIVE_TEST_SERVICE_VERSION=V2026_04_06
2+
AZURE_STORAGE_SAS_SERVICE_VERSION=2026-04-06

sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public final class Constants {
8888
public static final String PROPERTY_AZURE_STORAGE_SAS_SERVICE_VERSION = "AZURE_STORAGE_SAS_SERVICE_VERSION";
8989

9090
public static final String SAS_SERVICE_VERSION
91-
= Configuration.getGlobalConfiguration().get(PROPERTY_AZURE_STORAGE_SAS_SERVICE_VERSION, "2026-02-06");
91+
= Configuration.getGlobalConfiguration().get(PROPERTY_AZURE_STORAGE_SAS_SERVICE_VERSION, "2026-04-06");
9292

9393
public static final String ADJUSTED_BLOB_LENGTH_KEY = "adjustedBlobLength";
9494

@@ -220,7 +220,7 @@ public static final class HeaderConstants {
220220
* @deprecated For SAS Service Version use {@link Constants#SAS_SERVICE_VERSION}.
221221
*/
222222
@Deprecated
223-
public static final String TARGET_STORAGE_VERSION = "2026-02-06";
223+
public static final String TARGET_STORAGE_VERSION = "2026-04-06";
224224

225225
/**
226226
* Error code returned from the service.

sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakeServiceVersion.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ public enum DataLakeServiceVersion implements ServiceVersion {
152152
/**
153153
* Service version {@code 2026-02-06}.
154154
*/
155-
V2026_02_06("2026-02-06");
155+
V2026_02_06("2026-02-06"),
156+
157+
/**
158+
* Service version {@code 2026-04-06}.
159+
*/
160+
V2026_04_06("2026-04-06");
156161

157162
private final String version;
158163

@@ -174,6 +179,6 @@ public String getVersion() {
174179
* @return the latest {@link DataLakeServiceVersion}
175180
*/
176181
public static DataLakeServiceVersion getLatest() {
177-
return V2026_02_06;
182+
return V2026_04_06;
178183
}
179184
}

sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/util/TransformUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public static BlobServiceVersion toBlobServiceVersion(DataLakeServiceVersion ver
7070
return BlobServiceVersion.V2025_11_05;
7171
} else if (DataLakeServiceVersion.V2026_02_06.ordinal() == version.ordinal()) {
7272
return BlobServiceVersion.V2026_02_06;
73+
} else if (DataLakeServiceVersion.V2026_04_06.ordinal() == version.ordinal()) {
74+
return BlobServiceVersion.V2026_04_06;
7375
}
7476

7577
return null;

sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/ShareServiceVersion.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ public enum ShareServiceVersion implements ServiceVersion {
152152
/**
153153
* Service version {@code 2026-02-06}.
154154
*/
155-
V2026_02_06("2026-02-06");
155+
V2026_02_06("2026-02-06"),
156+
157+
/**
158+
* Service version {@code 2026-04-06}.
159+
*/
160+
V2026_04_06("2026-04-06");
156161

157162
private final String version;
158163

@@ -174,6 +179,6 @@ public String getVersion() {
174179
* @return the latest {@link ShareServiceVersion}
175180
*/
176181
public static ShareServiceVersion getLatest() {
177-
return V2026_02_06;
182+
return V2026_04_06;
178183
}
179184
}

sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueServiceVersion.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ public enum QueueServiceVersion implements ServiceVersion {
152152
/**
153153
* Service version {@code 2026-02-06}.
154154
*/
155-
V2026_02_06("2026-02-06");
155+
V2026_02_06("2026-02-06"),
156+
157+
/**
158+
* Service version {@code 2026-04-06}.
159+
*/
160+
V2026_04_06("2026-04-06");
156161

157162
private final String version;
158163

@@ -174,6 +179,6 @@ public String getVersion() {
174179
* @return the latest {@link QueueServiceVersion}
175180
*/
176181
public static QueueServiceVersion getLatest() {
177-
return V2026_02_06;
182+
return V2026_04_06;
178183
}
179184
}

0 commit comments

Comments
 (0)