Skip to content

Commit

Permalink
Add IPAM, VNV, update Security Admin and Vnet specs (#30560)
Browse files Browse the repository at this point in the history
* Add IPAM, VNV, update Security Admin and Vnet specs

* adminrule error

* adding suppressions

* suppression spacing

* space issue

* another space update

* the issue was 2024-03 readme and not 2024-05

* adding suppressions

* removing location headers

* reverting location header changes for delete

* Update sdk-suppressions.yaml

* mark networkManagerScopeAccess as an optional property

* update go breaking suppressions

---------

Co-authored-by: kazrael2119 <[email protected]>
Co-authored-by: Chenjie Shi <[email protected]>
  • Loading branch information
3 people authored Sep 27, 2024
1 parent f4d3ecc commit 59bd02e
Show file tree
Hide file tree
Showing 36 changed files with 4,053 additions and 78 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"title": "Create/Update the Pool resource",
"parameters": {
"api-version": "2024-05-01",
"subscriptionId": "11111111-1111-1111-1111-111111111111",
"resourceGroupName": "rg1",
"networkManagerName": "TestNetworkManager",
"poolName": "TestPool",
"body": {
"location": "eastus",
"properties": {
"description": "Test description.",
"parentPoolName": "",
"addressPrefixes": [
"10.0.0.0/24"
]
}
}
},
"responses": {
"200": {
"body": {
"name": "TestPool",
"type": "Microsoft.Network/networkManagers/ipamPools",
"properties": {
"description": "Test description.",
"ipAddressType": [
"IPv4"
],
"parentPoolName": "",
"addressPrefixes": [
"10.0.0.0/24"
],
"provisioningState": "Updating"
},
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool",
"tags": {},
"location": "eastus",
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"createdByType": "User",
"createdAt": "2021-01-11T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-11T18:52:27Z"
}
}
},
"201": {
"body": {
"name": "TestPool",
"type": "Microsoft.Network/networkManagers/ipamPools",
"properties": {
"description": "Test description.",
"ipAddressType": [
"IPv4"
],
"parentPoolName": "",
"addressPrefixes": [
"10.0.0.0/24"
],
"provisioningState": "Succeeded"
},
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool",
"tags": {},
"location": "eastus",
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"createdByType": "User",
"createdAt": "2021-01-11T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-11T18:52:27Z"
}
},
"headers": {
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/locations/eastus/ipamPoolOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Delete the Pool resource",
"parameters": {
"api-version": "2024-05-01",
"subscriptionId": "11111111-1111-1111-1111-111111111111",
"resourceGroupName": "rg1",
"networkManagerName": "TestNetworkManager",
"poolName": "TestPool"
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/locations/eastus/ipamPoolOperationResults/00000000-0000-0000-0000-000000000000?api-version=2024-05-01"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"title": "Gets the specific Pool resource",
"parameters": {
"api-version": "2024-05-01",
"subscriptionId": "11111111-1111-1111-1111-111111111111",
"resourceGroupName": "rg1",
"networkManagerName": "TestNetworkManager",
"poolName": "TestPool"
},
"responses": {
"200": {
"body": {
"name": "TestPool",
"type": "Microsoft.Network/networkManagers/ipamPools",
"properties": {
"description": "Test description.",
"ipAddressType": [
"IPv4"
],
"parentPoolName": "",
"addressPrefixes": [
"10.0.0.0/24"
],
"provisioningState": "Succeeded"
},
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool",
"tags": {},
"location": "eastus",
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"createdByType": "User",
"createdAt": "2021-01-11T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-11T18:52:27Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"title": "Get the Pool Usage",
"parameters": {
"api-version": "2024-05-01",
"subscriptionId": "11111111-1111-1111-1111-111111111111",
"resourceGroupName": "rg1",
"networkManagerName": "TestNetworkManager",
"poolName": "TestPool"
},
"responses": {
"200": {
"body": {
"addressPrefixes": [
"10.0.0.0/8",
"192.0.0.0/8"
],
"childPools": [
{
"resourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool1",
"addressPrefixes": [
"10.0.2.0/26"
]
},
{
"resourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool2",
"addressPrefixes": [
"10.0.3.0/26"
]
}
],
"allocatedAddressPrefixes": [
"10.0.2.0/26",
"10.0.3.0/26"
],
"reservedAddressPrefixes": [
"10.0.0.0/24"
],
"availableAddressPrefixes": [
"10.0.1.0/24",
"10.0.2.64/26",
"10.0.2.128/25",
"10.0.3.64/26",
"10.0.3.128/25",
"10.0.4.0/22",
"10.0.8.0/21",
"10.0.16.0/20",
"10.0.32.0/19",
"10.0.64.0/18",
"10.0.128.0/17",
"10.1.0.0/16",
"10.2.0.0/15",
"10.4.0.0/14",
"10.8.0.0/13",
"10.16.0.0/12",
"10.32.0.0/11",
"10.64.0.0/10",
"10.128.0.0/9",
"192.0.0.0/8"
],
"totalNumberOfIPAddresses": "33554432",
"numberOfAllocatedIPAddresses": "128",
"numberOfReservedIPAddresses": "256",
"numberOfAvailableIPAddresses": "33554048"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"title": "Gets list of Pool resources at Network Manager level",
"parameters": {
"api-version": "2024-05-01",
"subscriptionId": "11111111-1111-1111-1111-111111111111",
"resourceGroupName": "rg1",
"networkManagerName": "TestNetworkManager"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "TestPool",
"type": "Microsoft.Network/networkManagers/ipamPools",
"properties": {
"description": "Test description.",
"ipAddressType": [
"IPv4"
],
"parentPoolName": "",
"addressPrefixes": [
"10.0.0.0/24"
],
"provisioningState": "Succeeded"
},
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool",
"tags": {},
"location": "eastus",
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"createdByType": "User",
"createdAt": "2021-01-11T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-11T18:52:27Z"
}
}
],
"nextLink": "{baseurl}/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools?api-version=2024-05-01&$skipToken=10"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": "List Associated Resource in the Pool",
"parameters": {
"api-version": "2024-05-01",
"subscriptionId": "11111111-1111-1111-1111-111111111111",
"resourceGroupName": "rg1",
"networkManagerName": "TestNetworkManager",
"poolName": "TestPool"
},
"responses": {
"200": {
"body": {
"value": [
{
"resourceId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/testVnet",
"poolId": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool",
"description": "",
"addressPrefixes": [
"10.0.0.0/24"
],
"reservedPrefixes": [],
"totalNumberOfIPAddresses": "256",
"numberOfReservedIPAddresses": "0",
"createdAt": "2020-09-09T20:00:00.0000000Z",
"reservationExpiresAt": null
}
],
"nextLink": "{baseurl}/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/listAssociatedResources?api-version=2024-05-01"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"title": "Updates the specific Pool resource",
"parameters": {
"api-version": "2024-05-01",
"subscriptionId": "11111111-1111-1111-1111-111111111111",
"resourceGroupName": "rg1",
"networkManagerName": "TestNetworkManager",
"poolName": "TestPool",
"parameters": {
"properties": {
"description": "Test description.",
"displayName": "TestPool"
}
}
},
"responses": {
"200": {
"body": {
"name": "TestPool",
"type": "Microsoft.Network/networkManagers/ipamPools",
"properties": {
"description": "Test description.",
"ipAddressType": [
"IPv4"
],
"parentPoolName": "test-ipam-pool",
"addressPrefixes": [
"10.0.0.0/24"
],
"provisioningState": "Succeeded"
},
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/TestNetworkManager/ipamPools/TestPool",
"tags": {},
"location": "eastus",
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"createdByType": "User",
"createdAt": "2021-01-11T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-11T18:52:27Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/rules/SampleAdminRule",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection/rules/SampleAdminRule",
"type": "Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules",
"name": "SampleAdminRule",
"kind": "Custom",
Expand Down Expand Up @@ -125,4 +125,3 @@
}
}
}

Loading

0 comments on commit 59bd02e

Please sign in to comment.