Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented features for STG 74 #15428

Merged
merged 38 commits into from
Oct 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
3b1439e
Updated all service versions to STG74 (#14079)
gapra-msft Aug 14, 2020
39e8f81
Merge branch 'master' into feature/storage/stg74
gapra-msft Aug 14, 2020
0936492
Added code for get file range diff (#14140)
gapra-msft Aug 17, 2020
2b22fe4
Merge branch 'master' into feature/storage/stg74
gapra-msft Aug 18, 2020
6df5d14
Added code for smb multi channel (#14180)
gapra-msft Aug 18, 2020
b9707fc
Merge branch 'master' into feature/storage/stg74
gapra-msft Aug 25, 2020
c96fefb
Added code to allow scheduling file expiry (#14319)
gapra-msft Aug 25, 2020
3193068
Added support for arrow output serialization (#14431)
gapra-msft Aug 25, 2020
f3a97bd
Merge branch 'master' into feature/storage/stg74
gapra-msft Aug 28, 2020
c442299
Merge branch 'master' into feature/storage/stg74
gapra-msft Aug 28, 2020
022b7ca
Merge branch 'master' into feature/storage/stg74
gapra-msft Aug 31, 2020
75d62ae
Added support to read last access time (#14342)
gapra-msft Sep 2, 2020
f503977
Merge branch 'master' into feature/storage/stg74
gapra-msft Sep 2, 2020
e065ebc
Added support to lease shares (#14287)
gapra-msft Sep 2, 2020
ac212de
Merge branch 'master' into feature/storage/stg74
gapra-msft Sep 8, 2020
01bc318
Updated file ranges to getFileRangesDiff (#14839)
gapra-msft Sep 8, 2020
b91c930
Added support for directory and delegation SAS (#14531)
gapra-msft Sep 9, 2020
41af3e8
Merge branch 'master' into feature/storage/stg74
gapra-msft Sep 9, 2020
988e69b
Recursive acl (#14669)
rickle-msft Sep 9, 2020
8703aed
Added missing error code (#14986)
gapra-msft Sep 9, 2020
14c4696
Merge branch 'master' into feature/storage/stg74
gapra-msft Sep 11, 2020
6964085
Added tests to ensure support for 4TB file (#15179)
gapra-msft Sep 14, 2020
e700c2b
Storage/file share error code (#15007)
gapra-msft Sep 15, 2020
70bd409
Merge branch 'master' into feature/storage/stg74
gapra-msft Sep 16, 2020
652424c
Fixed simple renames and doc issues from 74 (#15297)
gapra-msft Sep 16, 2020
118f69e
Added back support for container undelete. (#15344)
gapra-msft Sep 21, 2020
60d2675
Regenerated code to address APIView comments (#15341)
gapra-msft Sep 21, 2020
fe4b5e8
Merge branch 'master' into feature/storage/stg74
gapra-msft Sep 21, 2020
d600512
Minor changelog formatting issues
gapra-msft Sep 21, 2020
c6d93e2
Formatting - new lines and unused imports
gapra-msft Sep 21, 2020
95ab50a
Merge branch 'master' into feature/storage/stg74
gapra-msft Sep 24, 2020
2c3b254
Fixed public API for file get range diff (#15562)
gapra-msft Sep 25, 2020
43b7347
Merge branch 'master' into feature/storage/stg74
gapra-msft Sep 28, 2020
22b315b
Modified recursive acl tests to be able to play in live mode (#15815)
gapra-msft Sep 30, 2020
7abc8fa
Added support for live tests in the STG 74 branch (#15724)
gapra-msft Sep 30, 2020
7d576de
Merge branch 'master' into feature/storage/stg74
gapra-msft Sep 30, 2020
44743b1
Added code to return batch failures in results for recursive ACL (#15…
gapra-msft Oct 1, 2020
e266b8c
Wrapped continuation token with Exception when recursive acl call is …
gapra-msft Oct 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@
<Class name="com.azure.core.implementation.http.UrlBuilder"/>
<Class name="com.azure.storage.blob.implementation.models.AppendBlobAppendBlockFromUrlHeaders"/>
<Class name="com.azure.storage.file.share.implementation.models.FileGetPropertiesHeaders"/>
<Class name="com.azure.storage.file.datalake.implementation.models.PathAppendDataHeaders"/>
</Or>
<Bug pattern="NM_CONFUSING"/>
</Match>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"networkCallRecords" : [ {
"Method" : "GET",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate1azurefilesystemtestcreate3d5768627be97c930b?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate1azurefilesystemtestcreate3d5768627be97c930b?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -25,7 +25,7 @@
"Exception" : null
}, {
"Method" : "PUT",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate1azurefilesystemtestcreate3d5768627be97c930b?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate1azurefilesystemtestcreate3d5768627be97c930b?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -46,7 +46,7 @@
"Exception" : null
}, {
"Method" : "GET",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate2azurefilesystemtestcreate3d577738e93a511826?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate2azurefilesystemtestcreate3d577738e93a511826?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -70,7 +70,7 @@
"Exception" : null
}, {
"Method" : "PUT",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate2azurefilesystemtestcreate3d577738e93a511826?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate2azurefilesystemtestcreate3d577738e93a511826?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -91,7 +91,7 @@
"Exception" : null
}, {
"Method" : "GET",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate3azurefilesystemtestcreate3d5542466a08e54668?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate3azurefilesystemtestcreate3d5542466a08e54668?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -115,7 +115,7 @@
"Exception" : null
}, {
"Method" : "PUT",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate3azurefilesystemtestcreate3d5542466a08e54668?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate3azurefilesystemtestcreate3d5542466a08e54668?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A15Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand Down Expand Up @@ -303,4 +303,4 @@
"Exception" : null
} ],
"variables" : [ "jtccreate0azurefilesystemtestcreate3d581691b16984745d", "jtccreate1azurefilesystemtestcreate3d5768627be97c930b", "jtccreate2azurefilesystemtestcreate3d577738e93a511826", "jtccreate3azurefilesystemtestcreate3d5542466a08e54668", "2020-08-04T23:40:15.408984500Z" ]
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"networkCallRecords" : [ {
"Method" : "GET",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate1azurefilesystemtestcreateffa17367b9769ed8bf?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate1azurefilesystemtestcreateffa17367b9769ed8bf?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -25,7 +25,7 @@
"Exception" : null
}, {
"Method" : "PUT",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate1azurefilesystemtestcreateffa17367b9769ed8bf?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate1azurefilesystemtestcreateffa17367b9769ed8bf?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -46,7 +46,7 @@
"Exception" : null
}, {
"Method" : "GET",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate2azurefilesystemtestcreateffa33245c0d91b5ca6?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate2azurefilesystemtestcreateffa33245c0d91b5ca6?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -70,7 +70,7 @@
"Exception" : null
}, {
"Method" : "PUT",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate2azurefilesystemtestcreateffa33245c0d91b5ca6?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate2azurefilesystemtestcreateffa33245c0d91b5ca6?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -91,7 +91,7 @@
"Exception" : null
}, {
"Method" : "GET",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate3azurefilesystemtestcreateffa4902158491962ed?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate3azurefilesystemtestcreateffa4902158491962ed?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand All @@ -115,7 +115,7 @@
"Exception" : null
}, {
"Method" : "PUT",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate3azurefilesystemtestcreateffa4902158491962ed?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreate3azurefilesystemtestcreateffa4902158491962ed?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A16Z&sp=rwdlc&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand Down Expand Up @@ -303,4 +303,4 @@
"Exception" : null
} ],
"variables" : [ "jtccreate0azurefilesystemtestcreateffa908316035bede32", "jtccreate1azurefilesystemtestcreateffa17367b9769ed8bf", "jtccreate2azurefilesystemtestcreateffa33245c0d91b5ca6", "jtccreate3azurefilesystemtestcreateffa4902158491962ed", "2020-08-04T23:40:16.513184300Z" ]
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"networkCallRecords" : [ {
"Method" : "GET",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreatefailcontainercheck1336312708fbf18e1e445?restype=container&sv=2019-12-12&ss=b&srt=c&se=2020-08-06T23%3A40%3A17Z&sp=d&sig=REDACTED",
"Uri" : "https://REDACTED.blob.core.windows.net/jtccreatefailcontainercheck1336312708fbf18e1e445?restype=container&sv=2020-02-10&ss=b&srt=c&se=2020-08-06T23%3A40%3A17Z&sp=d&sig=REDACTED",
"Headers" : {
"x-ms-version" : "2019-12-12",
"User-Agent" : "azsdk-java-azure-storage-blob/12.8.0-beta.2 (11.0.6; Windows 10; 10.0)",
Expand Down Expand Up @@ -48,4 +48,4 @@
"Exception" : null
} ],
"variables" : [ "jtccreatefailcontainercheck0090381549a5fc0c5943c", "jtccreatefailcontainercheck1336312708fbf18e1e445" ]
}
}
5 changes: 5 additions & 0 deletions sdk/storage/azure-storage-blob/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# Release History

## 12.9.0-beta.1 (Unreleased)
- Added support for the 2020-02-10 service version.
- Added support to specify Arrow Output Serialization when querying a blob.
- Added support to undelete a container.
- Added support to set BlobParallelUploadOptions.computeMd5 so the service can perform an md5 verification.
- Added support to specify block size when using BlobInputStream.

- Added support to specify block size when using BlobInputStream.
- Fixed a bug where users could not download more than 5000MB of data in one shot in the downloadToFile API.
- Fixed a bug where the TokenCredential scope would be incorrect for custom URLs.
- Fixed a bug where Default Azure Credential would not work with Azurite.
- Fixed a bug where a custom application id in HttpLogOptions would not be added to the User Agent String.
- Fixed a bug where BlockBlobOutputStream would not handle certain errors.
- Added BlobImmutableDueToPolicy to the BlobErrorCode enum.

## 12.8.0 (2020-08-13)
- Fixed a bug that, when the data length parameter did not match the actual length of the data in BlobClient.upload, caused a zero length blob to be uploaded rather than throwing an exception.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import com.azure.storage.blob.models.PublicAccessType;
import com.azure.storage.blob.models.StorageAccountInfo;
import com.azure.storage.blob.models.UserDelegationKey;
import com.azure.storage.blob.options.UndeleteBlobContainerOptions;
import com.azure.storage.common.StorageSharedKeyCredential;
import com.azure.storage.common.implementation.AccountSasImplUtil;
import com.azure.storage.common.implementation.Constants;
Expand Down Expand Up @@ -428,15 +429,12 @@ private Mono<PagedResponse<TaggedBlobItem>> findBlobsByTags(
*/
private List<ListBlobContainersIncludeType> toIncludeTypes(BlobContainerListDetails blobContainerListDetails) {
boolean hasDetails = blobContainerListDetails != null
&& blobContainerListDetails.getRetrieveMetadata();
// Add back for container soft delete.
// boolean hasDetails = blobContainerListDetails != null
// && (blobContainerListDetails.getRetrieveMetadata() || blobContainerListDetails.getRetrieveDeleted());
&& (blobContainerListDetails.getRetrieveMetadata() || blobContainerListDetails.getRetrieveDeleted());
if (hasDetails) {
List<ListBlobContainersIncludeType> flags = new ArrayList<>(2);
// if (blobContainerListDetails.getRetrieveDeleted()) {
// flags.add(ListBlobContainersIncludeType.DELETED);
// }
if (blobContainerListDetails.getRetrieveDeleted()) {
flags.add(ListBlobContainersIncludeType.DELETED);
}
if (blobContainerListDetails.getRetrieveMetadata()) {
flags.add(ListBlobContainersIncludeType.METADATA);
}
Expand Down Expand Up @@ -849,14 +847,12 @@ private void throwOnAnonymousAccess() {
* @return A {@link Mono} containing a {@link BlobContainerAsyncClient} used
* to interact with the restored container.
*/
/*
public Mono<BlobContainerAsyncClient> undeleteBlobContainer(
String deletedContainerName, String deletedContainerVersion) {
return this.undeleteBlobContainerWithResponse(
new UndeleteBlobContainerOptions(deletedContainerName, deletedContainerVersion)
return this.undeleteBlobContainerWithResponse(new UndeleteBlobContainerOptions(deletedContainerName,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add REST Docs

deletedContainerVersion)
).flatMap(FluxUtil::toMono);
}
*/

gapra-msft marked this conversation as resolved.
Show resolved Hide resolved
/**
* Restores a previously deleted container. The restored container
Expand All @@ -877,13 +873,10 @@ public Mono<BlobContainerAsyncClient> undeleteBlobContainer(
* @return A {@link Mono} containing a {@link Response} whose {@link Response#getValue() value} contains a {@link
* BlobContainerAsyncClient} used to interact with the restored container.
*/
/*
public Mono<Response<BlobContainerAsyncClient>> undeleteBlobContainerWithResponse(
UndeleteBlobContainerOptions options) {
try {
return withContext(context ->
undeleteBlobContainerWithResponse(
options, context));
return withContext(context -> undeleteBlobContainerWithResponse(options, context));
} catch (RuntimeException ex) {
return monoError(logger, ex);
}
Expand All @@ -903,5 +896,4 @@ Mono<Response<BlobContainerAsyncClient>> undeleteBlobContainerWithResponse(
.map(response -> new SimpleResponse<>(response,
getBlobContainerAsyncClient(finalDestinationContainerName)));
}
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.azure.storage.blob.models.PublicAccessType;
import com.azure.storage.blob.models.StorageAccountInfo;
import com.azure.storage.blob.models.UserDelegationKey;
import com.azure.storage.blob.options.UndeleteBlobContainerOptions;
import com.azure.storage.common.StorageSharedKeyCredential;
import com.azure.storage.common.implementation.StorageImplUtils;
import com.azure.storage.common.sas.AccountSasSignatureValues;
Expand Down Expand Up @@ -450,13 +451,11 @@ public String generateAccountSas(AccountSasSignatureValues accountSasSignatureVa
* @param deletedContainerVersion The version of the previously deleted container.
* @return The {@link BlobContainerClient} used to interact with the restored container.
*/
/*
public BlobContainerClient undeleteBlobContainer(String deletedContainerName, String deletedContainerVersion) {
return this.undeleteBlobContainerWithResponse(
new UndeleteBlobContainerOptions(deletedContainerName, deletedContainerVersion), null,
Context.NONE).getValue();
}
*/

/**
* Restores a previously deleted container. The restored container
Expand All @@ -479,14 +478,12 @@ public BlobContainerClient undeleteBlobContainer(String deletedContainerName, St
* @return A {@link Response} whose {@link Response#getValue() value} contains the {@link BlobContainerClient} used
* to interact with the restored container.
*/
/*
public Response<BlobContainerClient> undeleteBlobContainerWithResponse(
UndeleteBlobContainerOptions options, Duration timeout, Context context) {
Mono<Response<BlobContainerClient>> response =
this.blobServiceAsyncClient.undeleteBlobContainerWithResponse(options, context)
.map(r -> new SimpleResponse<>(r, getBlobContainerClient(r.getValue().getBlobContainerName())));

return blockWithOptionalTimeout(response, timeout);
return StorageImplUtils.blockWithOptionalTimeout(response, timeout);
}
*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
public enum BlobServiceVersion implements ServiceVersion {
V2019_02_02("2019-02-02"),
V2019_07_07("2019-07-07"),
V2019_12_12("2019-12-12");
V2019_12_12("2019-12-12"),
V2020_02_10("2020-02-10");

private final String version;

Expand All @@ -33,6 +34,6 @@ public String getVersion() {
* @return the latest {@link BlobServiceVersion}
*/
public static BlobServiceVersion getLatest() {
return V2019_12_12;
return V2020_02_10;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public AzureBlobStorageImpl build() {
if (this.version != null) {
client.setVersion(this.version);
} else {
client.setVersion("2019-12-12");
client.setVersion("2020-02-10");
}
if (this.pathRenameMode != null) {
client.setPathRenameMode(this.pathRenameMode);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.storage.blob.implementation.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
* arrow configuration.
*/
@JacksonXmlRootElement(localName = "ArrowConfiguration")
@Fluent
public final class ArrowConfiguration {
private static final class SchemaWrapper {
@JacksonXmlProperty(localName = "Field")
private final List<ArrowField> items;

@JsonCreator
private SchemaWrapper(@JacksonXmlProperty(localName = "Field") List<ArrowField> items) {
this.items = items;
}
}

/*
* The schema property.
*/
@JsonProperty(value = "Schema", required = true)
private SchemaWrapper schema;

/**
* Get the schema property: The schema property.
*
* @return the schema value.
*/
public List<ArrowField> getSchema() {
if (this.schema == null) {
this.schema = new SchemaWrapper(new ArrayList<ArrowField>());
}
return this.schema.items;
}

/**
* Set the schema property: The schema property.
*
* @param schema the schema value to set.
* @return the ArrowConfiguration object itself.
*/
public ArrowConfiguration setSchema(List<ArrowField> schema) {
this.schema = new SchemaWrapper(schema);
return this;
}
}
Loading