-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add New Data Model RuleCollection to NetworkManager (#13827)
* Add New Data Model RuleCollection to NetworkManager * fix typo * test * test * Fix discriminator * fix type * Fix discriminator * Fix type * fix type * Fix type * Fix discriminator * Fix discriminator * fix type * fix type * Fix bug * Fix type * Fix format * Fix name * Fix name * fix spell * fix description * Fix spell * change to kind * fix lint * fix lint * fix lint * fix lint * fix lint * fix lint * Fix post body * Fix as comments * fix bug * fix bug * fix bug * fix bug * fix bug * fix bug * change rule kind * Fix as comments * Fix as comments * update lastest version * Update type * Update Skiptoken * Fix discription * Fix NG * Fix NG * add more example
- Loading branch information
Showing
56 changed files
with
3,037 additions
and
1,012 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
....Network/preview/2021-02-01-preview/examples/NetworkManagerAdminRuleCollectionDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"networkManagerName": "testNetworkManager", | ||
"configurationName": "myTestSecurityConfig", | ||
"ruleCollectionName": "testRuleCollection" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...oft.Network/preview/2021-02-01-preview/examples/NetworkManagerAdminRuleCollectionGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"networkManagerName": "testNetworkManager", | ||
"ruleCollectionName": "testRuleCollection", | ||
"configurationName": "myTestSecurityConfig" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", | ||
"name": "testRuleCollection", | ||
"type": "Microsoft.Network/networkManagers/securityAdminConfigurations/RuleCollections", | ||
"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" | ||
}, | ||
"properties": { | ||
"displayName": "testRuleCollection", | ||
"description": "A sample rule collection", | ||
"provisioningState": "Succeeded", | ||
"appliesToGroups": [ | ||
{ | ||
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...ft.Network/preview/2021-02-01-preview/examples/NetworkManagerAdminRuleCollectionList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01-preview", | ||
"subscriptionId": "subId", | ||
"resourceGroupName": "rg1", | ||
"networkManagerName": "testNetworkManager", | ||
"configurationName": "myTestSecurityConfig" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections/testRuleCollection", | ||
"name": "testRuleCollection", | ||
"type": "Microsoft.Network/networkManagers/securityAdminConfigurations/RuleCollections", | ||
"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" | ||
}, | ||
"properties": { | ||
"displayName": "testRuleCollection", | ||
"description": "A sample rule collection", | ||
"provisioningState": "Succeeded", | ||
"appliesToGroups": [ | ||
{ | ||
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"nextLink": "{baseurl}/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityAdminConfigurations/myTestSecurityConfig/ruleCollections?api-version=2021-02-01-preview&$skipToken=10" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.