Skip to content

Commit 4cb2f54

Browse files
authored
Merge pull request #705 from danlope/feature-avnm-udr
Add Routing type to AVNM post-commit
2 parents c809972 + a313a5d commit 4cb2f54

File tree

4 files changed

+146
-0
lines changed

4 files changed

+146
-0
lines changed

Commands/network/manager/_post-commit.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ Post a Network Manager Commit.
2525
```bash
2626
network manager post-commit --network-manager-name "testNetworkManager" --commit-type "SecurityAdmin" --configuration-ids "/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityConfigurations/SampleSecurityConfig" --target-locations "eastus" --resource-group "resoureGroupSample"
2727
```
28+
29+
### [2024-05-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL25ldHdvcmttYW5hZ2Vycy97fS9jb21taXQ=/2024-05-01.xml) **Stable**
30+
31+
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkmanagers/{}/commit 2024-05-01 -->
32+
33+
#### examples
34+
35+
- Post Azure Virtual Network Manager Commit
36+
```bash
37+
network manager post-commit --network-manager-name "testNetworkManager" --commit-type "SecurityAdmin" --configuration-ids "/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityConfigurations/SampleSecurityConfig" --target-locations "eastus" --resource-group "resoureGroupSample"
38+
```

Commands/tree.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131394,6 +131394,24 @@
131394131394
"version": "2024-01-01-preview"
131395131395
}
131396131396
]
131397+
},
131398+
{
131399+
"examples": [
131400+
{
131401+
"commands": [
131402+
"network manager post-commit --network-manager-name \"testNetworkManager\" --commit-type \"SecurityAdmin\" --configuration-ids \"/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityConfigurations/SampleSecurityConfig\" --target-locations \"eastus\" --resource-group \"resoureGroupSample\""
131403+
],
131404+
"name": "Post Azure Virtual Network Manager Commit"
131405+
}
131406+
],
131407+
"name": "2024-05-01",
131408+
"resources": [
131409+
{
131410+
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkmanagers/{}/commit",
131411+
"plane": "mgmt-plane",
131412+
"version": "2024-05-01"
131413+
}
131414+
]
131397131415
}
131398131416
]
131399131417
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkmanagers/{}/commit", "version": "2024-05-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrTWFuYWdlcnMve25ldHdvcmtNYW5hZ2VyTmFtZX0vY29tbWl0/V/MjAyNC0wNS0wMQ=="}], "commandGroups": [{"name": "network manager", "commands": [{"name": "post-commit", "version": "2024-05-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkmanagers/{}/commit", "version": "2024-05-01", "swagger": "mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrTWFuYWdlcnMve25ldHdvcmtNYW5hZ2VyTmFtZX0vY29tbWl0/V/MjAyNC0wNS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.networkManagerName", "options": ["n", "name", "network-manager-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the network manager."}, "format": {"pattern": "^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Parameters", "args": [{"type": "string", "var": "$parameters.commitType", "options": ["commit-type"], "required": true, "group": "Parameters", "help": {"short": "Commit Type."}, "enum": {"items": [{"name": "Connectivity", "value": "Connectivity"}, {"name": "Routing", "value": "Routing"}, {"name": "SecurityAdmin", "value": "SecurityAdmin"}, {"name": "SecurityUser", "value": "SecurityUser"}]}}, {"type": "array<string>", "var": "$parameters.configurationIds", "options": ["configuration-ids"], "group": "Parameters", "help": {"short": "List of configuration ids."}, "item": {"type": "string"}}, {"type": "array<string>", "var": "$parameters.targetLocations", "options": ["target-locations"], "required": true, "group": "Parameters", "help": {"short": "List of target locations."}, "item": {"type": "string"}}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "NetworkManagerCommits_Post", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "networkManagerName", "arg": "$Path.networkManagerName", "required": true, "format": {"pattern": "^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-05-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "object", "name": "parameters", "required": true, "props": [{"type": "string", "name": "commitType", "arg": "$parameters.commitType", "required": true, "enum": {"items": [{"value": "Connectivity"}, {"value": "Routing"}, {"value": "SecurityAdmin"}, {"value": "SecurityUser"}]}}, {"type": "array<string>", "name": "configurationIds", "arg": "$parameters.configurationIds", "item": {"type": "string"}}, {"type": "array<string>", "name": "targetLocations", "arg": "$parameters.targetLocations", "required": true, "item": {"type": "string"}}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "commitId"}, {"type": "string", "name": "commitType", "required": true, "enum": {"items": [{"value": "Connectivity"}, {"value": "Routing"}, {"value": "SecurityAdmin"}, {"value": "SecurityUser"}]}}, {"type": "array<string>", "name": "configurationIds", "item": {"type": "string"}}, {"type": "array<string>", "name": "targetLocations", "required": true, "item": {"type": "string"}}], "cls": "NetworkManagerCommit_read"}}}}, {"statusCode": [202], "header": {"items": [{"name": "Location"}]}, "body": {"json": {"var": "$Instance", "schema": {"type": "@NetworkManagerCommit_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<CodeGen plane="mgmt-plane">
3+
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkmanagers/{}/commit" version="2024-05-01" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrTWFuYWdlcnMve25ldHdvcmtNYW5hZ2VyTmFtZX0vY29tbWl0/V/MjAyNC0wNS0wMQ=="/>
4+
<commandGroup name="network manager">
5+
<command name="post-commit" version="2024-05-01" confirmation="">
6+
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkmanagers/{}/commit" version="2024-05-01" swagger="mgmt-plane/network/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9uZXR3b3JrTWFuYWdlcnMve25ldHdvcmtNYW5hZ2VyTmFtZX0vY29tbWl0/V/MjAyNC0wNS0wMQ=="/>
7+
<argGroup name="">
8+
<arg type="string" var="$Path.networkManagerName" options="network-manager-name name n" required="True" group="" idPart="name">
9+
<help short="The name of the network manager."/>
10+
<format pattern="^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"/>
11+
</arg>
12+
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
13+
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
14+
</argGroup>
15+
<argGroup name="Parameters">
16+
<arg type="string" var="$parameters.commitType" options="commit-type" required="True" group="Parameters">
17+
<help short="Commit Type."/>
18+
<enum>
19+
<item name="Connectivity" value="&quot;Connectivity&quot;"/>
20+
<item name="Routing" value="&quot;Routing&quot;"/>
21+
<item name="SecurityAdmin" value="&quot;SecurityAdmin&quot;"/>
22+
<item name="SecurityUser" value="&quot;SecurityUser&quot;"/>
23+
</enum>
24+
</arg>
25+
<arg type="array<string>" var="$parameters.configurationIds" options="configuration-ids" group="Parameters">
26+
<help short="List of configuration ids."/>
27+
<item type="string"/>
28+
</arg>
29+
<arg type="array<string>" var="$parameters.targetLocations" options="target-locations" required="True" group="Parameters">
30+
<help short="List of target locations."/>
31+
<item type="string"/>
32+
</arg>
33+
</argGroup>
34+
<operation operationId="NetworkManagerCommits_Post">
35+
<longRunning finalStateVia="location"/>
36+
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/commit">
37+
<request method="post">
38+
<path>
39+
<param type="string" name="networkManagerName" arg="$Path.networkManagerName" required="True">
40+
<format pattern="^[0-9a-zA-Z]([0-9a-zA-Z_.-]{0,62}[0-9a-zA-Z_])?$"/>
41+
</param>
42+
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
43+
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
44+
</path>
45+
<query>
46+
<const readOnly="True" const="True" type="string" name="api-version" required="True">
47+
<default value="&quot;2024-05-01&quot;"/>
48+
</const>
49+
</query>
50+
<body>
51+
<json>
52+
<schema type="object" name="parameters" required="True" clientFlatten="True">
53+
<prop type="string" name="commitType" arg="$parameters.commitType" required="True">
54+
<enum>
55+
<item value="&quot;Connectivity&quot;"/>
56+
<item value="&quot;Routing&quot;"/>
57+
<item value="&quot;SecurityAdmin&quot;"/>
58+
<item value="&quot;SecurityUser&quot;"/>
59+
</enum>
60+
</prop>
61+
<prop type="array<string>" name="configurationIds" arg="$parameters.configurationIds">
62+
<item type="string"/>
63+
</prop>
64+
<prop type="array<string>" name="targetLocations" arg="$parameters.targetLocations" required="True">
65+
<item type="string"/>
66+
</prop>
67+
</schema>
68+
</json>
69+
</body>
70+
</request>
71+
<response statusCode="200">
72+
<body>
73+
<json var="$Instance">
74+
<schema type="object" cls="NetworkManagerCommit_read">
75+
<prop readOnly="True" type="string" name="commitId"/>
76+
<prop type="string" name="commitType" required="True">
77+
<enum>
78+
<item value="&quot;Connectivity&quot;"/>
79+
<item value="&quot;Routing&quot;"/>
80+
<item value="&quot;SecurityAdmin&quot;"/>
81+
<item value="&quot;SecurityUser&quot;"/>
82+
</enum>
83+
</prop>
84+
<prop type="array<string>" name="configurationIds">
85+
<item type="string"/>
86+
</prop>
87+
<prop type="array<string>" name="targetLocations" required="True">
88+
<item type="string"/>
89+
</prop>
90+
</schema>
91+
</json>
92+
</body>
93+
</response>
94+
<response statusCode="202">
95+
<header>
96+
<item name="Location"/>
97+
</header>
98+
<body>
99+
<json var="$Instance">
100+
<schema type="@NetworkManagerCommit_read"/>
101+
</json>
102+
</body>
103+
</response>
104+
<response isError="True">
105+
<body>
106+
<json>
107+
<schema type="@ODataV4Format"/>
108+
</json>
109+
</body>
110+
</response>
111+
</http>
112+
</operation>
113+
<output type="object" ref="$Instance" clientFlatten="True"/>
114+
</command>
115+
</commandGroup>
116+
</CodeGen>

0 commit comments

Comments
 (0)