-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update Storage to azure-core preview 3 #4489
Update Storage to azure-core preview 3 #4489
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, just a few important questions.
storage/client/blob/src/main/java/com/azure/storage/blob/implementation/AppendBlobsImpl.java
Outdated
Show resolved
Hide resolved
storage/client/blob/src/main/java/com/azure/storage/blob/implementation/BlobsImpl.java
Outdated
Show resolved
Hide resolved
storage/client/blob/src/main/java/com/azure/storage/blob/implementation/BlobsImpl.java
Outdated
Show resolved
Hide resolved
storage/client/blob/src/main/java/com/azure/storage/blob/implementation/BlockBlobsImpl.java
Outdated
Show resolved
Hide resolved
storage/client/blob/src/main/java/com/azure/storage/blob/implementation/PageBlobsImpl.java
Outdated
Show resolved
Hide resolved
storage/client/blob/src/main/java/com/azure/storage/blob/implementation/PageBlobsImpl.java
Outdated
Show resolved
Hide resolved
...lient/blob/src/main/java/com/azure/storage/blob/implementation/SignedIdentifiersWrapper.java
Outdated
Show resolved
Hide resolved
storage/client/blob/src/main/java/com/azure/storage/blob/models/BlobHierarchyListSegment.java
Show resolved
Hide resolved
storage/client/blob/src/main/java/com/azure/storage/blob/models/package-info.java
Outdated
Show resolved
Hide resolved
storage/client/queue/src/main/java/com/azure/storage/queue/models/PeekedMessageItem.java
Outdated
Show resolved
Hide resolved
Thanks for catching all the manual fixes - I'll fix up the swagger in this repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All @ServiceInterface
annotations should have a name that is more descriptive, for when it is used with tracing, telemetry, etc.
*/ | ||
public HttpPipeline httpPipeline() { | ||
return this.httpPipeline; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though this is not public API I'll ask anyway: is this required to be exposed? I would suggest removing it until it is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used at
Line 61 in 593ebf2
this.service = RestProxy.create(AppendBlobsService.class, client.httpPipeline()); |
storage/client/blob/src/main/java/com/azure/storage/blob/implementation/ServicesImpl.java
Outdated
Show resolved
Hide resolved
storage/client/file/src/main/java/com/azure/storage/file/implementation/DirectorysImpl.java
Outdated
Show resolved
Hide resolved
storage/client/file/src/main/java/com/azure/storage/file/implementation/ServicesImpl.java
Outdated
Show resolved
Hide resolved
*/ | ||
public HttpPipeline httpPipeline() { | ||
return this.httpPipeline; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unless required.
* Enum value only. | ||
*/ | ||
ONLY("only"); | ||
INCLUDE("include"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An enum with only one built-in value type? Is it required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is generated from Swagger.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -84,7 +86,7 @@ public ShareProperties etag(String etag) { | |||
* | |||
* @return the quota value. | |||
*/ | |||
public int quota() { | |||
public long quota() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm noticing that ShareGetPropertiesHeaders
had reference types for Integer and Long, whereas this class has primitive types for int and long. Is this intentional? Can we standardise?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the generated code, currently we are generating boxed types if the Swagger defines it as optional - we don't want to throw NullPointerException in our deserialization. The convenience layer can make intelligent defaults but that cannot be automated in the generator.
…-for-java into storage-swagger
…-for-java into storage-swagger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, let's get this in to unblock some other PR! 😄
storage/client/file/src/main/java/com/azure/storage/file/implementation/FilesImpl.java
Outdated
Show resolved
Hide resolved
storage/client/file/src/main/java/com/azure/storage/file/implementation/FilesImpl.java
Outdated
Show resolved
Hide resolved
storage/client/file/src/main/java/com/azure/storage/file/implementation/DirectorysImpl.java
Outdated
Show resolved
Hide resolved
storage/client/file/src/main/java/com/azure/storage/file/implementation/SharesImpl.java
Outdated
Show resolved
Hide resolved
…-for-java into storage-swagger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change the FileService -> FileStorage and QueueService -> QueueStorage in auto-gen layer
* Storage SAS implementation (Azure#4404) * SAS implementation * Fixed some minor formatting issues * Fixed checkstyle problems and test issue * Remove RawClients from Blobs (Azure#4375) Removes RawClients from Storage Blobs * Add deleteContainer to StorageClient and getBlobClient with Snapshot to ContainerClient (Azure#4376) * Removed raw clients * Added deleteContainer to StorageClient * Added getAppendBlob with snapshot to ContainerClient * Storage queue linting, builder refactor, tests (Azure#4383) * Initial check in for storage queue * Initial checkin for Storage file (Azure#4414) * Finished the restructure, refactor builder. Added sleep in record feature. Linting * Merge Storage Blob Client Builders (Azure#4468) Merges AppendBlobClientBuilder, BlobClientBuilder, BlockBlobClientBuilder, and PageBlobClientBuilder into a single builder class BlobClientBuilder. Additionally, JavaDoc comments for the other builder classes, ContainerClientBuilder and StorageAccountClientBuilder, were cleaned up and the way the endpoint is handled in builders was changed.
@@ -32,7 +31,7 @@ public String url() { | |||
* @param url the url value. | |||
* @return the service client itself. | |||
*/ | |||
AzureBlobStorageImpl url(String url) { | |||
AzureBlobStorageImpl setUrl(String url) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this is no longer fluent, we should no longer return this
.
…ate serializer directly with the JacksonAdapter. Tests that failed after functionality was removed from HttpHeaders now pass with the new HttpHeaderSerializer. (Azure#4597)
…Azure#4589) * add MethodName rule to disable builder as a method name and update issues
…-for-java into storage-swagger
Moving back to #4482. |
Migrated from #4482