diff --git a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json index 266090e293ce..52579818f410 100644 --- a/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json +++ b/specification/dns/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dns.json @@ -365,27 +365,8 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "recordType", - "in": "path", - "required": true, - "type": "string", - "description": "The type of DNS record in this record set.", - "enum": [ - "A", - "AAAA", - "CAA", - "CNAME", - "MX", - "NS", - "PTR", - "SOA", - "SRV", - "TXT" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter", + "description": "The type of DNS record in this record set." }, { "name": "parameters", @@ -475,27 +456,8 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "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 DNS zone is created).", - "enum": [ - "A", - "AAAA", - "CAA", - "CNAME", - "MX", - "NS", - "PTR", - "SOA", - "SRV", - "TXT" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter", + "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 DNS zone is created)." }, { "name": "parameters", @@ -602,27 +564,8 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "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 DNS zone is deleted).", - "enum": [ - "A", - "AAAA", - "CAA", - "CNAME", - "MX", - "NS", - "PTR", - "SOA", - "SRV", - "TXT" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter", + "description": "The type of DNS record in this record set. Record sets of type SOA cannot be deleted (they are deleted when the DNS zone is deleted)." }, { "name": "If-Match", @@ -700,27 +643,8 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "recordType", - "in": "path", - "required": true, - "type": "string", - "description": "The type of DNS record in this record set.", - "enum": [ - "A", - "AAAA", - "CAA", - "CNAME", - "MX", - "NS", - "PTR", - "SOA", - "SRV", - "TXT" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter", + "description": "The type of DNS record in this record set." } ], "responses": { @@ -792,27 +716,8 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "recordType", - "in": "path", - "required": true, - "type": "string", - "description": "The type of record sets to enumerate.", - "enum": [ - "A", - "AAAA", - "CAA", - "CNAME", - "MX", - "NS", - "PTR", - "SOA", - "SRV", - "TXT" - ], - "x-ms-enum": { - "name": "RecordType", - "modelAsString": false - } + "$ref": "#/parameters/RecordTypeParameter", + "description": "The type of record sets to enumerate." }, { "name": "$top", @@ -2081,6 +1986,29 @@ "description": "The name of the record set, relative to the name of the zone.", "x-ms-skip-url-encoding": true }, + "RecordTypeParameter": { + "name": "recordType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of DNS record.", + "enum": [ + "A", + "AAAA", + "CAA", + "CNAME", + "MX", + "NS", + "PTR", + "SOA", + "SRV", + "TXT" + ], + "x-ms-enum": { + "name": "RecordType", + "modelAsString": false + } + }, "ApiVersionParameter": { "name": "api-version", "in": "query",