Skip to content
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

Copy App Gateway Examples from 2018-01-01 to 2018-02-01 #2822

Merged
merged 10 commits into from
Apr 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
"ApplicationGateways"
],
"operationId": "ApplicationGateways_Delete",
"x-ms-examples": {
"Delete ApplicationGateway": {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Spaces are not recommended as json keys,
consider naming this as Delete ApplicationGateway
This applies to all examples here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this a new change? Every example name we have across all our specs have spaces in them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not a new change, but moving forward it would be nice :) won't block on this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, thanks. I'll look at doing this in April or May version. Thanks!

"$ref": "./examples/ApplicationGatewayDelete.json"
}
},
"description": "Deletes the specified application gateway.",
"parameters": [
{
Expand Down Expand Up @@ -81,6 +86,11 @@
"ApplicationGateways"
],
"operationId": "ApplicationGateways_Get",
"x-ms-examples": {
"Get ApplicationGateway": {
"$ref": "./examples/ApplicationGatewayGet.json"
}
},
"description": "Gets the specified application gateway.",
"parameters": [
{
Expand Down Expand Up @@ -118,6 +128,11 @@
"ApplicationGateways"
],
"operationId": "ApplicationGateways_CreateOrUpdate",
"x-ms-examples": {
"Create Application Gateway": {
"$ref": "./examples/ApplicationGatewayCreate.json"
}
},
"description": "Creates or updates the specified application gateway.",
"parameters": [
{
Expand Down Expand Up @@ -171,6 +186,11 @@
"ApplicationGateways"
],
"operationId": "ApplicationGateways_UpdateTags",
"x-ms-examples": {
"Update Application Gateway tags": {
"$ref": "./examples/ApplicationGatewayUpdateTags.json"
}
},
"description": "Updates the specified application gateway tags.",
"parameters": [
{
Expand Down Expand Up @@ -211,9 +231,6 @@
}
}
},
"x-ms-examples": {
"Update Application Gateway tags": { "$ref": "./examples/ApplicationGatewayUpdateTags.json" }
},
"x-ms-long-running-operation": true
}
},
Expand All @@ -223,6 +240,11 @@
"ApplicationGateways"
],
"operationId": "ApplicationGateways_List",
"x-ms-examples": {
"Lists all application gateways in a resource group": {
"$ref": "./examples/ApplicationGatewayList.json"
}
},
"description": "Lists all application gateways in a resource group.",
"parameters": [
{
Expand Down Expand Up @@ -258,6 +280,11 @@
"ApplicationGateways"
],
"operationId": "ApplicationGateways_ListAll",
"x-ms-examples": {
"Lists all application gateways in a subscription": {
"$ref": "./examples/ApplicationGatewayListAll.json"
}
},
"description": "Gets all the application gateways in a subscription.",
"parameters": [
{
Expand Down Expand Up @@ -286,6 +313,11 @@
"ApplicationGateways"
],
"operationId": "ApplicationGateways_Start",
"x-ms-examples": {
"Start Application Gateway": {
"$ref": "./examples/ApplicationGatewayStart.json"
}
},
"description": "Starts the specified application gateway.",
"parameters": [
{
Expand Down Expand Up @@ -326,6 +358,11 @@
"ApplicationGateways"
],
"operationId": "ApplicationGateways_Stop",
"x-ms-examples": {
"Stop Application Gateway": {
"$ref": "./examples/ApplicationGatewayStop.json"
}
},
"description": "Stops the specified application gateway in a resource group.",
"parameters": [
{
Expand Down Expand Up @@ -367,6 +404,11 @@
],
"operationId": "ApplicationGateways_BackendHealth",
"description": "Gets the backend health of the specified application gateway in a resource group.",
"x-ms-examples": {
"Get Backend Health": {
"$ref": "./examples/ApplicationGatewayBackendHealthGet.json"
}
},
"parameters": [
{
"name": "resourceGroupName",
Expand Down Expand Up @@ -416,6 +458,11 @@
"ApplicationGateways"
],
"operationId": "ApplicationGateways_ListAvailableWafRuleSets",
"x-ms-examples": {
"Get Available Waf Rule Sets": {
"$ref": "./examples/ApplicationGatewayAvailableWafRuleSetsGet.json"
}
},
"description": "Lists all available web application firewall rule sets.",
"parameters": [
{
Expand All @@ -442,7 +489,9 @@
],
"operationId": "ApplicationGateways_ListAvailableSslOptions",
"x-ms-examples": {
"ApplicationGatewayAvailableSslOptionsGet": { "$ref": "./examples/ApplicationGatewayAvailableSslOptionsGet.json" }
"Get Available Ssl Options": {
"$ref": "./examples/ApplicationGatewayAvailableSslOptionsGet.json"
}
},
"description": "Lists available Ssl options for configuring Ssl policy.",
"parameters": [
Expand Down Expand Up @@ -470,7 +519,9 @@
],
"operationId": "ApplicationGateways_ListAvailableSslPredefinedPolicies",
"x-ms-examples": {
"ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet": { "$ref": "./examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json" }
"Get Available Ssl Predefined Policies": {
"$ref": "./examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
Expand Down Expand Up @@ -501,7 +552,9 @@
],
"operationId": "ApplicationGateways_GetSslPredefinedPolicy",
"x-ms-examples": {
"ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet": { "$ref": "./examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json" }
"Get Available Ssl Predefined Policy by name": {
"$ref": "./examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json"
}
},
"description": "Gets Ssl predefined policy with the specified policy name.",
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "OWASP_3.0",
"id": "/subscriptions//resourceGroups//providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets/",
"type": "Microsoft.Network/applicationGatewayAvailableWafRuleSets",
"properties": {
"provisioningState": "Succeeded",
"ruleSetType": "OWASP",
"ruleSetVersion": "3.0",
"ruleGroups": [
{
"ruleGroupName": "General",
"description": "",
"rules": [
{
"ruleId": 200004,
"description": "Possible Multipart Unmatched Boundary."
}
]
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"parameters": {
"api-version": "2018-02-01",
"subscriptionId": "subid",
"resourceGroupName": "appgw",
"applicationGatewayName": "appgw"
},
"responses": {
"200": {
"body": {
"backendAddressPools": [
{
"backendAddressPool": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool"
},
"backendHttpSettingsCollection": [
{
"backendHttpSettings": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings"
},
"servers": [
{
"address": "10.220.1.8",
"health": "Up"
}
]
}
]
},
{
"backendAddressPool": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFPool"
},
"backendHttpSettingsCollection": [
{
"backendHttpSettings": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings"
},
"servers": [
{
"address": "10.220.1.4",
"health": "Up"
},
{
"address": "10.220.1.5",
"health": "Up"
}
]
}
]
}
]
}
},
"202": {}
}
}
Loading