Skip to content

Commit

Permalink
update vnet link modules to include resolutionPolicy feature
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpnair committed Oct 17, 2024
1 parent 64a022b commit a5fdb8f
Show file tree
Hide file tree
Showing 10 changed files with 723 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Commands/network/private-dns/link/vnet/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Create a virtual network link to the specified Private DNS zone.
```bash
network private-dns link vnet create -g MyResourceGroup -n MyLinkName -z www.mysite.com -v MyVirtualNetworkId -e False
```

### [2024-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcy97fS92aXJ0dWFsbmV0d29ya2xpbmtzL3t9/2024-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks/{} 2024-06-01 -->

#### examples

- Create a virtual network link to the specified private DNS zone.
```bash
network private-dns link vnet create -g MyResourceGroup -n MyLinkName -z www.mysite.com -v MyVirtualNetworkId -e False
```
11 changes: 11 additions & 0 deletions Commands/network/private-dns/link/vnet/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,14 @@ In case of a registration virtual network, all auto-registered DNS records in th
```bash
network private-dns link vnet delete -g MyResourceGroup -z www.mysite.com -n MyLinkName
```

### [2024-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcy97fS92aXJ0dWFsbmV0d29ya2xpbmtzL3t9/2024-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks/{} 2024-06-01 -->

#### examples

- Delete a virtual network link to the specified private DNS zone.
```bash
network private-dns link vnet delete -g MyResourceGroup -z www.mysite.com -n MyLinkName
```
11 changes: 11 additions & 0 deletions Commands/network/private-dns/link/vnet/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ List the virtual network links to the specified private DNS zone.
```bash
network private-dns link vnet list -g MyResourceGroup -z www.mysite.com
```

### [2024-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcy97fS92aXJ0dWFsbmV0d29ya2xpbmtz/2024-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks 2024-06-01 -->

#### examples

- List virtual network links to the specified private DNS zone in a resource group.
```bash
network private-dns link vnet list -g MyResourceGroup -z www.mysite.com
```
11 changes: 11 additions & 0 deletions Commands/network/private-dns/link/vnet/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Get a virtual network link to the specified private DNS zone.
```bash
network private-dns link vnet show -g MyResourceGroup -n MyLinkName -z www.mysite.com
```

### [2024-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcy97fS92aXJ0dWFsbmV0d29ya2xpbmtzL3t9/2024-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks/{} 2024-06-01 -->

#### examples

- Get a virtual network link to the specified private DNS zone.
```bash
network private-dns link vnet show -g MyResourceGroup -n MyLinkName -z www.mysite.com
```
11 changes: 11 additions & 0 deletions Commands/network/private-dns/link/vnet/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Update a virtual network link's properties. Does not modify virtual network with
```bash
network private-dns link vnet update -g MyResourceGroup -n MyLinkName -z www.mysite.com -e True
```

### [2024-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcy97fS92aXJ0dWFsbmV0d29ya2xpbmtzL3t9/2024-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks/{} 2024-06-01 -->

#### examples

- Update a virtual network link properties to enable registration.
```bash
network private-dns link vnet update -g MyResourceGroup -n MyLinkName -z www.mysite.com -e True
```
90 changes: 90 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -120778,6 +120778,24 @@
"version": "2018-09-01"
}
]
},
{
"examples": [
{
"commands": [
"network private-dns link vnet create -g MyResourceGroup -n MyLinkName -z www.mysite.com -v MyVirtualNetworkId -e False"
],
"name": "Create a virtual network link to the specified private DNS zone."
}
],
"name": "2024-06-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks/{}",
"plane": "mgmt-plane",
"version": "2024-06-01"
}
]
}
]
},
Expand Down Expand Up @@ -120813,6 +120831,24 @@
"version": "2018-09-01"
}
]
},
{
"examples": [
{
"commands": [
"network private-dns link vnet delete -g MyResourceGroup -z www.mysite.com -n MyLinkName"
],
"name": "Delete a virtual network link to the specified private DNS zone."
}
],
"name": "2024-06-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks/{}",
"plane": "mgmt-plane",
"version": "2024-06-01"
}
]
}
]
},
Expand Down Expand Up @@ -120845,6 +120881,24 @@
"version": "2018-09-01"
}
]
},
{
"examples": [
{
"commands": [
"network private-dns link vnet list -g MyResourceGroup -z www.mysite.com"
],
"name": "List virtual network links to the specified private DNS zone in a resource group."
}
],
"name": "2024-06-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks",
"plane": "mgmt-plane",
"version": "2024-06-01"
}
]
}
]
},
Expand Down Expand Up @@ -120877,6 +120931,24 @@
"version": "2018-09-01"
}
]
},
{
"examples": [
{
"commands": [
"network private-dns link vnet show -g MyResourceGroup -n MyLinkName -z www.mysite.com"
],
"name": "Get a virtual network link to the specified private DNS zone."
}
],
"name": "2024-06-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks/{}",
"plane": "mgmt-plane",
"version": "2024-06-01"
}
]
}
]
},
Expand Down Expand Up @@ -120909,6 +120981,24 @@
"version": "2018-09-01"
}
]
},
{
"examples": [
{
"commands": [
"network private-dns link vnet update -g MyResourceGroup -n MyLinkName -z www.mysite.com -e True"
],
"name": "Update a virtual network link properties to enable registration."
}
],
"name": "2024-06-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks/{}",
"plane": "mgmt-plane",
"version": "2024-06-01"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks", "version": "2024-06-01", "swagger": "mgmt-plane/privatedns/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wcml2YXRlRG5zWm9uZXMve3ByaXZhdGVab25lTmFtZX0vdmlydHVhbE5ldHdvcmtMaW5rcw==/V/MjAyNC0wNi0wMQ=="}], "commandGroups": [{"name": "network private-dns link vnet", "commands": [{"name": "list", "version": "2024-06-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks", "version": "2024-06-01", "swagger": "mgmt-plane/privatedns/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wcml2YXRlRG5zWm9uZXMve3ByaXZhdGVab25lTmFtZX0vdmlydHVhbE5ldHdvcmtMaW5rcw==/V/MjAyNC0wNi0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.privateZoneName", "options": ["z", "zone-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "Name of the private DNS zone."}}, {"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"}, {"type": "integer32", "var": "$Query.top", "options": ["top"], "group": "", "help": {"short": "Maximum number of virtual network links to return. If not specified, returns up to 100 virtual network links."}}]}], "operations": [{"operationId": "VirtualNetworkLinks_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "privateZoneName", "arg": "$Path.privateZoneName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"params": [{"type": "integer32", "name": "$top", "arg": "$Query.top"}], "consts": [{"readOnly": true, "const": true, "default": {"value": "2024-06-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"type": "string", "name": "etag"}, {"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/privateDnsZones/{}/virtualNetworkLinks/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "boolean", "name": "registrationEnabled"}, {"type": "string", "name": "resolutionPolicy", "enum": {"items": [{"value": "Default"}, {"value": "NxDomainRedirect"}]}}, {"type": "object", "name": "virtualNetwork", "props": [{"type": "string", "name": "id"}]}, {"readOnly": true, "type": "string", "name": "virtualNetworkLinkState", "enum": {"items": [{"value": "Completed"}, {"value": "InProgress"}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks" version="2024-06-01" swagger="mgmt-plane/privatedns/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wcml2YXRlRG5zWm9uZXMve3ByaXZhdGVab25lTmFtZX0vdmlydHVhbE5ldHdvcmtMaW5rcw==/V/MjAyNC0wNi0wMQ=="/>
<commandGroup name="network private-dns link vnet">
<command name="list" version="2024-06-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}/virtualnetworklinks" version="2024-06-01" swagger="mgmt-plane/privatedns/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wcml2YXRlRG5zWm9uZXMve3ByaXZhdGVab25lTmFtZX0vdmlydHVhbE5ldHdvcmtMaW5rcw==/V/MjAyNC0wNi0wMQ=="/>
<argGroup name="">
<arg type="string" var="$Path.privateZoneName" options="zone-name z" required="True" group="" idPart="name">
<help short="Name of the private DNS zone."/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="integer32" var="$Query.top" options="top" group="">
<help short="Maximum number of virtual network links to return. If not specified, returns up to 100 virtual network links."/>
</arg>
</argGroup>
<operation operationId="VirtualNetworkLinks_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks">
<request method="get">
<path>
<param type="string" name="privateZoneName" arg="$Path.privateZoneName" required="True"/>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True"/>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<param type="integer32" name="$top" arg="$Query.top"/>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2024-06-01&quot;"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop readOnly="True" type="string" name="nextLink"/>
<prop type="array<object>" name="value">
<item type="object">
<prop type="string" name="etag"/>
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Network/privateDnsZones/{}/virtualNetworkLinks/{}"/>
</prop>
<prop type="ResourceLocation" name="location"/>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties" clientFlatten="True">
<prop readOnly="True" type="string" name="provisioningState">
<enum>
<item value="&quot;Canceled&quot;"/>
<item value="&quot;Creating&quot;"/>
<item value="&quot;Deleting&quot;"/>
<item value="&quot;Failed&quot;"/>
<item value="&quot;Succeeded&quot;"/>
<item value="&quot;Updating&quot;"/>
</enum>
</prop>
<prop type="boolean" name="registrationEnabled"/>
<prop type="string" name="resolutionPolicy">
<enum>
<item value="&quot;Default&quot;"/>
<item value="&quot;NxDomainRedirect&quot;"/>
</enum>
</prop>
<prop type="object" name="virtualNetwork">
<prop type="string" name="id"/>
</prop>
<prop readOnly="True" type="string" name="virtualNetworkLinkState">
<enum>
<item value="&quot;Completed&quot;"/>
<item value="&quot;InProgress&quot;"/>
</enum>
</prop>
</prop>
<prop type="object" name="tags">
<additionalProp>
<item type="string"/>
</additionalProp>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@ODataV4Format"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Large diffs are not rendered by default.

Loading

0 comments on commit a5fdb8f

Please sign in to comment.