Skip to content

Commit

Permalink
Add IpAllocation resource for Hypernet IP management. (#8701)
Browse files Browse the repository at this point in the history
* Add IpAllocation resource for Hypernet IP management.

* Fix path issue.

* Fix some issues by PR comments.

* Fix document issue.

* Fix reference with SubResource.

* Fix IpAllocation tags name issue.

* Add patch operation to IpAllocation resource.

* Fix spell issue with pretter.
  • Loading branch information
liuh-80 authored Mar 27, 2020
1 parent 2f535f4 commit dc1a1f0
Show file tree
Hide file tree
Showing 10 changed files with 691 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ hybridconnection
hybriddata
hybriddatamanager
Hyperdrive
Hypernet
Hyperscale
hyperv
Iaas
Expand Down Expand Up @@ -689,13 +690,15 @@ iothub
iothubprovisioningservices
iotspaces
iotspacesservice
ipam
ipconfig
ipconfiguration
ipconfigurations
ipfilterrules
Ipsec
ipssl
ipgroups
IPAM
iscloneable
Iscsi
iscsiservers
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"ipAllocationName": "test-ipallocation",
"parameters": {
"properties": {
"type": "Hypernet",
"prefix": "3.2.5.0/24",
"allocationTags": {
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"
}
},
"location": "centraluseuap"
}
},
"responses": {
"200": {
"body": {
"name": "test-ipallocation",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation",
"type": "Microsoft.Network/IpAllocations",
"location": "centraluseuap",
"properties": {
"type": "Hypernet",
"prefix": "3.2.5.0/24",
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f",
"allocationTags": {
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"
}
}
}
},
"201": {
"body": {
"name": "test-ipallocation",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation",
"type": "Microsoft.Network/IpAllocations",
"location": "centraluseuap",
"properties": {
"type": "Hypernet",
"prefix": "3.2.5.0/24",
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f",
"allocationTags": {
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"ipAllocationName": "test-ipallocation"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"ipAllocationName": "test-ipallocation"
},
"responses": {
"200": {
"body": {
"name": "test-ipallocation",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation",
"type": "Microsoft.Network/IpAllocations",
"location": "centraluseuap",
"properties": {
"type": "Hypernet",
"prefix": "3.2.5.0/24",
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f",
"allocationTags": {
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "test-ipallocation1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation1",
"type": "Microsoft.Network/IpAllocations",
"location": "centraluseuap",
"properties": {
"type": "Hypernet",
"prefix": "3.2.5.0/24",
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f",
"allocationTags": {
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"
}
}
},
{
"name": "test-ipallocation2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation2",
"type": "Microsoft.Network/IpAllocations",
"location": "centraluseuap",
"properties": {
"type": "Hypernet",
"prefix": "3.2.6.0/24",
"ipamAllocationId": "57dc7256-2ff7-43f2-b9c8-85a70b5c6408",
"allocationTags": {
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet2"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "test-ipallocation1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation1",
"type": "Microsoft.Network/IpAllocations",
"location": "centraluseuap",
"properties": {
"type": "Hypernet",
"prefix": "3.2.5.0/24",
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f",
"allocationTags": {
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"
}
}
},
{
"name": "test-ipallocation2",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation2",
"type": "Microsoft.Network/IpAllocations",
"location": "centraluseuap",
"properties": {
"type": "Hypernet",
"prefix": "3.2.6.0/24",
"ipamAllocationId": "57dc7256-2ff7-43f2-b9c8-85a70b5c6408",
"allocationTags": {
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet2"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1",
"ipAllocationName": "test-ipallocation",
"location": "centraluseuap",
"parameters": {
"tags": {
"tag1": "value1",
"tag2": "value2"
}
}
},
"responses": {
"200": {
"body": {
"name": "test-ipallocation",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/IpAllocations/test-ipallocation",
"type": "Microsoft.Network/IpAllocations",
"location": "centraluseuap",
"tags": {
"tag1": "value1",
"tag2": "value2"
},
"properties": {
"type": "Hypernet",
"prefix": "3.2.5.0/24",
"ipamAllocationId": "916d3b28-663f-448b-9abc-1bea9d5fed8f",
"allocationTags": {
"VNetID": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1"
}
}
}
}
}
}
Loading

0 comments on commit dc1a1f0

Please sign in to comment.