-
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
Changes to add operation id for outbound rules #4320
Merged
sergey-shandar
merged 6 commits into
Azure:network-october-release
from
khannarhea:outboundRulesChange
Oct 29, 2018
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5bda11d
Changes to add operation id for outbound rules
khannarheams 6b3298b
Changes to make outbound rule similar to load balancing rule
khannarheams 03104c9
fix failures - add example json files
khannarheams fb76753
fix failures
khannarheams 419caac
Fixed line endings, specs, examples
EvgenyAgafonchikov a9023fb
Merge pull request #1 from EvgenyAgafonchikov/fix-lb
khannarhea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...rce-manager/Microsoft.Network/stable/2018-08-01/examples/LoadBalancerOutboundRuleGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "testrg", | ||
"loadBalancerName": "lb1", | ||
"outboundRuleName": "rule1", | ||
"api-version": "2018-08-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "rule1", | ||
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1", | ||
"etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"frontendIPConfigurations": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfrontend" | ||
} | ||
], | ||
"allocatedOutboundPorts": 64, | ||
"idleTimeoutInMinutes": 15, | ||
"protocol": "Tcp", | ||
"enableTcpReset": true, | ||
"backendAddressPool": { | ||
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bepool1" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...ce-manager/Microsoft.Network/stable/2018-08-01/examples/LoadBalancerOutboundRuleList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "testrg", | ||
"loadBalancerName": "lb1", | ||
"api-version": "2018-08-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "rule1", | ||
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/outboundRules/rule1", | ||
"etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"frontendIPConfigurations": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfrontend" | ||
} | ||
], | ||
"allocatedOutboundPorts": 64, | ||
"idleTimeoutInMinutes": 15, | ||
"protocol": "Tcp", | ||
"enableTcpReset": true, | ||
"backendAddressPool": { | ||
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb1/backendAddressPools/bepool1" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You should include a 'default' response for all error cases, example: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2015-08-31-preview/ManagedIdentity.json
This should be addressed across your entire Swagger spec though. Please include this in your next PR.
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, I will address it in the next PR - Tracking item - https://trello.com/c/HrzSc9bZ/69-include-a-default-response-for-all-error-cases