Skip to content

Commit

Permalink
Merge pull request #250 from necusjz/migrate-pd-zone
Browse files Browse the repository at this point in the history
Upload model for `az network private-dns zone`
  • Loading branch information
kairu-ms authored Jul 27, 2023
2 parents 171a188 + b023955 commit 4725f86
Show file tree
Hide file tree
Showing 13 changed files with 822 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Commands/network/private-dns/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ Manage Private DNS domains in Azure.

- [link](/Commands/network/private-dns/link/readme.md)
: Manage Private DNS links.

- [zone](/Commands/network/private-dns/zone/readme.md)
: Manage Private DNS zones.
16 changes: 16 additions & 0 deletions Commands/network/private-dns/zone/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network private-dns zone create_

Create a Private DNS zone.

## Versions

### [2018-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcy97fQ==/2018-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{} 2018-09-01 -->

#### examples

- Create a Private DNS zone using a fully qualified domain name.
```bash
network private-dns zone create -g MyResourceGroup -n www.mysite.com
```
18 changes: 18 additions & 0 deletions Commands/network/private-dns/zone/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# [Command] _network private-dns zone delete_

Delete a Private DNS zone.

All DNS records in the zone will also be deleted. This operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to it are removed.

## Versions

### [2018-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcy97fQ==/2018-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{} 2018-09-01 -->

#### examples

- Delete a Private DNS zone using a fully qualified domain name.
```bash
network private-dns zone delete -g MyResourceGroup -n www.mysite.com
```
17 changes: 17 additions & 0 deletions Commands/network/private-dns/zone/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [Command] _network private-dns zone list_

List Private DNS zones.

## Versions

### [2018-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcw==/2018-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.network/privatednszones 2018-09-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones 2018-09-01 -->

#### examples

- List Private DNS zones in a resource group.
```bash
network private-dns zone list -g MyResourceGroup
```
16 changes: 16 additions & 0 deletions Commands/network/private-dns/zone/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network private-dns zone show_

Get a Private DNS zone.

## Versions

### [2018-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcy97fQ==/2018-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{} 2018-09-01 -->

#### examples

- Get a Private DNS zone using a fully qualified domain name.
```bash
network private-dns zone show -g MyResourceGroup -n www.mysite.com
```
16 changes: 16 additions & 0 deletions Commands/network/private-dns/zone/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [Command] _network private-dns zone update_

Update a Private DNS zone's properties. Does not modify Private DNS records or virtual network links within the zone.

## Versions

### [2018-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5uZXR3b3JrL3ByaXZhdGVkbnN6b25lcy97fQ==/2018-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{} 2018-09-01 -->

#### examples

- Update a Private DNS zone properties to change the user-defined value of a previously set tag.
```bash
network private-dns zone update -g MyResourceGroup -n www.mysite.com --tags CostCenter=Marketing
```
20 changes: 20 additions & 0 deletions Commands/network/private-dns/zone/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [Group] _network private-dns zone_

Manage Private DNS zones.

## Commands

- [create](/Commands/network/private-dns/zone/_create.md)
: Create a Private DNS zone.

- [delete](/Commands/network/private-dns/zone/_delete.md)
: Delete a Private DNS zone.

- [list](/Commands/network/private-dns/zone/_list.md)
: List Private DNS zones.

- [show](/Commands/network/private-dns/zone/_show.md)
: Get a Private DNS zone.

- [update](/Commands/network/private-dns/zone/_update.md)
: Update a Private DNS zone's properties. Does not modify Private DNS records or virtual network links within the zone.
175 changes: 175 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -46072,6 +46072,181 @@
"private-dns",
"link"
]
},
"zone": {
"commands": {
"create": {
"help": {
"short": "Create a Private DNS zone."
},
"names": [
"network",
"private-dns",
"zone",
"create"
],
"versions": [
{
"examples": [
{
"commands": [
"network private-dns zone create -g MyResourceGroup -n www.mysite.com"
],
"name": "Create a Private DNS zone using a fully qualified domain name."
}
],
"name": "2018-09-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}",
"plane": "mgmt-plane",
"version": "2018-09-01"
}
]
}
]
},
"delete": {
"help": {
"lines": [
"All DNS records in the zone will also be deleted. This operation cannot be undone. Private DNS zone cannot be deleted unless all virtual network links to it are removed."
],
"short": "Delete a Private DNS zone."
},
"names": [
"network",
"private-dns",
"zone",
"delete"
],
"versions": [
{
"examples": [
{
"commands": [
"network private-dns zone delete -g MyResourceGroup -n www.mysite.com"
],
"name": "Delete a Private DNS zone using a fully qualified domain name."
}
],
"name": "2018-09-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}",
"plane": "mgmt-plane",
"version": "2018-09-01"
}
]
}
]
},
"list": {
"help": {
"short": "List Private DNS zones."
},
"names": [
"network",
"private-dns",
"zone",
"list"
],
"versions": [
{
"examples": [
{
"commands": [
"network private-dns zone list -g MyResourceGroup"
],
"name": "List Private DNS zones in a resource group."
}
],
"name": "2018-09-01",
"resources": [
{
"id": "/subscriptions/{}/providers/microsoft.network/privatednszones",
"plane": "mgmt-plane",
"version": "2018-09-01"
},
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones",
"plane": "mgmt-plane",
"version": "2018-09-01"
}
]
}
]
},
"show": {
"help": {
"short": "Get a Private DNS zone."
},
"names": [
"network",
"private-dns",
"zone",
"show"
],
"versions": [
{
"examples": [
{
"commands": [
"network private-dns zone show -g MyResourceGroup -n www.mysite.com"
],
"name": "Get a Private DNS zone using a fully qualified domain name."
}
],
"name": "2018-09-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}",
"plane": "mgmt-plane",
"version": "2018-09-01"
}
]
}
]
},
"update": {
"help": {
"short": "Update a Private DNS zone's properties. Does not modify Private DNS records or virtual network links within the zone."
},
"names": [
"network",
"private-dns",
"zone",
"update"
],
"versions": [
{
"examples": [
{
"commands": [
"network private-dns zone update -g MyResourceGroup -n www.mysite.com --tags CostCenter=Marketing"
],
"name": "Update a Private DNS zone properties to change the user-defined value of a previously set tag."
}
],
"name": "2018-09-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones/{}",
"plane": "mgmt-plane",
"version": "2018-09-01"
}
]
}
]
}
},
"help": {
"short": "Manage Private DNS zones."
},
"names": [
"network",
"private-dns",
"zone"
]
}
},
"help": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.network/privatednszones", "version": "2018-09-01", "swagger": "mgmt-plane/privatedns/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZURuc1pvbmVz/V/MjAxOC0wOS0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones", "version": "2018-09-01", "swagger": "mgmt-plane/privatedns/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wcml2YXRlRG5zWm9uZXM=/V/MjAxOC0wOS0wMQ=="}], "commandGroups": [{"name": "network private-dns zone", "commands": [{"name": "list", "version": "2018-09-01", "resources": [{"id": "/subscriptions/{}/providers/microsoft.network/privatednszones", "version": "2018-09-01", "swagger": "mgmt-plane/privatedns/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk5ldHdvcmsvcHJpdmF0ZURuc1pvbmVz/V/MjAxOC0wOS0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/privatednszones", "version": "2018-09-01", "swagger": "mgmt-plane/privatedns/ResourceProviders/Microsoft.Network/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuTmV0d29yay9wcml2YXRlRG5zWm9uZXM=/V/MjAxOC0wOS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "integer32", "var": "$Query.top", "options": ["top"], "hide": true, "group": "", "help": {"short": "The maximum number of Private DNS zones to return. If not specified, returns up to 100 zones."}}]}], "conditions": [{"var": "$Condition_PrivateZones_ListByResourceGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.resourceGroupName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}, {"var": "$Condition_PrivateZones_List", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.resourceGroupName"}}]}}], "operations": [{"when": ["$Condition_PrivateZones_ListByResourceGroup"], "operationId": "PrivateZones_ListByResourceGroup", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones", "request": {"method": "get", "path": {"params": [{"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": "2018-09-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/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "integer64", "name": "maxNumberOfRecordSets"}, {"readOnly": true, "type": "integer64", "name": "maxNumberOfVirtualNetworkLinks"}, {"readOnly": true, "type": "integer64", "name": "maxNumberOfVirtualNetworkLinksWithRegistration"}, {"readOnly": true, "type": "integer64", "name": "numberOfRecordSets"}, {"readOnly": true, "type": "integer64", "name": "numberOfVirtualNetworkLinks"}, {"readOnly": true, "type": "integer64", "name": "numberOfVirtualNetworkLinksWithRegistration"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}], "clientFlatten": true}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"when": ["$Condition_PrivateZones_List"], "operationId": "PrivateZones_List", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones", "request": {"method": "get", "path": {"params": [{"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": "2018-09-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/{}"}}, {"type": "ResourceLocation", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "integer64", "name": "maxNumberOfRecordSets"}, {"readOnly": true, "type": "integer64", "name": "maxNumberOfVirtualNetworkLinks"}, {"readOnly": true, "type": "integer64", "name": "maxNumberOfVirtualNetworkLinksWithRegistration"}, {"readOnly": true, "type": "integer64", "name": "numberOfRecordSets"}, {"readOnly": true, "type": "integer64", "name": "numberOfVirtualNetworkLinks"}, {"readOnly": true, "type": "integer64", "name": "numberOfVirtualNetworkLinksWithRegistration"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}, {"value": "Updating"}]}}], "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": ""}]}]}
Loading

0 comments on commit 4725f86

Please sign in to comment.