Skip to content

Conversation

@jianghaolu
Copy link
Contributor

@jianghaolu jianghaolu commented Sep 3, 2019

All generated by AutoRest. For Azure/azure-rest-api-specs#7081.

@ExpectedResponses({201})
@UnexpectedResponseExceptionType(StorageErrorException.class)
Mono<SharesCreatePermissionResponse> createPermission(@PathParam("shareName") String shareName, @HostParam("url") String url, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @QueryParam("restype") String restype, @QueryParam("comp") String comp, Context context);
Mono<SharesCreatePermissionResponse> createPermission(@PathParam("shareName") String shareName, @HostParam("url") String url, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @BodyParam("application/json; charset=utf-8") SharePermission sharePermission, @QueryParam("restype") String restype, @QueryParam("comp") String comp, Context context);
Copy link
Contributor Author

@jianghaolu jianghaolu Sep 3, 2019

Choose a reason for hiding this comment

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

This is how to tell RestProxy to send JSON. Response deserialization is smarter - it will use JSON or XML parser by peeking into the response body. (not really) For GetPermission() response header must be correctly set by the server.

@jianghaolu jianghaolu merged commit c58d822 into Azure:master Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants