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 a9fc16f1576e..266090e293ce 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 @@ -350,26 +350,19 @@ "description": "Updates a record set within a DNS zone.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "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/ZoneNameParameter" + }, + { + "$ref": "#/parameters/RelativeRecordSetNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "recordType", @@ -410,12 +403,6 @@ "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 overwriting concurrent changes." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -473,26 +460,19 @@ "description": "Creates or updates a record set within a DNS zone.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "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/ZoneNameParameter" + }, + { + "$ref": "#/parameters/RelativeRecordSetNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "recordType", @@ -541,12 +521,6 @@ "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": { @@ -613,26 +587,19 @@ "description": "Deletes a record set from a DNS zone. This operation cannot be undone.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "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/ZoneNameParameter" + }, + { + "$ref": "#/parameters/RelativeRecordSetNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "recordType", @@ -664,12 +631,6 @@ "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": { @@ -724,26 +685,19 @@ "description": "Gets a record set.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "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/ZoneNameParameter" + }, + { + "$ref": "#/parameters/RelativeRecordSetNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "recordType", @@ -767,12 +721,6 @@ "name": "RecordType", "modelAsString": false } - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -832,18 +780,16 @@ "description": "Lists the record sets of a specified type in a DNS zone.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "recordType", @@ -882,12 +828,6 @@ "required": false, "type": "string", "description": "The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with ." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -950,18 +890,16 @@ "description": "Lists all record sets in a DNS zone.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "$top", @@ -977,12 +915,6 @@ "required": false, "type": "string", "description": "The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with ." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1018,18 +950,16 @@ "description": "Lists all record sets in a DNS zone.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "$top", @@ -1046,12 +976,6 @@ "type": "string", "description": "The suffix label of the record set name that has to be used to filter the record set enumerations. If this parameter is specified, Enumeration will return only records that end with .", "x-ms-client-name": "recordSetNameSuffix" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1087,18 +1011,16 @@ "description": "Creates or updates a DNS zone. Does not modify DNS records within the zone.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "parameters", @@ -1124,12 +1046,6 @@ "type": "string", "x-ms-client-name": "IfNoneMatch", "description": "Set to '*' to allow a new DNS zone to be created, but to prevent updating an existing zone. Other values will be ignored." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1166,18 +1082,16 @@ "description": "Deletes a DNS zone. WARNING: All DNS records in the zone 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." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "If-Match", @@ -1186,12 +1100,6 @@ "type": "string", "x-ms-client-name": "IfMatch", "description": "The etag of the 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": { @@ -1226,24 +1134,16 @@ "description": "Gets a DNS zone. Retrieves the zone properties, but not the record sets within the zone.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/ZoneNameParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -1274,18 +1174,16 @@ "description": "Updates a DNS zone. Does not modify DNS records within the zone.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "name": "zoneName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the DNS zone (without a terminating dot)." + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ZoneNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "parameters", @@ -1303,12 +1201,6 @@ "type": "string", "x-ms-client-name": "IfMatch", "description": "The etag of the 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" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -1341,11 +1233,13 @@ "description": "Lists the DNS zones within a resource group.", "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" }, { "name": "$top", @@ -1354,12 +1248,6 @@ "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": { @@ -1847,7 +1735,7 @@ "properties": { "provisioningState": { "type": "string", - "description": "Provisioning State of the dnssec config.", + "description": "Provisioning State of the DNSSEC config.", "readOnly": true }, "signingKeys": { @@ -2185,6 +2073,14 @@ "type": "string", "description": "The name of the DNS zone (without a terminating dot)." }, + "RelativeRecordSetNameParameter": { + "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 + }, "ApiVersionParameter": { "name": "api-version", "in": "query",