-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Adding VirtualWan Swagger #3204
Conversation
Automation for azure-libraries-for-javaA PR has been created for you: |
Automation for azure-sdk-for-nodeEncountered a Subprocess error: (azure-sdk-for-node)
Command: ['/usr/local/bin/autorest', '/tmp/tmpwzd1cpo0/rest/specification/network/resource-manager/readme.md', '--license-header=MICROSOFT_MIT_NO_VERSION', '--node-sdks-folder=/tmp/tmpwzd1cpo0/sdk', '--nodejs', '--use=@microsoft.azure/autorest.nodejs@^2.1.43'] AutoRest code generation utility [version: 2.0.4262; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
There is a new version of AutoRest available (2.0.4280).
> You can install the newer version with with npm install -g autorest@latest
Loading AutoRest core '/root/.autorest/@microsoft.azure_autorest-core@2.0.4278/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4278)
Loading AutoRest extension '@microsoft.azure/autorest.nodejs' (^2.1.43->2.1.59)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.44->2.3.44)
Shutting Down
Shutting Down
FATAL: nodejs/generate - FAILED
FATAL: Error: [Exception] AutoRest extension '@microsoft.azure/autorest.nodejs' terminated.
Process() cancelled due to exception : [Exception] AutoRest extension '@microsoft.azure/autorest.nodejs' terminated. |
Automation for azure-sdk-for-pythonA PR has been created for you: |
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
This is the original PR that was signed off by ARM team and the Azure-Rest-APi-Specs reviewer: https://github.com/Azure/azure-rest-api-specs-pr/pull/372 |
Automation for azure-sdk-for-goA PR has been created for you: |
@priyanag please review error in CI |
@priyanag there are still issues in CI. please ping me when they all would pass. |
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.
@priyanag - This has already been reviewed long back, correct? I am assuming this is just putting the APis in public repo? I took a quick glance and it looked ok. Please let me know if there is some delta between what was last reviewed or any specific areas you would like me to focus on. Otherwise looks fine. Just one minor note.
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration": { |
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.
action name not indicative of an action. Should it be something like listvpnSiteConfiguration etc.?
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.
Yes, this has already been reviewed and signed-off by ARM few months, now just making this public. Here is the PR that was signed off by ARM: https://github.com/Azure/azure-rest-api-specs-pr/pull/372
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.
By action-name are you referring to the operationId?
} | ||
} | ||
}, | ||
"GetVpnSitesConfigurationRequest": { |
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.
great, and now there will be linked access check on the vpnSites passed in the body?
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.
Yes
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.
virtualwan.json is an invalid JSON - please fix it first so that I can wrong further validations.
"$ref": "#/definitions/VpnConnection" | ||
}, | ||
"description": "Parameters supplied to create or Update a VPN Connection." | ||
}, |
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 the extra ','
"sharedKey": "key" | ||
} | ||
}, | ||
"202": { |
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.
"202" is not defined as a valid response for this operation.
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.
Also sample response for 201 is missing.
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.
Yes, we don't want 202 response. Only 200, 201 and default response.
@@ -0,0 +1,42 @@ | |||
{ | |||
"parameters": { |
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.
Missing required parameter "connectionName".
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.
Correcting
@@ -0,0 +1,14 @@ | |||
{ | |||
"parameters": { |
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.
Required parameter "connectionName" missing.
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.
Correcting
@@ -60,6 +60,7 @@ input-file: | |||
- Microsoft.Network/stable/2018-06-01/virtualNetworkGateway.json | |||
- Microsoft.Network/stable/2018-06-01/vmssNetworkInterface.json | |||
- Microsoft.Network/stable/2018-06-01/vmssPublicIpAddress.json | |||
- Microsoft.Network/stable/2018-06-01/virtualWan.json |
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.
should we sort this alphabetically? @jianghaolu, please confirm if so.
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 don't think it's necessary though if it seems more organized to service team then it would be nice to have.
Suppression in readme.md need to be updated to suppress "RequiredPropertiesMissingInResourceModel" errors in the added file. Please also run |
}, | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans": { | ||
"get": { | ||
"operationId": "VirtualWANs_ListBySubscriptionId", |
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.
@jianghaolu, is it common naming for now? As I remember previously it was ListByResourceGroup+List pair. Was this changed recently?
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.
No this should be `VirtualWANs_List". Good catch!
}, | ||
"nextLink": { | ||
"type": "string", | ||
"des |
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.
typo
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.
sorry, unable to figure out where?
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.
provisisoning -> provisioning
}, | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites": { | ||
"get": { | ||
"operationId": "VpnSites_ListBySubscriptionId", |
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.
Please rename to VpnSites_List
}, | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualHubs": { | ||
"get": { | ||
"operationId": "VirtualHubs_ListBySubscriptionId", |
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.
same as above
}, | ||
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways": { | ||
"get": { | ||
"operationId": "VpnGateways_ListBySubscriptionId", |
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.
same as above
"resourceGroupName": "rg1", | ||
"api-version": "2018-06-01", | ||
"subscriptionId": "subid", | ||
"VpnConnectionParameters": { |
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.
Should be "VpnConnectionParameters" because of https://github.com/Azure/azure-rest-api-specs/pull/3204/files#diff-87bfafdce3f0047871a27733d64bf461R1430
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.
Here: "vpnConnectionParameters"
@@ -0,0 +1,68 @@ | |||
{ |
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 don't see this example being referenced anywhere.
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.
Removing
"$ref": "#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"name": "VpnSiteParameters", |
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.
Some of your parameter names are camel cased, some are pascal cased. We recommend having the parameter names camel cased.
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.
Leaving them as is.
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.
Sure - but in the case of VpnConnections_CreateOrUpdate it's mismatching - the parameter name is vpnConnectionParameters but VpnConnectionParameters in the example
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.
Sure- fixing that. Also, as per the suggestion by @MikhailTryakhov changing the Api version to 2018-04-01 for this swagger and hence moving everything to 2018-04-01 folder.
Automation for azure-sdk-for-javaNothing to generate for azure-sdk-for-java |
@MikhailTryakhov @ravbhatnagar @jianghaolu - I am targeting to close this PR today. Kindly help with the review. :) |
Looks good. |
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.
Please provide autorest validator result, correct PR checklist "Validation tools were run...." and sign off that results are OK. Looks like CI doesn't contains this script anymore...
@MikhailTryakhov I'm not sure I understand what exactly you are looking for. Do you have an example? |
@jianghaolu example how to run autorest validator? it's: |
* Adding VirtualWan Swagger * Adding the CRUD Apis for VpnConnections * Updating VpnGateway examples * Fixing build errors * Addressing comments * Addressing comments and editing VpnConnection definition and corresponding examples * Addressing comments * Removing enableRateLimiting property * Addressing comments * Changing the version to 2018-04-01 version
…1) (#3261) * Added Network 2018-06-01; VM ref fix (#3118) * Init 2018-06-01 (copy from 2018-05-01) * Make VM reference in NIC readonly * Updated version in readme * New VPN Client Protocol (#3133) * Added new VPN protocol * indents * Add examples for Express Route Circuit APIs (#3182) * Add examples for Express Route Circuit APIs * Fix errors in expressRouteCircuit.json validations * Fix errors in validate examples for ExR Circuit * appgwv2 changes (#3192) * AppGW FIPS mode (#3202) * Release of Azure Networking Network-2018-06-01 branch (api-version 2018-04-01) * Adding VirtualWan Swagger (#3204) * Adding VirtualWan Swagger * Adding the CRUD Apis for VpnConnections * Updating VpnGateway examples * Fixing build errors * Addressing comments * Addressing comments and editing VpnConnection definition and corresponding examples * Addressing comments * Removing enableRateLimiting property * Addressing comments * Changing the version to 2018-04-01 version * Suppress ConnectionSharedKey model issue * Reverted extra-changes in readme
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-version
in the path should match theapi-version
in the spec).Quality of Swagger