Skip to content

Conversation

@lewu-msft
Copy link
Contributor

@lewu-msft lewu-msft commented May 10, 2018

For ADLS management plane, added vnet to read-only account properties. added test examples for each API. fixed some example links.

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

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@azuresdkciprbot
Copy link

AutoRest linter results for ARM Related Validation Errors/Warnings

These errors are reported by the ARM team's validation tools, reachout to ARM RP API Review directly for any questions or concerns.

File: specification/datalake-analytics/resource-manager/readme.md

⚠️0 new Warnings.(16 total)
0 new Errors.(0 total)

File: specification/datalake-store/resource-manager/readme.md

⚠️1 new Warnings.(10 total)
Code Id Source Message
TrackedResourceListByImmediateParent R3010 Link The child tracked resource, 'virtualNetworkRules' with immediate parent 'DataLakeStoreAccount', must have a list by immediate parent operation.
0 new Errors.(0 total)

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@azuresdkciprbot
Copy link

AutoRest linter results for SDK Related Validation Errors/Warnings

These errors are reported by the SDK team's validation tools, reachout to ADX Swagger Reviewers directly for any questions or concerns.

File: specification/datalake-analytics/resource-manager/readme.md

⚠️0 new Warnings.(12 total)
0 new Errors.(0 total)

File: specification/datalake-store/resource-manager/readme.md

⚠️1 new Warnings.(8 total)
Code Id Source Message
PutRequestResponseScheme R2017 Link A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'VirtualNetworkRules_CreateOrUpdate' Request Model: 'CreateOrUpdateVirtualNetworkRuleParameters' Response Model: 'VirtualNetworkRule'
0 new Errors.(0 total)

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

"$ref": "#/definitions/VirtualNetworkRule"
}
}
},
Copy link
Member

Choose a reason for hiding this comment

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

Is this a long running operation? if so model this operation as LRO.

"schema": {
"$ref": "#/definitions/VirtualNetworkRule"
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Is this a long running operation? if so model this operation as LRO.

"description": "The specified virtual network rule does not exist or was already deleted."
}
},
"x-ms-examples": {
Copy link
Member

Choose a reason for hiding this comment

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

Is this a long running operation? if so model this operation as LRO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks. these vnet rule APIs are not async, so I think no need to model as LRO.

@anuchandy anuchandy requested a review from ravbhatnagar May 11, 2018 00:12
@anuchandy anuchandy added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label May 11, 2018
@anuchandy
Copy link
Member

@ravbhatnagar can you please take a look, this PR introduces CRUD on network rules.

@lewu-msft
Copy link
Contributor Author

any more comments are appreciated. Thanks

"properties"
],
"properties": {
"name": {
Copy link
Contributor

Choose a reason for hiding this comment

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

name MUST come from the URL. It should not be present in the request body. In request body, it should be marked s readonly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like on the PUT of account, you are providing the option of creating a virtualNetworkRule. This is not supported. VirtualNetworkRule must be explicitly created by doing a PUT on this type. If needed, It can be referenced in the parent resource using the resourceId.

Choose a reason for hiding this comment

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

To the second comment, I agree that the most standard way is to only allow the nested resource creation/update through nested resource APIs. However in our service we are providing an additional way that users can also create/update nested resources through the top level resource APIs. This is more a historical thing from the very beginning of our service. For now I guess we still want to keep it to have the consistency with other nested resource types we already have. Going forward in the next major API version upgrade, I think we can consider to go the most standard way.

"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CreateOrUpdateVirtualNetworkRuleParameters"
Copy link
Contributor

Choose a reason for hiding this comment

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

The same model can be used between request and response by marking the appropriate properties as readonly if they are not allowed to be set in the request but are present in response.

Copy link
Contributor

Choose a reason for hiding this comment

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

@ravbhatnagar This is surely one way to design this. The design we took, however, was this type of model for all API requests. Changing it to your suggested model would create inconsistency. This is something that @lewu-msft can consider for a future design revamp.

Copy link
Contributor

Choose a reason for hiding this comment

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

It makes usability difficult from a client point of view. It makes the GET-PUT pipeline harder from the clients. I am fine with this if the SDK team is ok with this. @anuchandy FYI

@ravbhatnagar
Copy link
Contributor

Signing off. One major thing noted in the review was PUT on parent creating the child. This is an antipattern in ARM. But RP has this model for other resource types as well and would want to continue this. In the next api-version, RP should fix this.

@ravbhatnagar ravbhatnagar added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels May 18, 2018
@AutorestCI
Copy link

AutorestCI commented May 18, 2018

Automation for azure-sdk-for-node

A PR has been created for you:
Azure/azure-sdk-for-node#2881

@AutorestCI
Copy link

AutorestCI commented May 18, 2018

Automation for azure-libraries-for-java

A PR has been created for you:
AutorestCI/azure-libraries-for-java#175

@AutorestCI
Copy link

AutorestCI commented May 18, 2018

Automation for azure-sdk-for-python

A PR has been created for you:
Azure/azure-sdk-for-python#2589

@AutorestCI
Copy link

AutorestCI commented May 18, 2018

Automation for azure-sdk-for-go

A PR has been created for you:
Azure/azure-sdk-for-go#1876

@jianghaolu
Copy link
Contributor

@AutorestCI build azure-sdk-for-java

@AutorestCI
Copy link

I didn't understand your command:

build azure-sdk-for-java

in this context, sorry :(
This is what I can do:

  • rebuild
  • regenerate
  • help : this help message

4 similar comments
@AutorestCI
Copy link

I didn't understand your command:

build azure-sdk-for-java

in this context, sorry :(
This is what I can do:

  • rebuild
  • regenerate
  • help : this help message

@AutorestCI
Copy link

I didn't understand your command:

build azure-sdk-for-java

in this context, sorry :(
This is what I can do:

  • rebuild
  • regenerate
  • help : this help message

@AutorestCI
Copy link

I didn't understand your command:

build azure-sdk-for-java

in this context, sorry :(
This is what I can do:

  • rebuild
  • regenerate
  • help : this help message

@AutorestCI
Copy link

I didn't understand your command:

build azure-sdk-for-java

in this context, sorry :(
This is what I can do:

  • rebuild
  • regenerate
  • help : this help message

@AutorestCI
Copy link

I didn't understand your command:

build azure-sdk-for-java

in this context, sorry :(
This is what I can do:

  • rebuild
  • regenerate
  • help : this help message

@jianghaolu
Copy link
Contributor

@AutorestCI regenerate azure-sdk-for-java

@AutorestCI
Copy link

AutorestCI commented Oct 5, 2018

Automation for azure-sdk-for-java

Nothing to generate for azure-sdk-for-java

konrad-jamrozik pushed a commit to dhung-msft/azure-rest-api-specs that referenced this pull request Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants