Skip to content

Commit

Permalink
S360 - insert missing API version. (Azure#13126)
Browse files Browse the repository at this point in the history
* S360 - insert missing API version.

Baseline commit, copy of 2018-04-01.

* Changes on top of 2018-04-01 baseline

Changes on top of 2018-04-01 baseline

* Update trafficmanager.json

Add minChildEndpointsIPv4 and minChildEndpointsIPv6 to2018-08-01

* Add nested endpoint example

Add nested endpoint example

* Correct folder for Profile-PUT-WithNestedEndpoints.json

Correct folder for Profile-PUT-WithNestedEndpoints.json

* Update Profile-PUT-WithNestedEndpoints.json

Prettier fix - whitespace

* Update Profile-PUT-WithNestedEndpoints.json

Fix missing curly brackets.

* Validation fixes

Add references to examples, remove body from 204 responses.

* Update trafficmanager.json

Model Validation Fix  - allowed endpoint record type added.
  • Loading branch information
allencal authored and mkarmark committed Jul 20, 2021
1 parent 9f4481a commit cf915bd
Show file tree
Hide file tree
Showing 36 changed files with 3,717 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "azuresdkfornetautoresttrafficmanager1421",
"profileName": "azsmnet6386",
"endpointType": "ExternalEndpoints",
"endpointName": "azsmnet7187",
"api-version": "2018-08-01"
},
"responses": {
"200": {
"body": ""
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "azuresdkfornetautoresttrafficmanager2191",
"profileName": "azuresdkfornetautoresttrafficmanager8224",
"endpointType": "ExternalEndpoints",
"endpointName": "My%20external%20endpoint",
"api-version": "2018-08-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint",
"name": "My external endpoint",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "foobar.contoso.com",
"weight": 1,
"priority": 1,
"geoMapping": [
"GEO-AS",
"GEO-AF"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "azuresdkfornetautoresttrafficmanager1421",
"profileName": "azsmnet6386",
"endpointType": "ExternalEndpoints",
"endpointName": "azsmnet7187",
"api-version": "2018-08-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
"name": "azsmnet7187",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "foobar.contoso.com",
"weight": 1,
"priority": 1,
"endpointLocation": "North Europe"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "azuresdkfornetautoresttrafficmanager2191",
"profileName": "azuresdkfornetautoresttrafficmanager8224",
"endpointType": "ExternalEndpoints",
"endpointName": "My%20external%20endpoint",
"api-version": "2018-08-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint",
"name": "My external endpoint",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "foobar.contoso.com",
"weight": 1,
"priority": 1,
"subnets": [
{
"first": "1.2.3.0",
"scope": 24
},
{
"first": "25.26.27.28",
"last": "29.30.31.32"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "azuresdkfornetautoresttrafficmanager1421",
"profileName": "azsmnet6386",
"endpointType": "ExternalEndpoints",
"endpointName": "azsmnet7187",
"api-version": "2018-08-01",
"parameters": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
"name": "azsmnet7187",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"target": "another.foobar.contoso.com"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
"name": "azsmnet7187",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "another.foobar.contoso.com",
"weight": 1,
"priority": 1,
"endpointLocation": "North Europe"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "azuresdkfornetautoresttrafficmanager1421",
"profileName": "azsmnet6386",
"endpointType": "ExternalEndpoints",
"endpointName": "azsmnet7187",
"api-version": "2018-08-01",
"parameters": {
"name": "azsmnet7187",
"type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
"properties": {
"target": "foobar.contoso.com",
"endpointStatus": "Enabled",
"endpointLocation": "North Europe",
"customHeaders": [
{
"name": "header-1",
"value": "value-1"
},
{
"name": "header-2",
"value": "value-2"
}
]
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
"name": "azsmnet7187",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "foobar.contoso.com",
"weight": 1,
"priority": 1,
"endpointLocation": "North Europe",
"customHeaders": [
{
"name": "header-1",
"value": "value-1"
},
{
"name": "header-2",
"value": "value-2"
}
]
}
}
},
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
"name": "azsmnet7187",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "foobar.contoso.com",
"weight": 1,
"priority": 1,
"endpointLocation": "North Europe",
"customHeaders": [
{
"name": "header-1",
"value": "value-1"
},
{
"name": "header-2",
"value": "value-2"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "azuresdkfornetautoresttrafficmanager2191",
"profileName": "azuresdkfornetautoresttrafficmanager8224",
"endpointType": "ExternalEndpoints",
"endpointName": "My%20external%20endpoint",
"api-version": "2018-08-01",
"parameters": {
"name": "My external endpoint",
"type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
"properties": {
"target": "foobar.contoso.com",
"endpointStatus": "Enabled",
"geoMapping": [
"GEO-AS",
"GEO-AF"
]
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint",
"name": "My external endpoint",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "foobar.contoso.com",
"weight": 1,
"priority": 1,
"geoMapping": [
"GEO-AS",
"GEO-AF"
]
}
}
},
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager2191/providers/Microsoft.Network/trafficManagerProfiles/azuresdkfornetautoresttrafficmanager8224/externalEndpoints/My external endpoint",
"name": "My external endpoint",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "foobar.contoso.com",
"weight": 1,
"priority": 1,
"geoMapping": [
"GEO-AS",
"GEO-AF"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "azuresdkfornetautoresttrafficmanager1421",
"profileName": "azsmnet6386",
"endpointType": "ExternalEndpoints",
"endpointName": "azsmnet7187",
"api-version": "2018-08-01",
"parameters": {
"name": "azsmnet7187",
"type": "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
"properties": {
"target": "foobar.contoso.com",
"endpointStatus": "Enabled",
"endpointLocation": "North Europe"
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
"name": "azsmnet7187",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "foobar.contoso.com",
"weight": 1,
"priority": 1,
"endpointLocation": "North Europe"
}
}
},
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
"name": "azsmnet7187",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"properties": {
"endpointStatus": "Enabled",
"endpointMonitorStatus": "CheckingEndpoint",
"target": "foobar.contoso.com",
"weight": 1,
"priority": 1,
"endpointLocation": "North Europe"
}
}
}
}
}
Loading

0 comments on commit cf915bd

Please sign in to comment.