Update ADL for firewall rule support and trusted id provider patch support.#897
Update ADL for firewall rule support and trusted id provider patch support.#897sarangan12 merged 5 commits intoAzure:masterfrom
Conversation
And add a new property called: firewallAllowAzureIps which is a switch that will also allow Azure originated IP addresses to have connectivity, even if those IPs are not in the FirewallRule list. Remove unused ErrorDetails from ADLA
Will need to add some tests for this since it appears there were no tests for this method.
| } | ||
| ], | ||
| "responses": { | ||
| "200": { |
There was a problem hiding this comment.
what happens in the case of failure? Don't you want a default response to return some kind of error?
There was a problem hiding this comment.
Is this a new requirement? My understanding is that if there is no default response defined, then we use the azure defined default response (see all of our other methods, almost none of them have a default defined).
| } | ||
| ], | ||
| "responses": { | ||
| "200": { |
There was a problem hiding this comment.
what happens in case of error? Do you want a default error response?
| } | ||
| ], | ||
| "responses": { | ||
| "200": { |
There was a problem hiding this comment.
You need to include the schema for the response, atlease an operationresponse similar to the one defined in compute.json
There was a problem hiding this comment.
I do include a response, this does not return an operation response, it will always either throw an error or return the firewall that it creates. This is not an LRO.
| "description": "Successfully deleted the specified firewall rule" | ||
| }, | ||
| "204": { | ||
| "description": "The specified firewall rule does not exist or was already deleted." |
There was a problem hiding this comment.
I believe you get 204 even when the rule exists. Then the SDKs must poll and eventually will get a 200 result. Am I wrong? If I am not, then the description must be changed to reflect that possibility also.
There was a problem hiding this comment.
Again, this is not an LRO, you will only get a 204 if the rule does not exist, you get a 200 if the rule was successfully deleted. This is a direct copy from our existing schema in ADLS.
| } | ||
| ], | ||
| "responses": { | ||
| "200": { |
| } | ||
| ], | ||
| "responses": { | ||
| "200": { |
| }, | ||
| "firewallAllowAzureIps": { | ||
| "type": "string", | ||
| "description": "The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall itself is disabled, this is not enforced.", |
There was a problem hiding this comment.
nitpick: 'itself' is not required
There was a problem hiding this comment.
Haha fair, removed :)
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the Data Lake Store account to which to add the trusted identity provider." | ||
| "description": "The name of the Data Lake Store account to which to add or replace the trusted identity provider." |
There was a problem hiding this comment.
This can be rephrased. "to which to add"
There was a problem hiding this comment.
I would like to keep the add/replace description, since it will replace the rule if it already exists. I took out the "to which" though, since it adds a lot of extra verbage :)
| } | ||
| ], | ||
| "responses": { | ||
| "200": { |
|
In arm-datalake-analytics/account/2016-11-01/swagger/account.json, Line 418 - Shouldn't the operation be named: StorageAccounts_Create instead of StorageAccounts_Add? Same comment applies to Line 713 also |
|
|
@sarangan12 answers to your questions on general swagger design: I don't have a justification, other than that it is shipped as a UUID today, and changing it is a breaking change. If it needs to be changed to a string for safety (for read-only properties), we can take an action item to do so during the next breaking change cycle. |
|
@sarangan12 and in regards to add vs. create, it should be add because the account must already exist, you are simply adding a reference to it underneath the ADLA account. |
|
Update:
Approving this |
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger