Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit b9965eb

Browse files
authored
Merge pull request #350 from Azure/New-Storage-SDK-V10-Preview-dev
New storage sdk v10 preview dev
2 parents b35962e + d4c4d99 commit b9965eb

File tree

162 files changed

+5390
-1843
lines changed

Some content is hidden

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

162 files changed

+5390
-1843
lines changed

BreakingChanges.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
2018.07.03 Version 10.0.1-Preview
1+
2018.08.07 Version 10.0.2-Preview
2+
* Changed BlobListingDetails constructor to take a flag to include deleted blobs.
3+
* Restructured the blob and container listing responses.
4+
* BlockBlobURL.MAX_PUT_BLOCK_BYTES renamed to BlockBlobURL.MAX_STAGE_BLOCK_BYTES.
5+
6+
2018.07.03 Version 10.0.1-Preview
27
* Created the StorageException type, which deserializes the XML payload in an error response if present and gives access to the ErrorCode header as a property.
38
* Changed the AppendBlobAccessConditions field types to be Long instead of Int.
49
* Changed RequestRetryOptions maxTries and tryTimeout fields to be Integer instead of int. 0 is no longer allowed.

ChangeLog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2018.08.07 Version 10.0.2-Preview
2+
* Support for 2017-07-29 REST version. Please see our REST api documentation and blogs for information about the related added features.
3+
* Support for setting a block blob's tier.
4+
* Added support for soft delete feature. If a delete retention policy is enabled through the set service properties API, then blobs or snapshots can be deleted softly and retained for a specified number of days, before being permanently removed by garbage collection.
5+
* Changed BlobListingDetails constructor to take a flag to include deleted blobs.
6+
* Restructured the blob and container listing responses.
7+
* BlockBlobURL.MAX_PUT_BLOCK_BYTES renamed to BlockBlobURL.MAX_STAGE_BLOCK_BYTES.
8+
19
2018.07.03 Version 10.0.1-Preview
210
* Added the RetryReader class to allow for more reliable streaming on large downloads. This is now the return type of blobURL.download
311
* Fixed a bug that caused generation of signatures to fail at high levels of parallelism.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To get the binaries of this library as distributed by Microsoft, ready for use w
3131
<dependency>
3232
<groupId>com.microsoft.azure</groupId>
3333
<artifactId>azure-storage-blob</artifactId>
34-
<version>10.0.1-Preview</version>
34+
<version>10.0.2-Preview</version>
3535
</dependency>
3636
```
3737

docs/com/microsoft/azure/storage/blob/BlockBlobURL.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ <h4>MAX_PUT_BLOCK_BYTES</h4>
311311
<div class="block">Indicates the maximum number of bytes that can be sent in a call to stageBlock.</div>
312312
<dl>
313313
<dt><span class="seeLabel">See Also:</span></dt>
314-
<dd><a href="../../../../../constant-values.html#com.microsoft.azure.storage.blob.BlockBlobURL.MAX_PUT_BLOCK_BYTES">Constant Field Values</a></dd>
314+
<dd><a href="../../../../../constant-values.html#MAX_STAGE_BLOCK_BYTES">Constant Field Values</a></dd>
315315
</dl>
316316
</li>
317317
</ul>

pom.xml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<groupId>com.microsoft.azure</groupId>
1616
<artifactId>azure-storage-blob</artifactId>
17-
<version>10.0.1-Preview</version>
17+
<version>10.0.2-Preview</version>
1818

1919
<name>Azure Storage Blob</name>
2020
<description>The Azure Storage Java Blob library.</description>
@@ -65,7 +65,7 @@
6565
<dependency>
6666
<groupId>com.microsoft.rest.v2</groupId>
6767
<artifactId>client-runtime</artifactId>
68-
<version>2.0.0-beta3</version>
68+
<version>2.0.0-beta4</version>
6969
</dependency>
7070
<dependency>
7171
<groupId>junit</groupId>
@@ -128,6 +128,32 @@
128128
</includes>
129129
</configuration>
130130
</plugin>
131+
<plugin>
132+
<groupId>org.apache.maven.plugins</groupId>
133+
<artifactId>maven-javadoc-plugin</artifactId>
134+
<version>2.10.1</version>
135+
<configuration>
136+
<!-- force links to Java 8 documentation (should happen automatically
137+
but doesn't) -->
138+
<javaApiLinks>
139+
<property>
140+
<name>api_1.8</name>
141+
<value>https://docs.oracle.com/javase/8/docs/api/</value>
142+
</property>
143+
</javaApiLinks>
144+
<!-- add license notice -->
145+
<bottom>
146+
<![CDATA[This documentation was released into the public domain.]]>
147+
</bottom>
148+
<tags>
149+
<tag>
150+
<name>apiNote</name>
151+
<placement>m</placement>
152+
<head>API Note:</head>
153+
</tag>
154+
</tags>
155+
</configuration>
156+
</plugin>
131157
<plugin>
132158
<groupId>org.apache.maven.plugins</groupId>
133159
<artifactId>maven-release-plugin</artifactId>

src/main/java/com/microsoft/azure/storage/GeneratedAppendBlobs.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
package com.microsoft.azure.storage;
1212

13-
import com.microsoft.azure.storage.blob.models.AppendBlobsAppendBlockResponse;
14-
import com.microsoft.azure.storage.blob.models.AppendBlobsCreateResponse;
13+
import com.microsoft.azure.storage.blob.models.AppendBlobAppendBlockResponse;
14+
import com.microsoft.azure.storage.blob.models.AppendBlobCreateResponse;
1515
import com.microsoft.azure.storage.blob.models.StorageErrorException;
1616
import com.microsoft.rest.v2.DateTimeRfc1123;
1717
import com.microsoft.rest.v2.RestProxy;
@@ -70,12 +70,12 @@ private interface AppendBlobsService {
7070
@PUT("{containerName}/{blob}")
7171
@ExpectedResponses({201})
7272
@UnexpectedResponseExceptionType(StorageErrorException.class)
73-
Single<AppendBlobsCreateResponse> create(@HostParam("url") String url, @QueryParam("timeout") Integer timeout, @HeaderParam("Content-Length") long contentLength, @HeaderParam("x-ms-blob-content-type") String blobContentType, @HeaderParam("x-ms-blob-content-encoding") String blobContentEncoding, @HeaderParam("x-ms-blob-content-language") String blobContentLanguage, @HeaderParam("x-ms-blob-content-md5") String blobContentMD5, @HeaderParam("x-ms-blob-cache-control") String blobCacheControl, @HeaderParam("x-ms-meta-") Map<String, String> metadata, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("x-ms-blob-content-disposition") String blobContentDisposition, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, @HeaderParam("If-Match") String ifMatches, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("x-ms-blob-type") String blobType);
73+
Single<AppendBlobCreateResponse> create(@HostParam("url") String url, @QueryParam("timeout") Integer timeout, @HeaderParam("Content-Length") long contentLength, @HeaderParam("x-ms-blob-content-type") String blobContentType, @HeaderParam("x-ms-blob-content-encoding") String blobContentEncoding, @HeaderParam("x-ms-blob-content-language") String blobContentLanguage, @HeaderParam("x-ms-blob-content-md5") String blobContentMD5, @HeaderParam("x-ms-blob-cache-control") String blobCacheControl, @HeaderParam("x-ms-meta-") Map<String, String> metadata, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("x-ms-blob-content-disposition") String blobContentDisposition, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, @HeaderParam("If-Match") String ifMatches, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @HeaderParam("x-ms-blob-type") String blobType);
7474

7575
@PUT("{containerName}/{blob}")
7676
@ExpectedResponses({201})
7777
@UnexpectedResponseExceptionType(StorageErrorException.class)
78-
Single<AppendBlobsAppendBlockResponse> appendBlock(@HostParam("url") String url, @BodyParam("application/xml; charset=utf-8") Flowable<ByteBuffer> body, @QueryParam("timeout") Integer timeout, @HeaderParam("Content-Length") long contentLength, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("x-ms-blob-condition-maxsize") Long maxSize, @HeaderParam("x-ms-blob-condition-appendpos") Long appendPosition, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, @HeaderParam("If-Match") String ifMatches, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("comp") String comp);
78+
Single<AppendBlobAppendBlockResponse> appendBlock(@HostParam("url") String url, @BodyParam("application/xml; charset=utf-8") Flowable<ByteBuffer> body, @QueryParam("timeout") Integer timeout, @HeaderParam("Content-Length") long contentLength, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("x-ms-blob-condition-maxsize") Long maxSize, @HeaderParam("x-ms-blob-condition-appendpos") Long appendPosition, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, @HeaderParam("If-Match") String ifMatches, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("comp") String comp);
7979
}
8080

8181
/**
@@ -151,7 +151,7 @@ public ServiceFuture<Void> createAsync(@NonNull long contentLength, Integer time
151151
* @throws IllegalArgumentException thrown if parameters fail the validation.
152152
* @return a Single which performs the network request upon subscription.
153153
*/
154-
public Single<AppendBlobsCreateResponse> createWithRestResponseAsync(@NonNull long contentLength, Integer timeout, String blobContentType, String blobContentEncoding, String blobContentLanguage, byte[] blobContentMD5, String blobCacheControl, Map<String, String> metadata, String leaseId, String blobContentDisposition, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String requestId) {
154+
public Single<AppendBlobCreateResponse> createWithRestResponseAsync(@NonNull long contentLength, Integer timeout, String blobContentType, String blobContentEncoding, String blobContentLanguage, byte[] blobContentMD5, String blobCacheControl, Map<String, String> metadata, String leaseId, String blobContentDisposition, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String requestId) {
155155
if (this.client.url() == null) {
156156
throw new IllegalArgumentException("Parameter this.client.url() is required and cannot be null.");
157157
}
@@ -259,7 +259,7 @@ public ServiceFuture<Void> appendBlockAsync(@NonNull Flowable<ByteBuffer> body,
259259
* @throws IllegalArgumentException thrown if parameters fail the validation.
260260
* @return a Single which performs the network request upon subscription.
261261
*/
262-
public Single<AppendBlobsAppendBlockResponse> appendBlockWithRestResponseAsync(@NonNull Flowable<ByteBuffer> body, @NonNull long contentLength, Integer timeout, String leaseId, Long maxSize, Long appendPosition, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String requestId) {
262+
public Single<AppendBlobAppendBlockResponse> appendBlockWithRestResponseAsync(@NonNull Flowable<ByteBuffer> body, @NonNull long contentLength, Integer timeout, String leaseId, Long maxSize, Long appendPosition, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String requestId) {
263263
if (this.client.url() == null) {
264264
throw new IllegalArgumentException("Parameter this.client.url() is required and cannot be null.");
265265
}

0 commit comments

Comments
 (0)