Skip to content

Commit c4f28a7

Browse files
authored
STG96 Beta Features (#42084)
* service version changes and assets updates (#41520) * regenerating off swagger and resolving errors and hooking up hns value (#41868) * STG96 - Ensure Set/Delete Immutability Policy and Set Legal Hold work on Blob Snapshots & Versions (#42055) * intial implementation and tests * fixing and recording tests * removing unused imports * hopefully fixing test race condition * style * STG96 - Provisioned v2 billing model for Azure Files (#41995) * implementation and tests * spelling mistake * re-generating swagger * STG96 - ShareAccessTier.Premium (#41920) * implementation and test * adding async tests and adding cleanup for tests that missed it * updating recordings * updating recordings * updating assets file * STG96 - Copy File, Binary ACE (#41969) * implementation and test * tests without recordings * recordings * removing unused imports * updating assets file * updating changelogs * updating assets file * fixing build issues
1 parent 493e063 commit c4f28a7

File tree

69 files changed

+4036
-1028
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4036
-1028
lines changed

sdk/storage/azure-storage-blob/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
## 12.29.0-beta.1 (Unreleased)
44

55
### Features Added
6+
- Added BlobErrorCode BlobAccessTierNotSupportedForAccountType value.
67

78
### Breaking Changes
89

910
### Bugs Fixed
11+
- Fixed an issue where you couldn't set an immutability policy on a blob version or blob snapshot.
12+
- Fixed an issue where you couldn't set a legal hold on a blob version.
1013

1114
### Other Changes
1215

sdk/storage/azure-storage-blob/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "java",
44
"TagPrefix": "java/storage/azure-storage-blob",
5-
"Tag": "java/storage/azure-storage-blob_7c9c196457"
5+
"Tag": "java/storage/azure-storage-blob_c480504bbb"
66
}

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,10 +1502,12 @@ public Mono<Response<StorageAccountInfo>> getAccountInfoWithResponse() {
15021502

15031503
Mono<Response<StorageAccountInfo>> getAccountInfoWithResponse(Context context) {
15041504
context = context == null ? Context.NONE : context;
1505-
return this.azureBlobStorage.getContainers().getAccountInfoWithResponseAsync(containerName, context)
1505+
return this.azureBlobStorage.getContainers().getAccountInfoWithResponseAsync(containerName, null,
1506+
null, context)
15061507
.map(rb -> {
15071508
ContainersGetAccountInfoHeaders hd = rb.getDeserializedHeaders();
1508-
return new SimpleResponse<>(rb, new StorageAccountInfo(hd.getXMsSkuName(), hd.getXMsAccountKind()));
1509+
return new SimpleResponse<>(rb, new StorageAccountInfo(hd.getXMsSkuName(), hd.getXMsAccountKind(),
1510+
hd.isXMsIsHnsEnabled()));
15091511
});
15101512
}
15111513

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,8 @@ public Response<StorageAccountInfo> getAccountInfoWithResponse(Duration timeout,
13361336
Context finalContext = context == null ? Context.NONE : context;
13371337
Callable<ResponseBase<ContainersGetAccountInfoHeaders, Void>> operation =
13381338
() ->
1339-
this.azureBlobStorage.getContainers().getAccountInfoWithResponse(containerName, finalContext);
1339+
this.azureBlobStorage.getContainers().getAccountInfoWithResponse(containerName, null, null,
1340+
finalContext);
13401341
ResponseBase<ContainersGetAccountInfoHeaders, Void> response = sendRequest(operation, timeout,
13411342
BlobStorageException.class);
13421343
ContainersGetAccountInfoHeaders hd = response.getDeserializedHeaders();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ public Mono<Response<StorageAccountInfo>> getAccountInfoWithResponse() {
10191019

10201020
Mono<Response<StorageAccountInfo>> getAccountInfoWithResponse(Context context) {
10211021
throwOnAnonymousAccess();
1022-
return this.azureBlobStorage.getServices().getAccountInfoWithResponseAsync(context)
1022+
return this.azureBlobStorage.getServices().getAccountInfoWithResponseAsync(null, null, context)
10231023
.map(rb -> {
10241024
ServicesGetAccountInfoHeaders hd = rb.getDeserializedHeaders();
10251025
return new SimpleResponse<>(rb, new StorageAccountInfo(hd.getXMsSkuName(), hd.getXMsAccountKind(),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ public Response<StorageAccountInfo> getAccountInfoWithResponse(Duration timeout,
893893
Context finalContext = context == null ? Context.NONE : context;
894894
Callable<ResponseBase<ServicesGetAccountInfoHeaders, Void>> operation =
895895
() ->
896-
this.azureBlobStorage.getServices().getAccountInfoWithResponse(finalContext);
896+
this.azureBlobStorage.getServices().getAccountInfoWithResponse(null, null, finalContext);
897897
ResponseBase<ServicesGetAccountInfoHeaders, Void> response = sendRequest(operation, timeout,
898898
BlobStorageException.class);
899899
ServicesGetAccountInfoHeaders hd = response.getDeserializedHeaders();

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
@@ -127,7 +127,12 @@ public enum BlobServiceVersion implements ServiceVersion {
127127
/**
128128
* Service version {@code 2024-11-04}.
129129
*/
130-
V2024_11_04("2024-11-04");
130+
V2024_11_04("2024-11-04"),
131+
132+
/**
133+
* Service version {@code 2025-01-05}.
134+
*/
135+
V2025_01_05("2025-01-05");
131136

132137
private final String version;
133138

@@ -149,6 +154,6 @@ public String getVersion() {
149154
* @return the latest {@link BlobServiceVersion}
150155
*/
151156
public static BlobServiceVersion getLatest() {
152-
return V2024_11_04;
157+
return V2025_01_05;
153158
}
154159
}

sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/AppendBlobsImpl.java

Lines changed: 142 additions & 59 deletions
Large diffs are not rendered by default.

sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlobsImpl.java

Lines changed: 394 additions & 129 deletions
Large diffs are not rendered by default.

sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/BlockBlobsImpl.java

Lines changed: 253 additions & 85 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)