From 6bda046d47221f2e4b86039deaa15e7d2084845c Mon Sep 17 00:00:00 2001 From: Muhammad Waqar Date: Wed, 13 Feb 2019 09:13:20 -0800 Subject: [PATCH 1/3] Adding Private DNS Swagger spec for API version 2018-09-01. --- .../stable/2018-09-01/privatedns.json | 1919 +++++++++++++++++ .../privatedns/resource-manager/readme.go.md | 26 + .../privatedns/resource-manager/readme.md | 136 ++ .../resource-manager/readme.nodejs.md | 14 + .../resource-manager/readme.python.md | 27 + .../resource-manager/readme.ruby.md | 26 + .../resource-manager/readme.typescript.md | 12 + 7 files changed, 2160 insertions(+) create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/privatedns.json create mode 100644 specification/privatedns/resource-manager/readme.go.md create mode 100644 specification/privatedns/resource-manager/readme.md create mode 100644 specification/privatedns/resource-manager/readme.nodejs.md create mode 100644 specification/privatedns/resource-manager/readme.python.md create mode 100644 specification/privatedns/resource-manager/readme.ruby.md create mode 100644 specification/privatedns/resource-manager/readme.typescript.md diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/privatedns.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/privatedns.json new file mode 100644 index 000000000000..3d0c1a2c7e2b --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/privatedns.json @@ -0,0 +1,1919 @@ +{ + "swagger": "2.0", + "info": { + "title": "PrivateDnsManagementClient", + "description": "The Private DNS Management Client.", + "version": "2018-09-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}": { + "put": { + "tags": [ + "PrivateZones" + ], + "operationId": "PrivateZones_CreateOrUpdate", + "description": "Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records within the zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateZone" + }, + "description": "Parameters supplied to the CreateOrUpdate operation." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the Private DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfNoneMatch", + "description": "Set to '*' to allow a new Private DNS zone to be created, but to prevent updating an existing zone. Other values will be ignored." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "The Private DNS zone has been created.", + "schema": { + "$ref": "#/definitions/PrivateZone" + } + }, + "200": { + "description": "The Private DNS zone has been updated.", + "schema": { + "$ref": "#/definitions/PrivateZone" + } + }, + "202": { + "description": "The Private DNS zone upsert operation has been accepted and will complete asynchronously." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "PUT Private DNS Zone": { + "$ref": "./examples/PrivateZonePut.json" + } + } + }, + "patch": { + "tags": [ + "PrivateZones" + ], + "operationId": "PrivateZones_Update", + "description": "Updates a Private DNS zone. Does not modify virtual network links or DNS records within the zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/PrivateZone" + }, + "description": "Parameters supplied to the Update operation." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the Private DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The Private DNS zone has been updated.", + "schema": { + "$ref": "#/definitions/PrivateZone" + } + }, + "202": { + "description": "The Private DNS zone update operation has been accepted and will complete asynchronously." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "PATCH Private DNS Zone": { + "$ref": "./examples/PrivateZonePatch.json" + } + } + }, + "delete": { + "tags": [ + "PrivateZones" + ], + "operationId": "PrivateZones_Delete", + "description": "Deletes a Private DNS zone. WARNING: 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.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the Private DNS zone. Omit this value to always delete the current zone. Specify the last-seen ETag value to prevent accidentally deleting any concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The Private DNS zone has been deleted." + }, + "202": { + "description": "The Private DNS zone delete operation has been accepted and will complete asynchronously." + }, + "204": { + "description": "The Private DNS zone was not found." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "DELETE Private DNS Zone": { + "$ref": "./examples/PrivateZoneDelete.json" + } + } + }, + "get": { + "tags": [ + "PrivateZones" + ], + "operationId": "PrivateZones_Get", + "description": "Gets a Private DNS zone. Retrieves the zone properties, but not the virtual networks links or the record sets within the zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/PrivateZone" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GET Private DNS Zone": { + "$ref": "./examples/PrivateZoneGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones": { + "get": { + "tags": [ + "PrivateZones" + ], + "operationId": "PrivateZones_List", + "description": "Lists the Private DNS zones in all resource groups in a subscription.", + "parameters": [ + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of Private DNS zones to return. If not specified, returns up to 100 zones." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/PrivateZoneListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GET Private DNS Zone by Subscription": { + "$ref": "./examples/PrivateZoneListInSubscription.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones": { + "get": { + "tags": [ + "PrivateZones" + ], + "operationId": "PrivateZones_ListByResourceGroup", + "description": "Lists the Private DNS zones within a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/PrivateZoneListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GET Private DNS Zone by Resource Group": { + "$ref": "./examples/PrivateZoneListInResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks/{virtualNetworkLinkName}": { + "put": { + "tags": [ + "VirtualNetworkLinks" + ], + "operationId": "VirtualNetworkLinks_CreateOrUpdate", + "description": "Creates or updates a virtual network link to the specified Private DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "virtualNetworkLinkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network link." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkLink" + }, + "description": "Parameters supplied to the CreateOrUpdate operation." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfNoneMatch", + "description": "Set to '*' to allow a new virtual network link to the Private DNS zone to be created, but to prevent updating an existing link. Other values will be ignored." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "The virtual network link to the Private DNS zone has been created.", + "schema": { + "$ref": "#/definitions/VirtualNetworkLink" + } + }, + "200": { + "description": "The virtual network link to the Private DNS zone has been updated.", + "schema": { + "$ref": "#/definitions/VirtualNetworkLink" + } + }, + "202": { + "description": "The operation to upsert virtual network link to the Private DNS zone has been accepted and will complete asynchronously." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "PUT Private DNS Zone Virtual Network Link": { + "$ref": "./examples/VirtualNetworkLinkPut.json" + } + } + }, + "patch": { + "tags": [ + "VirtualNetworkLinks" + ], + "operationId": "VirtualNetworkLinks_Update", + "description": "Updates a virtual network link to the specified Private DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "virtualNetworkLinkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network link." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualNetworkLink" + }, + "description": "Parameters supplied to the Update operation." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The virtual network link to the Private DNS zone has been updated.", + "schema": { + "$ref": "#/definitions/VirtualNetworkLink" + } + }, + "202": { + "description": "The operation to link virtual network link to Private DNS zone has been accepted and will complete asynchronously." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "PATCH Private DNS Zone Virtual Network Link": { + "$ref": "./examples/VirtualNetworkLinkPatch.json" + } + } + }, + "delete": { + "tags": [ + "VirtualNetworkLinks" + ], + "operationId": "VirtualNetworkLinks_Delete", + "description": "Deletes a virtual network link to the specified Private DNS zone. WARNING: In case of a registration virtual network, all auto-registered DNS records in the zone for the virtual network will also be deleted. This operation cannot be undone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "virtualNetworkLinkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network link." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the virtual network link to the Private DNS zone. Omit this value to always delete the current zone. Specify the last-seen ETag value to prevent accidentally deleting any concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The virtual network link to the Private DNS zone has been deleted." + }, + "202": { + "description": "The operation to delete virtual network link to the Private DNS zone has been accepted and will complete asynchronously." + }, + "204": { + "description": "The virtual network link to the Private DNS zone was not found." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "DELETE Private DNS Zone Virtual Network Link": { + "$ref": "./examples/VirtualNetworkLinkDelete.json" + } + } + }, + "get": { + "tags": [ + "VirtualNetworkLinks" + ], + "operationId": "VirtualNetworkLinks_Get", + "description": "Gets a virtual network link to the specified Private DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "virtualNetworkLinkName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual network link." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/VirtualNetworkLink" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GET Private DNS Zone Virtual Network Link": { + "$ref": "./examples/VirtualNetworkLinkGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks": { + "get": { + "tags": [ + "VirtualNetworkLinks" + ], + "operationId": "VirtualNetworkLinks_List", + "description": "Lists the virtual network links to the specified Private DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of virtual network links to return. If not specified, returns up to 100 virtual network links." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/VirtualNetworkLinkListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Get Private DNS Zone Virtual Network Links": { + "$ref": "./examples/VirtualNetworkLinkList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}/{relativeRecordSetName}": { + "put": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_CreateOrUpdate", + "description": "Creates or updates a record set within a Private DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "recordType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the Private DNS zone is created).", + "enum": [ + "A", + "AAAA", + "CNAME", + "MX", + "PTR", + "SOA", + "SRV", + "TXT" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "name": "relativeRecordSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the record set, relative to the name of the zone.", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RecordSet" + }, + "description": "Parameters supplied to the CreateOrUpdate operation." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + }, + { + "name": "If-None-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfNoneMatch", + "description": "Set to '*' to allow a new record set to be created, but to prevent updating an existing record set. Other values will be ignored." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "The record set has been created.", + "schema": { + "$ref": "#/definitions/RecordSet" + } + }, + "200": { + "description": "The record set has been updated.", + "schema": { + "$ref": "#/definitions/RecordSet" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "PUT Private DNS Zone A Record Set": { + "$ref": "./examples/RecordSetAPut.json" + }, + "PUT Private DNS Zone AAAA Record Set": { + "$ref": "./examples/RecordSetAAAAPut.json" + }, + "PUT Private DNS Zone CNAME Record Set": { + "$ref": "./examples/RecordSetCNAMEPut.json" + }, + "PUT Private DNS Zone MX Record Set": { + "$ref": "./examples/RecordSetMXPut.json" + }, + "PUT Private DNS Zone PTR Record Set": { + "$ref": "./examples/RecordSetPTRPut.json" + }, + "PUT Private DNS Zone SOA Record Set": { + "$ref": "./examples/RecordSetSOAPut.json" + }, + "PUT Private DNS Zone SRV Record Set": { + "$ref": "./examples/RecordSetSRVPut.json" + }, + "PUT Private DNS Zone TXT Record Set": { + "$ref": "./examples/RecordSetTXTPut.json" + } + } + }, + "patch": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_Update", + "description": "Updates a record set within a Private DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "recordType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of DNS record in this record set.", + "enum": [ + "A", + "AAAA", + "CNAME", + "MX", + "PTR", + "SOA", + "SRV", + "TXT" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "name": "relativeRecordSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the record set, relative to the name of the zone.", + "x-ms-skip-url-encoding": true + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RecordSet" + }, + "description": "Parameters supplied to the Update operation." + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwritting concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The record set has been updated.", + "schema": { + "$ref": "#/definitions/RecordSet" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "PATCH Private DNS Zone A Record Set": { + "$ref": "./examples/RecordSetAPatch.json" + }, + "PATCH Private DNS Zone AAAA Record Set": { + "$ref": "./examples/RecordSetAAAAPatch.json" + }, + "PATCH Private DNS Zone CNAME Record Set": { + "$ref": "./examples/RecordSetCNAMEPatch.json" + }, + "PATCH Private DNS Zone MX Record Set": { + "$ref": "./examples/RecordSetMXPatch.json" + }, + "PATCH Private DNS Zone PTR Record Set": { + "$ref": "./examples/RecordSetPTRPatch.json" + }, + "PATCH Private DNS Zone SOA Record Set": { + "$ref": "./examples/RecordSetSOAPatch.json" + }, + "PATCH Private DNS Zone SRV Record Set": { + "$ref": "./examples/RecordSetSRVPatch.json" + }, + "PATCH Private DNS Zone TXT Record Set": { + "$ref": "./examples/RecordSetTXTPatch.json" + } + } + }, + "delete": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_Delete", + "description": "Deletes a record set from a Private DNS zone. This operation cannot be undone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "recordType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are deleted when the Private DNS zone is deleted).", + "enum": [ + "A", + "AAAA", + "CNAME", + "MX", + "PTR", + "SOA", + "SRV", + "TXT" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "name": "relativeRecordSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the record set, relative to the name of the zone.", + "x-ms-skip-url-encoding": true + }, + { + "name": "If-Match", + "in": "header", + "required": false, + "type": "string", + "x-ms-client-name": "IfMatch", + "description": "The ETag of the record set. Omit this value to always delete the current record set. Specify the last-seen ETag value to prevent accidentally deleting any concurrent changes." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The record set has been deleted." + }, + "204": { + "description": "The record set was not found." + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "DELETE Private DNS Zone A Record Set": { + "$ref": "./examples/RecordSetADelete.json" + }, + "DELETE Private DNS Zone AAAA Record Set": { + "$ref": "./examples/RecordSetAAAADelete.json" + }, + "DELETE Private DNS Zone CNAME Record Set": { + "$ref": "./examples/RecordSetCNAMEDelete.json" + }, + "DELETE Private DNS Zone MX Record Set": { + "$ref": "./examples/RecordSetMXDelete.json" + }, + "DELETE Private DNS Zone PTR Record Set": { + "$ref": "./examples/RecordSetPTRDelete.json" + }, + "DELETE Private DNS Zone SRV Record Set": { + "$ref": "./examples/RecordSetSRVDelete.json" + }, + "DELETE Private DNS Zone TXT Record Set": { + "$ref": "./examples/RecordSetTXTDelete.json" + } + } + }, + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_Get", + "description": "Gets a record set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "recordType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of DNS record in this record set.", + "enum": [ + "A", + "AAAA", + "CNAME", + "MX", + "PTR", + "SOA", + "SRV", + "TXT" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "name": "relativeRecordSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the record set, relative to the name of the zone.", + "x-ms-skip-url-encoding": true + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/RecordSet" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "GET Private DNS Zone A Record Set": { + "$ref": "./examples/RecordSetAGet.json" + }, + "GET Private DNS Zone AAAA Record Set": { + "$ref": "./examples/RecordSetAAAAGet.json" + }, + "GET Private DNS Zone CNAME Record Set": { + "$ref": "./examples/RecordSetCNAMEGet.json" + }, + "GET Private DNS Zone MX Record Set": { + "$ref": "./examples/RecordSetMXGet.json" + }, + "GET Private DNS Zone PTR Record Set": { + "$ref": "./examples/RecordSetPTRGet.json" + }, + "GET Private DNS Zone SOA Record Set": { + "$ref": "./examples/RecordSetSOAGet.json" + }, + "GET Private DNS Zone SRV Record Set": { + "$ref": "./examples/RecordSetSRVGet.json" + }, + "GET Private DNS Zone TXT Record Set": { + "$ref": "./examples/RecordSetTXTGet.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/{recordType}": { + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_ListByType", + "description": "Lists the record sets of a specified type in a Private DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "recordType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of record sets to enumerate.", + "enum": [ + "A", + "AAAA", + "CNAME", + "MX", + "PTR", + "SOA", + "SRV", + "TXT" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets." + }, + { + "name": "$recordsetnamesuffix", + "in": "query", + "required": false, + "type": "string", + "description": "The suffix label of the record set name to be used to filter the record set enumeration. If this parameter is specified, the returned enumeration will only contain records that end with \".\"." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/RecordSetListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GET Private DNS Zone A Record Sets": { + "$ref": "./examples/RecordSetAList.json" + }, + "GET Private DNS Zone AAAA Record Sets": { + "$ref": "./examples/RecordSetAAAAList.json" + }, + "GET Private DNS Zone CNAME Record Sets": { + "$ref": "./examples/RecordSetCNAMEList.json" + }, + "GET Private DNS Zone MX Record Sets": { + "$ref": "./examples/RecordSetMXList.json" + }, + "GET Private DNS Zone PTR Record Sets": { + "$ref": "./examples/RecordSetPTRList.json" + }, + "GET Private DNS Zone SOA Record Sets": { + "$ref": "./examples/RecordSetSOAList.json" + }, + "GET Private DNS Zone SRV Record Sets": { + "$ref": "./examples/RecordSetSRVList.json" + }, + "GET Private DNS Zone TXT Record Sets": { + "$ref": "./examples/RecordSetTXTList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/ALL": { + "get": { + "tags": [ + "RecordSets" + ], + "operationId": "RecordSets_List", + "description": "Lists all record sets in a Private DNS zone.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "privateZoneName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Private DNS zone (without a terminating dot)." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32", + "description": "The maximum number of record sets to return. If not specified, returns up to 100 record sets." + }, + { + "name": "$recordsetnamesuffix", + "in": "query", + "required": false, + "type": "string", + "description": "The suffix label of the record set name to be used to filter the record set enumeration. If this parameter is specified, the returned enumeration will only contain records that end with \".\"." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Success.", + "schema": { + "$ref": "#/definitions/RecordSetListResult" + } + }, + "default": { + "description": "Default response. It will be deserialized as per the Error definition.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "GET Private DNS Zone ALL Record Sets": { + "$ref": "./examples/RecordSetALLList.json" + } + } + } + } + }, + "definitions": { + "PrivateZoneProperties": { + "properties": { + "maxNumberOfRecordSets": { + "type": "integer", + "format": "int64", + "description": "The maximum number of record sets that can be created in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + }, + "numberOfRecordSets": { + "type": "integer", + "format": "int64", + "description": "The current number of record sets in this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + }, + "maxNumberOfVirtualNetworkLinks": { + "type": "integer", + "format": "int64", + "description": "The maximum number of virtual networks that can be linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + }, + "numberOfVirtualNetworkLinks": { + "type": "integer", + "format": "int64", + "description": "The current number of virtual networks that are linked to this Private DNS zone. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + }, + "maxNumberOfVirtualNetworkLinksWithRegistration": { + "type": "integer", + "format": "int64", + "description": "The maximum number of virtual networks that can be linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + }, + "numberOfVirtualNetworkLinksWithRegistration": { + "type": "integer", + "format": "int64", + "description": "The current number of virtual networks that are linked to this Private DNS zone with registration enabled. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + }, + "provisioningState": { + "type": "string", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "description": "The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + } + }, + "description": "Represents the properties of the Private DNS zone." + }, + "PrivateZone": { + "properties": { + "etag": { + "type": "string", + "description": "The ETag of the zone." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PrivateZoneProperties", + "description": "Properties of the Private DNS zone." + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "Describes a Private DNS zone." + }, + "PrivateZoneListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateZone" + }, + "description": "Information about the Private DNS zones." + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true + } + }, + "description": "The response to a Private DNS zone list operation." + }, + "VirtualNetworkLinkProperties": { + "properties": { + "virtualNetwork": { + "$ref": "#/definitions/SubResource", + "description": "The reference of the virtual network." + }, + "registrationEnabled": { + "type": "boolean", + "description": "Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled?" + }, + "virtualNetworkLinkState": { + "type": "string", + "description": "The status of the virtual network link to the Private DNS zone. Possible values are 'InProgress' and 'Done'. This is a read-only property and any attempt to set this value will be ignored.", + "enum": [ + "InProgress", + "Completed" + ], + "x-ms-enum": { + "name": "VirtualNetworkLinkState", + "modelAsString": true + }, + "readOnly": true + }, + "provisioningState": { + "type": "string", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Failed", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + }, + "description": "The provisioning state of the resource. This is a read-only property and any attempt to set this value will be ignored.", + "readOnly": true + } + }, + "description": "Represents the properties of the Private DNS zone." + }, + "VirtualNetworkLink": { + "properties": { + "etag": { + "type": "string", + "description": "The ETag of the virtual network link." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualNetworkLinkProperties", + "description": "Properties of the virtual network link to the Private DNS zone." + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "Describes a link to virtual network for a Private DNS zone." + }, + "VirtualNetworkLinkListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualNetworkLink" + }, + "description": "Information about the virtual network links to the Private DNS zones." + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true + } + }, + "description": "The response to a list virtual network link to Private DNS zone operation." + }, + "ARecord": { + "properties": { + "ipv4Address": { + "type": "string", + "description": "The IPv4 address of this A record." + } + }, + "description": "An A record." + }, + "AaaaRecord": { + "properties": { + "ipv6Address": { + "type": "string", + "description": "The IPv6 address of this AAAA record." + } + }, + "description": "An AAAA record." + }, + "CnameRecord": { + "properties": { + "cname": { + "type": "string", + "description": "The canonical name for this CNAME record." + } + }, + "description": "A CNAME record." + }, + "MxRecord": { + "properties": { + "preference": { + "type": "integer", + "format": "int32", + "description": "The preference value for this MX record." + }, + "exchange": { + "type": "string", + "description": "The domain name of the mail host for this MX record." + } + }, + "description": "An MX record." + }, + "PtrRecord": { + "properties": { + "ptrdname": { + "type": "string", + "description": "The PTR target domain name for this PTR record." + } + }, + "description": "A PTR record." + }, + "SoaRecord": { + "properties": { + "host": { + "type": "string", + "description": "The domain name of the authoritative name server for this SOA record." + }, + "email": { + "type": "string", + "description": "The email contact for this SOA record." + }, + "serialNumber": { + "type": "integer", + "format": "int64", + "description": "The serial number for this SOA record." + }, + "refreshTime": { + "type": "integer", + "format": "int64", + "description": "The refresh value for this SOA record." + }, + "retryTime": { + "type": "integer", + "format": "int64", + "description": "The retry time for this SOA record." + }, + "expireTime": { + "type": "integer", + "format": "int64", + "description": "The expire time for this SOA record." + }, + "minimumTtl": { + "type": "integer", + "format": "int64", + "description": "The minimum value for this SOA record. By convention this is used to determine the negative caching duration." + } + }, + "description": "An SOA record." + }, + "SrvRecord": { + "properties": { + "priority": { + "type": "integer", + "format": "int32", + "description": "The priority value for this SRV record." + }, + "weight": { + "type": "integer", + "format": "int32", + "description": "The weight value for this SRV record." + }, + "port": { + "type": "integer", + "format": "int32", + "description": "The port value for this SRV record." + }, + "target": { + "type": "string", + "description": "The target domain name for this SRV record." + } + }, + "description": "An SRV record." + }, + "TxtRecord": { + "properties": { + "value": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The text value of this TXT record." + } + }, + "description": "A TXT record." + }, + "RecordSetProperties": { + "properties": { + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The metadata attached to the record set." + }, + "ttl": { + "type": "integer", + "format": "int64", + "description": "The TTL (time-to-live) of the records in the record set." + }, + "fqdn": { + "type": "string", + "description": "Fully qualified domain name of the record set.", + "readOnly": true + }, + "isAutoRegistered" : { + "type": "boolean", + "description": "Is the record set auto-registered in the Private DNS zone through a virtual network link?", + "readOnly": true + }, + "aRecords": { + "type": "array", + "items": { + "$ref": "#/definitions/ARecord" + }, + "description": "The list of A records in the record set." + }, + "aaaaRecords": { + "type": "array", + "items": { + "$ref": "#/definitions/AaaaRecord" + }, + "description": "The list of AAAA records in the record set." + }, + "cnameRecord": { + "$ref": "#/definitions/CnameRecord", + "description": "The CNAME record in the record set." + }, + "mxRecords": { + "type": "array", + "items": { + "$ref": "#/definitions/MxRecord" + }, + "description": "The list of MX records in the record set." + }, + "ptrRecords": { + "type": "array", + "items": { + "$ref": "#/definitions/PtrRecord" + }, + "description": "The list of PTR records in the record set." + }, + "soaRecord": { + "$ref": "#/definitions/SoaRecord", + "description": "The SOA record in the record set." + }, + "srvRecords": { + "type": "array", + "items": { + "$ref": "#/definitions/SrvRecord" + }, + "description": "The list of SRV records in the record set." + }, + "txtRecords": { + "type": "array", + "items": { + "$ref": "#/definitions/TxtRecord" + }, + "description": "The list of TXT records in the record set." + } + }, + "description": "Represents the properties of the records in the record set." + }, + "RecordSet": { + "properties": { + "id": { + "type": "string", + "description": "The ID of the record set.", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the record set.", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the record set.", + "readOnly": true + }, + "etag": { + "type": "string", + "description": "The ETag of the record set." + }, + "properties": { + "$ref": "#/definitions/RecordSetProperties", + "x-ms-client-flatten": true, + "description": "The properties of the record set." + } + }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "description": "Describes a DNS record set (a collection of DNS records with the same name and type) in a Private DNS zone." + }, + "RecordSetListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RecordSet" + }, + "description": "Information about the record sets in the response." + }, + "nextLink": { + "type": "string", + "description": "The continuation token for the next page of results.", + "readOnly": true + } + }, + "description": "The response to a record set list operation." + }, + "Resource": { + "description": "The core properties of ARM resources", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Fully qualified resource Id for the resource. Example - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateDnsZoneName}'." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the resource" + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of the resource. Example - 'Microsoft.Network/privateDnsZones'." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked top level resource", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The Azure Region where the resource lives" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "ProxyResource": { + "description": "The resource model definition for an ARM proxy resource.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + } + }, + "description": "Reference to another subresource.", + "x-ms-azure-resource": true + }, + "CloudError": { + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "The error message body" + } + }, + "x-ms-external": true, + "description": "An error message" + }, + "CloudErrorBody": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "The error code" + }, + "message": { + "type": "string", + "description": "A description of what caused the error" + }, + "target": { + "type": "string", + "description": "The target resource of the error message" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "Extra error information" + } + }, + "x-ms-external": true, + "description": "The body of an error message" + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/readme.go.md b/specification/privatedns/resource-manager/readme.go.md new file mode 100644 index 000000000000..80d66ba2266a --- /dev/null +++ b/specification/privatedns/resource-manager/readme.go.md @@ -0,0 +1,26 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: privatedns + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2018-09 +``` + +### Tag: package-2018-09 and go + +These settings apply only when `--tag=package-2018-09 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-09' && $(go) +output-folder: $(go-sdk-folder)/services/privatedns/mgmt/2018-09-01/privatedns +``` diff --git a/specification/privatedns/resource-manager/readme.md b/specification/privatedns/resource-manager/readme.md new file mode 100644 index 000000000000..08e79ebc1f83 --- /dev/null +++ b/specification/privatedns/resource-manager/readme.md @@ -0,0 +1,136 @@ +# Private DNS + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Private DNS. + +--- + +## Getting Started + +To build the SDK for Private DNS, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` + +--- + +## Configuration + +### Basic Information + +These are the global settings for the Private DNS API. + +``` yaml +openapi-type: arm +tag: package-2018-09 +``` + +### Tag: package-2018-09 + +These settings apply only when `--tag=package-2018-09` is specified on the command line. + +``` yaml $(tag) == 'package-2018-09' +input-file: + - Microsoft.Network/stable/2018-09-01/privatedns.json +``` + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-node + - repo: azure-sdk-for-typescript + - repo: azure-sdk-for-js + - repo: azure-sdk-for-ruby +``` + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Azure.Management.PrivateDns + payload-flattening-threshold: 2 + output-folder: $(csharp-sdks-folder)/PrivateDns/Management.PrivateDns/Generated + clear-output-folder: true +``` + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.privatedns +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-privatedns +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-09 +``` + +### Tag: package-2018-09 and java + +These settings apply only when `--tag=package-2018-09 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(tag) == 'package-2018-09' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.privatedns.v2018_09_01 + output-folder: $(azure-libraries-for-java-folder)/privatedns/resource-manager/v2018_09_01 +regenerate-manager: true +generate-interface: true +``` + +## Suppression + +``` yaml +directive: + - where: $.paths + from: privatedns.json + suppress: OperationsAPIImplementation + reason: Operation APIs for Microsoft.Network are to be defined in Network swagger. + - where: $.definitions.VirtualNetworkLinkProperties.properties.registrationEnabled + from: privatedns.json + suppress: EnumInsteadOfBoolean + reason: Booleans are used to indicate binary states of the property, enum is not appropriate. + - where: $.definitions.RecordSetProperties.properties.isAutoRegistered + from: privatedns.json + suppress: EnumInsteadOfBoolean + reason: Booleans are used to indicate binary states of the property, enum is not appropriate. + - where: $.definitions + from: privatedns.json + suppress: TrackedResourceListByImmediateParent + reason: Another list API naming approach is used over the specs. + - where: $.definitions.Resource + from: types.json + suppress: DescriptionAndTitleMissing + reason: Common types warning. +``` diff --git a/specification/privatedns/resource-manager/readme.nodejs.md b/specification/privatedns/resource-manager/readme.nodejs.md new file mode 100644 index 000000000000..3e0a83c0f707 --- /dev/null +++ b/specification/privatedns/resource-manager/readme.nodejs.md @@ -0,0 +1,14 @@ +## Node.js + +These settings apply only when `--nodejs` is specified on the command line. +Please also specify `--node-sdks-folder=`. + +``` yaml $(nodejs) +nodejs: + azure-arm: true + package-name: azure-arm-privatedns + output-folder: $(node-sdks-folder)/lib/services/privateDnsManagement + generate-license-txt: true + generate-package-json: true + generate-readme-md: true +``` diff --git a/specification/privatedns/resource-manager/readme.python.md b/specification/privatedns/resource-manager/readme.python.md new file mode 100644 index 000000000000..a414a4816c05 --- /dev/null +++ b/specification/privatedns/resource-manager/readme.python.md @@ -0,0 +1,27 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.privatedns + package-name: azure-mgmt-privatedns + package-version: 1.0.0 + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-privatedns/azure/mgmt/privatedns +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-privatedns +``` diff --git a/specification/privatedns/resource-manager/readme.ruby.md b/specification/privatedns/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..88b668230fc5 --- /dev/null +++ b/specification/privatedns/resource-manager/readme.ruby.md @@ -0,0 +1,26 @@ +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +``` yaml +package-name: azure_mgmt_privatedns +package-version: "0.16.0" +azure-arm: true +``` + +### Ruby multi-api + +``` yaml $(ruby) && $(multiapi) +batch: + - tag: package-2018-09 +``` + +### Tag: package-2018-09 and ruby + +These settings apply only when `--tag=package-2018-09 --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-09' && $(ruby) +namespace: "Azure::PrivateDns::Mgmt::V2018_09_01" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_privatedns/lib +``` diff --git a/specification/privatedns/resource-manager/readme.typescript.md b/specification/privatedns/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..c701f3b7f008 --- /dev/null +++ b/specification/privatedns/resource-manager/readme.typescript.md @@ -0,0 +1,12 @@ +## Node.js + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: arm-privatedns + output-folder: $(typescript-sdks-folder)/packages/arm-privatedns + generate-metadata: true +``` From 6edbf0cdc4075da21e679f25e9cd9491e14f3385 Mon Sep 17 00:00:00 2001 From: Muhammad Waqar Date: Wed, 13 Feb 2019 09:13:56 -0800 Subject: [PATCH 2/3] Adding examples. --- .../examples/PrivateZoneDelete.json | 19 +++++ .../2018-09-01/examples/PrivateZoneGet.json | 31 ++++++++ .../PrivateZoneListInResourceGroup.json | 51 ++++++++++++ .../PrivateZoneListInSubscription.json | 50 ++++++++++++ .../2018-09-01/examples/PrivateZonePatch.json | 43 ++++++++++ .../2018-09-01/examples/PrivateZonePut.json | 65 +++++++++++++++ .../examples/RecordSetAAAADelete.json | 14 ++++ .../2018-09-01/examples/RecordSetAAAAGet.json | 33 ++++++++ .../examples/RecordSetAAAAList.json | 53 +++++++++++++ .../examples/RecordSetAAAAPatch.json | 40 ++++++++++ .../2018-09-01/examples/RecordSetAAAAPut.json | 67 ++++++++++++++++ .../2018-09-01/examples/RecordSetADelete.json | 14 ++++ .../2018-09-01/examples/RecordSetAGet.json | 33 ++++++++ .../2018-09-01/examples/RecordSetALLList.json | 73 +++++++++++++++++ .../2018-09-01/examples/RecordSetAList.json | 53 +++++++++++++ .../2018-09-01/examples/RecordSetAPatch.json | 40 ++++++++++ .../2018-09-01/examples/RecordSetAPut.json | 67 ++++++++++++++++ .../examples/RecordSetCNAMEDelete.json | 14 ++++ .../examples/RecordSetCNAMEGet.json | 31 ++++++++ .../examples/RecordSetCNAMEList.json | 34 ++++++++ .../examples/RecordSetCNAMEPatch.json | 38 +++++++++ .../examples/RecordSetCNAMEPut.json | 61 ++++++++++++++ .../examples/RecordSetMXDelete.json | 14 ++++ .../2018-09-01/examples/RecordSetMXGet.json | 34 ++++++++ .../2018-09-01/examples/RecordSetMXList.json | 55 +++++++++++++ .../2018-09-01/examples/RecordSetMXPatch.json | 41 ++++++++++ .../2018-09-01/examples/RecordSetMXPut.json | 70 ++++++++++++++++ .../examples/RecordSetPTRDelete.json | 14 ++++ .../2018-09-01/examples/RecordSetPTRGet.json | 33 ++++++++ .../2018-09-01/examples/RecordSetPTRList.json | 37 +++++++++ .../examples/RecordSetPTRPatch.json | 40 ++++++++++ .../2018-09-01/examples/RecordSetPTRPut.json | 67 ++++++++++++++++ .../2018-09-01/examples/RecordSetSOAGet.json | 37 +++++++++ .../2018-09-01/examples/RecordSetSOAList.json | 40 ++++++++++ .../examples/RecordSetSOAPatch.json | 44 +++++++++++ .../2018-09-01/examples/RecordSetSOAPut.json | 79 +++++++++++++++++++ .../examples/RecordSetSRVDelete.json | 14 ++++ .../2018-09-01/examples/RecordSetSRVGet.json | 36 +++++++++ .../2018-09-01/examples/RecordSetSRVList.json | 40 ++++++++++ .../examples/RecordSetSRVPatch.json | 43 ++++++++++ .../2018-09-01/examples/RecordSetSRVPut.json | 76 ++++++++++++++++++ .../examples/RecordSetTXTDelete.json | 14 ++++ .../2018-09-01/examples/RecordSetTXTGet.json | 36 +++++++++ .../2018-09-01/examples/RecordSetTXTList.json | 40 ++++++++++ .../examples/RecordSetTXTPatch.json | 43 ++++++++++ .../2018-09-01/examples/RecordSetTXTPut.json | 76 ++++++++++++++++++ .../examples/VirtualNetworkLinkDelete.json | 20 +++++ .../examples/VirtualNetworkLinkGet.json | 31 ++++++++ .../examples/VirtualNetworkLinkList.json | 50 ++++++++++++ .../examples/VirtualNetworkLinkPatch.json | 46 +++++++++++ .../examples/VirtualNetworkLinkPut.json | 70 ++++++++++++++++ 51 files changed, 2164 insertions(+) create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneDelete.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneListInResourceGroup.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneListInSubscription.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZonePatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZonePut.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAADelete.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAPatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAPut.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetADelete.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetALLList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAPatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAPut.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEDelete.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEPatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEPut.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXDelete.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXPatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXPut.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRDelete.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRPatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRPut.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAPatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAPut.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVDelete.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVPatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVPut.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTDelete.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTPatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTPut.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkDelete.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkGet.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkList.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkPatch.json create mode 100644 specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkPut.json diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneDelete.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneDelete.json new file mode 100644 index 000000000000..b583108a3ecd --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneDelete.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": {}, + "204": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationResults/asyncOperationId?api-version=2018-09-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationStatuses/asyncOperationId?api-version=2018-09-01", + "Retry-After": "60" + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneGet.json new file mode 100644 index 000000000000..99f4cbfde23d --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com", + "name": "privatezone1.com", + "type": "Microsoft.Network/privateDnsZones", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "maxNumberOfVirtualNetworkLinks": 100, + "numberOfVirtualNetworkLinks": 0, + "maxNumberOfVirtualNetworkLinksWithRegistration": 50, + "numberOfVirtualNetworkLinksWithRegistration": 0, + "provisioningState": "Succeeded" + }, + "tags": { + "key1": "value1" + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneListInResourceGroup.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneListInResourceGroup.json new file mode 100644 index 000000000000..662d7c96f43c --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneListInResourceGroup.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com", + "name": "privatezone1.com", + "type": "Microsoft.Network/privateDnsZones", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "maxNumberOfVirtualNetworkLinks": 100, + "numberOfVirtualNetworkLinks": 0, + "maxNumberOfVirtualNetworkLinksWithRegistration": 50, + "numberOfVirtualNetworkLinksWithRegistration": 0, + "provisioningState": "Succeeded" + }, + "tags": { + "key1": "value1" + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone2.com", + "name": "privatezone2.com", + "type": "Microsoft.Network/privateDnsZones", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "maxNumberOfVirtualNetworkLinks": 100, + "numberOfVirtualNetworkLinks": 0, + "maxNumberOfVirtualNetworkLinksWithRegistration": 50, + "numberOfVirtualNetworkLinksWithRegistration": 0, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneListInSubscription.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneListInSubscription.json new file mode 100644 index 000000000000..4f2f61d4555d --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZoneListInSubscription.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.Network/privateDnsZones?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com", + "name": "privatezone1.com", + "type": "Microsoft.Network/privateDnsZones", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "maxNumberOfVirtualNetworkLinks": 100, + "numberOfVirtualNetworkLinks": 0, + "maxNumberOfVirtualNetworkLinksWithRegistration": 50, + "numberOfVirtualNetworkLinksWithRegistration": 0, + "provisioningState": "Succeeded" + }, + "tags": { + "key1": "value1" + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup2/providers/Microsoft.Network/privateDnsZones/privatezone2.com", + "name": "privatezone2.com", + "type": "Microsoft.Network/privateDnsZones", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "maxNumberOfVirtualNetworkLinks": 100, + "numberOfVirtualNetworkLinks": 0, + "maxNumberOfVirtualNetworkLinksWithRegistration": 50, + "numberOfVirtualNetworkLinksWithRegistration": 0, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZonePatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZonePatch.json new file mode 100644 index 000000000000..1584e1997340 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZonePatch.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "tags": { + "key2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com", + "name": "privatezone1.com", + "type": "Microsoft.Network/privateDnsZones", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "maxNumberOfVirtualNetworkLinks": 100, + "numberOfVirtualNetworkLinks": 0, + "maxNumberOfVirtualNetworkLinksWithRegistration": 50, + "numberOfVirtualNetworkLinksWithRegistration": 0, + "provisioningState": "Succeeded" + }, + "tags": { + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationResults/asyncOperationId?api-version=2018-09-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationStatuses/asyncOperationId?api-version=2018-09-01", + "Retry-After": "60" + } + } + } + } \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZonePut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZonePut.json new file mode 100644 index 000000000000..12871f34f90b --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/PrivateZonePut.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "location": "Global", + "tags": { + "key1": "value1" + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com", + "name": "privatezone1.com", + "type": "Microsoft.Network/privateDnsZones", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "maxNumberOfVirtualNetworkLinks": 100, + "numberOfVirtualNetworkLinks": 0, + "maxNumberOfVirtualNetworkLinksWithRegistration": 50, + "numberOfVirtualNetworkLinksWithRegistration": 0, + "provisioningState": "Succeeded" + }, + "tags": { + "key1": "value1" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com", + "name": "privatezone1.com", + "type": "Microsoft.Network/privateDnsZones", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "maxNumberOfRecordSets": 5000, + "numberOfRecordSets": 1, + "maxNumberOfVirtualNetworkLinks": 100, + "numberOfVirtualNetworkLinks": 0, + "maxNumberOfVirtualNetworkLinksWithRegistration": 50, + "numberOfVirtualNetworkLinksWithRegistration": 0, + "provisioningState": "Succeeded" + }, + "tags": { + "key1": "value1" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationResults/asyncOperationId?api-version=2018-09-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationStatuses/asyncOperationId?api-version=2018-09-01", + "Retry-After": "60" + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAADelete.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAADelete.json new file mode 100644 index 000000000000..30219a68a37d --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAADelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "AAAA", + "relativeRecordSetName": "recordAAAA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAGet.json new file mode 100644 index 000000000000..5ca3f8173c6a --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "AAAA", + "relativeRecordSetName": "recordAAAA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/AAAA/recordaaaa", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordaaaa", + "type": "Microsoft.Network/privateDnsZones/AAAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordaaaa.privatezone1.com.", + "isAutoRegistered": false, + "aaaaRecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAList.json new file mode 100644 index 000000000000..69dd56c0c53e --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAList.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "AAAA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/AAAA?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/AAAA/recordaaaa1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordaaaa1", + "type": "Microsoft.Network/privateDnsZones/AAAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordaaaa1.privatezone1.com.", + "isAutoRegistered": false, + "aaaaRecords": [ + { + "ipv6Address": "::1" + } + ] + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/AAAA/recordaaaa2", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordaaaa2", + "type": "Microsoft.Network/privateDnsZones/AAAA", + "properties": { + "ttl": 3600, + "fqdn": "recordaaaa2.privatezone1.com.", + "isAutoRegistered": false, + "aaaaRecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAPatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAPatch.json new file mode 100644 index 000000000000..d50acd7fe874 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAPatch.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "AAAA", + "relativeRecordSetName": "recordAAAA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/AAAA/recordaaaa", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordaaaa", + "type": "Microsoft.Network/privateDnsZones/AAAA", + "properties": { + "metadata": { + "key2": "value2" + }, + "ttl": 3600, + "fqdn": "recordaaaa.privatezone1.com.", + "isAutoRegistered": false, + "aaaaRecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAPut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAPut.json new file mode 100644 index 000000000000..f557e4165498 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAAAAPut.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "AAAA", + "relativeRecordSetName": "recordAAAA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "aaaaRecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/AAAA/recordaaaa", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordaaaa", + "type": "Microsoft.Network/privateDnsZones/AAAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordaaaa.privatezone1.com.", + "isAutoRegistered": false, + "aaaaRecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/AAAA/recordaaaa", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordaaaa", + "type": "Microsoft.Network/privateDnsZones/AAAA", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordaaaa.privatezone1.com.", + "isAutoRegistered": false, + "aaaaRecords": [ + { + "ipv6Address": "::1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetADelete.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetADelete.json new file mode 100644 index 000000000000..1ef97f3442a0 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetADelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "A", + "relativeRecordSetName": "recordA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": {}, + "204": {} + } + } \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAGet.json new file mode 100644 index 000000000000..b0e8a2b43538 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "A", + "relativeRecordSetName": "recordA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/A/recorda", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recorda", + "type": "Microsoft.Network/privateDnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recorda.privatezone1.com.", + "isAutoRegistered": false, + "aRecords": [ + { + "ipv4Address": "1.2.3.4" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetALLList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetALLList.json new file mode 100644 index 000000000000..bb3d49b074db --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetALLList.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/ALL?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/A/recorda", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recorda", + "type": "Microsoft.Network/privateDnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recorda.privatezone1.com.", + "isAutoRegistered": false, + "aRecords": [ + { + "ipv4Address": "1.2.3.4" + } + ] + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/CNAME/recordcname", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordcname", + "type": "Microsoft.Network/privateDnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordcname.privatezone1.com.", + "isAutoRegistered": false, + "cnameRecord": { + "cname": "contoso.com" + } + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/MX/recordmx", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordmx", + "type": "Microsoft.Network/privateDnsZones/MX", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordmx.privatezone1.com.", + "isAutoRegistered": false, + "mxRecords": [ + { + "preference": 0, + "exchange": "mail.contoso1.com" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAList.json new file mode 100644 index 000000000000..23e00ff6d46e --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAList.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "A", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/A?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/A/recorda1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recorda1", + "type": "Microsoft.Network/privateDnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recorda1.privatezone1.com.", + "isAutoRegistered": false, + "aRecords": [ + { + "ipv4Address": "1.2.3.4" + } + ] + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/A/recorda2", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recorda2", + "type": "Microsoft.Network/privateDnsZones/A", + "properties": { + "ttl": 3600, + "fqdn": "recorda2.privatezone1.com.", + "isAutoRegistered": false, + "aRecords": [ + { + "ipv4Address": "5.6.7.8" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAPatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAPatch.json new file mode 100644 index 000000000000..3e82863fc000 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAPatch.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "A", + "relativeRecordSetName": "recordA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/A/recorda", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recorda", + "type": "Microsoft.Network/privateDnsZones/A", + "properties": { + "metadata": { + "key2": "value2" + }, + "ttl": 3600, + "fqdn": "recorda.privatezone1.com.", + "isAutoRegistered": false, + "aRecords": [ + { + "ipv4Address": "1.2.3.4" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAPut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAPut.json new file mode 100644 index 000000000000..3e5450335155 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetAPut.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "A", + "relativeRecordSetName": "recordA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "aRecords": [ + { + "ipv4Address": "1.2.3.4" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/A/recorda", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recorda", + "type": "Microsoft.Network/privateDnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recorda.privatezone1.com.", + "isAutoRegistered": false, + "aRecords": [ + { + "ipv4Address": "1.2.3.4" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/A/recorda", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recorda", + "type": "Microsoft.Network/privateDnsZones/A", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recorda.privatezone1.com.", + "isAutoRegistered": false, + "aRecords": [ + { + "ipv4Address": "1.2.3.4" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEDelete.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEDelete.json new file mode 100644 index 000000000000..a1bcb25c7eb2 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "CNAME", + "relativeRecordSetName": "recordCNAME", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEGet.json new file mode 100644 index 000000000000..7c742118ae59 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "CNAME", + "relativeRecordSetName": "recordCNAME", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/CNAME/recordcname", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordcname", + "type": "Microsoft.Network/privateDnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordcname.privatezone1.com.", + "isAutoRegistered": false, + "cnameRecord": { + "cname": "contoso.com" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEList.json new file mode 100644 index 000000000000..7836f73799fe --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEList.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "CNAME", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/CNAME/recordcname", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordcname", + "type": "Microsoft.Network/privateDnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordcname.privatezone1.com.", + "isAutoRegistered": false, + "cnameRecord": { + "cname": "contoso.com" + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEPatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEPatch.json new file mode 100644 index 000000000000..56c5772072ca --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEPatch.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "CNAME", + "relativeRecordSetName": "recordCNAME", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/CNAME/recordcname", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordcname", + "type": "Microsoft.Network/privateDnsZones/CNAME", + "properties": { + "metadata": { + "key2": "value2" + }, + "ttl": 3600, + "fqdn": "recordcname.privatezone1.com.", + "isAutoRegistered": false, + "cnameRecord": { + "cname": "contoso.com" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEPut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEPut.json new file mode 100644 index 000000000000..7277584297f3 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetCNAMEPut.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "CNAME", + "relativeRecordSetName": "recordCNAME", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "cnameRecord": { + "cname": "contoso.com" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/CNAME/recordcname", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordcname", + "type": "Microsoft.Network/privateDnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordcname.privatezone1.com.", + "isAutoRegistered": false, + "cnameRecord": { + "cname": "contoso.com" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/CNAME/recordcname", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordcname", + "type": "Microsoft.Network/privateDnsZones/CNAME", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordcname.privatezone1.com.", + "isAutoRegistered": false, + "cnameRecord": { + "cname": "contoso.com" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXDelete.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXDelete.json new file mode 100644 index 000000000000..88857ba29015 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "MX", + "relativeRecordSetName": "recordMX", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXGet.json new file mode 100644 index 000000000000..fa83f9bcfa15 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXGet.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "MX", + "relativeRecordSetName": "recordMX", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/MX/recordmx", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordmx", + "type": "Microsoft.Network/privateDnsZones/MX", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordmx.privatezone1.com.", + "isAutoRegistered": false, + "mxRecords": [ + { + "preference": 0, + "exchange": "mail.privatezone1.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXList.json new file mode 100644 index 000000000000..287829bb8d63 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXList.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "MX", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/MX?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/MX/recordmx1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordmx1", + "type": "Microsoft.Network/privateDnsZones/MX", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordmx1.privatezone1.com.", + "isAutoRegistered": false, + "mxRecords": [ + { + "preference": 0, + "exchange": "mail.contoso1.com" + } + ] + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/MX/recordmx2", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordmx2", + "type": "Microsoft.Network/privateDnsZones/MX", + "properties": { + "ttl": 3600, + "fqdn": "recordmx2.privatezone1.com.", + "isAutoRegistered": false, + "mxRecords": [ + { + "preference": 0, + "exchange": "mail.contoso2.com" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXPatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXPatch.json new file mode 100644 index 000000000000..bbfcb2bcd760 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXPatch.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "MX", + "relativeRecordSetName": "recordMX", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/MX/recordmx", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordmx", + "type": "Microsoft.Network/privateDnsZones/MX", + "properties": { + "metadata": { + "key2": "value2" + }, + "ttl": 3600, + "fqdn": "recordmx.privatezone1.com.", + "isAutoRegistered": false, + "mxRecords": [ + { + "preference": 0, + "exchange": "mail.privatezone1.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXPut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXPut.json new file mode 100644 index 000000000000..e3e336383a6f --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetMXPut.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "MX", + "relativeRecordSetName": "recordMX", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "mxRecords": [ + { + "preference": 0, + "exchange": "mail.privatezone1.com" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/MX/recordmx", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordmx", + "type": "Microsoft.Network/privateDnsZones/MX", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordmx.privatezone1.com.", + "isAutoRegistered": false, + "mxRecords": [ + { + "preference": 0, + "exchange": "mail.privatezone1.com" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/MX/recordmx", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordmx", + "type": "Microsoft.Network/privateDnsZones/MX", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordmx.privatezone1.com.", + "isAutoRegistered": false, + "mxRecords": [ + { + "preference": 0, + "exchange": "mail.privatezone1.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRDelete.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRDelete.json new file mode 100644 index 000000000000..beb728224c24 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "0.0.127.in-addr.arpa", + "recordType": "PTR", + "relativeRecordSetName": "1", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRGet.json new file mode 100644 index 000000000000..747011d44f24 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "0.0.127.in-addr.arpa", + "recordType": "PTR", + "relativeRecordSetName": "1", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/privateDnsZones/PTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "1.0.0.127.in-addr.arpa.", + "isAutoRegistered": false, + "ptrRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRList.json new file mode 100644 index 000000000000..d3e18fbd0558 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRList.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "0.0.127.in-addr.arpa", + "recordType": "PTR", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/PTR?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/privateDnsZones/PTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "1.0.0.127.in-addr.arpa.", + "isAutoRegistered": false, + "ptrRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRPatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRPatch.json new file mode 100644 index 000000000000..b94f4e3b6df1 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRPatch.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "0.0.127.in-addr.arpa", + "recordType": "PTR", + "relativeRecordSetName": "1", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/privateDnsZones/PTR", + "properties": { + "metadata": { + "key2": "value2" + }, + "ttl": 3600, + "fqdn": "1.0.0.127.in-addr.arpa.", + "isAutoRegistered": false, + "ptrRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRPut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRPut.json new file mode 100644 index 000000000000..372469d003a2 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetPTRPut.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "0.0.127.in-addr.arpa", + "recordType": "PTR", + "relativeRecordSetName": "1", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "ptrRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/privateDnsZones/PTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "1.0.0.127.in-addr.arpa.", + "isAutoRegistered": false, + "ptrRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/0.0.127.in-addr.arpa/PTR/1", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "1", + "type": "Microsoft.Network/privateDnsZones/PTR", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "1.0.0.127.in-addr.arpa.", + "isAutoRegistered": false, + "ptrRecords": [ + { + "ptrdname": "localhost" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAGet.json new file mode 100644 index 000000000000..e3898e00cd18 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAGet.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "SOA", + "relativeRecordSetName": "@", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/privateDnsZones/SOA", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "privatezone1.com.", + "isAutoRegistered": false, + "soaRecord": { + "host": "azureprivatedns.net", + "email": "azureprivatedns-hostmaster.microsoft.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTtl": 300 + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAList.json new file mode 100644 index 000000000000..1a2ba6e13e5d --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "SOA", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/privateDnsZones/SOA", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "privatezone1.com.", + "isAutoRegistered": false, + "soaRecord": { + "host": "azureprivatedns.net", + "email": "azureprivatedns-hostmaster.microsoft.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTtl": 300 + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAPatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAPatch.json new file mode 100644 index 000000000000..6fbabe47ed17 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAPatch.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "SOA", + "relativeRecordSetName": "@", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/privateDnsZones/SOA", + "properties": { + "metadata": { + "key2": "value2" + }, + "ttl": 3600, + "fqdn": "privatezone1.com.", + "isAutoRegistered": false, + "soaRecord": { + "host": "azureprivatedns.net", + "email": "azureprivatedns-hostmaster.microsoft.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTtl": 300 + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAPut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAPut.json new file mode 100644 index 000000000000..a7cf7643792a --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSOAPut.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "SOA", + "relativeRecordSetName": "@", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "soaRecord": { + "host": "azureprivatedns.net", + "email": "azureprivatedns-hostmaster.microsoft.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTtl": 300 + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/privateDnsZones/SOA", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "privatezone1.com.", + "isAutoRegistered": false, + "soaRecord": { + "host": "azureprivatedns.net", + "email": "azureprivatedns-hostmaster.microsoft.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTtl": 300 + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SOA/@", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "@", + "type": "Microsoft.Network/privateDnsZones/SOA", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "privatezone1.com.", + "isAutoRegistered": false, + "soaRecord": { + "host": "azureprivatedns.net", + "email": "azureprivatedns-hostmaster.microsoft.com", + "serialNumber": 1, + "refreshTime": 3600, + "retryTime": 300, + "expireTime": 2419200, + "minimumTtl": 300 + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVDelete.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVDelete.json new file mode 100644 index 000000000000..43032aefcbc4 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "SRV", + "relativeRecordSetName": "recordSRV", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVGet.json new file mode 100644 index 000000000000..83b6967b365a --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVGet.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "SRV", + "relativeRecordSetName": "recordSRV", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SRV/recordsrv", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordsrv", + "type": "Microsoft.Network/privateDnsZones/SRV", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordsrv.privatezone1.com.", + "isAutoRegistered": false, + "srvRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVList.json new file mode 100644 index 000000000000..0cd6843ee321 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "SRV", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/SRV?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SRV/recordsrv", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordsrv", + "type": "Microsoft.Network/privateDnsZones/SRV", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordsrv.privatezone1.com.", + "isAutoRegistered": false, + "srvRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVPatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVPatch.json new file mode 100644 index 000000000000..89e0dfcef4c9 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVPatch.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "SRV", + "relativeRecordSetName": "recordSRV", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SRV/recordsrv", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordsrv", + "type": "Microsoft.Network/privateDnsZones/SRV", + "properties": { + "metadata": { + "key2": "value2" + }, + "ttl": 3600, + "fqdn": "recordsrv.privatezone1.com.", + "isAutoRegistered": false, + "srvRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVPut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVPut.json new file mode 100644 index 000000000000..f836f73af5e5 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetSRVPut.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "SRV", + "relativeRecordSetName": "recordSRV", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "srvRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SRV/recordsrv", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordsrv", + "type": "Microsoft.Network/privateDnsZones/SRV", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordsrv.privatezone1.com.", + "isAutoRegistered": false, + "srvRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/SRV/recordsrv", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordsrv", + "type": "Microsoft.Network/privateDnsZones/SRV", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordsrv.privatezone1.com.", + "isAutoRegistered": false, + "srvRecords": [ + { + "priority": 0, + "weight": 10, + "port": 80, + "target": "contoso.com" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTDelete.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTDelete.json new file mode 100644 index 000000000000..6bfccb842424 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "TXT", + "relativeRecordSetName": "recordTXT", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTGet.json new file mode 100644 index 000000000000..ec791145641d --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTGet.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "TXT", + "relativeRecordSetName": "recordTXT", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/TXT/recordtxt", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordtxt", + "type": "Microsoft.Network/privateDnsZones/TXT", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordtxt.privatezone1.com.", + "isAutoRegistered": false, + "txtRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTList.json new file mode 100644 index 000000000000..a9dc5d6c6f2c --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "TXT", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/TXT?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/TXT/recordtxt", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordtxt", + "type": "Microsoft.Network/privateDnsZones/TXT", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordtxt.privatezone1.com.", + "isAutoRegistered": false, + "txtRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTPatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTPatch.json new file mode 100644 index 000000000000..abb6d0b50b75 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTPatch.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "TXT", + "relativeRecordSetName": "recordTXT", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key2": "value2" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/TXT/recordtxt", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordtxt", + "type": "Microsoft.Network/privateDnsZones/TXT", + "properties": { + "metadata": { + "key2": "value2" + }, + "ttl": 3600, + "fqdn": "recordtxt.privatezone1.com.", + "isAutoRegistered": false, + "txtRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTPut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTPut.json new file mode 100644 index 000000000000..6420c3e87c50 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/RecordSetTXTPut.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "recordType": "TXT", + "relativeRecordSetName": "recordTXT", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "txtRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/TXT/recordtxt", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordtxt", + "type": "Microsoft.Network/privateDnsZones/TXT", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordtxt.privatezone1.com.", + "isAutoRegistered": false, + "txtRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/TXT/recordtxt", + "etag": "00000000-0000-0000-0000-000000000000", + "name": "recordtxt", + "type": "Microsoft.Network/privateDnsZones/TXT", + "properties": { + "metadata": { + "key1": "value1" + }, + "ttl": 3600, + "fqdn": "recordtxt.privatezone1.com.", + "isAutoRegistered": false, + "txtRecords": [ + { + "value": [ + "string1", + "string2" + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkDelete.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkDelete.json new file mode 100644 index 000000000000..dbe7bfda9237 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkDelete.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "virtualNetworkLinkName": "virtualNetworkLink1", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": {}, + "204": {}, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationResults/asyncOperationId?api-version=2018-09-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationStatuses/asyncOperationId?api-version=2018-09-01", + "Retry-After": "60" + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkGet.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkGet.json new file mode 100644 index 000000000000..71f875a25c56 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkGet.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "virtualNetworkLinkName": "virtualNetworkLink1", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/virtualNetworkLinks/virtualNetworkLink1", + "name": "virtualNetworkLink1", + "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "virtualNetwork": { + "id": "/subscriptions/virtualNetworkSubscriptionId/resourceGroups/virtualNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/virtualNetworkName" + }, + "registrationEnabled": false, + "virtualNetworkLinkState": "Completed", + "provisioningState": "Succeeded" + }, + "tags": { + "key1": "value1" + } + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkList.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkList.json new file mode 100644 index 000000000000..f39fc5f36b52 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkList.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId" + }, + "responses": { + "200": { + "body": { + "nextLink": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/virtualNetworkLinks?api-version=2018-09-01&$skipToken=skipToken", + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/virtualNetworkLinks/virtualNetworkLink1", + "name": "virtualNetworkLink1", + "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "virtualNetwork": { + "id": "/subscriptions/virtualNetworkSubscriptionId/resourceGroups/virtualNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/virtualNetworkName" + }, + "registrationEnabled": false, + "virtualNetworkLinkState": "Completed", + "provisioningState": "Succeeded" + }, + "tags": { + "key1": "value1" + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/virtualNetworkLinks/virtualNetworkLink2", + "name": "virtualNetworkLink2", + "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "virtualNetwork": { + "id": "/subscriptions/virtualNetworkSubscriptionId/resourceGroups/virtualNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/virtualNetworkName" + }, + "registrationEnabled": true, + "virtualNetworkLinkState": "InProgress", + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkPatch.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkPatch.json new file mode 100644 index 000000000000..a7bdd20a56cc --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkPatch.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "virtualNetworkLinkName": "virtualNetworkLink1", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "tags": { + "key2": "value2" + }, + "properties": { + "registrationEnabled": true + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/virtualNetworkLinks/virtualNetworkLink1", + "name": "virtualNetworkLink1", + "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "virtualNetwork": { + "id": "/subscriptions/virtualNetworkSubscriptionId/resourceGroups/virtualNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/virtualNetworkName" + }, + "registrationEnabled": true, + "virtualNetworkLinkState": "Completed", + "provisioningState": "Succeeded" + }, + "tags": { + "key2": "value2" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationResults/asyncOperationId?api-version=2018-09-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationStatuses/asyncOperationId?api-version=2018-09-01", + "Retry-After": "60" + } + } + } +} \ No newline at end of file diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkPut.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkPut.json new file mode 100644 index 000000000000..57724e54d678 --- /dev/null +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/examples/VirtualNetworkLinkPut.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "resourceGroupName": "resourceGroup1", + "privateZoneName": "privatezone1.com", + "virtualNetworkLinkName": "virtualNetworkLink1", + "api-version": "2018-09-01", + "subscriptionId": "subscriptionId", + "parameters": { + "location": "Global", + "tags": { + "key1": "value1" + }, + "properties": { + "virtualNetwork": { + "id": "/subscriptions/virtualNetworkSubscriptionId/resourceGroups/virtualNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/virtualNetworkName" + }, + "registrationEnabled": false + } + } + }, + "responses": { + "201": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/virtualNetworkLinks/virtualNetworkLink1", + "name": "virtualNetworkLink1", + "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "virtualNetwork": { + "id": "/subscriptions/virtualNetworkSubscriptionId/resourceGroups/virtualNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/virtualNetworkName" + }, + "registrationEnabled": false, + "virtualNetworkLinkState": "Completed", + "provisioningState": "Succeeded" + }, + "tags": { + "key1": "value1" + } + } + }, + "200": { + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsZones/privatezone1.com/virtualNetworkLinks/virtualNetworkLink1", + "name": "virtualNetworkLink1", + "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", + "location": "global", + "etag": "00000000-0000-0000-0000-000000000000", + "properties": { + "virtualNetwork": { + "id": "/subscriptions/virtualNetworkSubscriptionId/resourceGroups/virtualNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/virtualNetworkName" + }, + "registrationEnabled": false, + "virtualNetworkLinkState": "Completed", + "provisioningState": "Succeeded" + }, + "tags": { + "key1": "value1" + } + } + }, + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationResults/asyncOperationId?api-version=2018-09-01", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.Network/privateDnsOperationStatuses/asyncOperationId?api-version=2018-09-01", + "Retry-After": "60" + } + } + } +} \ No newline at end of file From 458e0cf9b961fb2e28827f62cda80bd579f128dc Mon Sep 17 00:00:00 2001 From: Muhammad Waqar Date: Wed, 13 Feb 2019 11:20:29 -0800 Subject: [PATCH 3/3] Correcting overwriting spelling. --- .../stable/2018-09-01/privatedns.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/privatedns.json b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/privatedns.json index 3d0c1a2c7e2b..995f575d13dd 100644 --- a/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/privatedns.json +++ b/specification/privatedns/resource-manager/Microsoft.Network/stable/2018-09-01/privatedns.json @@ -64,7 +64,7 @@ "required": false, "type": "string", "x-ms-client-name": "IfMatch", - "description": "The ETag of the Private DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + "description": "The ETag of the Private DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes." }, { "name": "If-None-Match", @@ -147,7 +147,7 @@ "required": false, "type": "string", "x-ms-client-name": "IfMatch", - "description": "The ETag of the Private DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + "description": "The ETag of the Private DNS zone. Omit this value to always overwrite the current zone. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -434,7 +434,7 @@ "required": false, "type": "string", "x-ms-client-name": "IfMatch", - "description": "The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + "description": "The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes." }, { "name": "If-None-Match", @@ -524,7 +524,7 @@ "required": false, "type": "string", "x-ms-client-name": "IfMatch", - "description": "The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + "description": "The ETag of the virtual network link to the Private DNS zone. Omit this value to always overwrite the current virtual network link. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -807,7 +807,7 @@ "required": false, "type": "string", "x-ms-client-name": "IfMatch", - "description": "The ETag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwritting any concurrent changes." + "description": "The ETag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes." }, { "name": "If-None-Match", @@ -936,7 +936,7 @@ "required": false, "type": "string", "x-ms-client-name": "IfMatch", - "description": "The ETag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwritting concurrent changes." + "description": "The ETag of the record set. Omit this value to always overwrite the current record set. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes." }, { "$ref": "#/parameters/ApiVersionParameter"