Skip to content

Commit

Permalink
Merge pull request Azure#365 from Azure/New-Storage-SDK-V10-Preview-dev
Browse files Browse the repository at this point in the history
New storage sdk v10 preview dev
  • Loading branch information
rickle-msft authored Sep 11, 2018
2 parents 70eed09 + 2d843c4 commit ebdc214
Show file tree
Hide file tree
Showing 87 changed files with 7,502 additions and 4,949 deletions.
8 changes: 7 additions & 1 deletion BreakingChanges.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
2018.08.22 Version 10.0.4-rc
2018.08.11 Version 10.1.0
* Interfaces for helper types updated to be more consistent throughout the library. All types, with the exception of the options for pipeline factories, use a fluent pattern.
* Removed RetryReader type as it's functionality was moved to be built into the DownloadResponse. RetryReaderOptions are now named ReliableDownloadOptions.
* Restructured the access conditions to be more logically adhere to their respective functions.
* Added support for context parameter on each api to allow communication with the pipeline from the application level

2018.08.22 Version 10.0.4-rc
* Changed BlobURL.startCopy sourceAccessConditions parameter to be HTTPAccessConditions as lease is not actually supported.
* UploadFromFile now takes an AsynchronousFileChannel.
* UploadByteBuffersToBlockBlob, UploadByteBufferToBlockBlob, and DownloadToBuffer have been removed.
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2018.09.11 Version 10.1.0
* Interfaces for helper types updated to be more consistent throughout the library. All types, with the exception of the options for pipeline factories, use a fluent pattern.
* Removed RetryReader type as it's functionality was moved to be built into the DownloadResponse. RetryReaderOptions are now named ReliableDownloadOptions.
* Restructured the access conditions to be more logically adhere to their respective functions.
* Added support for context parameter on each api to allow communication with the pipeline from the application level

2018.08.22 Version 10.0.4-rc
* Support for the 2017-11-09 REST version. Please see our REST api documentation and blogs for information about the related added features.
* Support for 2018-03-28 REST version. Please see our REST api documentation and blogs for information about the related added features.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To get the binaries of this library as distributed by Microsoft, ready for use w
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>10.0.4-rc</version>
<version>10.1.0</version>
</dependency>
```

Expand Down Expand Up @@ -131,7 +131,7 @@ public class Sample {
blobURL.download(null, null, false))
.flatMap(blobsDownloadResponse ->
// Verify that the blob data round-tripped correctly.
FlowableUtil.collectBytesInBuffer(blobsDownloadResponse.body())
FlowableUtil.collectBytesInBuffer(blobsDownloadResponse.body(null))
.doOnSuccess(byteBuffer -> {
if (byteBuffer.compareTo(ByteBuffer.wrap(data.getBytes())) != 0) {
throw new Exception("The downloaded data does not match the uploaded data.");
Expand Down
17 changes: 15 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>10.0.4-rc</version>
<version>10.1.0</version>

<name>Azure Storage Blob</name>
<description>The Azure Storage Java Blob library.</description>
Expand Down Expand Up @@ -61,11 +61,24 @@
</pluginRepository>
</pluginRepositories>

<repositories>
<repository>
<id>ossrh</id>
<name>Sonatype Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<layout>default</layout>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.microsoft.rest.v2</groupId>
<artifactId>client-runtime</artifactId>
<version>2.0.0-beta4</version>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
228 changes: 138 additions & 90 deletions src/main/java/com/microsoft/azure/storage/GeneratedAppendBlobs.java

Large diffs are not rendered by default.

1,031 changes: 611 additions & 420 deletions src/main/java/com/microsoft/azure/storage/GeneratedBlobs.java

Large diffs are not rendered by default.

372 changes: 223 additions & 149 deletions src/main/java/com/microsoft/azure/storage/GeneratedBlockBlobs.java

Large diffs are not rendered by default.

564 changes: 346 additions & 218 deletions src/main/java/com/microsoft/azure/storage/GeneratedContainers.java

Large diffs are not rendered by default.

689 changes: 408 additions & 281 deletions src/main/java/com/microsoft/azure/storage/GeneratedPageBlobs.java

Large diffs are not rendered by default.

114 changes: 69 additions & 45 deletions src/main/java/com/microsoft/azure/storage/GeneratedServices.java

Large diffs are not rendered by default.

117 changes: 107 additions & 10 deletions src/main/java/com/microsoft/azure/storage/blob/AccountSASPermission.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,50 +24,147 @@
* the order of the permissions is particular and this class guarantees correctness.
*/
public final class AccountSASPermission {

private boolean read;

private boolean add;

private boolean create;

private boolean write;

private boolean delete;

private boolean list;

private boolean update;

private boolean processMessages;

/**
* Initializes an {@code AccountSASPermission} object with all fields set to false.
*/
public AccountSASPermission() {}

/**
* Permission to read resources and list queues and tables granted.
*/
public boolean read() {
return read;
}

/**
* Permission to read resources and list queues and tables granted.
*/
public boolean read;
public AccountSASPermission withRead(boolean read) {
this.read = read;
return this;
}

/**
* Permission to add messages, table entities, and append to blobs granted.
*/
public boolean add;
public boolean add() {
return add;
}

/**
* Permission to add messages, table entities, and append to blobs granted.
*/
public AccountSASPermission withAdd(boolean add) {
this.add = add;
return this;
}

/**
* Permission to create blobs and files granted.
*/
public boolean create;
public boolean create() {
return create;
}

/**
* Permission to create blobs and files granted.
*/
public AccountSASPermission withCreate(boolean create) {
this.create = create;
return this;
}

/**
* Permission to write resources granted.
*/
public boolean write() {
return write;
}

/**
* Permission to write resources granted.
*/
public boolean write;
public AccountSASPermission withWrite(boolean write) {
this.write = write;
return this;
}

/**
* Permission to delete resources granted.
*/
public boolean delete;
public boolean delete() {
return delete;
}

/**
* Permission to delete resources granted.
*/
public AccountSASPermission withDelete(boolean delete) {
this.delete = delete;
return this;
}

/**
* Permission to list blob containers, blobs, shares, directories, and files granted.
*/
public boolean list;
public boolean list() {
return list;
}

/**
* Permission to list blob containers, blobs, shares, directories, and files granted.
*/
public AccountSASPermission withList(boolean list) {
this.list = list;
return this;
}

/**
* Permissions to update messages and table entities granted.
*/
public boolean update() {
return update;
}

/**
* Permissions to update messages and table entities granted.
*/
public boolean update;
public AccountSASPermission withUpdate(boolean update) {
this.update = update;
return this;
}

/**
* Permission to get and delete messages granted.
*/
public boolean processMessages;
public boolean processMessages() {
return processMessages;
}

/**
* Initializes an {@code AccountSASPermssion} object with all fields set to false.
* Permission to get and delete messages granted.
*/
public AccountSASPermission() {}
public AccountSASPermission withProcessMessages(boolean processMessages) {
this.processMessages = processMessages;
return this;
}

/**
* Converts the given permissions to a {@code String}. Using this method will guarantee the permissions are in an
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,57 @@
* the order of the resources is particular and this class guarantees correctness.
*/
public final class AccountSASResourceType {

private boolean service;

private boolean container;

private boolean object;

/**
* Permission to access service level APIs granted.
*/
public boolean service;
public boolean service() {
return service;
}

/**
* Permission to access service level APIs granted.
*/
public AccountSASResourceType withService(boolean service) {
this.service = service;
return this;
}

/**
* Permission to access container level APIs (Blob Containers, Tables, Queues, File Shares) granted.
*/
public boolean container() {
return container;
}

/**
* Permission to access container level APIs (Blob Containers, Tables, Queues, File Shares) granted.
*/
public boolean container;
public AccountSASResourceType withContainer(boolean container) {
this.container = container;
return this;
}

/**
* Permission to access object level APIs (Blobs, Table Entities, Queue Messages, Files) granted.
*/
public boolean object;
public boolean object() {
return object;
}

/**
* Permission to access object level APIs (Blobs, Table Entities, Queue Messages, Files) granted.
*/
public AccountSASResourceType withObject(boolean object) {
this.object = object;
return this;
}

/**
* Initializes an {@code AccountSASResourceType} object with all fields set to false.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,74 @@
* the order of the services is particular and this class guarantees correctness.
*/
public final class AccountSASService {

private boolean blob;

private boolean file;

private boolean queue;

private boolean table;

/**
* Permission to access blob resources granted.
*/
public boolean blob;
public boolean blob() {
return blob;
}

/**
* Permission to access blob resources granted.
*/
public AccountSASService withBlob(boolean blob) {
this.blob = blob;
return this;
}

/**
* Permission to access file resources granted.
*/
public boolean file;
public boolean file() {
return file;
}

/**
* Permission to access file resources granted.
*/
public AccountSASService withFile(boolean file) {
this.file = file;
return this;
}

/**
* Permission to access queue resources granted.
*/
public boolean queue() {
return queue;
}

/**
* Permission to access queue resources granted.
*/
public boolean queue;
public AccountSASService withQueue(boolean queue) {
this.queue = queue;
return this;
}

/**
* Permission to access table resources granted.
*/
public boolean table;
public boolean table() {
return table;
}

/**
* Permission to access table resources granted.
*/
public AccountSASService withTable(boolean table) {
this.table = table;
return this;
}

/**
* Initializes an {@code AccountSASService} object with all fields set to false.
Expand Down
Loading

0 comments on commit ebdc214

Please sign in to comment.