Skip to content

Commit

Permalink
Add Network Profile swagger and examples (#3806)
Browse files Browse the repository at this point in the history
* add network profile swagger and examples

* add x-ms-client-flatten property as per feedback

* appease travis by fixing model + examples
  • Loading branch information
Flip-Liquid authored and lmazuel committed Sep 7, 2018
1 parent a3b4803 commit cc47342
Show file tree
Hide file tree
Showing 9 changed files with 1,220 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"parameters": {
"api-version": "2018-08-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"networkProfileName": "networkProfile1",
"location": "westus",
"parameters": {
"properties": {
"containerNetworkInterfaceConfigurations": [
{
"name": "eth1",
"properties": {
"ipConfigurations": [
{
"name": "ipconfig1",
"properties": {
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1"
}
}
}
]
}
}
]
}
}
},
"responses": {
"200": {
"body": {
"name": "networkProfile1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"type": "Microsoft.Network/networkProfiles",
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf",
"containerNetworkInterfaceConfigurations": [
{
"name": "eth1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"properties": {
"provisioningState": "Succeeded",
"ipConfigurations": [
{
"name": "ipconfig1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfig1",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations",
"properties": {
"provisioningState": "Succeeded",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1"
}
}
}
]
},
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations"
}
],
"containerNetworkInterfaces": []
}
}
},
"201": {
"body": {
"name": "networkProfile1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"type": "Microsoft.Network/networkProfiles",
"location": "westus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf",
"containerNetworkInterfaceConfigurations": [
{
"name": "eth1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"properties": {
"provisioningState": "Succeeded",
"ipConfigurations": [
{
"name": "ipconfig1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfig1",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations",
"properties": {
"provisioningState": "Succeeded",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1"
}
}
}
]
},
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations"
}
],
"containerNetworkInterfaces": []
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"api-version": "2018-08-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"networkProfileName": "networkProfile1"
},
"responses": {
"204": { }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"parameters": {
"api-version": "2018-08-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"networkProfileName": "networkProfile1"
},
"responses": {
"200": {
"body": {
"name": "networkProfile1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"type": "Microsoft.Network/networkProfiles",
"location": "centraluseuap",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "1570d8b6-ab8a-4ad2-81d6-d2799b429cbf",
"containerNetworkInterfaceConfigurations": [
{
"name": "eth0",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"properties": {
"provisioningState": "Succeeded",
"ipConfigurations": [
{
"name": "ipconfigprofile1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile1",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations",
"properties": {
"provisioningState": "Succeeded",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1"
}
}
},
{
"name": "ipconfigprofile2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth0/ipConfigurations/ipconfigprofile2",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations",
"properties": {
"provisioningState": "Succeeded",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1"
}
}
}
]
},
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations"
},
{
"name": "eth1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"properties": {
"provisioningState": "Succeeded",
"ipConfigurations": [
{
"name": "ipconfigprofile3",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkProfiles/networkProfile1/containerNetworkInterfaceConfigurations/eth1/ipConfigurations/ipconfigprofile3",
"etag": "W/\"4d705a71-752f-4e0a-8057-c02b125b1c08\"",
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations/ipConfigurations",
"properties": {
"provisioningState": "Succeeded",
"subnet": {
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1"
}
}
}
]
},
"type": "Microsoft.Network/networkProfiles/containerNetworkInterfaceConfigurations"
}
],
"containerNetworkInterfaces": []
}
}
}
}
}
Loading

0 comments on commit cc47342

Please sign in to comment.